/*
Theme Name: Dialogue
Theme URI: 
Author: Nami
Author URI: 
Description: 
Requires at least: 1.0
Tested up to: 1.0
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: 
Text Domain: 
Tags:
*/


a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

#slider {
	width: 100%;
}


/* =============================================================
   SPO / SPA ページ専用スタイル (page-spo.php)
   ============================================================= */

/* --- CSS カスタムプロパティ --- */
.spo-page-root,
.spo-page-root * {
    box-sizing: border-box;
}

:root {
    --ink: #1a1814;
    --ink-mid: #3d3a34;
    --ink-light: #6e6a62;
    --ink-xlight: #a09c94;
    --paper: #f2f1e7;
    --paper-warm: #e8e7d8;
    --paper-deep: #dddccc;
    --accent: #2ca6e0;
    --accent-light: #6cc4f0;
    --accent-muted: #a8d9f5;
    --green-deep: #1a4a6e;
    --green-mid: #2882b8;
    --green-light: #5eb8ec;
    --green-pale: #c2e4f7;
    --gold: #2ca6e0;
    --gold-pale: #daf0fc;
    --border: rgba(26, 24, 20, 0.12);
    --border-mid: rgba(26, 24, 20, 0.22);
    --serif: 'Noto Serif JP', 'DM Serif Display', serif;
    --sans: 'Noto Sans JP', sans-serif;
    --display: 'Cormorant Garamond', 'DM Serif Display', serif;
}

/* --- NAV --- */
.spo-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(242, 241, 231, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    padding: 0 5vw;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .mark {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--ink-light);
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--sans);
}

.nav-links a:hover { color: var(--ink); }

/* --- ページ切替 --- */
.content-area {
    display: none;
}

.content-area.active {
    display: block;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 10vw 10vh;
    background: var(--paper);
    overflow: hidden;
    position: relative;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.engawa-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    opacity: 0.06;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-light);
    text-transform: uppercase;
    font-family: var(--sans);
    font-weight: 400;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s 0.2s both;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 1rem;
    animation: fadeInUp 1s 0.4s both;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
    font-family: var(--display);
    font-weight: 300;
}

.hero-sub {
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--ink-light);
    font-family: var(--sans);
    margin-bottom: 3rem;
    animation: fadeInUp 1s 0.6s both;
}

.hero-desc {
    max-width: 560px;
    font-size: 15px;
    line-height: 2;
    color: var(--ink-mid);
    margin-bottom: 3rem;
    animation: fadeInUp 1s 0.8s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: fadeInUp 1s 1s both;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    padding: 14px 32px;
    font-family: var(--sans);
    font-weight: 400;
    transition: background 0.3s;
    display: inline-block;
}

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

.btn-ghost {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-family: var(--sans);
    padding: 14px 0;
    border-bottom: 0.5px solid var(--border-mid);
    transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    right: 5vw;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-xlight);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s 1.5s both;
}

.hero-scroll::after {
    content: '';
    width: 0.5px;
    height: 60px;
    background: var(--border-mid);
    display: block;
    animation: growDown 1s 2s both;
}

/* --- セクション共通 --- */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-xlight);
    font-family: var(--sans);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 0.5px;
    background: var(--border-mid);
    display: block;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 300;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.body-text {
    font-size: 15px;
    line-height: 2.1;
    color: var(--ink-mid);
    font-weight: 300;
}

.body-text + .body-text { margin-top: 1.5em; }

/* --- WHAT IS SPO --- */
.section-spo {
    padding: 120px 0 100px;
    background: var(--paper);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    margin: 80px 0 0;
}

.principle-card {
    background: var(--paper);
    padding: 36px 28px;
    transition: background 0.3s;
}

.principle-card:hover { background: var(--paper-warm); }

.principle-num {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 300;
    color: var(--border-mid);
    line-height: 1;
    margin-bottom: 16px;
}

.principle-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 10px;
    font-family: var(--serif);
}

.principle-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink-light);
    font-weight: 300;
}

/* --- ENGAWA --- */
.section-engawa {
    padding: 100px 0;
    background: var(--ink);
    overflow: hidden;
}

.section-engawa .section-label { color: rgba(242, 241, 231, 0.3); }
.section-engawa .section-label::before { background: rgba(242, 241, 231, 0.2); }
.section-engawa .section-title { color: var(--paper); }
.section-engawa .body-text { color: rgba(242, 241, 231, 0.65); }

.engawa-diagram {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    opacity: 0.85;
}

.three-layer {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(242, 241, 231, 0.08);
}

.layer-card {
    background: transparent;
    padding: 32px 24px;
    border-top: 2px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.layer-card:hover { background: rgba(242, 241, 231, 0.04); }
.layer-card:nth-child(1) { border-top-color: var(--green-mid); }
.layer-card:nth-child(2) { border-top-color: var(--gold); }
.layer-card:nth-child(3) { border-top-color: var(--accent-muted); }

.layer-icon {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(242, 241, 231, 0.4);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.layer-title {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 12px;
    line-height: 1.5;
}

.layer-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(242, 241, 231, 0.5);
    font-weight: 300;
}

/* --- VALUES --- */
.section-values {
    padding: 100px 0;
    background: var(--paper-warm);
}

.values-stack { margin-top: 60px; }

.value-row {
    display: flex;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 0.5px solid var(--border);
    align-items: flex-start;
    transition: background 0.2s;
}

.value-row:hover {
    background: rgba(242, 241, 231, 0.5);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.value-key {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 300;
    color: var(--accent-muted);
    min-width: 48px;
    line-height: 1;
    padding-top: 4px;
}

.value-content { flex: 1; }

.value-en {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-xlight);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.value-jp {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}

.value-desc {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-light);
    font-weight: 300;
}

/* --- PAGE TAB NAV --- */
.page-nav {
    background: var(--paper);
    border-bottom: 0.5px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 90;
}

.page-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
}

.page-tab {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ink-light);
    text-decoration: none;
    padding: 16px 24px;
    border: none;
    border-bottom: 2px solid transparent !important;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--sans);
    font-weight: 400;
    cursor: pointer;
    background: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.page-tab.active {
    color: var(--ink);
    border-bottom-color: var(--ink) !important;
}

.page-tab:hover:not(.active) { color: var(--ink-mid); }

/* --- SPA INTRO --- */
.section-spa-intro {
    padding: 100px 0 80px;
    background: var(--paper);
}

.spa-concept-block {
    background: var(--green-deep);
    color: var(--paper);
    padding: 60px 5vw;
}

.concept-phrase {
    font-family: var(--serif);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--paper);
    letter-spacing: 0.02em;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.concept-phrase em {
    font-style: italic;
    color: var(--green-light);
    font-family: var(--display);
    font-size: 1.1em;
}

/* --- REPORTS --- */
.section-reports {
    padding: 80px 0;
    background: var(--paper-warm);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    margin-top: 48px;
}

.report-card {
    background: var(--paper-warm);
    padding: 36px 28px;
    transition: background 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.report-card:hover { background: var(--paper); }

.report-num {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink-xlight);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.report-date {
    font-size: 12px;
    color: var(--ink-xlight);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.report-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 12px;
}

.report-place {
    font-size: 12px;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border: 0.5px solid var(--border-mid);
    color: var(--ink-light);
    font-family: var(--sans);
    font-weight: 400;
}

.report-arrow {
    margin-top: 24px;
    font-size: 12px;
    color: var(--ink-xlight);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s, color 0.2s;
}

.report-card:hover .report-arrow {
    gap: 14px;
    color: var(--ink);
}

/* --- REPORT DETAIL --- */
.report-detail {
    display: none;
    padding: 80px 0;
    background: var(--paper);
}

.report-detail.active { display: block; }

.report-detail-header {
    padding-bottom: 40px;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 60px;
}

.back-btn {
    font-size: 12px;
    color: var(--ink-xlight);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    padding: 0;
}

.back-btn:hover { color: var(--ink); }

.graphic-record-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 40px 0;
}

.gr-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-deep);
}

.gr-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gr-item:hover img { transform: scale(1.03); }

/* --- 10 PRINCIPLES --- */
.principles-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.principle-item {
    background: var(--paper);
    padding: 28px 24px;
    display: flex;
    gap: 20px;
}

.prin-num {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 300;
    color: var(--accent-muted);
    line-height: 1;
    min-width: 36px;
}

.prin-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}

.prin-desc {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.8;
    font-weight: 300;
}

/* --- FOOTER --- */
.spo-footer {
    background: var(--ink);
    padding: 60px 5vw 40px;
    color: rgba(242, 241, 231, 0.6);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 0.5px solid rgba(242, 241, 231, 0.1);
    margin-bottom: 32px;
}

.footer-brand {
    font-family: var(--display);
    font-size: 22px;
    color: var(--paper);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(242, 241, 231, 0.5);
    font-weight: 300;
}

.footer-heading {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(242, 241, 231, 0.4);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 13px;
    color: rgba(242, 241, 231, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
}

.footer-links a:hover { color: var(--paper); }

.footer-copy {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 11px;
    color: rgba(242, 241, 231, 0.25);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.05em;
}

/* --- ユーティリティ --- */
.washi-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-mid) 20%, var(--border-mid) 80%, transparent);
    margin: 60px 0;
}

.quote-block {
    padding: 40px 48px;
    border-left: 3px solid var(--accent-muted);
    margin: 40px 0;
    background: var(--paper-warm);
}

.quote-text {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--ink);
    font-style: italic;
}

.highlight-strip {
    padding: 24px 36px;
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-mid);
    font-weight: 300;
}

/* --- アニメーション --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes growDown {
    from { height: 0; }
    to   { height: 60px; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .three-layer { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .principles-list { grid-template-columns: 1fr; }
    .graphic-record-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero { padding: 90px 5vw 10vh; }
}
