/*
Theme Name: Storybook Theme
Theme URI: https://example.com/
Author: SMC-POWER
Author URI: https://example.com/
Description: /storybook/ 用LPテーマ
Version: 1.0.0
Text Domain: storybook-theme
*/

:root {
    --navy: #1a2f4a;
    --navy-2: #0f2238;
    --charcoal: #111418;
    --ivory: #f6f1e7;
    --paper: #fbf7ef;
    --gold: #b8860b;
    --burgundy: #6b1d1d;
    --line: rgba(26, 47, 74, .16);

    --hero-overlay-alpha: 0.64;
    --radius: 14px;
    --shadow: 0 18px 48px rgba(15, 34, 56, .16);
    --max: 1120px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--paper);
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.75;
    letter-spacing: .02em;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

/* WordPress reset */
.site-main {
    display: block
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Subtle paper texture */
.paper {
    position: relative;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(184, 134, 11, .10), transparent 55%),
        radial-gradient(900px 520px at 100% 0%, rgba(26, 47, 74, .08), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .76));
}

.paper:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(15, 34, 56, .03),
            rgba(15, 34, 56, .03) 1px,
            transparent 1px,
            transparent 9px);
    opacity: .38;
    mix-blend-mode: multiply;
}

.paper>* {
    position: relative;
    z-index: 1
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(251, 247, 239, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 47, 74, .10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.seal {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), transparent 40%),
        linear-gradient(135deg, var(--gold), #d6b25a);
    box-shadow: 0 10px 24px rgba(184, 134, 11, .22);
    border: 1px solid rgba(26, 47, 74, .20);
    position: relative;
}

.seal:after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 999px;
    border: 1px dashed rgba(26, 47, 74, .35);
    opacity: .7;
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title strong {
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    letter-spacing: .03em;
    font-size: 15px;
    color: var(--navy-2);
}

.brand-title span {
    font-size: 12px;
    color: rgba(17, 20, 24, .65);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(26, 47, 74, .06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--ivory);
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border: 1px solid rgba(26, 47, 74, .25);
    box-shadow: 0 12px 24px rgba(15, 34, 56, .16);
    white-space: nowrap;
}

.nav-cta:hover {
    filter: brightness(1.04)
}

.hamburger {
    display: none;
    border: 1px solid rgba(26, 47, 74, .18);
    background: rgba(255, 255, 255, .55);
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-2);
    margin: 4px 0;
    border-radius: 2px;
}

.mobile-drawer {
    display: none;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(26, 47, 74, .10);
}

.mobile-drawer a {
    display: block;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 12px;
    margin: 4px 0;
    background: rgba(26, 47, 74, .04);
}

.mobile-drawer a:last-child {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--ivory);
    font-weight: 700;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 62px;
    color: var(--ivory);
    background:
        linear-gradient(180deg, rgba(15, 34, 56, .72), rgba(15, 34, 56, .72)),
        url("assets/img/book-image.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(26, 47, 74, .20);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 47, 74, var(--hero-overlay-alpha));
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 50% 20%, rgba(255, 255, 255, .08), transparent 60%),
        radial-gradient(1200px 720px at 50% 120%, rgba(0, 0, 0, .35), transparent 60%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: .85;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(246, 241, 231, .88);
}

.kicker .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, .18);
}

.hero h1 {
    margin: 14px 0 10px;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.18;
    letter-spacing: .03em;
    text-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.hero p {
    margin: 0 0 18px;
    font-size: 15px;
    color: rgba(246, 241, 231, .92);
    text-shadow: 0 12px 26px rgba(0, 0, 0, .32);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(246, 241, 231, .22);
    background: rgba(15, 34, 56, .26);
    font-size: 12px;
    color: rgba(246, 241, 231, .92);
    backdrop-filter: blur(6px);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .20);
    white-space: nowrap;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #e3c06a);
    color: #1a1a1a;
    box-shadow: 0 18px 44px rgba(184, 134, 11, .22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02)
}

.btn-ghost {
    background: rgba(15, 34, 56, .22);
    color: var(--ivory);
}

.btn-ghost:hover {
    background: rgba(15, 34, 56, .34)
}

.hero-panel {
    border-radius: var(--radius);
    background: rgba(251, 247, 239, .08);
    border: 1px solid rgba(246, 241, 231, .18);
    padding: 18px 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .20);
    backdrop-filter: blur(10px);
}

.hero-panel h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .04em;
}

.hero-panel ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: rgba(246, 241, 231, .92);
    font-size: 13px;
}

/* Sections */
section {
    padding: 56px 0
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: clamp(22px, 2.2vw, 30px);
    color: var(--navy-2);
}

.section-title p {
    margin: 0;
    max-width: 520px;
    color: rgba(17, 20, 24, .72);
    font-size: 14px;
}

.rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 47, 74, .22), transparent);
    margin: 18px 0 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

.card {
    border-radius: var(--radius);
    border: 1px solid rgba(26, 47, 74, .12);
    background: rgba(255, 255, 255, .62);
    box-shadow: var(--shadow);
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--navy-2);
    font-size: 16px;
}

.card p {
    margin: 0;
    color: rgba(17, 20, 24, .72);
    font-size: 14px
}

.chapter {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 14px;
}

.chapter:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0
}

.chapter h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    color: var(--navy-2);
    letter-spacing: .04em;
}

.chapter h3 .no {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(26, 47, 74, .20);
    background: linear-gradient(135deg, rgba(184, 134, 11, .20), rgba(184, 134, 11, .08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--navy-2);
}

.media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.figure {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(26, 47, 74, .12);
    box-shadow: var(--shadow);
    background: #fff;
    min-height: 220px;
    position: relative;
}

.figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
}

.figure .cap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    color: rgba(246, 241, 231, .92);
    font-size: 12px;
    letter-spacing: .03em;
    background: rgba(15, 34, 56, .55);
    border: 1px solid rgba(246, 241, 231, .18);
    padding: 8px 10px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan {
    border-radius: var(--radius);
    border: 1px solid rgba(26, 47, 74, .14);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.plan.reco {
    border-color: rgba(184, 134, 11, .55);
    box-shadow: 0 22px 64px rgba(184, 134, 11, .18);
}

.ribbon {
    position: absolute;
    top: 14px;
    right: -44px;
    background: linear-gradient(135deg, var(--gold), #e3c06a);
    color: #1a1a1a;
    font-weight: 900;
    letter-spacing: .06em;
    font-size: 11px;
    padding: 8px 58px;
    transform: rotate(18deg);
    border: 1px solid rgba(26, 47, 74, .18);
}

.plan h3 {
    margin: 0 0 4px;
    font-family: "Noto Serif JP", serif;
    color: var(--navy-2);
    letter-spacing: .04em
}

.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 6px 0 12px;
}

.price strong {
    font-size: 28px;
    letter-spacing: .02em
}

.price span {
    color: rgba(17, 20, 24, .72);
    font-size: 12px
}

.plan ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: rgba(17, 20, 24, .74);
    font-size: 13px
}

.plan .meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: rgba(17, 20, 24, .70);
}

.table-wrap {
    border-radius: var(--radius);
    border: 1px solid rgba(26, 47, 74, .14);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
    font-size: 13px;
}

th,
td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(26, 47, 74, .10);
    vertical-align: top;
}

th {
    text-align: left;
    background: rgba(26, 47, 74, .04);
    color: var(--navy-2);
    font-family: "Noto Serif JP", serif;
    letter-spacing: .04em;
}

tbody tr:hover td {
    background: rgba(184, 134, 11, .06)
}

.faq {
    border-radius: var(--radius);
    border: 1px solid rgba(26, 47, 74, .14);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item {
    border-top: 1px solid rgba(26, 47, 74, .10)
}

.faq-item:first-child {
    border-top: none
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--navy-2);
}

.faq-q span {
    font-family: "Noto Serif JP", serif;
    letter-spacing: .04em;
    font-weight: 700;
    font-size: 14px;
}

.faq-a {
    display: none;
    padding: 0 16px 14px;
    color: rgba(17, 20, 24, .74);
    font-size: 13px;
}

.chev {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(26, 47, 74, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 47, 74, .04);
    flex: 0 0 auto;
    transition: .2s ease;
}

.faq-item.open .chev {
    transform: rotate(180deg)
}

.faq-item.open .faq-a {
    display: block
}

/* Contact */
.contact-wrap {
    border-radius: var(--radius);
    border: 1px solid rgba(26, 47, 74, .14);
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-side {
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(15, 34, 56, .74), rgba(15, 34, 56, .74)),
        url("assets/img/pen-image.jpg");
    background-size: cover;
    background-position: center;
    color: rgba(246, 241, 231, .92);
    position: relative;
}

.contact-side:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 47, 74, .66);
    pointer-events: none;
}

.contact-side>* {
    position: relative;
    z-index: 1
}

.contact-side h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif JP", serif;
    letter-spacing: .04em;
}

.contact-side p {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(246, 241, 231, .90)
}

.contact-side .mini {
    border-top: 1px solid rgba(246, 241, 231, .22);
    padding-top: 12px;
    font-size: 12px;
    color: rgba(246, 241, 231, .88);
}

.storybook-contact-form {
    padding: 18px;
}

.storybook-contact-form .wpcf7 {
    width: 100%;
}

.storybook-contact-form p {
    margin: 0 0 12px;
}

.storybook-contact-form label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: rgba(17, 20, 24, .74);
    margin: 10px 0 6px;
}

.storybook-contact-form input,
.storybook-contact-form select,
.storybook-contact-form textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(26, 47, 74, .18);
    background: rgba(255, 255, 255, .86);
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.storybook-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.storybook-contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.storybook-contact-form .acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(17, 20, 24, .70);
}

.storybook-contact-form .acceptance input {
    width: auto;
    margin-top: 4px;
}

.storybook-contact-form .form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.storybook-contact-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .20);
    white-space: nowrap;
    cursor: pointer;
    transition: .2s ease;
    background: linear-gradient(135deg, var(--gold), #e3c06a);
    color: #1a1a1a;
    box-shadow: 0 18px 44px rgba(184, 134, 11, .22);
    width: auto;
}

.storybook-contact-form .wpcf7-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.storybook-contact-form .wpcf7-spinner {
    display: block;
    margin-top: 10px;
}

.storybook-contact-form .wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 6px;
}

.storybook-contact-form .wpcf7 form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
}

/* Footer */
.site-footer {
    padding: 26px 0;
    border-top: 1px solid rgba(26, 47, 74, .10);
    color: rgba(17, 20, 24, .68);
    font-size: 12px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr
    }

    .contact-wrap {
        grid-template-columns: 1fr
    }

    .media {
        grid-template-columns: 1fr
    }

    .pricing {
        grid-template-columns: 1fr
    }

    .grid-3 {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .nav-links,
    .nav-cta {
        display: none
    }

    .hamburger {
        display: block
    }

    .mobile-drawer {
        display: none
    }

    .storybook-contact-form .row {
        grid-template-columns: 1fr
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.88rem
    }

    .nav-links {
        gap: 5px
    }
}

/* プライバシーポリシー */
.privacy-page {
    padding: 32px 0;
}

.privacy-page section {
    padding: 16px 0;
}

.privacy-page .card section {
    margin-bottom: 16px;
}

.privacy-page h2 {
    margin-bottom: 8px;
    font-size: 18px;
}

.privacy-page p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.privacy-page ul {
    margin-top: 8px;
}