:root {
    /* ===== Color Tokens ===== */
    --color-primary: #5B7FA3;
    --color-text-main: #E8F0F5;
    --color-bg-paper: #E8F0F5;

    /* ===== Z-Index Tokens ===== */
    --z-bg: 0;
    --z-content: 1;
    --z-header: 100;
    --z-nav: 1000;
    --z-nav-toggle: 1001;
    --z-modal: 1100;
    --z-modal-content: 1101;
}

/* 改行：768px以上でのみ表示（スマホでは改行なし） */
.br-md-only {
    display: none;
}
@media (min-width: 768px) {
    .br-md-only {
        display: block;
    }
}

/* 改行：768px未満でのみ表示（スマホで改行、PCでは改行なし） */
.br-sm-only {
    display: block;
}
@media (min-width: 768px) {
    .br-sm-only {
        display: none;
    }
}

/* 料金の注意書き：スマホで確実に折り返す */
#pricing .pricing-notes {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
#pricing .pricing-notes p {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ページのキャンバス（iOS Safari 白抜け・霞み防止・恒久） */
html,
body {
    min-height: 100svh;
    min-height: 100dvh;
    background-color: #061f33;
    overscroll-behavior: none;
}

/* 和紙質感の背景 */
.washi-bg {
    background: linear-gradient(180deg, #1A2A3A 0%, #2A3A4A 100%);
    position: relative;
    color: #E8F0F5;
}


.washi-bg > * {
    position: relative;
    z-index: var(--z-content);
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    transition: all 0.4s ease;
}


/* ヘッダー：透明・霞みなし（linear-gradient / backdrop-filter 不使用） */
#header,
header,
.header-transparent {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ヘッダー上部フェード用の疑似要素は使用しない（上部グラデ/霞みの再発防止） */
#header::before,
#header::after,
header::before,
header::after,
.header-transparent::before,
.header-transparent::after,
.menu-toggle-fixed::before,
.menu-toggle-fixed::after,
body::before,
body::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.header-scrolled {
    background-color: rgba(26, 42, 58, 0.98) !important;
    background-image: none;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(91, 127, 163, 0.5) !important;
}

/* ハンバーガーメニューボタン（共通） */
.menu-toggle,
.menu-toggle-fixed {
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* 画面右上固定版のみ */
.menu-toggle-fixed {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-nav-toggle);
}

@media (min-width: 768px) {
    .menu-toggle-fixed {
        top: 2rem;
        right: 2rem;
    }
}

/* 通常配置版（旧クラス名互換） */
.menu-toggle {
    position: relative;
    z-index: 101;
}

.menu-toggle span,
.menu-toggle-fixed span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-nav);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 42, 58, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1;
    pointer-events: auto;
}

.nav-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    z-index: 2;
    pointer-events: none;
}

.nav-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.nav-menu-list li {
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .nav-menu-list li {
        margin-bottom: 0.75rem;
    }

    .nav-menu-link {
        padding: 0.25rem 0;
        font-size: 1.1rem;
    }

    .nav-menu-content {
        padding: 3rem 2rem 2rem;
    }
}

.nav-menu-link {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-family: "Noto Serif JP", serif;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
}

.nav-menu-link:hover {
    color: var(--color-primary);
}

.nav-menu-link::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu-link:hover::before {
    opacity: 1;
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu-link:hover::after {
    width: 100%;
}

/* インスタグラムリンク */
.nav-menu-instagram {
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    pointer-events: auto;
}

.nav-menu-instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: rgba(232, 240, 245, 0.3);
}

.nav-menu-instagram-link:hover {
    color: var(--color-primary);
    background-color: rgba(91, 127, 163, 0.1);
    transform: scale(1.1);
}

.nav-menu-instagram-link svg {
    width: 32px;
    height: 32px;
}

/* Revealアニメーション */
.reveal-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 写真のトーン調整 */
.photo-tone {
    filter: saturate(0.92) contrast(1.03);
}

/* LINEボタン（アウトライン） */
.line-button-outline {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background-color: transparent;
    /* 内側に1pxラインを追加して、外寸を変えずに存在感を上げる */
    box-shadow: inset 0 0 0 1px var(--color-primary);
    transition: all 0.3s ease;
}

.line-button-outline:hover {
    background-color: rgba(91, 127, 163, 0.06);
}

/* インスタグラムアイコンリンク */
.instagram-icon-link {
    width: 48px;
    height: 48px;
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-icon-link:hover {
    color: var(--color-primary);
    background-color: transparent;
    transform: scale(1.1);
}

.instagram-icon-link svg {
    width: 32px;
    height: 32px;
}

/* 当日の流れ（#flow）：Tailwindビルドに依存しないようここで完結 */
#flow ol.flow-ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
#flow .flow-ol li {
    display: flex;
    gap: 0;
    align-items: baseline;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
#flow .flow-ol li > div:first-child {
    width: 1.5rem;
    min-width: 1.5rem;
    flex-shrink: 0;
}
#flow .flow-ol li > div:last-child {
    min-width: 0;
}
/* 番号「01.»などのスタイル（ビルドで消えないようCSSで指定） */
#flow .flow-ol li > div:first-child p {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.32em;
    color: #5B7FA3;
    margin: 0;
    line-height: 1.5;
}
@media (min-width: 768px) {
    #flow .flow-ol li > div:first-child p {
        font-size: 12px;
    }
}
/* 説明文は以前の開始位置をキープ・上1下2の余白 */
#flow .flow-ol li > div:last-child > p:last-child {
    margin-inline-start: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* プロフィール：テキストブロックの幅・余白（スマホ・PCでバランスよく） */
#profile .profile-text {
    max-width: 100%;
}
@media (min-width: 768px) {
    #profile .profile-text {
        max-width: 32rem;
    }
}

/* 料金の目安：見出し・余白（Tailwindに依存しない） */
#pricing .pricing-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    #pricing .pricing-title {
        font-size: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
}

/* 料金の目安：見出し下の区切り線 */
#pricing .pricing-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(91, 127, 163, 0.2);
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    #pricing .pricing-divider {
        margin-bottom: 1.5rem;
    }
}

/* 料金の目安：行の罫線・パディング・七五三の字下げ */
#pricing .pricing-row {
    border-bottom: 1px solid rgba(91, 127, 163, 0.2);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
#pricing .pricing-row.pricing-sub {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
}
#pricing .pricing-shichi {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}
@media (min-width: 768px) {
    #pricing .pricing-sub {
        padding-left: 1.5rem;
    }
}

/* ギャラリー */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid var(--color-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.gallery-item:hover {
    border-color: rgba(91, 127, 163, 0.3);
    box-shadow: 0 4px 16px rgba(91,127,163,0.07);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(0.92) contrast(1.03);
    display: block;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.03);
}

/* モーダル */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 42, 58, 0.97);
    backdrop-filter: blur(4px);
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: var(--z-modal-content);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(26, 42, 58, 0.95);
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
    filter: saturate(0.92) contrast(1.03);
}

.gallery-modal-caption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #E8F0F5;
    font-family: "Noto Sans JP", sans-serif;
}

.gallery-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #E8F0F5;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-family: "Noto Sans JP", sans-serif;
}

.gallery-modal-close:hover {
    opacity: 0.5;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-primary);
    background-color: rgba(26, 42, 58, 0.9);
    color: #E8F0F5;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: "Noto Sans JP", sans-serif;
    z-index: 10;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.gallery-modal-prev::before {
    content: '‹';
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateY(-2px);
}

.gallery-modal-next::before {
    content: '›';
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateY(-2px);
}

.gallery-modal-prev {
    left: -3.5rem;
}

.gallery-modal-next {
    right: -3.5rem;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    border-color: rgba(91, 127, 163, 0.5);
}

@media (max-width: 768px) {
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .gallery-modal-prev {
        left: 0.5rem;
    }

    .gallery-modal-next {
        right: 0.5rem;
    }

    .gallery-modal-close {
        top: -3rem;
        right: 0.5rem;
    }
}

/* FAQ */
.faq-details {
    background-color: transparent;
    border-bottom: 1px solid var(--color-primary);
}

.faq-details:first-child {
    border-top: 1px solid var(--color-primary);
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
    transition: opacity 0.3s ease;
}

.faq-summary:hover {
    opacity: 0.6;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-summary::after {
    content: '▼';
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    padding: 0 0 1.5rem 0;
}

/* フッター */
footer {
    background-color: #1A2A3A !important;
}

footer p,
footer a,
footer li,
footer ul,
footer div {
    color: #E8F0F5 !important;
}

/* Tailwindクラスの上書き */
footer [class*="text-[#1A2A3A]"],
footer [class*="text-[#E8F0F5]"] {
    color: #E8F0F5 !important;
}

.footer-link {
    color: var(--color-bg-paper);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

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

footer .border-t {
    border-color: rgba(232, 240, 245, 0.3) !important;
}

footer [class*="border-[#5B7FA3]"] {
    border-color: rgba(232, 240, 245, 0.3) !important;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* セクションタイトルと区切り */
.section-with-divider {
    position: relative;
}

.section-header {
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.section-title-main {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-title-main {
        font-size: 2.5rem;
    }
}

.section-divider {
    width: 4rem;
    height: 1px;
    background-color: var(--color-primary);
    margin: 0 auto;
}

/* 初期ローディング画面 */
.initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.initial-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.initial-loader-content {
    width: 100%;
    height: 100%;
    background-color: #000000;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
    opacity: 0;
    animation: heroFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper picture {
    width: 100%;
    height: 100%;
    display: block;
}

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


.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem 4rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding-bottom: 6rem;
        padding-left: 4rem;
    }
}

.hero-text-vertical {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.hero-title-vertical {
    order: 2;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: mixed;
    -webkit-text-orientation: mixed;
    font-feature-settings: "vert" 1;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 6px rgba(26, 42, 58, 0.5);
    color: #E8F0F5;
}

.hero-description-vertical {
    order: 1;
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: mixed;
    -webkit-text-orientation: mixed;
    font-feature-settings: "vert" 1;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 6px rgba(26, 42, 58, 0.5);
    color: #E8F0F5;
    max-height: 40em;
    width: fit-content;
    white-space: normal;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .hero-text-vertical {
        padding-top: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-description-vertical {
        margin-top: 5rem;
        text-shadow: 0 2px 8px rgba(26, 42, 58, 0.8), 0 4px 12px rgba(26, 42, 58, 0.6);
    }

    .hero-title-vertical {
        text-shadow: 0 2px 8px rgba(26, 42, 58, 0.8), 0 4px 12px rgba(26, 42, 58, 0.6);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        padding: 1.5rem 2rem;
    }

    .hero-text-vertical {
        gap: 2rem;
    }

    .hero-title-vertical {
        font-size: 2rem;
        text-shadow: 0 2px 8px rgba(26, 42, 58, 0.8), 0 4px 12px rgba(26, 42, 58, 0.6);
    }

    .hero-description-vertical {
        font-size: 0.875rem;
        text-shadow: 0 2px 8px rgba(26, 42, 58, 0.8), 0 4px 12px rgba(26, 42, 58, 0.6);
    }
}

/* タイポグラフィ */
body {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
    padding-top: 0;
}

/* Tailwindの font-sans をサイトフォント（Noto Sans JP）に統一 */
.font-sans {
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}


/* PROMISE list: ブロック中央・左揃え・ビュレット */
#promise .promise-list {
  display: block;
  width: fit-content;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
#promise .promise-list li {
  position: relative;
  padding-left: 1.25em;
}
#promise .promise-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #5B7FA3;
  font-size: 0.75em;
  line-height: 1;
}

/* PROMISE：公式LINEリンクの文字サイズ（Tailwindに依存しない） */
.promise-line-link {
  font-size: 1.25rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .promise-line-link {
    font-size: 1.375rem;
  }
}
