/* ==========================================================================
   俳句地鶏 (Haiku Jidori) - Official Web & Privacy Style
   和風モダン・漆黒・深緑・金箔の品格あるデザイン
   ========================================================================== */

:root {
    --bg-dark: #121614;
    --bg-card: rgba(26, 32, 28, 0.85);
    --bg-card-border: rgba(200, 180, 140, 0.25);
    --text-primary: #f5f2ea;
    --text-secondary: #c8bca6;
    --text-muted: #8c8270;
    --accent-gold: #d4af37;
    --accent-gold-light: #e6c86e;
    --accent-vermilion: #c9402e;
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "Georgia", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 15%, rgba(40, 60, 48, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(60, 45, 30, 0.2) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-serif);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

/* ナビゲーションバー */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 22, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent-gold-light);
}

/* ヒーローセクション */
.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-gold-light);
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 2;
}

.app-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #d4af37 0%, #aa8420 100%);
    color: #121614;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-badge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* 特徴グリッド */
.features-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
}

.feature-number {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.feature-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ギャラリー（スクリーンショット） */
.gallery-section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--bg-card-border);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* プライバシーポリシーページ本文用 */
.policy-container {
    max-width: 820px;
    margin: 3rem auto 6rem;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.policy-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 0.75rem;
}

.policy-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

.policy-container h2 {
    font-size: 1.35rem;
    color: var(--accent-gold-light);
    margin: 2rem 0 0.8rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 0.75rem;
}

.policy-container p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.policy-container ul {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* フッター */
footer {
    border-top: 1px solid var(--bg-card-border);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.75rem;
}

footer a:hover {
    color: var(--accent-gold-light);
}

.footer-cr {
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   技術解説 (Technology & Architecture) スタイル
   ========================================================================== */

.tech-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.tech-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tech-hero .tech-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.9;
}

/* パイプライン フローチャート */
.pipeline-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.pipeline-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.pipeline-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    margin-top: 2rem;
}

.flow-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: center;
    background: rgba(18, 22, 20, 0.7);
    border: 1px solid rgba(200, 180, 140, 0.18);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

.step-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold-light);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-sans);
}

.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
    opacity: 0.6;
    margin: -0.5rem 0;
    font-size: 1.2rem;
}

.step-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.step-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(201, 64, 46, 0.2);
    border: 1px solid rgba(201, 64, 46, 0.4);
    color: #fca89d;
    border-radius: 20px;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
}

.step-tag.gold {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--accent-gold-light);
}

.step-tag.blue {
    background: rgba(60, 110, 170, 0.2);
    border-color: rgba(60, 110, 170, 0.5);
    color: #a8d0ff;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 特徴的技術 6大機能グリッド */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.45);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.tech-card h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.tech-detail-list {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(200, 180, 140, 0.2);
}

.tech-detail-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}

.tech-detail-list li::before {
    content: "❖";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.75rem;
}

/* 比較テーブル */
.tech-table-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    margin-bottom: 4rem;
}

.tech-table-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.92rem;
}

.tech-table th, .tech-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(200, 180, 140, 0.15);
}

.tech-table th {
    background: rgba(20, 26, 22, 0.9);
    color: var(--accent-gold-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tech-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.tech-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.tech-badge-good {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(50, 160, 90, 0.2);
    border: 1px solid rgba(50, 160, 90, 0.4);
    color: #8be4aa;
    border-radius: 4px;
    font-weight: 600;
}

.tech-badge-poor {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(201, 64, 46, 0.15);
    border: 1px solid rgba(201, 64, 46, 0.3);
    color: #f59e92;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .flow-step {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .step-badge-col {
        flex-direction: row;
        justify-content: flex-start;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .comp-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ローカル生成実測比較 */
.comp-section {
    margin-bottom: 4rem;
}

.comp-theme-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.comp-theme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(200, 180, 140, 0.2);
}

.comp-theme-title {
    font-size: 1.15rem;
    color: var(--accent-gold-light);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comp-box {
    background: rgba(14, 18, 16, 0.75);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(200, 180, 140, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comp-box.engine {
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(145deg, rgba(24, 34, 28, 0.85), rgba(14, 18, 16, 0.9));
}

.comp-box-label {
    font-size: 0.82rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-haiku-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.comp-mora-info {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(200, 180, 140, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}


