/* GENERAL PAGE RULES */

body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro",
        "Helvetica Neue", Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.9;
    color: #1a1a1a;
    background-color: #fbfaf8;

    /* anchor the content near the top of the viewport */
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
}

#holder {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 28px;
}

/* LANGUAGE TOGGLE (show only the active language) */

html[data-lang="ja"] [data-lang-en],
html[data-lang="en"] [data-lang-ja] {
    display: none;
}

/* HEADER */

#site-header {
    margin-bottom: 40px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1 .sub {
    margin-left: 0.4em;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: #8a8378;
    vertical-align: middle;
}

/* LANGUAGE SWITCH */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 14px;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lang-switch button {
    padding: 2px 4px;
    border: 0;
    background: none;
    font: inherit;
    color: #b3ada3;
    cursor: pointer;
    transition: color 0.15s ease;
}

.lang-switch button:hover {
    color: #1a1a1a;
}

.lang-switch button[aria-pressed="true"] {
    color: #1a1a1a;
    font-weight: 600;
}

.lang-switch .sep {
    color: #d6d1c8;
}

/* INTRO */

.intro {
    margin-bottom: 40px;
}

.intro p {
    margin: 0 0 0.8em;
    font-size: 1.08em;
    line-height: 2;
    color: #33302b;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro a {
    color: #660000;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 0, 0, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.intro a:hover {
    color: #400000;
    border-bottom-color: rgba(64, 0, 0, 0.6);
}

.link-ico {
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.25em;
    vertical-align: -0.08em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SOCIAL LINKS (slim horizontal bar) */

.socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    border: 1px solid #e6e3dd;
    border-radius: 999px;
}

.socials-handle {
    font-size: 0.9em;
    letter-spacing: 0.04em;
    color: #6b655c;
}

.socials-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

a.social:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #2E8B57;
}

.social.is-disabled {
    color: #cbc6bc;
    cursor: default;
}

.brand-ico {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: currentColor;
}
