@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ==========================================================================
   もえぎ内科クリニック カスタマイズCSS
   このファイルはサイト固有のデザインを定義する
   SWELL共通の構造・打ち消しは swell-base.css を参照
   ========================================================================== */

/* ========================================
   Design Tokens
   ======================================== */
:root {
  /* ---- Color: Brand ---- */
  --c-primary: #1f82b0;
  --c-primary-deep: #0f506e;
  --c-primary-ink: #0f506e;
  --c-accent: #20a2dc;

  /* ---- Color: Text ---- */
  --c-heading: #1f2937;
  --c-text: #2f3336;
  --c-text-strong: #1f2937;
  --c-text-sub: #5b6368;
  --c-on-primary: #FFFFFF;
  --c-on-primary-sub: #E3EEE8;
  --c-primary-dark: #0f506e;

  /* ---- Color: Surface ---- */
  --c-bg: #FFFFFF;
  --c-bg-alt: #166e96;
  --c-bg-tint: #e9f6fc;
  --c-bg-tint-strong: #F1F6F3;
  --c-bg-placeholder: #EAF2EE;

  /* ---- Color: Line ---- */
  --c-border: #D5E2DB;
  --c-border-strong: #6E9A86;
  --c-border-badge: #d8dde1;
  --c-primary-light: #86cbeb;

  /* ---- Typography ---- */
  --fs-hero: clamp(1.75rem, 0.6rem + 3vw, 2.625rem);
  --fs-h2: clamp(1.5rem, 0.9rem + 1.6vw, 2rem);
  --fs-h3: 1.625rem;
  --fs-h4: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-button: 0.9375rem;

  --lh-tight: 1.5;
  --lh-base: 1.7;

  /* ---- Layout ---- */
  --gap-card: 18px;
  --sp-section: clamp(3rem, 5vw, 4.5rem);

  /* ---- Shape ---- */
  --bw: 1px;
  --bw-thick: 2px;
  --r-card: 6px;
  --r-btn: 4px;
  --r-badge: 3px;

  /* ---- Shadow ---- */
  --c-shadow: #26303b;
  --shadow-card: 0 6px 18px color-mix(in srgb, var(--c-shadow) 6%, transparent);
  --shadow-cta: 0 4px 12px color-mix(in srgb, var(--c-shadow) 10%, transparent);
}

/* ========================================
   Images
   本文内の画像に角丸を適用
   ======================================== */
.post_content .wp-block-image img {
  border-radius: var(--r-card);
}

/* ========================================
   Card
   白背景 + 枠線 + 角丸（影なし）
   SWELL内部クラス .swell-block-column に依存
   ======================================== */
.card.swell-block-column {
  background-color: var(--c-bg);
  border: var(--bw) solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
}

.card--highlight.swell-block-column {
  background-color: var(--c-bg-tint);
  border-width: var(--bw-thick);
  border-color: var(--c-border-strong);
  border-radius: var(--r-card);
  padding: 16px;
}

.card--light.swell-block-column {
  background-color: var(--c-bg-alt);
  border-radius: var(--r-card);
  padding: 16px;
}

.card--white.swell-block-column {
  background-color: var(--c-bg);
  border-radius: var(--r-card);
  padding: 16px;
}


.post_content .card .card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-primary-ink);
  margin: 0 0 12px;
}


/* ========================================
   Block Title (ラベル型見出し)
   受診案内の「診療時間」「アクセス」、診療案内の「泌尿器科」「内科」等
   左に縦ライン + 文字
   ======================================== */
.post_content .block__title {
  position: relative;
  padding-left: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text-strong);
  margin: 0 0 16px;
}

.post_content .block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 3px;
  background-color: var(--c-primary);
  border-radius: 2px;
}

/* ========================================
   Section Lead (リード型見出し)
   医師紹介・医院についてのキャッチコピー
   ======================================== */
.post_content .section__lead {
  font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.375rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: var(--lh-tight);
  margin: 0 0 24px;
}

/* ========================================
   Buttons
   ======================================== */
.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: var(--fs-button);
  line-height: 1.5;
  font-weight: 700;
  border-radius: var(--r-btn);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary .wp-block-button__link {
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  border: var(--bw) solid var(--c-primary);
}
.btn--primary .wp-block-button__link:hover {
  background-color: var(--c-primary-deep);
  border-color: var(--c-primary-deep);
}

.btn--secondary .wp-block-button__link {
  background-color: var(--c-bg);
  color: var(--c-primary);
  border: var(--bw) solid var(--c-primary);
}
.btn--secondary .wp-block-button__link:hover {
  background-color: var(--c-bg-tint);
}

/* 注意喚起ボタン（重要なお知らせ用） */
.btn--notice .wp-block-button__link {
  background-color: #fff;
  color: #6f5715;
  border: var(--bw) solid #e8dcb8;
}
.btn--notice .wp-block-button__link:hover {
  background-color: #fdf6e3;
  border-color: #d4c9a0;
}

/* ========================================
   Hero Section
   ======================================== */
.hero .hero__eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 16px;
}

.hero .hero_sub{
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 16px;
}

.hero .hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-text);
  margin-bottom: 20px;
}

.hero .hero__text {
  font-size: var(--fs-body);
  color: var(--c-text-sub);
  margin-bottom: 32px;
}

.hero .wp-block-buttons {
  display: flex;
  gap: 16px;
}

/* Hero Responsive */
@media (max-width: 959px) {
  .hero .wp-block-buttons {
    flex-direction: column;
  }
  .hero .wp-block-buttons .wp-block-button {
    width: 100%;
  }
  .hero .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }
}

/* ========================================
   TODAY Section
   ======================================== */
/* カラム数はブロック設定で制御 */

/* ========================================
   HOURS Section - Design
   受診案内（診療時間部分）
   構造的な指定は swell-base.css を参照
   ======================================== */
/* 表自身の罫線で形が成立するためカード装飾は不要 */

/* 共通: セル */
.hours__table th,
.hours__table td {
  padding: 16px 12px;
  font-size: var(--fs-small);
  font-weight: 700;
}

.gp__table th,
.gp__table td {
  padding: 16px 12px;
  font-size: var(--fs-body);
  font-weight: 700;
}

/* 共通: 見出しセル */
.hours__table tbody th,
.gp__table tbody th {
  background-color: var(--c-bg-tint);
  text-align: left;
  padding-left: 20px;
}

/* 文字色: hours__table は td がプライマリカラー */
.hours__table tbody td {
  color: var(--c-primary);
}

/* 文字色: gp__table は th がプライマリカラー */
.gp__table tbody th {
  color: var(--c-primary);
}

/* gp__table の td は通常ウェイト */
.gp__table tbody td {
  font-weight: normal;
}

/* 休診日カードのカード装飾を外す */
.hours__info .hours__closed-days {
  padding: 0;
}

.post_content .hours__info .hours__info-title {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 8px;
}

.hours__note {
  font-size: 13px;
  color: var(--c-text-sub);
  margin-bottom: 24px;
}

.hours__info .wp-block-buttons {
  margin-top: 24px;
}

.hours__info .wp-block-button {
  width: 100%;
}

/* Table Responsive - Design */
@media (max-width: 959px) {
  .hours__table th,
  .hours__table td,
  .gp__table th,
  .gp__table td {
    padding: 10px 4px;
    font-size: 12px;
  }

  .hours__table tbody th,
  .gp__table tbody th {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 480px) {
  .hours__table th,
  .hours__table td,
  .gp__table th,
  .gp__table td {
    padding: 8px 2px;
  }

  .hours__table tbody th,
  .gp__table tbody th {
    padding-left: 6px;
    padding-right: 4px;
  }
}

/* ========================================
   MEDICAL Section
   診療案内
   ======================================== */
/* 背景が淡い青のため枠なしでカード形状が残る */
.medical__cards .card.swell-block-column {
  border: none;
}

.medical__cards .card--center.swell-block-column {
  padding: 32px 24px;
  text-align: center;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--c-bg-tint);
}

.card__icon .swl-inline-icon {
  font-size: 40px;
  color: var(--c-primary);
}

.post_content .card--center .card__title {
  margin: 0 0 8px;
}

.card__note {
  font-size: var(--fs-xs);
  color: var(--c-text-sub);
}

/* カラム数はブロック設定で制御 */

/* ========================================
   FEATURES Section
   ======================================== */
.features__cards .card--center.swell-block-column {
  padding: 32px 20px;
  text-align: center;
}

.card__number {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-primary-deep);
  margin-bottom: 12px;
}

.card__icon--small {
  width: 72px;
  height: 72px;
}

.post_content .features__cards .card__title {
  margin: 0;
  font-size: var(--fs-body);
}

/* カラム数はブロック設定で制御 */

/* ========================================
   DOCTOR Section
   ======================================== */
.doctor__position {
  font-size: var(--fs-small);
  color: var(--c-text-sub);
  margin-bottom: 4px;
}

.post_content .doctor__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px;
}

.doctor__message {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* DOCTOR Responsive */
@media (max-width: 959px) {
  .post_content .doctor__name {
    font-size: 22px;
  }
}

.docter__label {
  display: inline-block;
  background-color:  var(--c-bg-tint);
  border: var(--bw) solid var(--c-border-badge);
  border-radius: var(--r-badge);
  padding: 2px 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-primary-dark);
}

.docter__section {
padding: 0.5rem 0rem;
    margin-bottom: 0.8rem;
    border-bottom: 0.5px solid var(--c-border);
    font-weight: bold;
    font-size: var(--fs-body);
}

/* ========================================
   FIRST VISIT Section
   ======================================== */
.step.swell-block-column {
  padding: 24px 16px;
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  background-color: var(--c-primary);
  color: var(--c-on-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 50%;
}

.post_content .step__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-primary-ink);
  margin: 0 0 6px;
}

.step p:last-child {
  font-size: var(--fs-xs);
  color: var(--c-text-sub);
  margin: 0;
}

/* カラム数はブロック設定で制御 */

/* ========================================
   ACCESS Section
   受診案内（アクセス部分）
   ======================================== */
.access__map iframe {
  border-radius: var(--r-card);
}

/* カード枠を外し、左端に縦ラインを入れる */
.access_info.swell-block-column {
  background-color: transparent;
  border: none;
  border-left: var(--bw-thick) solid var(--c-primary-light);
  border-radius: 0;
  padding: 0 0 0 24px;
  box-shadow: none;
}

.access__clinic-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 24px;
}

.access__details {
  margin-bottom: 24px;
}

.access__details .swell-block-dl__dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.access__details .swell-block-dl__dd {
  font-size: var(--fs-small);
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.6;
  /* ブラウザデフォルトのdd左インデント(40px)をリセット */
  margin-left: 0;
}

.access__details .swell-block-dl__dd:last-child {
  margin-bottom: 0;
}

.access_info .wp-block-button {
  width: 100%;
}

/* ========================================
   CTA Section
   ======================================== */
.post_content .cta__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--c-heading);
  margin: 0 0 32px;
}

.cta_eyebrow{
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}


.cta_description {
 color: var(--c-text); 
}

.btn--cta .wp-block-button__link {
  padding: 16px 32px;
}

.btn--cta-white .wp-block-button__link {
  background-color: var(--c-bg-alt);
  color: var(--c-primary-deep);
  border: var(--bw) solid var(--c-bg);
}

.btn--cta-white .wp-block-button__link:hover {
  background-color: var(--c-bg-alt);
}

/* CTA Responsive */
@media (max-width: 959px) {

  .section--cta .wp-block-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .section--cta .wp-block-button {
    width: 100%;
  }

  .section--cta .wp-block-button__link {
    width: 100%;
  }
}

/* ========================================
   SP Fixed Footer Buttons - Color
   構造的な指定は swell-base.css を参照
   ======================================== */
/* Primary: 背景プライマリー、文字白 */
#fix_bottom_menu .fixbtn--primary {
  background-color: var(--c-primary);
}

#fix_bottom_menu .fixbtn--primary,
#fix_bottom_menu .fixbtn--primary a,
#fix_bottom_menu .fixbtn--primary i {
  color: var(--c-on-primary);
}

#fix_bottom_menu .fixbtn--primary:active {
  filter: brightness(0.9);
}

/* White: 背景白、文字プライマリー */
#fix_bottom_menu .fixbtn--white {
  background-color: #fff;
}

#fix_bottom_menu .fixbtn--white,
#fix_bottom_menu .fixbtn--white a,
#fix_bottom_menu .fixbtn--white i {
  color: var(--c-primary);
}

#fix_bottom_menu .fixbtn--white:active {
  filter: brightness(0.95);
}

/* ========================================
   Hide SWELL Default Elements
   カスタマイザーで非表示にできない要素をCSSで隠す
   SWELL内部クラスへの指定（他に手段がないため）
   ======================================== */
/* パンくずの家アイコン */
.p-breadcrumb .icon-home::before {
  display: none;
}

/* 投稿ページ・アーカイブページの時計アイコン */
.p-articleMetas__times .icon-posted::before,
.p-postList__times .icon-posted::before {
  display: none;
}

/* アーカイブページの英語サブタイトル（– category – 等） */
.c-pageTitle__subTitle {
  display: none;
}

/* 下層固定ページのタイトルを非表示 */
/* bodyクラスは #body_wrap に付いている（SWELL仕様） */
.page:not(.top) .c-pageTitle {
  display: none;
}

/* タイトル非表示後の余白調整 */
.page:not(.top) .post_content {
  margin-top: 0;
}

/* パンくずリストをタイトル帯と統一（背景色・余白） */
.page:not(.top) .p-breadcrumb {
  background-color: var(--c-bg-tint);
  padding-bottom: 0;
}

.page:not(.top) #content {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* タイトル帯（最初のフルワイドブロック）の上余白を消す */
.page:not(.top) .post_content > .swell-block-fullWide:first-child {
  margin-top: 0;
}

/* ========================================
   Category Badge
   カテゴリ表示をバッジ風にする
   SWELL内部クラスへの指定（他に手段がないため）

   【注意】data-cat-id はサイトごとに異なる
   流用時は管理画面でIDを確認し、値を書き換えること
   ======================================== */
/* フォルダアイコン非表示 */
.p-postList__cat.icon-folder::before {
  display: none;
}

/* カテゴリバッジ共通スタイル（トップページ・投稿ページ共通） */
.p-postList__cat,
.c-categoryList__link {
  background-color: #f2f5f7;
  border: var(--bw) solid var(--c-border-badge);
  border-radius: var(--r-badge);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5358;
}

/* 重要カテゴリ - 黄系 */
/* 12 = 重要 */
.p-postList__cat[data-cat-id="12"],
.c-categoryList__link[data-cat-id="12"] {
  background-color: #fdf6e3;
  border-color: #e8dcb8;
  color: #6f5715;
}

/* 投稿ページのカテゴリフォルダアイコン非表示 */
/* SWELL内部クラス依存: 上部・下部両方に効く */
.c-categoryList::before {
  display: none;
}

/* 記事下のカテゴリ・タグ表示を非表示 */
/* SWELL内部クラス依存: カスタマイザーにON/OFF設定がないため */
.p-articleMetas.-bottom {
  display: none;
}

/* ========================================
   Footer Widget Area
   フッターウィジェットエリア（2×2グリッド配置）

   【配置】
   上段：ロゴ（左）＋ メニュー（右）
   区切り線
   下段：住所等（左）＋ コピーライト（右下）

   【ウィジェット構成】
   footer_box1 のみ使用（-col1）
   ウィジェット順序: 1=ロゴ 2=メニュー 3=住所 4=コピーライト
   ウィジェットの順序を変えたらこのCSSも直すこと
   ======================================== */
/* SWELL標準のコピーライト欄を非表示 */
.l-footer__foot {
  display: none;
}

/* PC: グリッド配置（上段 / 区切り線 / 下段 の3行） */
@media (min-width: 960px) {
  .l-footer .w-footer.-col1 .w-footer__box {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1px auto;
    column-gap: 32px;
    row-gap: 24px;
  }

  /* 区切り線：疑似要素で全幅に */
  .l-footer .w-footer.-col1 .w-footer__box::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2;
    background-color: var(--c-primary-light);
  }

  /* ウィジェットの余白をリセット（row-gap で一元管理） */
  .l-footer .w-footer__box > .c-widget {
    margin: 0;
  }

  /* 各ウィジェットの配置（1=ロゴ 2=メニュー 3=住所 4=コピーライト） */
  /* 1: ロゴ - 左上・縦中央 */
  .l-footer .w-footer__box > .c-widget:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  /* 2: メニュー - 右上・縦中央 */
  .l-footer .w-footer__box > .c-widget:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  /* 3: 住所 - 左下・上揃え */
  .l-footer .w-footer__box > .c-widget:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }

  /* 4: コピーライト - 右下・下揃え */
  .l-footer .w-footer__box > .c-widget:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: end;
  }
}

/* フッター内のナビメニュー */
.l-footer .w-footer__box .widget_nav_menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-footer .w-footer__box .widget_nav_menu a {
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}

.l-footer .w-footer__box .widget_nav_menu a:hover {
  opacity: 0.7;
}

/* ロゴ */
.ftr-logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

/* 住所・TEL・休診日 */
.ftr-info {
  font-size: 13px;
  line-height: 1.8;
}

/* コピーライト */
.ftr-copy,
.ftr-copy * {
  font-size: 11px;
  color: var(--c-on-primary);
}

/* SP: 縦積み */
@media (max-width: 959px) {
  .l-footer .w-footer__box {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .l-footer .w-footer__box .widget_nav_menu ul {
    justify-content: center;
  }

  .ftr-logo {
    text-align: center;
  }

  .ftr-logo img {
    width: 200px;
  }

  .ftr-info {
    text-align: center;
  }

  .ftr-copy {
    text-align: center;
  }
}
