/*
Theme Name: SUMAI SELECT
Description: 美学で選ぶ、住まいの記録
Author: あなたの名前
Version: 1.0.0
*/

/* --------------------------------------------------
   ここから下にカスタムCSSを書きます
-------------------------------------------------- */

/* 基本設定 */
body {
    /* ▼▼▼ 背景色と文字色の変更 (Brillia Blue) ▼▼▼ */
    background-color: #F5F7FA;
    color: #121824;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* 縦書き用クラス */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

/* カスタムスクロールバー（上品に細く） */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 2px;
}

/* ふわっと表示するアニメーション (Fade Up) */
.reveal-element {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延表示用ユーティリティ */
.delay-200 {
    transition-delay: 200ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* 画像パララックス用 */
.parallax-img-container {
    overflow: hidden;
}

.parallax-img {
    transition: transform 1.5s ease-out;
    transform: scale(1.1);
}

.group:hover .parallax-img {
    transform: scale(1.05);
}

/* スマホメニューのアニメーション */
#mobile-menu {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-menu.hidden-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mobile-menu.visible-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   コラム記事本文 (ブロックエディタ対応)
   ========================================= */
.article-body {
    font-family: "Noto Sans JP", sans-serif;
    /* ▼▼▼ 文字色変更: ink (#2C3645) ▼▼▼ */
    color: #2C3645;
}

/* 段落 (p) */
.article-body p {
    margin-bottom: 2em;
    line-height: 2;
    text-align: justify;
    font-feature-settings: "palt";
    font-size: 0.95rem;
}

/* 見出し2 (h2) */
.article-body h2 {
    font-family: "Zen Old Mincho", serif;
    font-size: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    /* ▼▼▼ ボーダー色変更: sand (#E2E8F0) ▼▼▼ */
    border-bottom: 1px solid #E2E8F0;
    /* ▼▼▼ 文字色変更: sumi (#121824) ▼▼▼ */
    color: #121824;
    line-height: 1.4;
}

/* 見出し3 (h3) */
.article-body h3 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    /* ▼▼▼ 文字色変更: sumi (#121824) ▼▼▼ */
    color: #121824;
    border-left: 4px solid #B4A086;
    /* gold-muted */
    padding-left: 1rem;
    line-height: 1.5;
}

/* リスト (ul, ol) */
.article-body ul,
.article-body ol {
    margin-bottom: 2.5rem;
    margin-left: 1.5rem;
    /* ▼▼▼ 文字色変更: ink (#2C3645) ▼▼▼ */
    color: #2C3645;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

/* 太字 (strong) - マーカー風 */
.article-body strong {
    font-weight: 700;
    /* ▼▼▼ 文字色変更: sumi (#121824) ▼▼▼ */
    color: #121824;
    /* ▼▼▼ 背景色変更: sand (#E2E8F0) ▼▼▼ */
    background: linear-gradient(transparent 70%, #E2E8F0 70%);
}

/* 画像 (figure) */
.article-body figure {
    margin: 3rem 0;
    width: 100%;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* =========================================
   インタビュー詳細ページ (Voices Detail)
   ========================================= */

/* ヒーローカルーセル */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s linear;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* イントロのドロップキャップ（最初の1文字を大きく） */
.drop-cap::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    color: #B4A086;
    /* gold-muted */
    font-family: "Zen Old Mincho", serif;
}

/* インタビュー会話本文のデザイン */
.interview-body p {
    margin-bottom: 2rem;
    line-height: 2.2;
    text-align: justify;
    font-feature-settings: "palt";
    font-size: 0.875rem;
    /* text-sm */
    /* ▼▼▼ 文字色変更: ink (#2C3645) ▼▼▼ */
    color: #2C3645;
}

/* 話者名（太字）のデザイン */
/* WYSIWYGで「太字」にした部分を自動的に話者ラベル風にする */
.interview-body strong {
    display: block;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
    font-family: sans-serif;
}

/* 最初の太字（編集部など）はトップマージン不要 */
.interview-body>p:first-child strong,
.interview-body>strong:first-child {
    margin-top: 0;
}

/* 編集部（色を変えたい場合） */
/* ※運用で「編集部」という文字が含まれていれば色を変えるなどのCSS指定は難しいので、
   基本は gold-muted カラーを一律適用するか、手動で色設定する形になります。
   ここでは一律 gold-muted にします。 */
.interview-body strong {
    color: #B4A086;
}