@charset "utf-8";

/* ================================================
    1. Base & Reset
    現代のブラウザ向けに最適化したリセットと基本設定
================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f0f0 url(../img/wm_saiph_bg_body.gif) repeat-x;
font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic,  Meiryo, sans-serif;
    color: #4a4a4a; /* 真っ黒ではなく、少しグレーを混ぜて目に優しく */
    -webkit-font-smoothing: antialiased; /* 文字の縁を滑らかにする（Mac/Chrome向け） */
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
    text-align: center;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #61ADB5;
    text-decoration: underline;
    transition: 0.2s ease-in-out;
}

a:hover {
    text-decoration: none;
    color: #3d7e85;
}

/* ================================================
    2. Layout Structure
================================================ */
#container {
    max-width: 1080px;
    width: 95%;
    margin: 20px auto;
    text-align: left;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ================================================
    3. Header & Navigation (最適化済)
================================================ */
#header {
    background-color: #ffffff !important;
    display: flex;
    flex-direction: column; /* 上下に積み上げる */
    padding: 0;
}

#title {
    order: 1; /* 一番上 */
    min-height: 56px; /* JS描画前のレイアウトずれ対策 */
    padding: 15px;
    background: #ffffff !important; /* 背景を白に固定 */
    text-align: center;
}

/* サイト名（記事のh1と重複させないため h1 ではなくリンクにする） */
.site-title {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333333;
    line-height: 1.5;
    text-decoration: none;
}

.site-title:hover {
    color: #61ADB5;
}

/* ナビゲーションメニュー */
#menu {
    order: 2; /* 2番目（orderは#headerの直接の子に指定する必要がある） */
}

#menu .menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #808080 url(../img/wm_saiph_bg_menu.gif) repeat-x;
}

#menu .menu li {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

#menu .menu li a {
    display: block;
    padding: 8px 5px; /* 縦幅を狭く調整 */
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    border-right: 1px solid #858585;
    background: #9c9c9c url(../img/wm_saiph_bg_menu_item.gif) repeat-x;
}

#menu .menu li a:hover,
#menu .menu li a[aria-current="page"] {
    background: #808080;
    color: #ffffff;
}

#header::after {
    content: "";
    display: block;
    order: 3; /* 3番目（一番下） */
    width: 100%;
    /* 画像の比率に合わせて高さを調整 (横4:縦1なら25%) */
    padding-bottom: 25%; 
    background-image: url(../img/header-banner.webp) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important; /* 全体を収める */
    background-color: #f8f9f3; /* バナーの紙色に合わせる */
    border-bottom: 1px solid #e1e1e1;
}

/* ================================================
    4. Main Content Area
================================================ */
#main {
    padding: 40px 5%; /* 左右の余白を％指定にして、広くなった幅を活かす */
    background: #ffffff;
}

/* 記事本文の横幅をいっぱいまで使う */
#entry, .content {
    width: 100% !important;
}


h1 {
    font-size: 1.55rem; /* サイズを適正化 */
    color: #2c3e50;
    margin-bottom: 35px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee; /* 全体は細い線に */
    position: relative;
    text-align: left;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -1px; /* border-bottomに重ねる */
    left: 0;
    width: 80px; /* 左側だけアクセント */
    height: 3px;
    background-color: #61ADB5;
}

h2 {
    margin: 19px 0;
    padding: 6px 15px;
    border-left: 12px solid #F0F0F0;
    color: #333333;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

/* H3: 線と白抜きを使ったクリーンなデザイン */
h3 {
    margin: 18px 0 15px;
    padding: 5px 0;
    font-size: 1.25rem;
    color: #2c3e50;
    border-bottom: 2px solid #61ADB5;
    display: inline-block; /* 下線を文字の長さに合わせる */
    padding-right: 30px;
}

/* H4: 小見出しとしてシンプルに */
h4 {
    margin: 17px 0 10px;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
}

h4::before {
    content: "■";
    color: #61ADB5;
    margin-right: 8px;
    font-size: 0.9rem;
}

p {
    font-size: 1rem; /* 1.05からわずかに下げて「まとも」な密度に */
    line-height: 1.85;
    margin-bottom: 0.8em;
    font-weight: 620; /* 太すぎないように設定 */
    letter-spacing: 0.02em; /* 文字の間隔をわずかに広げると「垢抜け」ます */
    text-align: justify; /* 両端を揃えて、本のような整然とした見た目に */
}





/* 本文内リスト */
.entry-body ul,
.entry-body ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.entry-body li {
    margin-bottom: 0.4em;
    line-height: 1.8;
}

/* 画像制御 */
.entry-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* 本文内の画像がスマホで横にはみ出さないようにする */
.entry-body img {
    max-width: 100%;
    height: auto;
}

.img-center {
    text-align: center;
    margin: 20px 0;
}

.img-float-left {
    float: left;
    margin: 0 20px 10px 0;
}

/* float解除 */
.entry-body::after {
    content: "";
    display: block;
    clear: both;
}

/* CTA Button (ボタンデザインの現代化) */
.cta-container {
    clear: both;
    margin: 40px 0;
    text-align: center;
}

.btn-cta {
    display: inline-block;
    padding: 12px 24px;
    color: #61ADB5;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #61ADB5;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 0 #4e8a91;
    transition: 0.2s;
}

.btn-cta:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4e8a91;
    background: #61ADB5;
    color: #ffffff;
}


/* ================================================
    追加：コンテンツメニュー (Card Grid)
================================================ */
.content-menu-wrap {
    margin: 60px 0 20px;
    padding: 40px;
    background-color: #fcfcfc; /* ほんの少し色を変えて「エリア」を分ける */
    border-radius: 12px;
    border: 1px solid #eee;
}

.menu-title {
    text-align: center;
    margin-bottom: 30px !important;
    border-left: none !important; /* H2のデフォルト装飾を消す */
    background: none !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
    color: #2c3e50;
    position: relative;
}

.menu-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #61ADB5;
    margin: 15px auto 0;
}

.content-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 20px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important; /* 下線を消す */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: #61ADB5;
    box-shadow: 0 8px 20px rgba(97, 173, 181, 0.15);
}

.menu-icon {
    font-size: 1.2rem;
    color: #61ADB5;
    margin-bottom: 10px;
}

.menu-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a4a4a;
}

.menu-item:hover .menu-text {
    color: #61ADB5;
}


/* ================================================
    5. Footer
================================================ */

#footer {
    padding: 60px 20px; /* 余白を広めにとり、ゆとりを持たせる */
    text-align: center;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

/* 関連カテゴリーリンクのスタイル */
.footer-links {
    max-width: 800px;
    margin: 0 auto 40px; /* 下のコピーライトとの間に余白を確保 */
    padding: 30px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.footer-links p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px; /* リンク同士の間隔 */
    flex-wrap: wrap; /* スマホで折り返す設定 */
}

.footer-links li a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #61ADB5;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
    transition: 0.3s;
}

/* マウスホバー時に下線がスッと出るアニメーション */
.footer-links li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #61ADB5;
    transition: 0.3s;
}

.footer-links li a:hover::after {
    width: 100%;
}

/* コピーライト（address） */
#footer address {
    font-style: normal;
    font-size: 0.85rem;
    color: #bbb;
    letter-spacing: 0.05em;
}

/* ================================================
    6. Responsive (Mobile)
================================================ */


@media screen and (max-width: 480px) {
    .content-menu-wrap {
        padding: 25px 15px;
        margin-top: 40px;
    }
    
    .menu-item {
        padding: 20px 10px;
    }
    
    .menu-text {
        font-size: 0.85rem;
    }
}


/* --- レスポンシブ調整 --- */
@media screen and (max-width: 768px) {
    .content-menu-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレット・スマホは2列 */
        gap: 12px;
    }
}



@media screen and (max-width: 640px) {
    #container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    #header::after {
        padding-bottom: 25%; /* 新バナーは文字がないので、スマホでも画像の比率（4:1）のまま */
    }

    #menu .menu li {
        width: 50%;
        flex: none;
    }

    #menu .menu li a {
        padding: 10px 5px;
        border-bottom: 1px solid #858585;
    }

    .img-float-left {
        float: none;
        margin: 0 0 15px 0;
        text-align: center;
    }

    /* 旧本文のインライン float 画像もスマホでは回り込みを解除 */
    .entry-body img[style*="float"] {
        float: none !important;
        display: block;
        margin: 15px auto !important;
    }

    h2 {
        font-size: 1.1rem;
        padding-left: 10px;
        border-left-width: 8px;
    }

    .footer-links {
        padding: 20px 10px;
    }
    
    .footer-links ul {
        flex-direction: column; /* 縦に並べる */
        gap: 15px;
    }
    
    .footer-links li a {
        display: block;
        border-bottom: 1px solid #f9f9f9;
        padding-bottom: 10px;
    }
}

/* ================================================
    7. 素材図鑑コンポーネント
================================================ */

/* パンくず */
.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
}
.breadcrumb li + li::before {
    content: "›";
    margin-right: 0.3em;
    color: #bbb;
}

/* 更新日などのメタ行（h1の直下） */
.meta-line {
    font-size: 0.8rem;
    color: #888;
    margin: -25px 0 25px;
}

/* 表（横スクロール対応） */
.table-wrap {
    overflow-x: auto;
    margin: 10px 0 25px;
}
.ev-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.ev-table th,
.ev-table td {
    border: 1px solid #e5e5e5;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}
.ev-table th {
    background: #f5f9f9;
    color: #2c3e50;
    white-space: nowrap;
}

/* 根拠の強さバッジ */
.ev {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}
.ev-strong   { background: #2e7d6b; }
.ev-limited  { background: #4f9ca4; }
.ev-weak     { background: #8f9a9d; }
.ev-negative { background: #b0605d; }

/* 補足・注意ボックス */
.note-box {
    border-left: 4px solid #61ADB5;
    background: #f5fafb;
    padding: 15px 20px;
    margin: 20px 0;
}
.note-box.warn {
    border-left-color: #c98a3a;
    background: #fdf8f1;
}
.note-box p:last-child,
.note-box ul:last-child {
    margin-bottom: 0;
}
.note-box-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #2c3e50;
}

/* 参考文献 */
.ref-list {
    font-size: 0.85rem;
    line-height: 1.7;
    padding-left: 1.5em;
    word-break: break-word;
}
.ref-list li {
    margin-bottom: 0.5em;
}

/* 準備中のカード */
.menu-item.is-soon {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}
.menu-item.is-soon:hover {
    transform: none;
    border-color: #e0e0e0;
    box-shadow: none;
}
.menu-sub {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* 一覧ページへのリンク */
.more-link {
    text-align: center !important;
    margin: 25px 0 0 !important;
    font-size: 0.95rem;
}

/* 表の1列目（項目名）が細く折り返されすぎないように */
.ev-table td:first-child {
    min-width: 8.5em;
}


/* 挿絵（イラスト） */
.illust {
    margin: 10px auto 25px;
    text-align: center;
    max-width: 560px;
}
.illust-narrow { max-width: 400px; }
.illust-wide   { max-width: 720px; }
.illust img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.illust figcaption {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
}

/* 素材図鑑カード：表示中のページ */
.menu-item.is-current {
    border-color: #61ADB5;
    background: #f2f9fa;
    box-shadow: none;
    cursor: default;
}
.menu-item.is-current:hover {
    transform: none;
    box-shadow: none;
}
.menu-item.is-current .menu-text {
    color: #3d7e85;
}

/* 自前の広告配信システム（tgw.js）の枠
   ※ tgw.js は「広告」表記を出さないため、サイト側で表記を付ける（景品表示法のステマ規制対応） */
.tgw-area {
    clear: both;
    margin: 40px 0 10px;
}
.tgw:empty {
    display: none; /* 読み込み前・配信なしのときは表記ごと隠す */
}
.tgw::before {
    content: "広告";
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.1em;
    text-align: inherit; /* 枠の配置（中央寄せ・左寄せ）に合わせる */
}
.tgw img {
    border-radius: 4px;
}


/* ================================================
    8. 恋愛バグの処方箋 コンポーネント
================================================ */

/* リード文 */
.lead {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 1.2em;
}

/* 記事の3段構成：いま起きていること → ではどうするか → ここだけ押さえればいい */
.phase-block {
    margin: 40px 0;
}
.phase-block > h2::before {
    display: inline-block;
    margin-right: 10px;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffffff;
    vertical-align: middle;
    letter-spacing: 0.05em;
}
.phase-block.is-now > h2  { border-left-color: #2c3e50; }
.phase-block.is-now > h2::before  { content: "言語化"; background: #2c3e50; }
.phase-block.is-do > h2   { border-left-color: #61ADB5; }
.phase-block.is-do > h2::before   { content: "処方箋"; background: #61ADB5; }
.phase-block.is-min {
    padding: 20px 25px;
    background: #f5fafb;
    border-radius: 8px;
}
.phase-block.is-min > h2 { border-left-color: #c98a3a; margin-top: 0; }
.phase-block.is-min > h2::before  { content: "最低限"; background: #c98a3a; }

/* 対象バッジ（男性向け・女性向け・共通） */
.for-tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.8;
    color: #ffffff;
    background: #8f9a9d;
    white-space: nowrap;
}
.for-tag.for-m { background: #4a6fa5; }
.for-tag.for-f { background: #b0605d; }
.for-tag.for-all { background: #2e7d6b; }
h1 .for-tag {
    margin-right: 8px;
    vertical-align: middle;
}

/* そのまま使える文面 */
.template-box {
    margin: 15px 0 25px;
    padding: 15px 20px;
    border: 1px dashed #61ADB5;
    border-radius: 8px;
    background: #ffffff;
}
.template-box p {
    margin-bottom: 0.4em;
    font-weight: 500;
}
.template-label {
    display: block;
    font-size: 0.8rem;
    color: #3d7e85;
    font-weight: bold;
    margin-bottom: 4px;
}

/* 典型例（作成した例であることを示す） */
.example-box {
    margin: 20px 0;
    padding: 15px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fcfcfc;
}
.example-box .note-box-title::after {
    content: "（よくある状況を元に作成した例）";
    font-size: 0.75rem;
    font-weight: normal;
    color: #999;
    margin-left: 6px;
}

/* 記事カード一覧 */
.article-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0 30px;
}
.article-list a {
    display: block;
    height: 100%;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a4a4a;
    transition: all 0.3s ease;
}
.article-list a:hover {
    border-color: #61ADB5;
    box-shadow: 0 6px 16px rgba(97, 173, 181, 0.15);
    transform: translateY(-3px);
}
.article-list strong {
    display: block;
    margin: 6px 0 4px;
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
}
.article-list .card-desc {
    display: block;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

/* 用語集 */
.term-list dt {
    margin-top: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
.term-list dd {
    margin: 8px 0 0;
}

/* 目次 */
.toc {
    margin: 10px 0 30px;
    padding: 15px 25px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.95rem;
}
.toc ol { padding-left: 1.4em; }

@media screen and (max-width: 640px) {
    .article-list { grid-template-columns: 1fr; }
    .phase-block.is-min { padding: 15px; }
}
.term-list .more-link {
    text-align: left !important;
    margin: 0 !important;
}
