/*
 * B案（ナラティブ版）専用スタイル
 * コンセプト: 「オンもオフも、自分らしく」
 * トーン: 落ち着いた、余白のある、写真と空気感で語る
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* B案：落ち着いたトーン */
    --bg-main: #FAFAF8;
    --bg-white: #FFFFFF;
    --text-primary: #2D2D2D;
    --text-secondary: #6B6B6B;
    --text-caption: #8A8A8A;
    --accent: #4A6B5D;
    --accent-light: #6B8B7D;
    --border-subtle: #E5E5E0;

    /* 余白 */
    --space-xs: 16px;
    --space-sm: 40px;
    --space-md: 80px;
    --space-lg: 120px;
    --space-xl: 160px;

    /* タイポグラフィ */
    --font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Noto Sans JP", "Hiragino Sans", sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-xs: 12px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-2xl: 36px;
    --font-size-hero: 48px;
    --line-height: 1.9;
    --letter-spacing: 0.04em;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-main);
    letter-spacing: var(--letter-spacing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 余白ユーティリティ */
.space-xs { margin-top: var(--space-xs); }
.space-sm { margin-top: var(--space-sm); }
.space-md { margin-top: var(--space-md); }
.space-lg { margin-top: var(--space-lg); }
.space-xl { margin-top: var(--space-xl); }

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

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

.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D4D9D7 0%, #A8B5B0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: 40px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 60px 24px 80px;
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    margin-top: 16px;
    font-size: var(--font-size-base);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.06em;
}

/* ============================================
   Section Base
   ============================================ */
.section {
    padding: var(--space-lg) 0;
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.06em;
}

.section-lead {
    margin-top: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    text-align: center;
    line-height: 2;
}

/* ============================================
   Timeline / One Day
   ============================================ */
.timeline {
    padding: var(--space-lg) 0;
}

.timeline-intro {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.timeline-intro-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.timeline-intro-title {
    margin-top: 16px;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: var(--space-md);
}

.timeline-item.reverse {
    direction: rtl;
}

.timeline-item.reverse > * {
    direction: ltr;
}

.timeline-time {
    font-size: var(--font-size-sm);
    color: var(--text-caption);
    letter-spacing: 0.08em;
    padding-top: 8px;
}

.timeline-content {
    max-width: 600px;
}

.timeline-heading {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 2;
}

/* フルブリードタイムラインアイテム */
.timeline-item-fullbleed {
    margin-bottom: var(--space-md);
}

.timeline-item-fullbleed .timeline-time {
    text-align: center;
    margin-bottom: 24px;
}

.timeline-item-fullbleed .timeline-text {
    max-width: 600px;
    margin: 24px auto 0;
    text-align: center;
}

/* ============================================
   Photo Components
   ============================================ */

/* フルブリード写真 */
.photo-fullbleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.photo-fullbleed img {
    width: 100%;
    height: auto;
}

/* 写真プレースホルダー */
.photo-placeholder {
    background-color: var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-caption);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: 40px 24px;
    line-height: 1.8;
}

.photo-placeholder.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.photo-placeholder.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.photo-placeholder.aspect-1-1 {
    aspect-ratio: 1 / 1;
}

.photo-placeholder.aspect-3-2 {
    aspect-ratio: 3 / 2;
}

.photo-direction {
    display: block;
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    max-width: 400px;
}

/* インライン写真 */
.photo-inline {
    margin: var(--space-sm) 0;
}

.photo-inline img {
    width: 100%;
    border-radius: 2px;
}

.photo-caption {
    margin-top: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-caption);
    text-align: center;
}

/* 写真グリッド */
.photo-grid {
    display: grid;
    gap: 16px;
}

.photo-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.photo-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   Quote / Message
   ============================================ */
.quote-block {
    padding: var(--space-md) 0;
    text-align: center;
}

.quote-text {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.8;
    letter-spacing: 0.06em;
}

.quote-author {
    margin-top: 24px;
    font-size: var(--font-size-sm);
    color: var(--text-caption);
}

/* ============================================
   Navigation Links
   ============================================ */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: var(--space-md) 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: var(--accent);
    background: var(--bg-main);
    opacity: 1;
}

.nav-link-arrow {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-caption);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--space-lg) 0;
    background: var(--bg-white);
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
}

.cta-text {
    margin-top: 16px;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.cta-buttons {
    margin-top: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    border: 1px solid var(--border-subtle);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    border-color: var(--accent);
    opacity: 1;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-md) 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--text-caption);
}

.footer-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ============================================
   Design Notes (for mockup)
   ============================================ */
.design-notes {
    max-width: 800px;
    margin: var(--space-lg) auto;
    padding: 0 24px;
}

.design-note {
    background: #FFF9E6;
    border-left: 3px solid #E6C200;
    padding: 20px 24px;
    margin-bottom: 20px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.design-note h3 {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.design-note ul {
    margin-left: 20px;
    line-height: 1.8;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-sm: 32px;
        --space-md: 60px;
        --space-lg: 80px;
        --space-xl: 100px;
        --font-size-xl: 24px;
        --font-size-2xl: 28px;
        --font-size-hero: 32px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: var(--font-size-xl);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-item.reverse {
        direction: ltr;
    }

    .timeline-time {
        padding-top: 0;
    }

    .photo-grid-2,
    .photo-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ============================================
   Contact Form (共通フォームスタイル)
   ============================================ */

.contact-form-wrapper {
    background-color: var(--bg-white);
    border-radius: 4px;
    padding: var(--space-md);
    margin-top: var(--space-sm);
    border: 1px solid var(--border-subtle);
}

.form-title {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.04em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.required {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background-color: var(--accent);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: border-color 0.3s ease;
    letter-spacing: var(--letter-spacing);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-caption);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

.form-privacy {
    margin-bottom: var(--space-sm);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.privacy-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.privacy-text a {
    color: var(--accent);
    text-decoration: underline;
}

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

.form-submit {
    text-align: center;
    margin-bottom: 24px;
}

.form-submit .btn {
    min-width: 200px;
}

.btn-large {
    padding: 18px 48px;
    font-size: var(--font-size-base);
}

.form-note {
    font-size: var(--font-size-sm);
    color: var(--text-caption);
    text-align: center;
    line-height: 1.8;
}

/* お問い合わせ情報 */
.contact-info {
    background: var(--bg-main);
    padding: 24px;
    border-radius: 4px;
    margin-top: var(--space-sm);
    text-align: center;
}

.contact-label {
    font-size: var(--font-size-sm);
    color: var(--text-caption);
    margin-bottom: 8px;
}

.contact-text {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: var(--space-sm);
    }

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

    .form-submit .btn {
        width: 100%;
        min-width: auto;
    }
}
