/*
Theme Name: Fleur
Theme URI: https://xbaptiste.org
Author: Baptiste
Author URI: https://xbaptiste.org
Description: Fleur - シンプルでクリーンなデザインとレイアウト。日本語対応テーマ。
Version: 1.0.52
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fleur
*/

/* =====================
   CSS Variables
   ===================== */
:root {
    --color-text:   #1a1a1a;
    --color-bg:     #ffffff;
    --color-link:   #1a1a1a;
    --hero-bg:      #1a1a1a;
    --hero-text:    #ffffff;
    --hero-overlay: rgba(0, 0, 0, 0.45);
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

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

/* =====================
   共通
   ===================== */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.75;
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--color-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* =====================
   Header / Navigation
   ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease, background 0.4s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.main-navigation {
    padding: 0 40px;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--hero-text);
    transition: color 0.4s;
}

.site-header.scrolled .site-name {
    color: var(--color-text);
}

.site-header.scrolled .main-navigation {
    background: var(--color-bg);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--hero-text);
    transition: color 0.4s;
}

.site-header.scrolled .nav-menu a {
    color: var(--color-text);
}

.nav-menu a:hover {
    opacity: 0.6;
}

.submenu-toggle {
    display: none;
}

/* 子メニュー（PCのみ・ホバーでスライド開閉） */
@media (min-width: 1025px) {
    .menu-item-has-children {
        position: relative;
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        list-style: none;
        background: var(--color-bg);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        padding: 0 20px;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
        z-index: 10;
    }

    .menu-item-has-children:hover .sub-menu,
    .menu-item-has-children:focus-within .sub-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        padding: 16px 20px;
    }

    .sub-menu li + li {
        margin-top: 12px;
    }

    .sub-menu a {
        display: block;
        white-space: nowrap;
        color: var(--color-text) !important;
    }

    /* 画面右端をはみ出す項目は、JS（navigation.js）が付与するクラスで右寄せに切り替える */
    .menu-item-has-children.submenu-align-right .sub-menu {
        left: auto;
        right: 0;
    }
}

/* ハンバーガー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--hero-text);
    transition: all 0.3s;
}

.site-header.scrolled .menu-toggle span {
    background: var(--color-text);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* メニュー背面のオーバーレイ。メニューを開いている間だけ表示され、
   クリックするとメニューが閉じる。スマホ幅でのみ機能する。 */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 998;
}

/* 閉じるボタン */
.menu-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 70px;
    right: 24px;
    z-index: 1002;
}

.menu-close span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-text);
    position: absolute;
    top: 50%;
    left: 50%;
}

.menu-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* WP管理バー対応 */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* =====================
   Hero
   ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--hero-bg);
    background-size: cover;
    background-position: center;
    /* 複数枚設定時は同じ位置に重ね、is-active のものだけを表示する。
       transition-duration はカスタマイザーの設定値を front-page.php 側から
       インラインで指定するため、ここでは既定値のみ置く。 */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg.is-active {
    opacity: 1;
}

/* オーバーレイは画像1枚ごとではなく、Hero全体に1枚だけ重ねる。
   画像ごとに持たせると、フェード中に2枚分が重なって濃く見えてしまうため。 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--hero-text);
    padding: 0 20px;
}

.hero-sub {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    opacity: 0.8;
    margin: 0 0 24px;
    line-height: 1.8;
}

.hero-heading {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin: 0 0 20px;
}

.hero-subheading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin: 0 0 40px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--hero-text);
    color: var(--hero-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: var(--hero-text);
    color: var(--hero-bg);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--hero-text);
    z-index: 2;
}

.hero-scroll span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: var(--hero-text);
    opacity: 0.5;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Intro
   ============================================================ */
.intro {
    padding: 120px 0;
    text-align: center;
    background: #fff;
}

.intro-heading {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin-bottom: 32px;
    line-height: 1.5;
}

.intro-text {
    font-size: 0.95rem;
    line-height: 2;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
    text-align: justify !important;
}

.intro-btn {
    display: inline-block;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--intro-btn-text, #fff);
    background: var(--intro-btn-bg, var(--color-text));
    border-radius: var(--intro-btn-radius, 12px);
    padding: 14px 40px;
    line-height: 1.4;
    text-align: center;
    transition: opacity 0.3s;
}

.intro-btn:hover {
    opacity: 0.75;
    color: var(--intro-btn-text, #fff);
}

/* =====================
   News
   ===================== */
.news {
    padding: 120px 0 0;
    background: var(--news-bg, #f4f4f4);
}

/* 背景色を設定した場合のみ、下側にも余白を取る。
   背景なし（透過）のときに下余白を足すと、次のセクションの
   上余白と足し算になって間隔が倍になってしまうため。 */
.news.has-bg {
    padding: 120px 0;
}

.news-list {
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid var(--news-border, #e0e0e0);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--news-border, #e0e0e0);
    color: var(--news-title, var(--color-text));
    transition: opacity 0.3s;
}

.news-item:hover {
    opacity: 0.6;
}

.news-date {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--news-date, #999);
    letter-spacing: 0.03em;
}

.news-date-icon {
    flex-shrink: 0;
    color: var(--news-date, #999);
}

.news-badge {
    flex-shrink: 0;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--news-badge-text, #fff);
    background: var(--news-badge-bg, var(--color-text));
    border-radius: var(--news-badge-radius, 12px);
    padding: 4px 14px;
    line-height: 1.4;
    text-align: center;
}

.news-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.news-empty {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding: 40px 0;
}

/* =====================
   Service
   ===================== */
/* カード自身が下に40pxのpaddingを持っているため、セクション側は
   120px - 40px = 80px を足して、上下の見た目の余白を揃える。 */
.service {
    padding: 120px 0 80px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.service-card {
    padding: 24px 0 40px;
    border-top: 1px solid var(--service-border, #b8b8b8);
}

.service-card.has-dialog {
    cursor: pointer;
    transition: opacity 0.3s;
}

.service-card.has-dialog:hover {
    opacity: 0.7;
}

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--service-num, #999);
    margin-bottom: 20px;
}

.service-name {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.service-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.9;
}

.service-text a {
    color: #917347;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.service-text a:hover {
    text-decoration: none;
}

/* =====================
   About
   ===================== */
.about {
    padding: 120px 0;
    background: var(--about-bg, #f4f4f4);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e0e0e0;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-content .section-en {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 2;
    margin-bottom: 40px;
}

.about-text p {
    margin: 0 0 1.4em;
}

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

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

.about-text strong {
    font-weight: 500;
}

/* =====================
   Showcase
   ===================== */
.showcase {
    padding: 120px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

a.showcase-card {
    display: block;
    color: var(--color-text);
}

.showcase-card {
    cursor: pointer;
}

.showcase-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 16px;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.03);
}

.showcase-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.showcase-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 8px;
}

.showcase-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* =====================
   CTA
   ===================== */
.cta {
    padding: 120px 0;
    background: var(--cta-bg, var(--color-text));
    text-align: center;
    color: var(--cta-text, var(--color-bg));
}

/* 背景画像を設定した場合。画像を敷き、その上に半透明の色を重ねて
   文字の可読性を確保する（Heroセクションと同じ考え方）。 */
.cta.has-bg-image {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cta-overlay, rgba(0, 0, 0, 0.45));
}

/* 背景画像を使う場合、中身は画像・オーバーレイより前面に出す */
.cta.has-bg-image .section-inner {
    position: relative;
    z-index: 1;
}

.cta .section-en {
    color: var(--cta-label, rgba(255,255,255,0.4));
}

.cta-heading {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 48px;
}

.cta .btn-primary {
    background: var(--cta-btn-bg, var(--color-bg));
    color: var(--cta-btn-text, var(--color-text));
}

.cta .btn-primary:hover {
    opacity: 0.85;
}

/* =====================
   Map
   ===================== */
.map-section {
    background: var(--color-bg);
}

.map-embed {
    position: relative;
    width: 100%;
    line-height: 0;
}

.map-embed iframe {
    display: block;
    width: 100%;
}

/* =====================
   Footer
   ===================== */
.site-footer {
    padding: 60px 0 40px;
    border-top: 1px solid #e0e0e0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.footer-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--color-text);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social.is-empty {
    display: none;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.footer-social-icon.is-empty {
    display: none;
}

.footer-social-icon:hover {
    color: var(--color-text);
}

.footer-copy {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* =====================
   スクロール追従購入カード（LP）
   ===================== */
.sticky-purchase-card {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 90;
    background: #666666;
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 8px;
    max-width: 240px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-purchase-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-purchase-card .sticky-purchase-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
    color: #ffffff;
}

.sticky-purchase-card .sticky-purchase-price {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 14px;
    color: #ffffff;
}

.sticky-purchase-btn {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.sticky-purchase-btn:hover {
    opacity: 0.8;
}

@media (max-width: 782px) {
    .sticky-purchase-card {
        right: 12px;
        bottom: 76px;
        left: 12px;
        max-width: none;
    }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ナビゲーションのハンバーガー化は、スマホ幅（768px）ではなく
       タブレット幅（1024px）から切り替える。768pxのままだと、
       iPad横向き等の768〜1024pxの範囲でPC用の横並びメニューが
       表示され続け、項目数に対して横幅が足りず折り返して縦に
       積み上がって見えてしまうため。 */
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.is-active {
        display: none;
    }

    .nav-menu-wrap {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-menu-wrap.is-open {
        right: 0;
    }

    .menu-overlay {
        display: block;
        pointer-events: none;
    }

    body.menu-is-open .menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-is-open {
        overflow: hidden;
    }

    .menu-close {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .nav-menu a {
        color: var(--color-text);
        font-size: 1rem;
    }

    /* 子メニュー（ハンバーガー内・タップでアコーディオン開閉） */
    .nav-menu .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: 4px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .submenu-toggle-icon {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 1px solid var(--color-text);
        border-bottom: 1px solid var(--color-text);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .submenu-open > .submenu-toggle .submenu-toggle-icon {
        transform: rotate(-135deg);
    }

    .nav-menu .sub-menu {
        flex-basis: 100%;
        min-width: 0;
        max-width: 100%;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        padding: 0 32px;
        transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
    }

    .submenu-open > .sub-menu {
        max-height: 400px;
        opacity: 1;
        margin-top: 20px;
    }

    .nav-menu .sub-menu li + li {
        margin-top: 20px;
    }

    .nav-menu .sub-menu a {
        font-size: 0.9rem;
        color: var(--color-text);
        display: inline-block;
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .section-inner {
        padding: 0 24px;
    }

    .main-navigation {
        padding: 0 24px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .news-date {
        width: auto;
    }

    .news-title {
        flex-basis: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .intro {
        padding: 80px 0;
    }

    .news {
        padding: 80px 0 0;
    }

    .news.has-bg {
        padding: 80px 0;
    }

    .service {
        padding: 80px 0 40px;
    }

    .about {
        padding: 80px 0;
    }

    /* スマホでは1カラムになるため、ボタンだけ左端に取り残されて見える。
       ボタンのみ中央に配置する（本文の左揃えはそのまま維持）。 */
    .about-content .btn-outline {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .showcase {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }

    /* フッターメニューは横並び（flex）のため、スマホ幅では文字が縦に
       潰れて読めなくなる。同じ内容はヘッダーのハンバーガーメニューから
       たどれるので、スマホでは非表示にする。 */
    .footer-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   Dialog
   ===================== */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.dialog-box {
    background: var(--color-bg);
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 48px;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
    padding: 4px 8px;
}

.dialog-close:hover {
    opacity: 0.5;
}

.dialog-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.dialog-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

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

.dialog-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.dialog-text {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #555;
    white-space: pre-wrap;
}

.dialog-text a {
    color: #917347;
    text-decoration: none;
    border-bottom: 1px solid #917347;
}

.dialog-inner.no-image {
    grid-template-columns: 1fr;
}

.dialog-inner.no-image .dialog-img-wrap {
    display: none;
}

@media (max-width: 640px) {
    .dialog-box {
        padding: 32px 24px;
    }

    .dialog-inner {
        grid-template-columns: 1fr;
    }

    .dialog-img-wrap {
        aspect-ratio: 16 / 9;
    }
}

/*--------------------------------------------------------------
# LPテンプレート（page-lp.php）
# 通常の固定ページの器（幅制限・余白）を
# 一切経由させず、Arkhe Blocksのセクション／グループブロックを
# そのまま画面幅いっぱいに配置できるようにする。
--------------------------------------------------------------*/
.lp-fullwidth {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

/* LP スクロールインジケーター（.wp-block-cover の中にJSで動的に挿入される） */
.lp-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.lp-scroll-indicator span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.8);
}

.lp-scroll-indicator-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    animation: lpScrollLine 2s ease-in-out infinite;
}

@keyframes lpScrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 通常ページで使っているサイドバー・パンくず等が万一出力されても隠す保険 */
.is-lp #secondary,
.is-lp .breadcrumb {
    display: none;
}

/* Arkhe Blocksのセクション内側のmax-width制限を、LPでは解除する。
   （Groupブロックの配置「全幅」を使う場合はこの上書きは基本不要だが、
   Sectionブロックをそのまま使った場合の保険として残す） */
.is-lp .ark-block-section__bodyInner {
    max-width: none;
}

/* フォントの明示指定（継承だけに頼らず、念のため.is-lp配下で明示する） */
.is-lp,
.is-lp p,
.is-lp li {
    font-family: 'Noto Sans JP', sans-serif;
}

.is-lp h1,
.is-lp h2,
.is-lp h3,
.is-lp h4 {
    font-family: 'Cormorant Garamond', 'Noto Sans JP', serif;
}

/*--------------------------------------------------------------
# 通常の固定ページで alignfull を画面幅いっぱいに展開
--------------------------------------------------------------*/
.page-content-inner .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ============================================================
   投稿・固定ページ本文（single.php / page.php）
   ヘッダーが position:fixed のため、上部に80px分の余白を確保。
   フロントページのセクションデザインとトーンを揃える。
   ============================================================ */
.single .site-main:not(.lp-fullwidth),
.page .site-main:not(.lp-fullwidth),
.search .site-main:not(.lp-fullwidth),
.archive .site-main:not(.lp-fullwidth),
.blog:not(.home) .site-main:not(.lp-fullwidth),
.error404 .site-main:not(.lp-fullwidth) {
    max-width: 760px;
    margin: 0 auto;
    padding: 160px 40px 120px;
}

/* 投稿の全幅アイキャッチ画像（ヘッダー下に重ねて表示） */
.single-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

/* アイキャッチがある投稿は、画像自体がヘッダー下の空間を確保しているため
   本文側の上部余白（ヘッダー避け用の160px）を通常の余白に戻す */
.single .site-main.has-hero-image {
    padding-top: 80px;
}

.single #primary article + article,
.archive #primary article + article {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e0e0e0;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 16px;
}

.entry-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.entry-category a {
    color: inherit;
    text-decoration: none;
}

.entry-category a:hover {
    color: var(--color-text);
}

.page .entry-title {
    margin-bottom: 0;
}

/* アーカイブページ（カテゴリー・タグ・検索結果等）の見出し。
   従来CSSが未指定で、ブラウザ標準の大きな太字h1になっていたため、
   entry-category と同じ控えめなラベル調のスタイルに統一する。 */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
    margin: 0;
}

.archive-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
}

/* ============================================================
   404ページ・検索結果ページ
   .page-title（小さいラベル）はカテゴリーアーカイブ等と共通。
   その下に、実際の見出し文（長文になり得る）を別クラスで置く。
   ============================================================ */
.error-404-heading {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: var(--color-text);
    margin: 8px 0 0;
}

.error-404-heading span {
    font-weight: 400;
}

.error-404-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
    margin: 24px 0 32px;
}

.error-404-home {
    display: inline-block;
    margin-top: 32px;
}

/* ============================================================
   Yoast SEO「よくある質問」ブロック（yoast/faq-block）
   プラグイン側のマークアップ（.schema-faq-*）に対して、
   テーマのトーンに合わせたアコーディオンスタイルを当てる。
   ============================================================ */
.schema-faq {
    max-width: 640px;
    margin: 0 auto;
}

.schema-faq-section {
    border-top: 1px solid #e0e0e0;
}

.schema-faq-section:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.schema-faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    cursor: pointer;
    margin: 0;
    padding: 20px 32px 20px 4px;
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.6;
    color: var(--color-text);
}

/* 開閉アイコン（＋）。アイコンフォントを使わず、2本の棒線をCSSで描く。
   縦棒だけを90度回転させることで「＋」→「－」に見せる。 */
.schema-faq-question::before,
.schema-faq-question::after {
    content: '';
    position: absolute;
    top: 50%;
    background: #999;
}

.schema-faq-question::before {
    right: 8px;
    width: 14px;
    height: 1.5px;
    transform: translateY(-50%);
}

.schema-faq-question::after {
    right: 14.25px;
    width: 1.5px;
    height: 14px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.schema-faq-section.is-open .schema-faq-question::after {
    transform: translateY(-50%) rotate(90deg);
}

.schema-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.schema-faq-answer p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85em;
    margin: 0;
    padding: 0 32px 20px 4px;
}

/* 検索フォーム（ヘッダー内・404ページ・検索結果0件時など共通） */
.search-form {
    display: flex;
    align-items: center;
    max-width: 480px;
    border-bottom: 1px solid #ccc;
}

.search-form .search-field {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
}

.search-form .search-field::placeholder {
    color: #bbb;
}

.search-form .search-field:focus {
    outline: none;
}

.search-form .search-submit {
    margin-left: auto;
    border: 1px solid var(--color-text);
    background: none;
    padding: 8px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.search-form .search-submit:hover {
    background: var(--color-text);
    color: #fff;
}

.entry-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
}

.entry-meta a {
    color: #999;
}

.entry-meta a:hover {
    color: var(--color-text);
}

.post-thumbnail {
    display: block;
    margin: 32px 0 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 0.95rem;
    line-height: 2;
    color: #555;
    font-weight: 300;
}

.entry-content p {
    margin-bottom: 1.6em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--color-text);
    margin: 2em 0 0.8em;
    line-height: 1.5;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.05rem; }

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

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.6em 1.4em;
}

/* ============================================================
   パンくずリスト

   WordPressコアの「パンくずリスト」ブロック用CSSは、そのブロックが
   実際に本文中に挿入されている場合のみ自動で読み込まれる。
   fleur_breadcrumbs()（inc/template-tags.php）はPHPで直接
   HTMLを出力しているため、コア側のCSSは読み込まれない。
   そのため、リストのリセット・横並び表示・区切り文字も含めて
   ここで完結させる。
   ============================================================ */
.wp-block-breadcrumbs {
    box-sizing: border-box;
    font-size: 0.8rem;
    margin: 0 0 30px;
    color: var(--color-text);
}

.wp-block-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-breadcrumbs li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.wp-block-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5em;
    opacity: 0.7;
}

.wp-block-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.wp-block-breadcrumbs span[aria-current] {
    color: var(--color-text);
}
/* ============================================================
   Yoast SEO パンくずリスト（.yoast-breadcrumbs）
   ============================================================ */
.yoast-breadcrumbs {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 30px;
}

.yoast-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.yoast-breadcrumbs a:hover {
    color: var(--color-text);
}

.yoast-breadcrumbs .breadcrumb_last {
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .yoast-breadcrumbs {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .yoast-breadcrumbs {
        font-size: 0.7rem;
    }
}
.entry-content blockquote {
    border-left: 2px solid #ccc;
    padding-left: 24px;
    margin: 1.6em 0;
    color: #777;
    font-style: italic;
}

.page-links {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #999;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #999;
}

.entry-footer a {
    color: #999;
}

.entry-footer a:hover {
    color: var(--color-text);
}

/* 前後の投稿ナビゲーション */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

.nav-links > div {
    max-width: 48%;
}

.nav-links .nav-previous { text-align: left; }
.nav-links .nav-next { text-align: right; margin-left: auto; }

.nav-subtitle {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nav-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

/* ============================================================
   コメント欄
   ============================================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.comments-title,
.comment-reply-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.comment-body {
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-author .fn {
    font-style: normal;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text);
}

.comment-metadata {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 8px;
}

.comment-metadata a {
    color: #999;
}

.comment-content p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #555;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

.comment-respond {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg);
    margin-bottom: 20px;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form input[type="submit"] {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.85;
}

.comment-notes,
.logged-in-as {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .single .site-main:not(.lp-fullwidth),
    .page .site-main:not(.lp-fullwidth),
    .search .site-main:not(.lp-fullwidth),
    .archive .site-main:not(.lp-fullwidth),
    .blog:not(.home) .site-main:not(.lp-fullwidth),
    .error404 .site-main:not(.lp-fullwidth) {
        padding: 140px 24px 80px;
    }

    .single .site-main.has-hero-image {
        padding-top: 40px;
    }

    .single-featured-image {
        height: 260px;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links > div {
        max-width: 100%;
    }

    .nav-links .nav-next {
        text-align: left;
        margin-left: 0;
    }
}

/* =====================
   Scroll to Top
   ===================== */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--scroll-top-bg, rgba(26, 26, 26, 1));
    color: var(--scroll-top-icon, #ffffff);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    opacity: 0.8;
}

/* タブレット・スマホでは非表示(PCのみ表示) */
@media screen and (max-width: 1023px) {
    .scroll-to-top {
        display: none !important;
    }
}