/*
Theme Name: オリパ選びガイド
Template: swell
Description: toyama-kanko.jp（オリパ選びガイド）のSWELL子テーマ。アリエル本体・郡山院メディアの記事構成と部品を、アリエル本体と同じ配色（ティール・緑CTA・ピンク／クリームの比較表）で再現したもの。
Version: 2.0.2
*/

:root {
  --og-navy: #00877f;
  --og-navy2: #04384c;
  --og-gold: #c2a46a;
  --og-green: #27ae60;
  --og-green-d: #1e8c4d;
  --og-pale: #f3f6fb;
  --og-cream: #fdf9ee;
  --og-line: #e3e3e3;
}

/* ===== ヘッダー（アリエル同様：上帯＋ロゴ＋グロナビ） ===== */
.l-header__bar { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.c-headLogo__link, .c-headLogo { color: var(--og-navy); font-weight: 700; }
.c-gnav > .menu-item > a { font-weight: 600; font-size: 14px; }
.c-gnav > .menu-item > a .ttl { position: relative; }
.c-gnav > .menu-item + .menu-item > a::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; border-left: 1px solid #d5dbe6; }

/* ===== 本文幅（アリエル：中央900px） ===== */
@media (min-width: 960px) {
  .single .l-mainContent__inner, .page .l-mainContent__inner { max-width: 900px; margin-left: auto; margin-right: auto; }
}

/* ===== トップ／一覧 ===== */
.og-listhead { font-size: 1.5em; font-weight: 700; color: #333; margin: 0 0 .8em; padding: 0 0 .4em; border-bottom: 2px solid var(--og-navy); }
.og-catnav { margin: 0 0 2em; }
.og-catnav__ttl { background: var(--og-navy); color: #fff; font-weight: 700; text-align: center; padding: .6em 1em; margin: 0 0 1em; border-top: 3px double #fff; border-bottom: 3px double #fff; outline: 2px solid var(--og-navy); }
.og-catnav__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.og-catnav__list a { display: block; text-align: center; padding: .8em .6em; border: 1px solid #cfd7e6; border-radius: 4px; color: var(--og-navy); font-weight: 600; background: #fff; text-decoration: none; }
.og-catnav__list a:hover { background: var(--og-pale); }

/* ===== 見出し（アリエル実表示：H2＝色地に白・内側1pxの白枠、H3＝下線4px） ===== */
.post_content > h2 { position: relative; background: var(--og-navy) !important; color: #fff !important; font-size: 24px; font-weight: 700; padding: 16px 20px !important; border: none !important; line-height: 1.5; }
.post_content > h2::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.85); pointer-events: none; display: block; background: none; width: auto; height: auto; }
.post_content > h2::after { display: none; }
.post_content > h3 { font-size: 21px; font-weight: 700; color: #333; padding: 4px 8px !important; border: none; border-bottom: 4px solid var(--og-navy) !important; background: none; }
.post_content > h3::before, .post_content > h3::after { display: none !important; }
.post_content > h4 { background: var(--og-navy2); color: #fff; font-size: 18px; padding: 8px 14px; border: none; }
.post_content > h4::before { display: none; }
@media (max-width: 599px) { .post_content > h2 { font-size: 20px; } .post_content > h3 { font-size: 18px; } }

/* ===== 冒頭の吹き出し（アリエル：#f9f7d2・角丸8px・アイコンなし） ===== */
.og-voice { display: flex; flex-direction: column; gap: 10px; margin: 0 0 1.6em; }
.og-voice p { position: relative; background: #f9f7d2; border-radius: 8px; padding: 14px 16px; margin: 0; max-width: 560px; font-size: 15px; }
.og-voice p:nth-child(even) { align-self: flex-end; }

/* ===== 結論ボックス（緑2px枠＋チェック） ===== */
.og-conclusion { position: relative; border: 2px solid var(--og-green); border-radius: 4px; padding: 36px 24px 20px; margin: 2em 0; background: #fff; }
.og-conclusion__ttl { position: absolute; top: -14px; left: 16px; background: var(--og-green); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 20px; }
.og-conclusion ul { margin: 0; padding-left: 1.2em; }
.og-conclusion li { margin: .3em 0; }
.og-mark { background: linear-gradient(transparent 60%, #fcf69f 60%); font-weight: 700; }

/* ===== ポイント枠（橙の細枠・枠線上タイトル） ===== */
.og-point { position: relative; border: 1px solid #f59b5f; border-radius: 4px; padding: 26px 20px 16px; margin: 2em 0 1.6em; }
.og-point__ttl { position: absolute; top: -.9em; left: 12px; background: #fff; color: #914b20; font-weight: 700; font-size: 14px; padding: 0 8px; }
.og-point ul { margin: 0; padding-left: 1.2em; }

/* ===== 補足・注意（1文） ===== */
.og-note { background: #fff5f0; border-left: 4px solid #ffa537; padding: 12px 16px; margin: 1.4em 0; font-size: 14px; }
.og-info { background: #f3f8fd; border-left: 4px solid #5fb9f5; padding: 12px 16px; margin: 1.4em 0; font-size: 14px; }
.og-src { text-align: center; font-size: 12px; color: #777; margin: -.6em 0 1.6em; }
.og-src a { color: #777; }

/* ===== 比較表（項目列を固定・1位列を強調・横スクロール） ===== */
.og-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.og-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.og-table th, .og-table td { border: 1px solid var(--og-line); padding: 10px 8px; text-align: center; vertical-align: middle; background: #fff; }
.og-table thead th { background: var(--og-navy); color: #fff; font-weight: 700; }
.og-table tbody th { background: var(--og-pale); position: sticky; left: 0; z-index: 1; font-weight: 700; color: #333; min-width: 92px; }
.og-table .is-top { background: var(--og-cream); }
.og-table thead th.is-top { background: var(--og-gold); color: #fff; }
.og-table .og-tbtn { display: inline-block; background: #3fae72; color: #fff !important; border-radius: 40px; padding: 6px 14px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.og-table.is-narrow table { min-width: 0; }
.og-table caption { caption-side: bottom; font-size: 12px; color: #777; padding-top: 6px; text-align: left; }
.og-rank { display: inline-block; min-width: 2.2em; font-weight: 700; color: var(--og-gold); }

/* ===== CTA（マイクロコピー＋緑のピル） ===== */
.og-cta { text-align: center; margin: 1.8em 0; }
.og-cta__micro { display: inline-block; font-weight: 700; font-size: 14px; margin: 0 0 6px; background: linear-gradient(transparent 60%, #fcf69f 60%); }
.og-cta__micro::before { content: "＼ "; } .og-cta__micro::after { content: " ／"; }
.og-cta__btn { display: block; max-width: 360px; margin: 0 auto; background: var(--og-green); color: #fff !important; font-weight: 700; font-size: 16px; padding: 16px 20px; border-radius: 80px; box-shadow: 0 4px 0 var(--og-green-d); text-decoration: none !important; transition: transform .1s; }
.og-cta__btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--og-green-d); }
.og-cta__btn::after { content: " ›"; }
.og-cta__note { font-size: 12px; color: #777; margin: 6px 0 0; }

/* ===== オリパサイトカード（アリエルの医院カードの置き換え） ===== */
.og-card { border: 1px solid #d5dbe6; border-radius: 6px; margin: 2.4em 0; overflow: hidden; background: #fff; }
.og-card__head { display: flex; align-items: center; gap: 12px; background: var(--og-navy); color: #fff; padding: 12px 16px; }
.og-card__rank { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--og-gold); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.og-card__name { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0; }
.og-card__name small { display: block; font-size: 13px; font-weight: 500; opacity: .9; }
.og-card__body { padding: 18px 18px 6px; }
.og-card__labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.og-card__labels li { background: #62a0b7; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.og-card__tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.og-card__tags li { background: #e8f1f8; color: var(--og-navy); font-size: 13px; font-weight: 700; text-align: center; padding: 8px 4px; border-radius: 3px; }
.og-card__tags li.is-off { background: #f2f2f2; color: #aaa; text-decoration: line-through; }
@media (max-width: 599px) { .og-card__tags { grid-template-columns: repeat(2, 1fr); } }
.og-card table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 12px; }
.og-card th, .og-card td { border: 1px solid var(--og-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.og-card th { width: 30%; background: var(--og-pale); font-weight: 700; color: #333; }
.og-card__good, .og-card__bad { margin: 0 0 12px; padding: 12px 14px 12px 14px; border-radius: 4px; font-size: 14px; }
.og-card__good { background: #f1f9ee; } .og-card__bad { background: #fff2f0; }
.og-card__good p, .og-card__bad p { font-weight: 700; margin: 0 0 4px; }
.og-card__good ul, .og-card__bad ul { margin: 0; padding-left: 1.3em; }
.og-card__voice { background: #fff8eb; border-radius: 6px; padding: 12px 14px; font-size: 14px; margin: 0 0 12px; }
.og-card__voice p:first-child { font-weight: 700; color: #914b20; margin: 0 0 4px; }

/* ===== 調査・データ表 ===== */
.og-data { margin: 1.4em 0; }
.og-data h4, .og-data__ttl { background: #1f3a5f; color: #fff; padding: 8px 14px; font-size: 16px; margin: 0; }

/* ===== FAQ ===== */
.og-faq { margin: 1.6em 0; }
.og-faq dt { position: relative; font-weight: 700; padding: 12px 12px 12px 48px; border: 1px solid var(--og-line); border-bottom: none; background: var(--og-pale); }
.og-faq dd { position: relative; margin: 0 0 14px; padding: 12px 12px 12px 48px; border: 1px solid var(--og-line); }
.og-faq dt::before, .og-faq dd::before { position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; color: #fff; font-weight: 700; text-align: center; line-height: 26px; border-radius: 3px; }
.og-faq dt::before { content: "Q"; background: #d55656; }
.og-faq dd::before { content: "A"; background: #6599b7; }

/* ===== 目次の配色 ===== */
.p-toc.-double { border-top-color: var(--og-navy); border-bottom-color: var(--og-navy); }

/* ===== PR表記・日付 ===== */
.c-prNotation { font-size: 12px; }

/* タイトル左の日付ブロックは出さない（アリエル同様。更新日はメタ欄に表示） */
.c-postTitle__date { display: none !important; }

/* ===== 記事一覧（トップ・カテゴリー共通） ===== */
.og-posts { list-style: none; margin: 0; padding: 0; }
.og-posts__item { border-bottom: 1px solid #e6e9ef; }
.og-posts__item a { display: flex; gap: 16px; padding: 16px 0; color: #333; text-decoration: none; }
.og-posts__item a:hover .og-posts__ttl { color: var(--og-navy2); text-decoration: underline; }
.og-posts__thumb { flex: none; width: 240px; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: var(--og-pale); }
.og-posts__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-posts__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--og-navy); font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #eef2f8, #dfe6f1); }
.og-posts__cat { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--og-navy); padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; }
.og-posts__ttl { font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; }
.og-posts__date { font-size: 12px; color: #888; }
@media (max-width: 599px) { .og-posts__thumb { width: 120px; } .og-posts__ttl { font-size: 15px; } }
.page .post_content > .og-listhead, .home .og-listhead { margin-top: 0; }
.post_content .og-catnav__list, .post_content ul.og-posts, .post_content .og-card__labels, .post_content .og-card__tags { padding-left: 0 !important; margin-left: 0 !important; }
.post_content .og-catnav__list li, .post_content .og-posts li, .post_content .og-card__labels li, .post_content .og-card__tags li { list-style: none; margin: 0; }
.post_content .og-posts__item::before, .post_content .og-catnav__list li::before, .post_content .og-card__tags li::before, .post_content .og-card__labels li::before { display: none !important; }
@media (max-width: 599px) { .og-catnav__list { grid-template-columns: repeat(2, 1fr); } .og-catnav__list a { font-size: 13px; padding: .7em .4em; } }
/* 列が3つ以下の表は横スクロールさせず、2列の表は本文を左寄せ */
.og-table table:not(:has(tr > *:nth-child(4))) { min-width: 0; }
.og-table table:not(:has(tr > *:nth-child(3))) td { text-align: left; }
@media (max-width: 599px) { .og-table table:not(:has(tr > *:nth-child(4))) { font-size: 13px; } .og-table tbody th { min-width: 72px; } }
/* 列が6つ以上の比較表は1列の幅を確保して横スクロール */
.og-table table:has(tr > *:nth-child(6)) { width: max-content; min-width: 100%; font-size: 13px; }
.og-table table:has(tr > *:nth-child(6)) td, .og-table table:has(tr > *:nth-child(6)) thead th:not(:first-child) { min-width: 150px; max-width: 200px; }
.og-table table:has(tr > *:nth-child(6)) tbody th { min-width: 96px; }
.og-table::after { content: ""; display: block; }
@media (max-width: 599px) { .og-table table:has(tr > *:nth-child(6)) td, .og-table table:has(tr > *:nth-child(6)) thead th:not(:first-child) { min-width: 130px; } }
@media (min-width: 600px) { .og-catnav__list { grid-template-columns: repeat(5, 1fr); } .og-catnav__list a { font-size: 14px; padding: .8em .3em; } }


/* ================================================================
   v2.0：アリエル本体の実表示に合わせた配色・部品（2026-11-29 本人「アリエルと同じ感じに。表の中身も」）
   実測値：H2 #00877f／上帯 #01b1a6／フッター #00c4b8／CTA #27ae60 影 rgba(30,132,73,.71)
   比較表：枠 #e3e3e3・見出し行 白地に青 #1a73c8・項目列 #fff2f0・1列目 #fdf9ee・ボタン #3fae72 影 #2d8a57・強調 #be4e69
   ================================================================ */
.c-headLogo__link, .c-headLogo { color: #00877f; }
.l-header__bar { background: #01b1a6 !important; }
.c-gnav > .menu-item > a { color: #333; }
.c-gnav > .menu-item > a:hover { color: #00877f; }

/* 比較表（アリエルの冒頭比較表と同じ見た目） */
.og-table { border: 1px solid #e3e3e3; border-radius: 4px; background: #fff; }
.og-table table { table-layout: auto; margin: 0; }
.og-table th, .og-table td { border: 1px solid #e3e3e3 !important; padding: .9em .6em; text-align: center; vertical-align: middle; font-size: 15px; line-height: 1.6; font-weight: 700; color: #333; background: #fff; word-break: break-word; }
.og-table thead th { background: #fff !important; color: #1a73c8 !important; font-size: 15px; }
.og-table thead th:first-child { color: #333 !important; position: sticky; left: 0; z-index: 2; }
.og-table thead th a { color: #1a73c8; text-decoration: none; }
.og-table tbody th { background: #fff2f0 !important; color: #333; font-weight: 700; width: 7.5em; position: sticky; left: 0; z-index: 1; }
.og-table thead th.is-top { background: #fdf9ee !important; color: #1a73c8 !important; }
.og-table td.is-top, .og-table .is-top { background: #fdf9ee !important; }
.og-table td img { display: block; width: 100%; max-width: 120px; height: auto; max-height: 64px; object-fit: contain; margin: 0 auto; }
.og-table .og-tbtn { display: inline-block; min-width: 8em; padding: .7em 1.1em; border-radius: 999px; background: #3fae72; color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.3; box-shadow: 0 3px 0 #2d8a57; text-decoration: none; white-space: nowrap; }
.og-table .og-tbtn:hover { background: #36a068; }
.og-table caption { font-weight: 400; }
.og-em { color: #be4e69; font-size: 1.25em; font-weight: 700; }
.og-em small, .og-em .u { font-size: .75em; }
.og-sub { display: block; font-size: 12px; font-weight: 400; color: #666; line-height: 1.5; }
.og-mk { background: linear-gradient(transparent 64%, #fcf69f 0); }
.og-ok, .og-good, .og-ng, .og-tri { display: block; font-size: 22px; line-height: 1.2; font-weight: 700; }
.og-ok { color: #e44141; } .og-good { color: #e44141; } .og-tri { color: #e0a526; } .og-ng { color: #3d79d5; }
.og-table table:has(tr > *:nth-child(6)) td, .og-table table:has(tr > *:nth-child(6)) thead th:not(:first-child) { min-width: 140px; max-width: 180px; }
.og-table table:has(tr > *:nth-child(6)) { font-size: 14px; }
@media (max-width: 599px) {
  .og-table th, .og-table td { font-size: 13px; padding: .7em .4em; }
  .og-table tbody th { width: 5.5em; }
  .og-table .og-tbtn { min-width: 0; padding: .6em .8em; font-size: 13px; }
  .og-table td img { max-width: 90px; max-height: 48px; }
}
/* 2列の情報表（基本情報など）は項目列ピンク・本文左寄せ・通常の太さ */
.og-table table:not(:has(tr > *:nth-child(3))) td { text-align: left; font-weight: 400; }

/* CTA（アリエルの cta-dlx1i3） */
.og-cta__micro { font-size: 15px; }
.og-cta__micro::before { content: "\\ "; } .og-cta__micro::after { content: " /"; }
.og-cta__btn { background: #27ae60; box-shadow: 0 4px 0 rgba(30,132,73,.71); border-radius: 80px; max-width: 360px; font-size: 16px; padding: 17px 24px; }
.og-cta__btn::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M14 3h7v7M10 14L21 3M21 14v7H3V3h7'/%3E%3C/svg%3E"); }

/* サービスカード（アリエルの医院カード：H3見出し→ラベル→特徴タグ→基本情報表→ポイント→CTA） */
.og-card { border: none; border-radius: 0; background: transparent; overflow: visible; margin: 2.4em 0 1em; }
.og-card__head { background: none; color: #333; padding: 4px 8px; border-bottom: 4px solid #00877f; gap: 10px; }
.og-card__rank { width: 40px; height: 40px; font-size: 17px; background: #c2a46a; }
.og-card__name { font-size: 22px; color: #333; }
.og-card__name small { color: #00877f; font-weight: 700; font-size: 14px; opacity: 1; }
.og-card__body { padding: 16px 0 0; }
.og-card__labels li { background: #62b7ad; border-radius: 2px; }
.og-card__tags li { background: #e9f6f4; color: #00877f; border: 1px solid #bfe3de; }
.og-card__tags li.is-off { background: #f5f5f5; color: #b5b5b5; border-color: #e6e6e6; }
.og-card table th { background: #fff2f0; }
.og-card th, .og-card td { border-color: #e3e3e3; }
.og-card__good { background: #fff; border: 1px solid #f59b5f; position: relative; padding-top: 22px; margin-top: 18px; }
.og-card__good p { position: absolute; top: -.85em; left: 12px; background: #fdfdfd; color: #914b20; padding: 0 8px; font-size: 14px; }
.og-card__bad { background: #fff5f0; border-left: 4px solid #ffa537; border-radius: 0; }

/* 結論ボックス（アリエルの big_icon_check：緑2px枠） */
.og-conclusion { border-color: #86d67c; }
.og-conclusion__ttl { background: #86d67c; }

/* H4（アリエル：アンケート設問の緑帯） */
.post_content > h4 { background: #00877f; }
/* データ表の見出し（アリエル：アンケート表のthead 紺 #04384c） */
.og-data h4, .og-data__ttl { background: #04384c; }

/* カテゴリーナビ帯（アリエル：紺 #04384c） */
.og-catnav__ttl { background: #04384c; outline-color: #04384c; }
.og-catnav__list a { color: #333; border-color: #ccc; }
.og-posts__cat { background: #00877f; }
.og-posts__noimg { color: #00877f; background: linear-gradient(135deg, #e9f6f4, #d3ece8); }
/* カード内の公式サイト画面 */
.og-shot { margin: 0 0 14px; }
.og-shot img { width: 100%; height: auto; border: 1px solid #e3e3e3; border-radius: 4px; display: block; }
.og-shot figcaption { font-size: 12px; color: #777; text-align: center; margin-top: 4px; }
