@charset "UTF-8";
/*
    Theme Name:   SWELL CHILD
    Template:     swell
    Description:  SWELLの子テーマ（子テーマに追加CSSを統合）
    Version:      1.0.4
    Author:       LOOS WEB STUDIO
    License:      GNU General Public License
    License URI:  http://www.gnu.org/licenses/gpl.html
*/

/* 親テーマ読み込み */
@import url("../swell/style.css");

.top #content {
    padding-top: 2em; 
}

/* ==========================================
   1. パンくずリスト
========================================== */
.p-breadcrumb__list {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.p-breadcrumb__list::-webkit-scrollbar {
    display: none;
}

/* パンくずリストの見た目を変更 */
.p-breadcrumb,
div#breadcrumb.p-breadcrumb,
div#breadcrumb.p-breadcrumb.-bg-on {
    padding: 8px 0;
    margin-bottom: 20px;
}

.p-breadcrumb__text {
    font-size: 12px;
}

.p-breadcrumb__text:hover {
    opacity: 0.8;
}

/* 現在のページ（記事タイトル）を濃く */
.p-breadcrumb__item:last-child .p-breadcrumb__text {
    font-weight: bold !important;
    opacity: 1 !important;
}

/* パンくずリストの区切り記号も白に */
.p-breadcrumb__list li::after,
.p-breadcrumb__item::after {
    font-weight: bold !important;
}


/* ==========================================
   2. ヘッダー
========================================== */
.header_magazine {
    text-decoration: none;
    padding-right: 15px;
    font-size: 20px;
    color: #00bcd1;
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
}
/* タブレット以下で非表示 */
@media (max-width: 1024px) {
    .header_magazine {
        display: none;
    }
}


/* ==========================================
   3. メインビジュアル
========================================== */
.p-mainVisual__slideTitle {
    font-weight: 600;
    font-size: 80px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    font-family: "Kdam Thmor Pro", sans-serif;
}
.p-mainVisual__slideText {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    font-size: 22px;
    font-weight: 600;
}
.c-mvBtn__btn {
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}
/* モバイル調整 */
@media (max-width: 864px) {
    .p-mainVisual__slideTitle { font-size: 30px; }
    .p-mainVisual__slideText { font-size: 16px; }
    .c-mvBtn__btn { font-size: 14px; }
}


/* ==========================================
   4. PR表示
========================================== */
/* 小サイズ（data-style="small"）は現在の設定では出力されない。
   PR表記の設定は pr_notation_type='l'＝大サイズ。ここは念のため残置。 */
.c-prNotation[data-style=small] {
    color: #fff;
    background-color: #CC3211;
    font-weight: 800;
    font-size: 12px;
    padding: 0 8px;
    border-radius: 13px;
}

/* 2026-08-21: 実際に記事冒頭に出ているのは大サイズ（data-style="big" ＋ is-style-bg_stripe）。
   全幅の帯＋6pxのストライプ地で、アイキャッチより先に視線を奪っていたため、
   面積・文字・彩度を落として「注記」の見た目にする。
   SWELL既定は font-size:.95em / padding:.75em / margin:1.5em 0、地はストライプ。
   ⚠ これ以上小さく・薄くしないこと。景品表示法（ステマ規制）は広告であることを
   「一般消費者が明瞭に認識できる」表示を求めており、12px／コントラスト 4.5:1 を下限の目安とする。 */
.c-prNotation[data-style=big] {
    display: inline-block;   /* 全幅の帯 → 文字幅に収まる注記へ */
    max-width: 100%;
    margin: .8em 0;
    padding: 3px 10px;
    background: #f6f8f8;     /* ストライプ地を無地の淡色に（is-style-bg_stripe を上書き） */
    border: 1px solid #e4e8ea;
    border-radius: 4px;
    color: #5c676d;
    font-size: 12px;
    line-height: 1.7;
}
.c-prNotation[data-style=big] > i {
    font-size: 12px;
    opacity: .6;
}


/* ==========================================
   5. 記事コンテンツ見出し
========================================== */
.post_content h3 { font-size: 22px; }
.post_content h4 { font-size: 20px; }


/* ==========================================
   6. CTAボックス（シンプル版）
========================================== */
.cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    max-width: 800px;
}

/* タイトル */
.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 画像 + おすすめエリア */
.cta .first {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.cta .first img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

.cta .first .text p {
    background: #12d7db;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1rem;
    text-align: center;
    border-radius: 6px;
}

.cta .first .text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta .first .text ul li {
    padding: 0.5rem 0;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* テーブル
   ⚠ レイアウト（border-collapse / 外枠 / 角丸 / 罫線）は
   「テーブルスタイル改善」セクションの**統一モデル**が担当する（`.cta table` も対象に含めてある）。
   ここで border-collapse を指定すると分岐が生まれるので書かない。 */
.cta table {
    width: 100%;
    margin: 2rem 0;
}

.cta table th {
    background: #12d7db;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.cta table td {
    background: #ffffff;
    color: #2d3748;
    padding: 1rem;
    font-size: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* [2026-09-10 修復] このコメントは開始タグが欠落しており、
   ファイル全体で開きタグ100・閉じタグ101という不整合になっていた。
   そのため style.css はブラウザで1ルールもパースされず、子テーマCSS全体が無効化していた
   （cssRules.length が 0。--acm-font も未定義になり SWELL 既定の書体に戻っていた）。
   文の前半は失われている。コメントを編集したら開きと閉じの数が一致するか必ず確認すること。
   ` のほうが詳細度が高い
   （(0,2,2) vs (0,1,2)）ため上書きされ、**CTAボックスでも右端の線が消えていた**。
   線の色はCTA用の #e2e8f0 に合わせる。 */
.cta table {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* 特徴エリア */
.cta .feature {
    margin: 2rem 0;
}

.cta .feature p {
    background: #12d7db;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1rem;
    text-align: center;
    border-radius: 6px;
}

.cta .feature ul {
    list-style: none;
    margin: 0;
    margin-top: 0;
    padding: 1rem;
    border-radius: 6px;
}

.cta .feature ul li {
    padding: 0.5rem 0;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* ボタンエリア */
.cta > .closing-copy {
    text-align: center;
    margin: 2rem 0 1rem;
}

.cta > .closing-copy center {
    font-size: 20px;
    font-weight: 700;
    color: #12d7db;
    margin: 0;
}

.cta > .cv-btn,
.cta > .article-btn {
    display: flex !important;
    justify-content: center !important;
}

.cta > .cv-btn a,
.cta > .article-btn a {
    display: block !important;
    padding: 1rem 2rem !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .cta {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .cta .first {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta .first img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta table th,
    .cta table td {
        font-size: 12px;
        padding: 0.75rem;
    }
    
    .cta > .cv-btn a,
    .cta > .article-btn a {
        padding: 0.875rem 1.5rem;
    }
}


/* ==========================================
   7. ショートコード CTA/feature（CTAボックス外で使用）
========================================== */
/* CTA外の .first（シンプル版） */
body:not(.cta) .first,
div:not(.cta) > .first {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body:not(.cta) .first img,
div:not(.cta) > .first img {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

body:not(.cta) .first .text,
div:not(.cta) > .first .text {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

body:not(.cta) .first .text p,
div:not(.cta) > .first .text p,
body:not(.cta) .feature p,
div:not(.cta) > .feature p {
    background: #12d7db;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 1rem;
    text-align: center;
    border-radius: 6px;
}

body:not(.cta) .first .text ul,
div:not(.cta) > .first .text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.cta) .first .text ul li,
div:not(.cta) > .first .text ul li {
    padding: 0.5rem 0;
    font-size: 14px;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* feature（シンプル版 - CTA外） */
body:not(.cta) .feature,
div:not(.cta) > .feature {
    margin: 0 auto 1.5rem;
}

body:not(.cta) .feature ul,
div:not(.cta) > .feature ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body:not(.cta) .feature ul li,
div:not(.cta) > .feature ul li {
    padding: 0.5rem 0;
    font-size: 14px;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* スマホ調整（シンプル版 - CTA外） */
@media (max-width: 768px) {
    body:not(.cta) .first,
    div:not(.cta) > .first {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    body:not(.cta) .first img,
    div:not(.cta) > .first img {
        max-width: 300px;
    }
}


/* ==========================================
   8. ボタン（モダンデザイン）
========================================== */
.cv-btn,
.article-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.cv-btn {
    background: linear-gradient(135deg, #12d7db 0%, #0fb8c0 100%);
    box-shadow: 0 4px 16px rgba(18, 215, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.article-btn {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    box-shadow: 0 4px 16px rgba(26, 32, 44, 0.3);
    position: relative;
    overflow: hidden;
}

.cv-btn::before,
.article-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cv-btn:hover,
.article-btn:hover {
    transform: translateY(-3px);
}

.cv-btn:hover {
    box-shadow: 0 8px 24px rgba(18, 215, 219, 0.4);
}

.article-btn:hover {
    box-shadow: 0 8px 24px rgba(26, 32, 44, 0.4);
}

.cv-btn:hover::before,
.article-btn:hover::before {
    left: 100%;
}

.cv-btn a,
.article-btn a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 1.25rem 2rem;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cv-btn a span,
.article-btn a span {
    display: block;
    position: relative;
}


/* スマホ調整（モダンデザイン） */
@media (max-width: 768px) {
    .cv-btn,
    .article-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cv-btn a,
    .article-btn a {
        padding: 1rem 1.5rem;
        font-size: 15px;
    }
}



/* ==========================================
   9. YES/NO チャート
========================================== */
.yn-chart {
    border-radius: 12px;
    background-color: #fffdf4; /* もう少し温かみをもたせる */
    border: 1px solid #fdc44f;
    padding: 2em 1.5em;
    /* 影なし（2026-08-21・ボックスの影は一律撤去。ボタンの影は残す） */
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    box-sizing: border-box;
}

.yn-chart__add {
    display: inline-block;
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 0.6em;
    padding: 0.3em 1em;
    background-color: #fdc44f;
    color: #fff;
    border-radius: 16px;
}

.yn-chart__title {
    text-align: center;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 0.4em;
    color: #f5a623;
}

.yn-chart__ex {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1.5em;
}

/* ステップ表示制御 */
.yn-chart > div {
    display: none;
    padding-top: 0;
    margin-top: 0;
}
.yn-chart > div.yn-chart__display,
.yn-chart > div:target {
    display: block;
}

/* リスト＆ボタン */
.yn-chart ul {
    list-style: none;
    margin: 1.5em 0 0;
    padding: 0;
}
.yn-chart ul li {
    margin-bottom: 1em;
}
.yn-chart ul li:last-child {
    margin-bottom: 0;
}
.yn-chart ul li a {
    display: block;
    padding: 1em;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #333;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.yn-chart ul li a:hover {
    background-color: #fff3d5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* 結果エリア */
.yn-chart__result {
    background: #fff;
    padding: 1em;
    border-radius: 8px;
}
.yn-chart__result-title {
    color: #fdc44f;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
    border-bottom: 1px dashed #fdc44f;
}

/* モバイル調整 */
@media (max-width: 800px) {
    .yn-chart {
        padding: 1.5em 1em;
        font-size: 0.9rem;
    }
    .yn-chart__title {
        font-size: 1.2em;
    }
    .yn-chart__add, .yn-chart__ex {
        font-size: 0.85em;
    }
}

/* ▼ 診断結果ボタンの訴求スタイル強化 */
.yn-chart__result .p-check-btn--red a {
    display: block;
    background-color: #ff914d;
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 1em 1.5em;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255,145,77,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 1em;
}
.yn-chart__result .p-check-btn--red a:hover {
    background-color: #ff7a26;
    box-shadow: 0 5px 15px rgba(255,122,38,0.4);
    transform: scale(1.03);
}

.yn-chart__result .p-check-btn:last-of-type a {
    display: inline-block;
    margin-top: 0.8em;
    font-size: 0.9em;
    color: #0a8bce !important;
    text-decoration: underline;
}


/* ==========================================
   10. WiMAXチャート専用 (#wimax-chart)
========================================== */
#wimax-chart .step,
#wimax-chart .result { display: none!important; }
#wimax-chart .is-show,
#wimax-chart .step[data-step="1"] { display: block!important; }


/* ==========================================
   11. カスタマイザー追加CSS（新規パーツ）
========================================== */
/* ウィジェットタイトル */
.c-widget__title {
    font-size: 20px;
}
/* キャッチフレーズ */
.l-header__inner .c-catchphrase {
    font-weight: bold;
    line-height: 1.8;
}
/* フレーム */
.-frame-on .l-mainContent,
.-frame-on-sidebar #sidebar .c-widget {
    border-radius: 15px;
}
/* =========================
   更新ポストリスト 全体
========================= */
.updated-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.updated-post {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #aaaaaa;
    flex-wrap: nowrap;
}

.scrollable-div {
 width: 100%; /* 幅 */
 height: 400px; /* 高さ */
 overflow: auto; /* コンテンツが領域を超える場合、スクロールバーを表示 */
 border-radius:15px;
}

.scrollable-div ul {
 margin:20px;
}

/* =========================
   メタ情報（日付・カテゴリ）
========================= */
.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    white-space: nowrap;
}
.post-date {
    font-size: 14px;
    color: #181a1a;
    text-align: center;
    min-width: 80px;
}
.post-category {
    background-color: #12d7db;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    min-width: 130px;
    padding: 0 5px;
    border-radius: 5px;
    text-decoration: none;
}

/* =========================
   タイトル部分
========================= */
.post-title {
    flex-grow: 1;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    min-width: 0;
}
.post-title a {
    text-decoration: none;
    color: #181a1a;
}
.post-title a:hover {
    color: #39e4e9;
    text-decoration: underline;
}

/* =========================
   PC表示
========================= */
@media (min-width: 769px) {
    .updated-post {
        flex-wrap: nowrap;
    }
    .post-title {
        line-height: 1.5;
    }
}

/* =========================
   スマホ表示（最小パッチ）
========================= */
@media (max-width: 768px) {
    .updated-post {
        flex-wrap: wrap;              /* 2行構成に */
        gap: 8px;                     /* 間隔を少し狭める */
        align-items: flex-start;      /* 上揃え */
    }
    .post-meta {
        min-width: auto;              /* 220px固定を解除 */
        white-space: nowrap;          /* 日付＋カテゴリは1行に収める */
    }
    .post-date {
        font-size: 12px;
        min-width: 60px;
        color: #888;
    }
    .post-category {
        min-width: auto;              /* 120px固定を解除 */
    }
    .post-title {
        flex: 1 1 100%;               /* タイトルは2行目で全幅 */
        min-width: 0;
        font-size: 12px;
        color: #333;
        line-height: 1.6;
    }
    .post-title a {
        display: block;
        overflow-wrap: anywhere;      /* 長い単語も折り返す */
        word-break: break-word;
    }
}



/* ==========================================
   12. コンテナ・フッター
========================================== */
.p-container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 4.27vw;
}
@media (min-width: 768px) {
    .p-container { padding: 0 40px; }
}
.l-footer,
.l-footer a {
    color: #fff;
    text-decoration: none;
}
.l-footer {
    background-color: #181a1a;
}
.l-footer__container {
    position: relative;
    padding: clamp(50px, 7.5vw, 90px) 0 45px;
}
@media (min-width: 992px) {
    .l-footer__container {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 54px 50px;
    }
}
@media (min-width: 1200px) {
    .l-footer__container { grid-template-columns: 300px 1fr; gap: 54px 100px; }
}
/* ナビゲーション等の細かいレイアウトはそのまま引き継ぎ */

/* ——————————————————————————
   Footer：ロゴ・会社情報
—————————————————————————— */
.l-footer__info .info__logo {
    display: block;
    margin-bottom: clamp(32px, 46 / 1200 * 100vw, 46px);
}
.l-footer__info .info__branch {
    font-size: 12px;
    letter-spacing: 0.02em;
}
.l-footer__info .info__branch li {
    margin-bottom: clamp(16px, 23 / 1200 * 100vw, 23px);
}
.l-footer__info .info__branch .office {
    color: #11d7db;
}

/* ——————————————————————————
   Footer：ナビゲーション
—————————————————————————— */
.l-footer__nav .nav__block {
    border-bottom: 1px solid #11d7db;
    padding: clamp(10px, 16 / 1200 * 100vw, 16px) 0;
}
@media (min-width: 992px) {
    .l-footer__nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: clamp(20px, 50 / 1200 * 100vw, 50px);
    }
    .l-footer__nav .nav__block {
        border-bottom: none;
        margin-bottom: 39px;
        padding: 0;
    }
    .l-footer__nav .nav__block .head {
        cursor: default;
    }
    .l-footer__nav .nav__block > ul {
        padding-left: 0;
    }
}
@media (max-width: 992px) {
    .l-footer__nav {
        display: block;
    }
}
.l-footer__nav .nav__block .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #11d7db;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
}
.l-footer__nav .nav__block > ul {
    padding-left: 0;
    padding-top: clamp(10px, 16 / 1200 * 100vw, 16px);
}

/* フッターナビのリンクパディングを調整して見出しと揃える */
.l-footer__nav a {
    padding-left: 0 !important;
    padding-right: 0.75em;
}

/* ==========================================
   Twitter埋め込み最適化
========================================== */
/* Twitter埋め込みのプレースホルダー */
blockquote.twitter-tweet {
    position: relative;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 2em 0;
    border-left: 4px solid #1da1f2;
}

/* 読み込み中のアニメーション */
blockquote.twitter-tweet:not(.twitter-tweet-loaded)::before {
    content: "Twitter読み込み中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    z-index: 1;
}

blockquote.twitter-tweet:not(.twitter-tweet-loaded)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #1da1f2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: twitter-loading 1s linear infinite;
    margin-top: 20px;
    z-index: 1;
}

@keyframes twitter-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Twitter埋め込みが読み込まれた後のスタイル */
blockquote.twitter-tweet.twitter-tweet-loaded {
    background: transparent;
    padding: 0;
    min-height: auto;
}

blockquote.twitter-tweet.twitter-tweet-loaded::before,
blockquote.twitter-tweet.twitter-tweet-loaded::after {
    display: none;
}

/* ==========================================
   テーブルスタイル改善
========================================== */
/* 一般的なテーブルの見やすさ向上
   ═══════════════════════════════════════════════════════════════════════════
   【設計モデル】2026-08-21 に全面的に見直した。記事側の設定（SWELLのブロック設定）で
   **見た目が分岐しない**ように、次の1モデルへ統一している。1か所だけ直すと必ず崩れる。

     ・レイアウト  : border-collapse: separate ＋ border-spacing: 0（全テーブル）
     ・外枠        : **table の border（4辺）だけ**が描く ＋ border-radius: 8px
                     → 1要素が描くので**四隅すべてで線が曲がる**
     ・内側の罫線  : セルの**上と左だけ**。1行目の上と1列目の左は消す（外枠と重ねないため）
     ・ヘッダー    : thead th は罫線なし（色付き背景が境界を作る）
     ・四隅のセル  : 背景が角丸からはみ出さないよう border-radius 7px（＝8px − border 1px）
     ・影          : 付けない

   【なぜこの設計か（実測。同じ道を辿らないために残す）】
   ・table に overflow:hidden を付けると**外周のセルのボーダーがクリップされて消える**。
     6pxの色付きボーダーでも右端・左端・下端は1pxも描かれず、visible にした瞬間に全部出た。
     → **overflow は設定しない。** 角丸のクリップ目的で置かれていたのが「右端の線が消える」の元凶。
   ・角丸を「四隅のセル」だけで作ると**線は角で曲がらない**（セルの背景だけが丸くなる）。
     線を曲げるには枠を1要素（table）の border にする必要がある。
   ・ラッパーの figure に枠や角丸を付ける方式は使えない。figure は table の margin を内側に
     含むため上端がテーブルより24px上にあり、白い余白を丸めるだけになる。
     figure に overflow:hidden を足して詰める案も駄目（SPの横スクロールが死ぬ）。

   【SWELL 側の前提（2026-08-21 に blocks.css / main.css を棚卸し）】
   SWELL はブロック設定ごとに別の流儀を当ててくる。本番での使用実数（公開記事）:
     swlScrollable（スクロール可）267 / swlIsFixedLeft（1列目固定）182 /
     is-style-double 37 / is-style-stripes 7 / swlIsFixedTop（見出し行固定）0
     ・[data-table-scrollable] table                        → border-collapse: separate
     ・[data-table-scrollable]:not(.is-style-double) table   → 右下の border を table に
     ・[data-table-scrollable]:not(.is-style-double) td,th   → 右と下を none
     ・[data-cell1-fixed] table                             → separate（sticky のため）
     ・.is-style-double table                               → border 1px ＋ spacing 2px
     ・.is-style-stripes tbody td,th                        → border: none **!important**
     ・.is-style-simple > table                             → border-right: none **!important**（使用0）
   ⚠ 下のルールは特異度 (0,2,x) で書き、SWELL の (0,2,1) と**同点なら読み込み順で勝つ**
     （SWELL は all.min.css で先に読まれ、style.css が後）。
   ⚠ stripes / simple は SWELL が !important を使うので**こちらも !important で揃える**。
     外すとその2スタイルだけ見た目が違う＝「あの表だけ違う」状態に戻る。
   ⚠ 罫線の色を変えるときは **①外枠②内側③ヘッダー**の3か所を同時に変える。
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ① レイアウト＋外枠（枠を描くのは table だけ） ───────────────────── */
.post_content table,
.entry-content table,
.content table,
.cta table,
.post_content .wp-block-table > table,
.post_content .wp-block-table__wrapper > table {
    width: 100%;
    /* ⚠ collapse にしてはいけない（角丸が線に効かない・外周がクリップされる） */
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    background: #fff;
    /* !important は .is-style-simple の border-right:none!important 対策 */
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px;
    /* ⚠ overflow は書かない（上の設計メモ参照）／影も付けない */
}

/* ── ② ヘッダー（色付き背景が境界を作るので罫線は持たせない） ───────────── */
.post_content table thead th,
.entry-content table thead th,
.content table thead th,
.cta table thead th,
.post_content .wp-block-table > table thead th,
.post_content .wp-block-table__wrapper > table thead th {
    background: #007589;   /* 2026-11-30 アクセシビリティ：#00bcd1 の地の白文字は 2.30。濃い青緑で 5.38 */
    color: #fff;
    padding: 16px 20px;
    border: 0 !important;
}

/* ── ③ 内側の罫線は「セルの上と左」だけ（td と th 共通） ─────────────── */
.post_content table td,
.post_content table th,
.entry-content table td,
.entry-content table th,
.content table td,
.content table th,
.cta table td,
.cta table th,
.post_content .wp-block-table > table td,
.post_content .wp-block-table > table th,
.post_content .wp-block-table__wrapper > table td,
.post_content .wp-block-table__wrapper > table th {
    border: 0 !important;
    border-top: 1px solid #e8e8e8 !important;
    border-left: 1px solid #e8e8e8 !important;
}

/* ── ④ 外枠と重ならないよう、1列目の左と1行目の上を消す ────────────────── */
.post_content table tr > *:first-child,
.entry-content table tr > *:first-child,
.content table tr > *:first-child,
.cta table tr > *:first-child,
.post_content .wp-block-table > table tr > *:first-child {
    border-left: 0 !important;
}
.post_content table > thead > tr:first-child > *,
.entry-content table > thead > tr:first-child > *,
.content table > thead > tr:first-child > *,
.post_content table:not(:has(thead)) > tbody > tr:first-child > *,
.entry-content table:not(:has(thead)) > tbody > tr:first-child > *,
.content table:not(:has(thead)) > tbody > tr:first-child > *,
.post_content .wp-block-table > table > thead > tr:first-child > *,
.post_content .wp-block-table > table:not(:has(thead)) > tbody > tr:first-child > * {
    border-top: 0 !important;
}

/* ── ⑤ セルの見た目（背景・余白は td だけ。th の背景は SWELL/記事側の指定を尊重） ── */
.post_content table td,
.entry-content table td,
.content table td {
    background: #fff;
    color: #333;
    padding: 16px 20px;
    line-height: 1.5;
}

/* ── ⑥ 四隅のセルを丸める（背景が角丸の外へはみ出さないように） ──────────
   7px = 外枠の角丸 8px − border 1px。⚠ ①の border-radius を変えたらここも変える。 */
.post_content table > thead > tr:first-child > *:first-child,
.post_content table:not(:has(thead)) > tbody > tr:first-child > *:first-child,
.post_content .wp-block-table > table > thead > tr:first-child > *:first-child {
    border-top-left-radius: 7px;
}
.post_content table > thead > tr:first-child > *:last-child,
.post_content table:not(:has(thead)) > tbody > tr:first-child > *:last-child,
.post_content .wp-block-table > table > thead > tr:first-child > *:last-child {
    border-top-right-radius: 7px;
}
.post_content table > tbody > tr:last-child > *:first-child,
.post_content .wp-block-table > table > tbody > tr:last-child > *:first-child {
    border-bottom-left-radius: 7px;
}
.post_content table > tbody > tr:last-child > *:last-child,
.post_content .wp-block-table > table > tbody > tr:last-child > *:last-child {
    border-bottom-right-radius: 7px;
}
/* 1列目固定のセルは背景を ::before で塗る（SWELL の実装）のでそちらも丸める */
.post_content table > tbody > tr:last-child > *:first-child::before,
.post_content .wp-block-table > table > tbody > tr:last-child > *:first-child::before {
    border-bottom-left-radius: 7px;
}

/* ── ⑦ ホバー・ストライプ（td のみ。th の背景は触らない） ─────────────── */
.post_content table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.content table tbody tr:hover td {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}
.post_content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td,
.content table tbody tr:nth-child(even) td {
    background: #fafafa;
}

/* ── ⑧ SP ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .post_content table,
    .entry-content table,
    .content table,
    .post_content .wp-block-table > table {
        font-size: 12px;
        margin: 1.5em 0;
    }
    .post_content table thead th,
    .post_content table td,
    .entry-content table thead th,
    .entry-content table td,
    .content table thead th,
    .content table td {
        padding: 12px 16px;
    }
}

/* ——————————————————————————
   Footer：ナビリスト（リンク一覧）
—————————————————————————— */
@media (min-width: 992px) {
    .l-footer .nav-list {
        display: block;
    }
}
.l-footer .nav-list > li {
    margin-bottom: 8px;
}
.l-footer .nav-list__item {
    display: flex;
    align-items: center;
    column-gap: 16px;
    font-size: clamp(12px, 14 / 1200 * 100vw, 14px);
    letter-spacing: 0.02em;
}
.l-footer .nav-list__item.arrow::after {
    content: "→";
    display: inline-block;
    font-size: 12px;
    margin-left: 4px;
}

/* ——————————————————————————
   Footer：SNSエリア
—————————————————————————— */
.l-footer__sns {
    margin-top: 32px;
}
@media (min-width: 992px) {
    .l-footer__sns .sns__inner {
        justify-content: flex-end;
    }
}
.l-footer__sns .sns__inner {
    display: flex;
    align-items: center;
    column-gap: 24px;
}
.l-footer__sns .sns__item {
    font-size: 0;
}
.l-footer__sns .sns__item a {
    display: block;
}

/* ——————————————————————————
   Footer：プライバシーマーク・著作権
—————————————————————————— */
.l-footer__privacymark {
    position: absolute;
    bottom: 45px;
    right: 0;
    width: clamp(70px, 90 / 1200 * 100vw, 90px);
    height: auto;
}
@media (min-width: 992px) {
    .l-footer__privacymark {
        position: static;
    }
    .l-footer__copyright {
        align-self: end;
        margin-top: 0;
        order: 4;
    }
}
.l-footer__copyright {
    margin-top: 32px;
    font-size: 12px;
    color: #908f8f;
    letter-spacing: 0.02em;
}

/* ——————————————————————————
   Footer：ボトムナビ（追加エリア）
—————————————————————————— */
@media (min-width: 992px) {
    .l-footer__bottomnav {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        column-gap: 30px;
        margin-top: 0;
        order: 5;
    }
}

/* 各フッターのリストブロックの縦線を削除する */
.l-footer__nav .nav__block {
  border-right: none !important;
  border-left: none !important;
}

/* リスト内にも縦線があればこちらもリセット */
.l-footer .nav-list,
.l-footer .nav-list > li,
.l-footer .nav-list__item {
  border-left: none !important;
  border-right: none !important;
}

/* フッターを画面幅にする */
.l-footer {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-bottom: 0 !important;
}

/* .l-contentの下マージンを削除 */
.l-content {
    margin-bottom: 0 !important;
}

/* .l-content の左右パディングを削除 */
.l-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================
   目次デザイン（シンプル版）
========================================== */
.p-toc {
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1.25em !important;
    /* 本文と同じ幅にそろえる（SWELL既定の最大幅800px・PCの幅92%をやめる・2026-10-19） */
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
}

.p-toc__ttl {
    border-bottom: none !important;
    margin-bottom: 1em;
}

/* 目次の各種スタイルのボーダーを削除 */
.p-toc.-simple {
    border: none !important;
}

.p-toc.-border {
    border-bottom: none !important;
    border-top: none !important;
}

.p-toc.-double {
    border-bottom: none !important;
    border-top: none !important;
    background: #f5f5f5 !important;
}

.p-toc.-capbox {
    border: none !important;
}

.p-toc.-capbox .p-toc__ttl {
    background-color: #f5f5f5 !important;
    color: inherit !important;
}


/* ==========================================
   SWELLテーブル：1列目固定 互換調整（最小上書き）
   - 既存の共通スタイルは維持
   - 固定時のみ sticky を阻害しないようにする
========================================== */
.wp-block-table[data-cell1-fixed] table {
    border-collapse: separate !important; /* 子テーマの collapse を無効化 */
    overflow: visible !important;         /* 子テーマの overflow: hidden を無効化 */
}

/* 1列目の背景透け防止（テーマ変数に追従） */
.wp-block-table[data-cell1-fixed] tbody tr > :first-child,
.wp-block-table[data-cell1-fixed] tfoot tr > :first-child,
.wp-block-table[data-cell1-fixed].is-style-simple thead tr > :first-child {
    background: var(--color_content_bg, #fff) !important;
}

/* ==========================================
   Webフォント（LINE Seed JP）の経緯 — 撤去（2026-08-21）→ 再導入（2026-09-10）

   【2026-08-21 撤去】
   1. 以前は body, html に !important でサイト全体へ当てていた。1記事の表示に
      フォント本体88ファイル・計1,335KB（ページ総転送量の53%）を取得していた。
   2. 見出し・ロゴのみに縮小 → 本文のちらつきは消えたが、見出し（特にH1）が残った。
   3. font-display を swap → optional に変更 → 差し替えは止まったが、optional は仕様上
      **最初の100msは文字を非表示にして待つ**ため、キャッシュが無いと
      H1が一瞬空白になってから出る。ブラウザ実測で確認（FCP 264ms / フォント到着 236ms）。
   4. 仕様上これを消す手段が無いため、**Webフォント自体をやめた**。

   【2026-09-10 再導入】ユーザー指示「フォントを LINE Seed JP にして」
   ・**サイト全体（本文含む）に当て直した**（下の書体ブロック参照）。
   ・font-display は **optional**。当初 swap で出したが「ちらつきが気になる」との指摘を受け、
     同日 optional に切り替えた。optional は 100ms 以内に間に合わなければそのページ表示では
     適用しない＝**字形の切り替わりが起きない**。代わりに初回訪問では端末フォントのままになる
     （フォントはバックグラウンドで取得・キャッシュされ、2回目以降の閲覧では適用される）。
   ・swap では字形の切り替わりを消せないことを実測で確認。preload で先読みして FCP 前に
     終わらせる案も、必要サブセットが1記事で92本（見出しだけでも56本）あり不成立だった。
   ・転送量の実測（/iphone_18/）は **95ファイル・1,501KB**。8/21 に全廃を決めた根拠
     （1,335KB）を上回る。optional でも取得はするので変わらない。**承知のうえで運用中。**

   ⚠ 読み込みは functions.php の 'line-seed-jp-font' → child_style の依存配列。
     **enqueue と依存はセット**（片方だけ触ると child_style ごと出力されなくなる）。
     即時停止は `wp option update acm_webfont off` ＋ `wp c3 flush all`。
   ⚠ このファイルの `"Poiret One"`（.header_magazine）と `"Kdam Thmor Pro"`
     （.p-mainVisual__slideTitle）は**読み込みが無く既に効いていない**指定。
     必要なら別途 enqueue するか、指定を消す。
========================================== */


/* ==========================================
   インタビュー企業紹介（capbox 内 media-text）SP最適化
   SPで縦積み（is-stacked-on-mobile）になった際、人物プロフィール写真が
   画面幅いっぱいに拡大される問題を解消。写真を小さく中央寄せ、本文はフル幅左寄せのまま。
========================================== */
@media (max-width: 600px) {
    .cap_box_content .wp-block-media-text__media {
        margin-bottom: .6em !important;
        text-align: center !important;
    }
    .cap_box_content .wp-block-media-text__media img {
        max-width: 120px;
        height: auto;
        border-radius: 6px;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================
   書体：LINE Seed JP（フォールバックは端末の既定ゴシック）2026-09-10
   ==========================================
   スタックは **"LINE Seed JP", sans-serif** の2語だけ。

   ⚠ **BIZ UD 系（UDPGothic / UDGothic）を挟まないこと**（2026-09-10 ユーザー指示
     「そもそもこのようなフォント挟む必要ない」）。
     経緯: 同日、字幅を LINE Seed JP に合わせる目的で代替1番手を BIZ UDGothic にしたところ、
     **BIZ UDGothic には Bold が無く、合成太字も作られなかった**
     （ブラウザ実測: font-weight 400 と 700 がどちらも 1507.2px。BIZ UDPGothic は 1566.2→1584.2）。
     結果、初回表示で**見出しと強調がすべて細字**になった（指摘「1回目表示が細くなる」）。
     BIZ UDPGothic は太字が効くが、①約物「、。「」（）」が全角の約半分に詰まる
     ②そもそも挟む必要がない、という判断で BIZ 系ごと撤去した。
   ・sans-serif は各OSの既定ゴシックに解決される（Windows / Mac / Android いずれも Bold を持つ）ので、
     **「太字が出ない」類の事故が構造的に起きない**。書体の指定を増やすほど、
     端末ごとに Bold の有無や字幅が変わって事故る、というのが今日の教訓。
   ・font-display は optional なので、**初回訪問はこの sans-serif で描かれ、2回目以降の閲覧で
     LINE Seed JP になる**（ページ表示中に切り替わることはない）。
   ・各面の個別CSSも同じ2語に揃えてある: custom-home-v2.css / review.css / shindan.css /
     data-library.css / acm-survey.css / widget.css / allmaga-reviews/frontend.css /
     page-review-embed.php
   ⚠ 書体を変えるときは上の全ファイルを同時に変える。
   ⚠ `!important` は SWELL のインライン custom property 出力に負けないため。外すと端末次第で
     SWELL 既定に戻る。
========================================== */
:root {
    --acm-font: "LINE Seed JP", sans-serif;
    --swl-font_family: var(--acm-font);
}
html,
body {
    font-family: var(--acm-font) !important;
}
input,
textarea,
select,
button {
    font-family: inherit;
}

/* ==========================================================================
   記事本文のタイポグラフィ（2026-08-27）
   ユーザー指示「行間と文字間をもう少し狭めて」。

   変更前の実測（SP 390px / /iphone_18/）:
     letter-spacing  0.351px = .024em（SWELL customizer の site_letter_space = .025em から継承）
     line-height     26.676 / 14.82 = 1.80（SWELL 既定）
     font-size       14.82px（post_font_size_sp = 3.8vw）、書体 BIZ UDPGothic

   ※ .025em は和文としてはむしろ詰まっている側（目安 .02〜.06em）。
     「広い」と感じる主因は① BIZ UDPGothic（UD書体は字面と字送りが広め）
     ② 行間 1.80。よって行間を主、字間を従で詰めている。

   ⚠ 対象は .post_content の中だけ。ヘッダー・TOP・フッター等の字間は
     customizer の site_letter_space（.025em）のままにしてある
     （全体を一括で変えると影響範囲が読めないため）。
   ⚠ 戻すときはこのブロックごと削除する。

   【2026-08-28 追記】.01em は詰めすぎだった（ユーザー指摘「文字間が少し狭すぎる」）。
     .025em（既定）→ .01em → **.018em** に着地。16px 換算で 0.4px → 0.16px → 0.288px。
     行間 1.7 は据え置き（狭いと言われたのは字間だけ）。
     これ以上広げるなら .02em、詰めるなら .014em が次の刻み。
   ========================================================================== */
.post_content {
    line-height: 1.7;
    letter-spacing: 0.018em;
}

/* ==========================================================================
   PCだけページ全体を拡大（2026-09-30 ユーザー指示「全体的に倍率を上げたい」→120%→「115%にして」）
   ・文字だけでなく余白・画像・ボタンも同じ割合で大きくする（ブラウザの拡大表示と同じ効き方）
   ・画面幅の判定は拡大前の幅で行われ、実際に使える幅は「画面幅÷倍率」に縮む。
     ヘッダーは使える幅1200px以上を前提にした作りなので、使える幅が1200pxを下回らない段階で切り替える
       1380px以上 → 115%（使える幅1200px以上）
       1320〜1379px → 110%（同1200px以上）
       1319px以下（スマホ・タブレット・小さいノートPC）→ 等倍のまま
   ・戻すときはこのブロックごと削除する
   ========================================================================== */
/* 2026-10-24 ユーザー指示「今かけている拡大率は100%に全部戻す」で等倍に戻した（上の拡大の指定を外した）。当時の値：
   @media (min-width: 1320px) { html { zoom: 1.1; } }  @media (min-width: 1380px) { html { zoom: 1.15; } } */

/* 2026-10-26 見出しの横の筆記体の英字（Pick up・New・From the magazine・Editorial など）を全ページで出さない（ユーザー指示「見出し横の筆記体の文字いらない。各ページも」）。
   テンプレートは触らずにここで隠す。戻すときはこのブロックを消す。残すもの：時計の曜日（.acmm-clock-day）・フッターの言葉（.acmm-corporate-script）・章番号と引用符 */
.acmm-script:not(.acmm-corporate-script), .acme-script, .acm-profile-script, .acma-en, .acm-sec__script, .acmev-script, .acmrb-script, .acmcd-script { display:none !important; }

/* 2026-11-30 アクセシビリティ：文字の色の濃さ（WCAG 2.1 AA。普通の文字は背景との差 4.5 以上）
   メインの水色 #00bcd1 は白との差が 2.30 で、文字には使えない。水色は飾り・線・帯の背景に残し、文字は濃い青緑 #007589（白地で 5.38）にする。
   - リンクと赤の強調は、テーマの設定の色を本文の範囲（.l-content）だけで上書き。フッターは暗い地に明るいリンクなので対象外
   - 囲み枠（cap_box）の見出し：水色の帯の上の白文字（2.30）は、帯を濃い青緑にして白文字のまま（5.38）。枠の線は水色のまま。帯が無い型（intext・onborder_ttl）は文字を濃い青緑に
   戻すときはこのブロックを消す */
.l-content { --color_link: #007589; --color_deep01: #c62828; --wp--preset--color--swl-deep-01: #c62828; --color_main_dark: #007589; --color_main: #007589; --color_htag: #007589; }
.cap_box { --capbox-color: #007589; }   /* 帯・枠線・チェックを同じ色にそろえる（山田さんの選択。帯だけ濃いとちぐはぐに見えた） */
[data-type="type2"] .p-blogCard__caption { background-color: #007589; }
.cap_box .cap_box_ttl { background-color: #007589; }
.cap_box.is-style-intext > .cap_box_ttl,
.cap_box.is-style-onborder_ttl > .cap_box_ttl { color: #007589; }
.c-balloon__iconName { font-size: 12px; }
