:root {
    --ink: #293743;
    --muted: #6f7d8a;
    --line: #eadfe9;
    --paper: #fbfeff;
    --base: #f8fbff;
    --accent: #5fb8c8;
    --accent-2: #f7b9cc;
    --soft: #eef9fb;
    --white: #ffffff;
    --shadow: 0 22px 50px rgba(102, 122, 142, .16);
    --shadow-soft: 0 12px 30px rgba(102, 122, 142, .10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(180, 229, 238, .50), transparent 34rem),
        radial-gradient(circle at 88% 4%, rgba(223, 247, 250, .66), transparent 30rem),
        linear-gradient(180deg, #f8fdff 0%, var(--paper) 46%, #f8fdff 100%);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
    line-height: 1.9;
    letter-spacing: .03em;
    text-align: center;
}

a {
    color: inherit;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 28px auto auto 50%;
    width: min(760px, 72vw);
    height: 220px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, .70);
    filter: blur(8px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    justify-items: center;
}

.hero-copy {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 0 10px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75em;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 900;
    line-height: 1.35;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 2.4em;
    height: 2px;
    background: var(--accent-2);
    border-radius: 999px;
}

.leadline {
    margin: 0 auto;
    max-width: 850px;
    font-size: clamp(1.55rem, 3.2vw, 2.65rem);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: .04em;
    text-wrap: balance;
}

.book-card {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: center;
    width: min(980px, 100%);
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    color: var(--ink);
    border-radius: var(--radius-xl);
    /* background:
        radial-gradient(circle at 86% 12%, rgba(223, 247, 250, .86), transparent 17rem),
        radial-gradient(circle at 16% 86%, rgba(188, 232, 240, .48), transparent 18rem),
        linear-gradient(135deg, rgba(247, 253, 255, .98), rgba(229, 248, 251, .98) 58%, rgba(249, 254, 255, .98)); */
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}

.book-card-inner {
    position: relative;
    padding: clamp(22px, 4vw, 40px);
    /* border: 2px solid rgba(241, 156, 194, .62); */
    border-radius: 24px;
    /* background: rgba(255, 255, 255, .72); */
    overflow: hidden;
}

/* .book-card-inner::after {
    content: "50";
    position: absolute;
    right: -10px;
    bottom: -46px;
    color: rgba(99, 190, 200, .16);
    font-family: Georgia, serif;
    font-size: clamp(7rem, 16vw, 11rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
    pointer-events: none;
} */

.book-cover-wrap {
    position: relative;
    width: min(100%, 320px);
    margin: 0 auto;
}

.book-cover-wrap::before {
    content: "";
    position: absolute;
    inset: 18px -12px -12px 18px;
    border-radius: 18px;
    background: rgba(99, 190, 200, .22);
    z-index: 0;
}

.book-cover {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border: 8px solid rgba(255, 255, 255, .86);
    border-radius: 18px;
    box-shadow: 0 22px 42px rgba(102, 122, 142, .20);
}

.en-title {
    position: relative;
    z-index: 1;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
    letter-spacing: .08em;
}

h1 {
    position: relative;
    z-index: 1;
    margin: 5px 0 5px;
    font-size: clamp(1.2rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .05em;
    text-wrap: balance;
}

.subtitle {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 620px;
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: .05em;
    text-wrap: balance;
}

.author {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    /* color: var(--muted); */
    font-size: 1.05rem;
    font-weight: 700;
}

.product-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* margin-top: 28px; */
    margin-top: 18px;
    margin-bottom: 18px;
    min-height: 52px;
    padding: 12px 24px;
    color: #1f3b44;
    border: 2px solid var(--accent-2);
    border-radius: 999px;
    /* background: linear-gradient(135deg, #ffffff, #eefbfc); */
    background: var(--accent-2);
    box-shadow: 0 12px 24px rgba(102, 122, 142, .12);
    font-weight: 900;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.product-link:hover,
.product-link:focus-visible {
    /* border-color: rgba(95, 184, 200, .62); */
    opacity: .9;
    box-shadow: 0 16px 30px rgba(102, 122, 142, .18);
    transform: translateY(-2px);
}

.product-link span {
    color: #ffffff;
    padding-left: 0.25em;
}

.intro {
    margin-top: -8px;
    padding-bottom: 34px;
}

.intro-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
    justify-items: center;
}

.section,
.note-card,
.feature-card,
.profile-card,
.spec-card,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-soft);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.intro-main {
    max-width: 980px;
    padding: 32px;
}

.intro-main p,
.section p,
.feature-card p,
.profile-card p,
.contact-card p {
    margin: 0 auto;
    max-width: 860px;
}

.intro-main p+p,
.section p+p,
.feature-card p+p,
.profile-card p+p,
.contact-card p {
    margin-top: 1em;
}

.note-card {
    display: grid;
    align-content: center;
    max-width: 980px;
    padding: 4px 8px 0;
    color: var(--accent);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(1.12rem, 2vw, 1.45rem);
    font-weight: 900;
    line-height: 1.8;
}

.section {
    margin: 34px auto;
    padding: 42px 38px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 20px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.35;
    text-align: center;
}

.section-title::before,
.section-title::after {
    content: "";
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent-2);
    flex: 0 0 auto;
}

.parts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    text-align: center;
}

.part-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff, #f8fdff 55%, #eef9fb);
}

.part-label {
    display: inline-block;
    margin: 0 auto 12px;
    padding: 3px 14px;
    color: var(--accent);
    border: 1px solid rgba(239, 159, 194, .38);
    border-radius: 999px;
    background: var(--soft);
    font-weight: 800;
    line-height: 1.45;
}

.part-card h3 {
    margin: 0 auto 14px;
    font-size: 1.15rem;
    line-height: 1.55;
    text-wrap: balance;
}

.part-card ul,
.books ul {
    display: grid;
    gap: .35em;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center;
}

.part-card li,
.books li {
    position: relative;
    padding: 0;
}

.part-card li::before,
.books li::before {
    content: "";
    display: inline-block;
    width: .45em;
    height: .45em;
    margin: 0 .55em .12em 0;
    border-radius: 50%;
    background: var(--accent-2);
    vertical-align: middle;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px;
}

.feature-card h3 {
    margin: 0 auto 12px;
    font-size: 1.25rem;
    line-height: 1.5;
    text-wrap: balance;
}

.sample-spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px auto 0;
    max-width: 920px;
}

.sample-spread img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(102, 122, 142, .12);
}

.sample-spread.spread-joined {
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 12px 28px rgba(102, 122, 142, .12);
    overflow: hidden;
    max-width: 980px;
}

.sample-spread.spread-joined img {
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    background: #fff;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 34px;
}

.profile-name {
    margin: 0 auto 12px;
    font-size: 1.45rem;
    line-height: 1.45;
    text-wrap: balance;
}

.affiliation {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
}

.books h3 {
    margin: 0 auto 12px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.spec-card {
    overflow: hidden;
    margin-top: 24px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    text-align: center;
}

.spec-table th,
.spec-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    text-align: center;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: 0;
}

.spec-table th {
    width: 180px;
    color: var(--accent);
    background: var(--soft);
    font-weight: 800;
    white-space: nowrap;
}

.contact-card {
    margin: 34px auto 64px;
    padding: 38px 34px;
    border-color: rgba(239, 159, 194, .36);
    background: linear-gradient(135deg, #ffffff, #eef9fb);
}

.mail {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(239, 159, 194, .42);
}

.notice {
    margin-top: 28px;
    color: var(--muted);
    font-size: .92rem;
}

footer {
    padding: 22px 0 44px;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 900px) {

    .hero-grid,
    .book-card,
    .intro-card,
    .parts,
    .features,
    .profile-card {
        grid-template-columns: 1fr;
    }

    .book-card,
    .section,
    .profile-card,
    .contact-card {
        padding: 28px;
    }

    .hero-copy {
        padding: 18px 0 12px;
    }

    .book-card {
        text-align: center;
    }

    .en-title,
    .subtitle,
    h1,
    .author {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 24px, 1120px);
    }

    .hero {
        padding-top: 34px;
    }

    .book-card,
    .book-card-inner,
    .intro-main,
    .section,
    .feature-card,
    .profile-card,
    .contact-card {
        padding: 22px;
    }

    .hero-copy,
    .note-card {
        padding-left: 0;
        padding-right: 0;
    }

    .eyebrow::before,
    .eyebrow::after,
    .section-title::before,
    .section-title::after {
        width: 24px;
    }

    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
        padding: 13px 16px;
    }

    .spec-table td {
        border-bottom: 1px solid var(--line);
    }

    .spec-table tr:last-child td {
        border-bottom: 0;
    }

    .sample-spread {
        grid-template-columns: 1fr;
    }
}


/* 調整：見出しは中央、本文は左揃えで読みやすくする */
.intro-main,
.section,
.feature-card,
.profile-card,
.contact-card {
    text-align: left;
}

.section-title {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.intro-main p,
.section p,
.feature-card p,
.profile-card p,
.contact-card p {
    text-align: left;
}


.contact-card .mail {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.parts {
    text-align: left;
}

.part-card {
    align-items: stretch;
    text-align: left;
}

.part-label {
    align-self: center;
}

.part-card h3,
.feature-card h3,
.profile-name,
.books h3 {
    text-align: center;
}

.part-card ul,
.books ul {
    text-align: left;
}

.profile-card {
    align-items: start;
}

.profile-card>div:first-child {
    align-self: start;
}

.spec-table,
.spec-table th,
.spec-table td {
    text-align: left;
}
