:root {
    --bg: #faf9fb;
    --panel: #ededf0;
    --text: #3a3143;
    --muted: #6b6470;
    --accent: #775c87; /*#7b6797;*/
    --accent-strong: #7b6797; /* #6c5889;*/
    --tag-bg: #9ea657;
    --border: #e1dfe6;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family:
        "Segoe UI",
        "Noto Sans JP",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 15px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
}
.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}
.nav-spacer {
    flex: 1;
}
.logo-link {
    display: inline-flex;
    align-items: center;
}
.logo-header {
    height: 36px;
    width: auto;
    display: block;
}
.nav .btn,
.nav .lang-link {
    position: relative;
    top: 0;
    display: inline-flex;
    align-items: center;
}
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.nav-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.nav-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
}
.nav-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    width: 210px;
    z-index: 30;
}
.nav-menu[hidden] {
    display: none;
}
.nav-menu.open {
    display: flex;
}
.nav-menu .menu-item {
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.nav-menu .menu-item:hover {
    background: var(--panel);
}
.lang-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 4px 6px;
}
.lang-link:hover {
    text-decoration: underline;
}
.btn {
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-outline {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 12px rgba(123, 103, 151, 0.08);
}
.btn-outline:hover {
    background: #d9d1e4;
    color: #4a2f65;
    border-color: var(--accent);
}
.btn-solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(123, 103, 151, 0.18);
}
.btn-solid:hover {
    background: #5f4a78;
    color: #fff;
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px 24px;
    gap: 10px;
}
.logo-symbol {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
.logo-text {
    width: 240px;
    height: auto;
    object-fit: contain;
    padding: 4px 6px;
}
.subbrand {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.08em;
}
.tagline {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.shell {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 1;
}
.search {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 300px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.04);
}
.search input {
    border: none;
    background: transparent;
    padding: 5px 5px;
    font-size: 15px;
    outline: none;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
}
.search input:focus {
    outline: none;
    background: transparent;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
    width: 0;
    height: 0;
}
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}
.search button {
    border: none;
    background: transparent;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.search button:hover img {
    filter: brightness(0.8);
}
.search button img {
    width: 35px;
    height: 35px;
    display: block;
}
.note {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    justify-content: center;
}
.tag {
    background: var(--tag-bg);
    color: #fff;
    border-radius: 999px;
    padding: 5px 15px 7px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    border: 1px solid #dcdee8;
    text-decoration: none;
}
.tag:hover {
    background: #8d9450;
    border-color: #7f8548;
}
.tag-icon {
    width: 12px;
    height: 12px;
    display: block;
}
.footer-links {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    padding-top: 18px;
}
.footer-links a {
    color: var(--accent-strong);
    text-decoration: underline;
}
.footer-links a:visited {
    color: var(--accent-strong);
}
.footer-links a:hover {
    text-decoration: none;
}
.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.footer-links-myfield {
    margin-top: 0.5px;
    font-size: 15px;
    font-weight: 400;
}
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.external-link img {
    width: 14px;
    height: 14px;
    display: block;
    position: relative;
    top: 0;
}

@media (max-width: 640px) {
    .nav {
        padding: 12px 16px 12px;
    }
    .nav-actions {
        display: none;
    }
    .nav-menu-toggle {
        display: inline-flex;
    }
    .nav-menu {
        right: 12px;
        left: auto;
        min-width: 200px;
        width: 210px;
    }
}
