/* =========================================================
   Mama Bloom — main.css
   1. Tokens (CSS custom properties)
   2. Reset & base
   3. Layout primitives (.container, .section, .btn)
   4. Site header / navigation
   5. Front-page sections (#home, #about, #services, ...)
   6. Generic pages (legal, blog, 404)
   7. Footer / back-to-top
   8. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens
   --------------------------------------------------------- */
:root {
    --color-bg: #FCF8F4;
    --color-bg-alt: #F6EDE3;
    --color-bg-deep: #2D2422;
    --color-primary: #E8A48A;        /* peach */
    --color-primary-deep: #C97D63;
    --color-secondary: #A9B89D;      /* sage */
    --color-accent: #D4A574;         /* gold */
    --color-text: #3D2E2A;
    --color-text-muted: #7A6A65;
    --color-text-light: #FBF1E8;
    --color-line: rgba(61, 46, 42, 0.12);
    --color-line-strong: rgba(61, 46, 42, 0.2);

    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --font-serif-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
    --font-serif-en: "Cormorant Garamond", "Noto Serif JP", serif;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(61, 46, 42, 0.06);
    --shadow: 0 12px 32px rgba(61, 46, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(61, 46, 42, 0.12);

    --header-h: 76px;
    --container: 1140px;
    --container-narrow: 780px;

    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary-deep);
    text-decoration: none;
    transition: color 0.2s var(--easing);
}

a:hover,
a:focus-visible {
    color: var(--color-text);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    line-height: 1.4;
    color: var(--color-text);
    margin: 0 0 0.6em;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

ul, ol {
    padding-left: 1.4em;
}

blockquote {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-text);
    color: var(--color-text-light);
    padding: 8px 12px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.text-center {
    text-align: center;
}

/* ---------------------------------------------------------
   3. Layout primitives
   --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    position: relative;
    padding: clamp(72px, 10vw, 128px) 0;
}

.section:nth-of-type(even) {
    background-color: var(--color-bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section__eyebrow {
    font-family: var(--font-serif-en);
    font-style: italic;
    letter-spacing: 0.16em;
    color: var(--color-primary-deep);
    font-size: 14px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.section__title {
    font-family: var(--font-serif-ja);
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: 0.04em;
    margin: 0 0 20px;
}

.section__title::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background: var(--color-primary);
    margin: 18px auto 0;
}

.section__lead {
    color: var(--color-text-muted);
    margin: 0 auto;
    max-width: 640px;
    font-size: 15px;
}

.section__header--light .section__eyebrow,
.section__header--light .section__title,
.section__header--light .section__lead {
    color: var(--color-text-light);
}

.section__header--light .section__title::after {
    background: var(--color-text-light);
    opacity: 0.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.25s var(--easing);
    border: 1px solid transparent;
    line-height: 1.2;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-primary-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-line-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--color-text);
    color: var(--color-text-light);
    border-color: var(--color-text);
}

/* ---------------------------------------------------------
   4. Site header / navigation
   --------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(252, 248, 244, 0.85);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--easing), border-color 0.3s var(--easing);
}

.site-header.is-scrolled {
    background: rgba(252, 248, 244, 0.96);
    border-bottom-color: var(--color-line);
}

.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.site-branding {
    flex-shrink: 0;
    min-width: 0;
}

.site-branding a {
    white-space: nowrap;
}

.site-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
}

.site-title__main {
    font-family: var(--font-serif-en);
    font-size: 22px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.site-title__sub {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

.custom-logo-link img {
    max-height: 48px;
    width: auto;
}

.primary-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.primary-menu li {
    flex-shrink: 0;
}

.primary-menu .menu-link,
.primary-menu a {
    color: var(--color-text);
    font-size: 13px;
    letter-spacing: 0.04em;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.primary-menu .menu-link::after,
.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s var(--easing);
}

.primary-menu .menu-link:hover::after,
.primary-menu a:hover::after,
.primary-menu .is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s var(--easing);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--color-primary-deep);
}

.nav-cta::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    padding: 0;
    z-index: 1101;
}

.nav-toggle__bar {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}

.nav-toggle__bar:nth-child(1) { top: 13px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* ---------------------------------------------------------
   5. Front-page sections
   --------------------------------------------------------- */

/* Hero ---------------------------------------------------- */
.section--hero {
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, #FBEFE3 0%, #FCF8F4 70%, #FCF8F4 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero__decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.hero__decor--left {
    width: 360px;
    height: 360px;
    background: #F6C9B0;
    top: 10%;
    left: -120px;
}

.hero__decor--right {
    width: 460px;
    height: 460px;
    background: #DCE6CD;
    bottom: -120px;
    right: -160px;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__eyebrow {
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 14px;
    color: var(--color-primary-deep);
    margin: 0 0 24px;
    letter-spacing: 0.32em;
}

.hero__eyebrow span {
    display: inline-block;
    padding: 0 18px;
    position: relative;
}

.hero__eyebrow span::before,
.hero__eyebrow span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}

.hero__eyebrow span::before { right: 100%; }
.hero__eyebrow span::after { left: 100%; }

.hero__catch {
    font-family: var(--font-serif-ja);
    font-size: clamp(36px, 6.4vw, 64px);
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--color-text);
}

.hero__subcatch {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--color-text-muted);
    margin: 0 0 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.hero__points li {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--color-text);
}

.hero__points li::before {
    content: "✿";
    color: var(--color-primary);
    margin-right: 8px;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 48px;
    border: 1px solid var(--color-text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 1;
}

.hero__scroll span {
    width: 3px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 3px;
    animation: scroll-dot 1.8s var(--easing) infinite;
}

@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* About --------------------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.about__media-frame {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #F6C9B0 0%, #DCE6CD 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__media-frame:not(.about__media-frame--has-image)::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.about__media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-serif-en);
    font-style: italic;
    letter-spacing: 0.1em;
    font-size: 18px;
}

.about__media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__heading {
    font-family: var(--font-serif-ja);
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0 0 24px;
    line-height: 1.6;
}

.about__text {
    color: var(--color-text-muted);
    font-size: 15px;
    margin: 0 0 16px;
}

.about__values {
    margin: 32px 0 0;
    display: grid;
    gap: 20px;
}

.about__value {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
}

.about__value dt {
    font-family: var(--font-serif-ja);
    font-size: 17px;
    color: var(--color-primary-deep);
    margin-bottom: 6px;
    font-weight: 600;
}

.about__value dd {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Services ------------------------------------------------ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-line);
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card--recommended {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #fff 0%, #FCF1E8 100%);
}

.service-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.service-card__tag {
    font-family: var(--font-serif-en);
    font-style: italic;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--color-primary-deep);
    margin: 0 0 12px;
}

.service-card__title {
    font-family: var(--font-serif-ja);
    font-size: 22px;
    margin: 0 0 4px;
}

.service-card__subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.service-card__price {
    margin: 0 0 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 16px;
}

.service-card__price-value {
    font-family: var(--font-serif-ja);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.service-card__price-duration {
    font-size: 12px;
    color: var(--color-text-muted);
}

.service-card__desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0 0 20px;
    flex-grow: 1;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 8px;
}

.service-card__features li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--color-text);
}

.service-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--color-text);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.06em;
    transition: background 0.2s var(--easing);
}

.service-card__cta:hover,
.service-card__cta:focus-visible {
    background: var(--color-primary-deep);
    color: #fff;
}

.service-card--recommended .service-card__cta {
    background: var(--color-primary);
}

.service-card--recommended .service-card__cta:hover {
    background: var(--color-primary-deep);
}

.services__note {
    margin-top: 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* Flow ---------------------------------------------------- */
.flow__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
    counter-reset: flow;
    position: relative;
    max-width: 760px;
    margin-inline: auto;
}

.flow__list::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: var(--color-line-strong);
}

.flow__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    padding: 20px 0;
    align-items: flex-start;
    position: relative;
}

.flow__no {
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 22px;
    width: 72px;
    height: 72px;
    background: #fff;
    color: var(--color-primary-deep);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.flow__title {
    font-family: var(--font-serif-ja);
    font-size: 20px;
    margin: 14px 0 8px;
}

.flow__desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Voice --------------------------------------------------- */
.voice__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.voice-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    margin: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-line);
    position: relative;
}

.voice-card::before {
    content: "“";
    position: absolute;
    top: 12px;
    left: 24px;
    font-family: var(--font-serif-en);
    font-size: 72px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.3;
}

.voice-card__menu {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(232, 164, 138, 0.14);
    color: var(--color-primary-deep);
    font-family: var(--font-serif-en);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.voice-card__quote {
    margin: 0 0 24px;
    position: relative;
}

.voice-card__quote p {
    margin: 0;
    font-size: 15px;
    color: var(--color-text);
    line-height: 2;
}

.voice-card__caption {
    border-top: 1px solid var(--color-line);
    padding-top: 16px;
    text-align: right;
}

.voice-card__name {
    margin: 0 0 4px;
    font-family: var(--font-serif-ja);
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.voice-card__profile {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.voice__disclaimer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* FAQ ----------------------------------------------------- */
.faq__list {
    display: grid;
    gap: 16px;
}

.faq__item {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s var(--easing);
}

.faq__item[open] {
    box-shadow: var(--shadow-sm);
}

.faq__question {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    line-height: 1.6;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__q-mark {
    font-family: var(--font-serif-en);
    font-style: italic;
    color: var(--color-primary-deep);
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.faq__q-text {
    flex: 1;
}

.faq__icon {
    position: absolute;
    right: 22px;
    top: 26px;
    width: 14px;
    height: 14px;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    background: var(--color-text-muted);
    transition: transform 0.25s var(--easing);
}

.faq__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: translateY(-50%);
}

.faq__icon::after {
    top: 0;
    left: 50%;
    width: 1.5px;
    height: 100%;
    transform: translateX(-50%);
}

.faq__item[open] .faq__icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq__answer {
    padding: 0 24px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 2;
}

.faq__a-mark {
    font-family: var(--font-serif-en);
    font-style: italic;
    color: var(--color-secondary);
    font-size: 18px;
    flex-shrink: 0;
}

.faq__a-text {
    margin: 0;
    flex: 1;
}

/* Contact ------------------------------------------------- */
.section--contact {
    background-color: var(--color-bg-deep) !important;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.section--contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(232, 164, 138, 0.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(169, 184, 157, 0.15), transparent 45%);
    pointer-events: none;
}

.section--contact .container {
    position: relative;
    z-index: 1;
}

.contact__form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* CF7 のスタイル調整 */
.contact__form .wpcf7-form p {
    margin: 0 0 20px;
}

.contact__form label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form input[type="url"],
.contact__form input[type="number"],
.contact__form input[type="date"],
.contact__form select,
.contact__form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 164, 138, 0.3);
}

.contact__form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact__form input[type="submit"],
.contact__form .wpcf7-submit {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    padding: 16px 48px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s var(--easing), transform 0.2s var(--easing);
    margin-top: 8px;
}

.contact__form input[type="submit"]:hover,
.contact__form .wpcf7-submit:hover {
    background: var(--color-primary-deep);
    transform: translateY(-2px);
}

.contact__form .wpcf7-not-valid-tip {
    color: #FFB199;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.contact__form .wpcf7-response-output {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 18px;
    margin-top: 20px;
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.05);
}

.cf7-placeholder {
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
}

.contact__note {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: rgba(251, 241, 232, 0.7);
}

.contact__note a {
    color: var(--color-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact__note a:hover {
    color: var(--color-primary);
}

/* ---------------------------------------------------------
   6. Generic pages
   --------------------------------------------------------- */
.page-header {
    padding: calc(var(--header-h) + 64px) 0 56px;
    background: var(--color-bg-alt);
    text-align: center;
}

.page-eyebrow {
    font-family: var(--font-serif-en);
    font-style: italic;
    letter-spacing: 0.2em;
    color: var(--color-primary-deep);
    font-size: 13px;
    margin: 0 0 8px;
}

.page-title {
    font-family: var(--font-serif-ja);
    font-size: clamp(28px, 4vw, 38px);
    margin: 0;
    letter-spacing: 0.04em;
}

.page-meta {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.page-article {
    padding: clamp(56px, 8vw, 96px) 0;
}

.page-content {
    line-height: 1.95;
    color: var(--color-text);
}

.page-content h2 {
    font-family: var(--font-serif-ja);
    font-size: 22px;
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-line);
}

.page-content h3 {
    font-family: var(--font-serif-ja);
    font-size: 18px;
    margin: 32px 0 12px;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.2em;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-article .legal-intro {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-primary);
    padding: 20px 24px;
    margin-bottom: 40px;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text);
    font-size: 14px;
}

.legal-signature {
    margin-top: 56px;
    text-align: right;
    color: var(--color-text-muted);
}

/* Blog list (index/single) */
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    padding: 64px 0;
}

.content-wrap .content-main {
    min-width: 0;
}

.post-list {
    display: grid;
    gap: 32px;
}

.post-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 20px 24px;
}

.post-card__title {
    font-family: var(--font-serif-ja);
    font-size: 18px;
    margin: 4px 0 12px;
}

.post-card__meta {
    color: var(--color-text-muted);
    font-size: 12px;
    margin: 0;
}

.post-card__excerpt {
    color: var(--color-text-muted);
    font-size: 14px;
}

.post-thumb {
    margin: 0 0 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.content-sidebar .widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-sidebar .widget-title {
    font-family: var(--font-serif-ja);
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}

/* 404 */
.section--404 {
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 120px;
}

.error-404__code {
    font-family: var(--font-serif-en);
    font-size: clamp(96px, 16vw, 160px);
    line-height: 1;
    color: var(--color-primary);
    margin: 0 0 16px;
    font-style: italic;
}

.error-404__title {
    font-family: var(--font-serif-ja);
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 16px;
}

.error-404__desc {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ---------------------------------------------------------
   7. Footer / back-to-top
   --------------------------------------------------------- */
.site-footer {
    background: #1F1816;
    color: rgba(251, 241, 232, 0.85);
    padding: 72px 0 24px;
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif-en);
    font-size: 28px;
    margin: 0 0 8px;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    line-height: 1.4;
}

.footer-tagline {
    margin: 0 0 24px;
    font-size: 13px;
    color: rgba(251, 241, 232, 0.7);
}

.footer-sns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-sns a {
    color: rgba(251, 241, 232, 0.85);
    font-size: 13px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s var(--easing), color 0.2s var(--easing);
}

.footer-sns a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-nav .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.footer-nav a {
    color: rgba(251, 241, 232, 0.8);
    font-size: 13px;
    transition: color 0.2s var(--easing);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.site-footer__copyright {
    max-width: var(--container);
    margin: 24px auto 0;
    padding: 0 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(251, 241, 232, 0.5);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: opacity 0.3s var(--easing), transform 0.3s var(--easing), background 0.2s var(--easing);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-primary-deep);
    color: #fff;
}

.back-to-top__arrow {
    font-size: 16px;
    line-height: 1;
}

/* ---------------------------------------------------------
   8. Responsive
   --------------------------------------------------------- */
@media (max-width: 960px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__media-frame {
        max-width: 360px;
        margin: 0 auto;
    }

    .services__grid,
    .voice__grid {
        grid-template-columns: 1fr;
    }

    .service-card--recommended {
        order: -1;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-card__thumb {
        aspect-ratio: 16 / 9;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* タブレット〜小型ノートPCでメニューを早めにハンバーガー化 */
@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-h) + 32px) 32px 32px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s var(--easing);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .primary-navigation.is-open {
        transform: translateX(0);
    }

    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        margin-bottom: 32px;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-line);
        font-size: 15px;
    }

    .primary-menu a::after {
        display: none;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .flow__list::before {
        left: 28px;
    }

    .flow__no {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .flow__item {
        gap: 20px;
    }

    .footer-nav .footer-menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .section--contact .contact__form {
        padding: 24px 18px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
