/**
 * HOSHIKAMI - 守護神占い
 * トップページ専用スタイル
 */

:root {
    /* プライマリカラー */
    --primary-navy: #1A237E;
    --primary-indigo: #3949AB;
    --primary-purple: #5E35B1;


/* 方位画像表示 (ns-houi) */
.ns-houi-container {
    margin-top: 16px;
    text-align: center;
}
.ns-houi-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.ns-houi-image-wrap {
    display: flex;
    justify-content: center;
}
.ns-houi-image {
    max-width: 100%;
    height: auto;
    width: 320px;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
@media (max-width: 600px) {
    .ns-houi-image { width: 100%; }
    .ns-houi-title { font-size: 0.95rem; }
}

/* ======================================================
     Mobile override (スマホ優先) — @media (max-width: 768px)
     目的: grid/multi-column を解除して縦並びカードに変換、
                 色を「背景・区切り・強調」に限定して統一
     実装ルールに従い、@media のみで上書きしています。
     変更理由や対象（どのgridを簡略化したか）はコメントで明記。
     ====================================================== */

@media (max-width: 768px) {

    /* --- 基本安全策 --- */
    html, body { overflow-x: hidden; -webkit-overflow-scrolling: touch; }

    /* コンテナ左右の可読域を確保 */
    .container, .site-wrapper, .wrap { padding-left: 12px; padding-right: 12px; }

    /* --- Grid / multi-column の簡略化 (スマホでは縦並びカードへ) ---
         対象セレクタ: ページ内で想定されるグリッド系クラスを広く上書き。
         変更前の例: `.about-features { display: grid; grid-template-columns: repeat(3,1fr); }`
         変更後の方針: display:block にして子を幅100%のカードにする。
    */
    .grid,
    .grid-container,
    [class*="grid-"],
    .columns,
    .cols,
    .multi-column,
    .multi-col,
    .two-col,
    .three-col,
    .row,
    .ns-fortune-grid,
    .about-features,
    .deity-card .guardian-info,
    .guardian-info {
        display: block !important;
        grid-template-columns: none !important;
        column-count: 1 !important;
        gap: 0 !important;
    }

    /* グリッド直下の子要素を縦並びカード化（十分な余白を確保） */
    .grid > *, .grid-container > *, [class*="cols"] > *, .columns > *, .row > *, .about-features > *, .deities-grid > * {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 18px; /* カード間の余白を確保 */
    }

    /* ギャラリー・スライダーは横スクロールを禁止して縦積みに */
    .gallery, .carousel, .slider { overflow: visible !important; white-space: normal !important; }
    .gallery > *, .carousel > *, .slider > * { display: block !important; width: 100% !important; }

    /* --- カード装飾の統一ルール ---
         色用途を「背景・区切り・強調」に限定し、影・余白・枠線で表現する。
         ※ 既存のテーマ変数を優先して使用（破壊せず上書き）。
    */
    .card, .card-item, .panel, .tile, .section-card, .result-card, .ns-item, .feature-item, .deity-card {
        background: var(--bg-white, #fff) !important;
        border: 1px solid var(--border-color, rgba(0,0,0,0.06)) !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04) !important;
        padding: 14px !important;
        word-break: break-word;
    }

    /* セクションは1画面1情報ブロックに寄せる */
    .section, .block, .hero, .feature, .membership-card, .fortune-app-wrapper {
        margin-bottom: 18px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    ul, ol { padding-left: 20px !important; margin-bottom: 12px !important; }
    p { margin-bottom: 12px !important; }

    /* ボタン類はフル幅化してタップしやすく */
    button, .btn, .btn-diagnosis, .link-button, .btn-membership, .btn-hero-cta {font-size: 16px !important;}

    /* 強調色は既存アクセントを尊重して統一 */
    .btn-primary, .accent, .highlight, .ns-label, .highlight-text { background: var(--accent-color, var(--accent-gold, #D4AF37)) !important; color: #fff !important; }

    /* 区切り線の統一 */
    hr, .divider, .sep { border: none !important; border-top: 1px solid var(--border-color, rgba(0,0,0,0.06)) !important; margin: 12px 0 !important; }

    /* 画像はレスポンシブに */
    img, video, iframe { max-width: 100% !important; display: block !important; border-radius: 8px !important; }

    /* フォーム要素のタップ操作改善 */
    input, textarea, select { font-size: 16px !important; line-height: 1.5 !important; padding: 10px 12px !important; border: 1px solid var(--border-color, rgba(0,0,0,0.06)) !important; border-radius: 8px !important; width: 100% !important; }

    /* サイドバー的要素は縦積みに */
    aside, .sidebar, .meta { display: block !important; width: 100% !important; margin-bottom: 18px !important; }

    /* 具体的なgrid簡略化の注記:
         - .about-features (3列) -> 1列に集約
         - .ns-fortune-grid (2列の運勢表示) -> 各項目を縦並びカード化
         - .guardian-info / .deity-card の2カラム -> 画像の上、テキスト下の縦並び
    */
	
	.choice-button {
		width: 100%;
		background: var(--gradient-cta);
		color: #fff;
		border: none;
		padding: 16px 32px;
		font-size: 16px;
		border-radius: 10px;
		cursor: pointer;
		box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
		transition: all 0.3s ease;
	}

    /* 変更理由のまとめ（コメント）:
         - Grid解除: 列が小さく潰れることで可読性が低下するため縦並びへ。
         - 色統一: 意味のない色分けを廃止し、背景/区切り/強調の3用途に限定。
         - 表示密度の緩和: フォントサイズ・line-height・カード間余白を広げる。
         - 実装方針: @media(max-width:768px)のみで上書き。既存HTML/クラスは変更しない。
    */

}

/* ====================================================== */

    /* アクセントカラー */
    --accent-gold: #D4AF37;
    --accent-vermilion: #B22222;

    /* ニュートラルカラー */
    --bg-white: #FDFCF8;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;

    /* グラデーション */
    --gradient-hero: linear-gradient(135deg, #1A237E 0%, #3949AB 50%, #5E35B1 100%);
    --gradient-cta: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);

    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;

    /* --- header.css / fortune.css 用のエイリアス変数 --- */
    --primary-color: var(--accent-vermilion);
    --accent-color: var(--accent-gold);
    --header-bg: var(--bg-white);
    --header-text: var(--text-dark);
    --secondary-color: #2F2F4F;
    --border-color: #E0D8CC;
    --card-shadow: 0 4px 15px rgba(47, 47, 79, 0.1);
    --header-height-mobile: 60px;
    --header-height-desktop: 70px;
    --header-padding: 20px;
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    /* 背景テクスチャ（和紙風）*/
    background-image: url('https://kamihoshi.d-sky-n.com/wp-content/themes/hoshikami_hp/images/shrine_bg.png');
    background-repeat: repeat;
    background-size: 300px;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.choice-button {
		width: 100%;
		background: var(--gradient-cta);
		color: #fff;
		border: none;
		padding: 16px 32px;
		font-size: 16px;
		border-radius: 10px;
		cursor: pointer;
		box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
		transition: all 0.3s ease;
	}

/* ヘッダー拡張 */
.header-logo h1 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
    letter-spacing: 0.1em;
}

.logo-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: -4px;
}

.btn-cta-header {
    display: inline-block;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    padding: 4px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    margin-right: var(--spacing-sm);
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-login-small {
    text-decoration: none;
    color:#fff;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-login-small:hover {
    background: var(--gradient-cta);
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://kamihoshi.d-sky-n.com/wp-content/themes/hoshikami_hp/images/hero-background.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: min(1024px, 100%) auto; /* 幅を最大1024pxに制限 */
    overflow: visible;
    padding-top: 70px;
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 20s ease-in-out infinite;
    opacity: 0.6;
}

/* Back button design (static pages) */
.btn-back {
    display: inline-block;
    /* Blue-centered gradient */
    background: linear-gradient(90deg, var(--primary-indigo) 10%, var(--primary-indigo) 70%, var(--primary-purple) 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    box-shadow: 0 6px 18px rgba(57,73,171,0.18);
    cursor: pointer;
	text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(57,73,171,0.22);
}
.btn-back:active {
    transform: translateY(0);
    opacity: 0.95;
}
.btn-back:focus {
    outline: 3px solid rgba(94,53,177,0.15);
    outline-offset: 2px;
}

/* Bottom placement wrapper */
.static-page-back-wrap {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.static-page-back-wrap .btn-back {
    display: inline-block;
    min-width: 140px;
}

/* Make button full-width and large on small screens for easier tapping */
@media (max-width: 520px) {
    .static-page-back-wrap .btn-back {
        display: block;
        width: calc(70% - 40px);
        margin: 0 auto;
        padding: 14px 18px;
        border-radius: 20px;
        font-size: 16px;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold); /* 目立つ金色に変更 */
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    color: white; /* 補助テキストは白で視認性を確保 */
    opacity: 0.95;
}

.btn-hero-cta {
    display: inline-block;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
}

/* 診断セクション */
.diagnosis-section,
#diagnosis {
    padding: var(--spacing-xxl) 0;
    background-color: white;
    /* 背景テクスチャ（和紙風）*/
    background-image: url('https://kamihoshi.d-sky-n.com/wp-content/themes/hoshikami_hp/images/shrine_bg.png');
    background-repeat: repeat;
    background-size: 300px;
}

.section-title {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-navy);
}

.diagnosis-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.diagnosis-form {
    text-align: center;
}

.form-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

.btn-diagnosis {
    width: 100%;
    max-width: 300px;
    background: var(--gradient-cta);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-diagnosis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.form-note {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

/* 診断結果 */
.fortune-results {
    margin-top: var(--spacing-xl);
    animation: fadeIn 0.5s ease-out;
}

/* Utility: hide elements (used instead of inline style="display:none") */
.hidden { display: none; }

/* Membership gate styles (moved from inline markup) */
.membership-gate {
    display: none;
    margin-top: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.membership-icon {
    font-size: 3em;
    margin-bottom: 15px;
}
.membership-title {
    margin: 0 0 15px 0;
    font-size: 1.6em;
    color: white;
    font-weight: bold;
}
.membership-desc {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.95;
}
.btn-membership-signup {
    display: inline-block;
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
    text-decoration: none;
}
.btn-membership-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--spacing-md);
}

.result-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-navy);
}

.guardian-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: start; /* 画像とテキストを上揃えにする */
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}

.guardian-image-container {
    align-self: start;
}

.guardian-image-container img {
    width: 100%;
    border-radius: 8px;
    display: block; /* 下に余白ができないようにする */
    margin: 0;
}

.guardian-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--accent-gold); /* 目立たせる金色 */
    text-shadow: 0 3px 10px rgba(0,0,0,0.25);
    letter-spacing: 0.04em;
}

.guardian-element,
.guardian-quality {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 6px 0;
}

/* Set paragraph font-size inside ns-guardian to 16px for readability */
#ns-guardian p {
    font-size: 16px;
    line-height: 1.6;
}

/* Guardian description and shrine list styling (replaces inline styles) */
.guardian-desc {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
    text-align: left;
}
.guardian-shrines {
    margin-top: 15px;
    text-align: left;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}
.guardian-shrines-title {
    display: block;
    font-size: 0.9em;
    color: #B22222;
    margin-bottom: 5px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 3px;
}
.guardian-shrines-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85em;
    color: #444;
}
.guardian-shrines-list li { margin-bottom: 3px; }

/* Responsive adjustments for guardian block */
@media (max-width: 700px) {
    .guardian-info {
        display: block;
        padding: 12px;
    }
    .guardian-image-container img {
        object-fit: cover;
        margin: 0 auto 8px auto;
    }
    .guardian-details {
        text-align: center;
    }
}

/* Guardian (神様名) と読みの強調 */
.guardian-title {
    display: block;
    margin: 8px;
}
.guardian-title .guardian-guardian {
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    margin-right: 8px;
}
.guardian-title .guardian-reading {
    display: inline-block;
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
    opacity: 0.95;
}

.ns-feature-list {
    list-style: none;
    padding: 0;
}

.ns-feature-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #F0F0F0;
}

.ns-feature-list li:last-child {
    border-bottom: none;
}

/* HOSHIKAMIとは */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-navy);
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

/* Spacing for terms/static pages: add space between each "条" (h2) and its content */
.static-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    font-size: 20px;
    line-height: 1.4;
}
.static-page hr {
    margin: 1.2rem 0;
    border: none;
    border-top: 1px solid #f0f0f0;
}
.static-page h2 + ol,
.static-page h2 + p,
.static-page h2 + div {
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
}
.static-page ol,
.static-page ul {
    margin-bottom: 1rem;
    padding-left: 1.1rem;
}
.static-page p {
    margin-bottom: 1rem;
}

/* Page container adjustments for static pages (removed inline styles) */
.static-page.container {
    padding: 48px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Glossary / 2026 fortune card (rendered by JS) */
.ns-glossary {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}
.ns-glossary summary {
    cursor: pointer;
    font-weight: bold;
    color: #555;
}
.ns-glossary .glossary-body {
    margin-top: 10px;
    font-size: 0.85em;
    list-style: none;
    line-height: 1.6;
}

.ns-fortune-2026 {
    margin-top: 30px;
    background: #fffaf0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}
.ns-fortune-2026 h4 {
    margin-top: 0;
    color: #8a6d3b;
    border-bottom: 2px solid #8a6d3b;
    padding-bottom: 5px;
}
.ns-fortune-2026 .label-bold {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}
.ns-fortune-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.ns-fortune-grid p { margin: 5px 0; font-size: 0.9em; line-height: 1.5; }
.ns-fortune-grid .health strong { color: #2c7bb6; }
.ns-fortune-grid .love strong { color: #d9534f; }
.ns-fortune-grid .work strong { color: #f0ad4e; }
.ns-fortune-grid .money strong { color: #5cb85c; }

.ns-fortune-footer {
    margin-top: 20px;
    border-top: 1px dashed #ffeeba;
    padding-top: 15px;
}
.ns-dir-card { background: #fff; padding: 10px; border-radius: 5px; }
.ns-dir-card.bad { border-left: 4px solid #d9534f; }
.ns-dir-card.good { border-left: 4px solid #2c7bb6; }
.ns-dir-card ul { margin: 5px 0 0 20px; padding: 0; font-size: 0.9em; color: #555; }
.ns-dir-card.good ul { color: #333; }
.ns-max { background:#ffd700; color:#b8860b; padding:2px 5px; border-radius:3px; font-size:0.8em; }

/* Monthly fortune slider */
.ns-monthly-fortune { margin-top: 30px; border-top: 2px dashed #eee; padding-top: 20px; }
.ns-monthly-fortune h3 { color: #333; text-align: center; margin-bottom: 20px; }
.monthly-slider-container { position: relative; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; }
.slider-controls { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.slider-controls .slider-btn { padding: 8px 16px; background: #eee; border: none; border-radius: 4px; cursor: pointer; }
.slider-controls .slider-btn:disabled { opacity: 0.5; cursor: default; }

/* Monthly fortune inner content */
.monthly-heading { color: #F8B400; font-size: 1.4em; margin-bottom: 10px; }
.monthly-heading .monthly-sub { font-size: 0.7em; color: #999; }
.monthly-palace-title { font-size: 1.2em; font-weight: bold; color: #555; margin-bottom: 10px; }
.monthly-summary { margin-bottom: 15px; line-height: 1.6; }
.monthly-keywords { font-size: 0.9em; color: #888; background: #f9f9f9; display: inline-block; padding: 5px 15px; border-radius: 20px; }


.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Deities grid for guardian list page */
.deities-grid {
    display: block;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
/* Make guardian-info behave as a block inside deity cards */
.deity-card .guardian-info {
    display: block;
}

/* Spacing between each guardian block */
.guardian-info {
    margin-bottom: 22px;
}
.guardian-info:last-child {
    margin-bottom: 0;
}

/* Deity card: two-column layout on desktop, stacked on mobile */
.deity-card .guardian-info {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}
.deity-card .guardian-image-container {
    width: 100%;
    max-width: 220px;
}
.deity-card .guardian-image-container img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.deity-card .guardian-details {
    display: block;
}
.deity-card .guardian-title .guardian-guardian {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}
.deity-card .guardian-title .guardian-reading {
    display: block;
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}
.deity-card .myth-heading {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-navy);
}
.deity-card .myth-text {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.7;
}
.deity-card .guardian-shrines {
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}
.deity-card .guardian-shrines ul { margin: 0; padding-left: 1.1rem; }

@media (max-width: 720px) {
    .deity-card .guardian-info {
        display: block;
    }
    .deity-card .guardian-image-container img {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
    }
}
/* Use the same guardian-info grid as the top page (no size overrides) */
.static-note {
    margin-top: 1.6rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

@media (max-width: 900px) {
    .deities-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 520px) {
    .deities-grid { grid-template-columns: 1fr; }
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-navy);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 会員セクション */
.membership-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05) 0%, rgba(94, 53, 177, 0.05) 100%);
}

.membership-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.membership-lead {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.membership-benefits {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto var(--spacing-lg);
}

.membership-benefits li {
    font-size: 16px;
    padding: var(--spacing-sm) 0;
    color: var(--text-dark);
}

.btn-membership {
    display: inline-block;
    background: var(--primary-indigo);
    color: white;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-membership:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
}

/* フッター */
.site-footer {
    background: var(--primary-navy);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.footer-logo p {
    font-size: 12px;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* レスポンシブ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-hero-cta {
        font-size: 18px;
        padding: 16px 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .guardian-info {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn-cta-header,
    .btn-login-small {
        display: none;
    }
}
/* Mobile-specific adjustment: reduce hero title for small screens */
@media (max-width: 520px) {
    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }
    /* Swap hero background for small screens */
    .hero-section {
        background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://kamihoshi.d-sky-n.com/wp-content/themes/hoshikami_hp/images/hero-background_sp.png');
        background-position: center top;
        background-size: cover;
    }
}
/* ロゴ画像スタイル */
.header-logo .logo-image {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 767px) {
    .header-logo .logo-image {
        height: 40px;
    }
}

/* --- header.css のヘッダースタイル統合（body, resetは除外） --- */

.site-header {
    position: sticky;
    top: 0;
    background: var(--primary-navy); /* ヘッダー背景をネイビーに変更 */
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--header-padding);
    height: var(--header-height-mobile);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo a {
    text-decoration: none;
    color: white; /* ロゴリンクは白基準 */
}

.header-logo h1 {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 20px;
    font-weight: 600;
    color: white; /* ヘッダーロゴ色を白へ */
}

.header-nav {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: white; /* ナビゲーション文字を白基準に */
    font-size: 18px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-list a.nav-highlight {
    color: var(--accent-gold); /* ハイライトは金色で目立たせる */
    font-weight: 700;
}

.header-actions {
    display: none;
}

.btn-login {
    text-decoration: none;
    color: var(--primary-navy); /* 金背景に濃紺文字で可読性を確保 */
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: var(--gradient-cta);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white; /* ハンバーガーは白に */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
    background: var(--primary-navy);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    text-decoration: none;
    color: white; /* モバイルナビも白基準 */
    font-size: 16px;
    font-weight: 500;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    color: var(--accent-gold);
    padding-left: 20px;
}

@media (min-width: 768px) {
    .header-container {
        height: var(--header-height-desktop);
    }

    .header-logo h1 {
        font-size: 24px;
    }

    .header-nav {
        display: block;
        flex: 1;
        margin: 0 40px;
    }

    .nav-list {
        justify-content: center;
    }

    .header-actions {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- fortune.css のルール（統合済み） --- */

.fortune-app-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.92);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    position: relative;
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--primary-color);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.fortune-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.fortune-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

.fortune-header p {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
}

.fortune-input-area {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.fortune-input-area::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--primary-color);
    pointer-events: none;
    opacity: 0.3;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.input-group input[type="date"] {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    border: 1px solid var(--secondary-color);
    background: #fff;
    border-radius: 0;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    color: var(--secondary-color);
}

.input-group input[type="date"]:focus {
    border-color: var(--primary-color);
    background: #fffafa;
}

.diagnose-btn {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 1rem 3.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--secondary-color);
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.1em;
}

.diagnose-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--secondary-color);
    background: #a01f1f;
}

.fortune-results-container {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 1rem;
}

.result-header .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.result-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.result-summary {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.highlight-text {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: bold;
    padding: 0 10px;
}

.ns-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.ns-item {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: left;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ns-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}

.ns-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.ns-label {
    display: inline-block;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
    padding: 5px 15px;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.ns-value {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    line-height: 1.5;
    width: 100%;
}

#ns-guardian-image-container {
    margin-top: 15px;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

#ns-guardian-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.ns-details {
    background: #fffafa;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
    position: relative;
}

.ns-details h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* 詳細診断冒頭の星名スタイル */
.ns-star-name {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    letter-spacing: 0.04em;
}

.ns-feature-list li {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 1.2rem;
    font-size: 16px;
}

.ns-feature-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

#ns-fortune-2026 {
    background: #fffbf0 !important;
    border: 2px solid var(--accent-color) !important;
    position: relative;
}

#ns-fortune-2026::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

#ns-fortune-2026::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
}

/* Guardian description font sizing */
#ns-guardian,
#ns-guardian p,
#ns-guardian li {
    font-size: 16px;
    line-height: 1.8;
}

/* Ensure guardian-details paragraphs/lists also use 16px */
.guardian-details p,
.guardian-details li {
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .fortune-app-wrapper {
        padding: 1.5rem;
        margin: 1rem;
    }

    .fortune-header h2 {
        font-size: 1.8rem;
    }

    .result-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .diagnose-btn {
        width: 100%;
        padding: 1rem;
    }

    .tab-content-area {
        padding: 1.5rem;
    }

    #ns-fortune-2026>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .ns-item {
        padding: 1.5rem;
    }

    .ns-label {
        font-size: 0.9rem;
    }

    .ns-value {
        font-size: 1.3rem;
        word-break: break-all;
    }
}

/* --- 統合ここまで --- */

/* 方位画像表示 (ns-houi) */
.ns-houi-container {
    margin-top: 16px;
    text-align: center;
}
.ns-houi-title {
    font-size: 1rem;
    margin-bottom: 8px;
}
.ns-houi-image-wrap {
    display: flex;
    justify-content: center;
}
.ns-houi-image {
    max-width: 100%;
    height: auto;
    width: 320px;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
@media (max-width: 600px) {
    .ns-houi-image { width: 100%; }
    .ns-houi-title { font-size: 0.95rem; }
}

/* 今月の流れ（九星別 月間セクション） */
.monthly-flow {
    margin-top: 24px;
    max-width: 900px; /* 診断結果の幅に合わせる */
    margin-left: auto;
    margin-right: auto;
}
.monthly-flow h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
    text-align: left;
}
.monthly-flow .flow-text {
    background: linear-gradient(180deg, #fffefb, #fffaf0);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}
.monthly-flow .flow-summary {
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
}
.monthly-flow .flow-keywords {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.monthly-flow .flow-keywords li {
    background: #fff;
    border: 1px solid #f0e6d8;
    color: #6b4f2b;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9em;
}
.monthly-flow .flow-message {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--accent-gold);
    background: rgba(212,175,55,0.05);
    color: #333;
    font-weight: 700;
    border-radius: 6px;
}
.monthly-flow .flow-action {
    margin-top: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

@media (max-width: 700px) {
    .monthly-flow .flow-text { padding: 14px; }
    .monthly-flow h3 { font-size: 1.1rem; }
    .monthly-flow .flow-keywords li { font-size: 0.85em; padding: 6px 8px; }
}


.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.diagnosis-section,
#diagnosis {
    padding: var(--spacing-xxl) 0;
    background-color: white;
    /* 背景テクスチャ（和紙風）*/
    background-image: url('https://kamihoshi.d-sky-n.com/wp-content/themes/hoshikami_hp/images/shrine_bg.png');
    background-repeat: repeat;
    background-size: 300px;
}

.section-title {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-navy);
}

.diagnosis-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-sm);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.diagnosis-form {
    text-align: center;
}

.form-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

.btn-diagnosis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.form-note {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: var(--spacing-sm);
}

.fortune-results {
    margin-top: var(--spacing-xl);
    animation: fadeIn 0.5s ease-out;
}

.hidden { display: none; }

.membership-gate {
    display: none;
    margin-top: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 12px;
}

/* 診断結果: fortune-psych の result-section に合わせたスタイル */

#result-section .result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
}

h3#result-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* タイトル内の強調 */
#result-section .result-title .emphasis,
.result-title .emphasis {
    color: var(--primary-color, var(--primary-indigo));
    font-size: 22px;
    font-weight: 800;
    display: inline-block;
    margin: 0 4px;
    line-height: 1;
}

.emphasis {
    color: var(--primary-color);
    font-size: 26px;
}

/* 結果本文をカード風に見せる（トップの result-card / ns-details に揃える） */
.result-desc .result-body,
.result-body {
    background: var(--bg-white, #ffffff);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: var(--spacing-md);
}

.result-body .lead,
.lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.result-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-indigo, #3949ab);
    margin: var(--spacing-sm) 0 8px 0;
}

.tendencies {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin: 0 0 var(--spacing-sm) 0;
}

.tendencies li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    font-size: 14px;
    color: var(--text-dark);
}

.muted {
    color: var(--text-gray, #7a7a7a);
    font-size: 14px;
}

.result-block {
    margin-top: var(--spacing-sm);
}

.result-block h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: var(--primary-navy);
}

.gods-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gods-list li {
    background: rgba(242,242,242,0.9);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dark);
}

.keywords-list {
    display: inline-block;
    background: rgba(212,175,55,0.08);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* ボタン配置（カード内のボタンを中央・余白有りに見せる） */
#result-section .btn-diagnosis {
    margin-top: var(--spacing-md);
    max-width: 260px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .result-desc .result-body,
    .result-body {
        padding: 16px;
    }

    .result-title { font-size: 18px; }
    .lead { font-size: 15px; }
}

/* HOSHIKAMI総合診断セクション */
.comprehensive-diagnosis {
    margin-top: 36px;
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background: linear-gradient(180deg, rgba(250,248,246,0.8), rgba(255,255,255,0.8));
    text-align: center;
}
.comprehensive-diagnosis .diagnosis-intro {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}
.small-lead {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
}
.comprehensive-title {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    margin-bottom: 6px;
}
.comprehensive-sub {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}
.diagnosis-cta {
    margin-top: 14px;
}
.diagnosis-cta .btn-primary {
    display: inline-block;
    background: var(--gradient-cta);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(212,175,55,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.diagnosis-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212,175,55,0.32);
}

@media (max-width: 520px) {
    .comprehensive-title { font-size: 24px; }
    .comprehensive-sub { font-size: 15px; }
    .diagnosis-cta .btn-primary { display: block; width: calc(100% - 40px); max-width: 420px; margin: 0 auto; }
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* ===== HOSHIKAMI: Psychology Tests (hk-) - integrated ===== */
/* hk 系スタイル用の変数マッピング（既存変数を流用） */
:root {
        --text-color: var(--text-dark);
        --muted-color: var(--text-gray);
        --card-bg: var(--bg-white);
        --accent: var(--accent-gold);
        --accent-contrast: #000;
}

/* psychology tests: hk- 接頭辞のスタイル（レスポンシブ・カード型UI） */
.hk-psych-page{
    max-width:1100px;
    margin:0 auto;
    padding:28px 16px;
}

.hk-page-title{
    font-size:1.8rem;
    margin:0 0 8px 0;
}
.hk-intro{
    margin:0 0 24px 0;
    color:var(--muted-color,#555);
    text-align: left;
}

.hk-section{
    margin:32px 0;
}
.hk-section-title{
    font-size:1.4rem;
    margin:0 0 6px 0;
    color: var(--primary-navy);
}
.hk-section-desc{
    margin:0 0 14px 0;
    color:var(--muted-color,#666);
}

.hk-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
}

.hk-card{
    background:var(--card-bg,#fff);
    border:1px solid rgba(0,0,0,0.06);
    border-radius:10px;
    padding:14px;
    box-shadow:0 1px 2px rgba(0,0,0,0.03);
    transition:transform .18s ease, box-shadow .18s ease, opacity .4s ease, transform .28s cubic-bezier(.2,.9,.2,1);
    cursor:pointer;
    display:flex;
    flex-direction:column;
    min-height:96px;
    text-decoration:none;
    color:inherit;
}
.hk-card:focus,
.hk-card:hover{
    transform:translateY(-6px) scale(1.01);
    box-shadow:0 6px 18px rgba(33,33,33,0.08);
}

.hk-card-title{
    font-weight:600;
    margin:0 0 6px 0;
    font-size:1rem;
}
.hk-card-desc{
    margin:0;
    color:var(--muted-color,#666);
    font-size:0.95rem;
    flex:1 0 auto;
}

.hk-card .hk-btn-area{
    margin: 10px auto;
}
.hk-card .hk-diagnose-btn{
    display:inline-block;
    padding:8px 24px;
    border-radius:20px;
    background:var(--accent,#f2d0d9);
    color:#fff;
    text-decoration:none;
    font-weight:600;
}

.hk-fade-init{
    opacity:0;
    transform:translateY(10px);
}
.hk-fade-in{
    opacity:1;
    transform:none;
    transition:opacity .5s ease, transform .5s ease;
}

@media (max-width:640px){
    .hk-page-title{font-size:1.4rem}
    .hk-cards{gap:10px}
}

/* 追記: 新しい診断を追加する手順
     1) ファイル: js/psychology-test.js の diagnosisData 配列にオブジェクトを追加
            { category: 'love'|'money'|'work'|'relation', title: '診断名', description: '説明', url: '/path' }
     2) 追加後にページをリロードすると自動で反映されます。
*/
/* psychology-test.css
   クラス接頭辞: hk-
   HOSHIKAMI既存デザインを崩さないシンプル設計
*/

.hk-section{
  margin:32px 0;
}
.hk-section-title{
  font-size:1.4rem;
  margin:0 0 6px 0;
  color: var(--primary-navy);
}
.hk-section-desc{
  margin:0 0 14px 0;
  color:var(--muted-color,#666);
}

/* カード一覧（レスポンシブ：PCはグリッド、SPは縦並び） */
.hk-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}

.hk-card{
  background:var(--card-bg,#fff);
  border:1px solid rgba(0,0,0,0.06);
  border-radius:10px;
  padding:14px;
  box-shadow:0 1px 2px rgba(0,0,0,0.03);
  transition:transform .18s ease, box-shadow .18s ease, opacity .4s ease, transform .28s cubic-bezier(.2,.9,.2,1);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  min-height:96px;
  text-decoration:none;
  color:inherit;
}
.hk-card:focus,
.hk-card:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 6px 18px rgba(33,33,33,0.08);
}

.hk-card-title{
  font-weight:600;
  margin:0 0 6px 0;
  font-size:1rem;
}
.hk-card-desc{
  margin:0;
  color:var(--muted-color,#666);
  font-size:0.95rem;
  flex:1 0 auto;
}

/* フェードイン（初期非表示→表示） */
.hk-fade-init{
  opacity:0;
  transform:translateY(10px);
}
.hk-fade-in{
  opacity:1;
  transform:none;
  transition:opacity .5s ease, transform .5s ease;
}

/* メディア調整 */
@media (max-width:640px){
  .hk-page-title{font-size:1.4rem}
  .hk-cards{gap:10px}
}

.member-hero{
            background-image: url('images/hoshikami_back.JPG');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            height: 320px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #111;
            text-align: center;
            position: relative;
        }
        /* overlay removed to show image without white veil */
.member-hero .hero-content{ position: relative; z-index: 1; padding: 0 16px; }
.member-hero h1{
    font-size: 3rem;
    margin: 0;
    letter-spacing: 1px;
    color: inherit;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1.18); }

@media (max-width:600px){ 
    .member-hero{ height: 220px } 
    .member-hero h1{ font-size:2.4rem } 
}