/*
Theme Name: ひろき皮膚科・美容皮膚科 Teaser
Theme URI: https://hiroki-hifuka.example/
Author: Hiroki Clinic Web
Description: 福岡市南区大橋「ひろき皮膚科・美容皮膚科」開院ティザーサイト用テーマ。1ページ完結のティザー構成で、ヘッダー・HERO・フッターはテンプレート固定、それ以外は固定ページのエディタで管理します。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiroki-teaser
*/

/* ================================================================
   ひろき皮膚科・美容皮膚科 Teaser Site
   Figma: PC_teaser (1440 x 5063)
   実装は Figma の実測値・色・タイポを反映
   ================================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Design Tokens (Figma カラーそのまま) ---------- */
:root {
  --cream:        #fefff0;          /* ページベース ivory */
  --cream-soft:   rgba(254,255,240,.7);
  --card-80:      rgba(255,255,255,.85);
  --white:        #ffffff;
  --text:         #393939;
  --text-sub:     #434343;
  --text-mute:    #6d6d6d;
  --pink:         #f59cb1;          /* アクセントピンク（タイトル・英字・○・｜） */
  --green-1:      #a6cd85;          /* 診療時間 ● 1行目 */
  --green-2:      #7ca956;          /* 診療時間 ● 2行目 */
  --green-bg:     rgba(166,205,133,.45); /* 時間テーブル ヘッダ */
  --beige-footer: rgba(228,211,187,.7);
  --line:         #cfcfcf;

  /* Figma 指定:
     本文/見出し日本語 = DFPMaruGothic (Lt=Light 300 / Md=Medium 500 / SB=SemiBold 700)
     => 近似 Google Font: Zen Maru Gothic (丸ゴシック)
     セクション見出し日本語 = DFHSMincho-W5
     => 近似 Google Font: Shippori Mincho (500)
     英字見出し = Adobe Arabic Bold
     => Cormorant Garamond Bold (Italic) を継続使用
     日付 = A-OTF Maru Folk Pro:M → Zen Maru Gothic 500 で代替 */
  --font-jp:        "Zen Maru Gothic", "DFPMaruGothic-Md", "Hiragino Maru Gothic ProN",
                     "ヒラギノ丸ゴ ProN", "游ゴシック", YuGothic, "Noto Sans JP",
                     "Hiragino Sans", sans-serif;
  --font-jp-mincho: "Shippori Mincho", "DFHSMincho-W5", "游明朝", YuMincho,
                     "Noto Serif JP", "Hiragino Mincho Pro", serif;
  --font-en:        "Cormorant Garamond", "Adobe Arabic", "Times New Roman", serif;
}

/* ---------- Base ---------- */
/* iOS Safari 等で body のみ overflow-x:hidden だと横スクロールが残るケースがあるため
   html / body 両方で抑制し、さらに最大幅を viewport に固定する */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--cream);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- 共通: セクション見出し ---------- */
.sec-title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 22px;
  color: var(--text-mute);
  letter-spacing: 0.22em;
  text-align: center;
  line-height: 1;
}
.sec-title__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-style: italic;
  font-size: 19px;
  color: var(--pink);
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 8px;
  line-height: 1;
}

/* ================================================================
   1. HERO  (y=0-707)
   Figma 実測: Rectangle 9 (full 1440x707, 51px cream border) と
              Rectangle 10 (40,0,1359x707, 51px cream border, 70px rounded)
   => 画像の可視領域は top:51 / left:91 / right:92 / bottom:51, radius 70px
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 707px;
  overflow: hidden;
  background: var(--cream);
}
/* 角丸の背景画像コンテナ (画像自体を角丸にする) */
.hero__frame {
  position: absolute;
  top: 51px;
  left: 91px;
  right: 92px;
  bottom: 51px;
  border-radius: 30px;
  overflow: hidden;
  background-color: #b8a88a;
  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,250,.15) 54%,
      rgba(0,0,0,.18) 100%),
    url("images/hero-main.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}
/* 左上: 大きな角丸badge (Rectangle 8: 0,-16,266,191, rounded-br 69px) */
.hero__badge {
  position: absolute;
  top: -16px; left: 0;
  width: 266px;
  height: 191px;
  background: var(--cream);
  border-bottom-right-radius: 69px;
  z-index: 4;
}
/* 下部: Rectangle 12 (y=707,h=408,rounded-br-285.5) が HERO 下に続く */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -408px;
  height: 408px;
  background: var(--cream-soft);
  border-bottom-right-radius: 285.5px;
  z-index: 1;
}
/* ロゴ  (26,32,213,120) */
.hero__logo {
  position: absolute;
  top: 32px; left: 26px;
  width: 213px; height: 120px;
  z-index: 5;
}
.hero__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* コンテンツ (NEW OPEN 133,379 / タイトル 133,466) */
.hero__content {
  position: absolute;
  left: 133px;
  top: 345px;
  z-index: 5;
  color: #fffff6;
}
.hero__new-open {
  font-family: var(--font-en);
  font-weight: 700;
  font-style: normal;
  font-size: 90px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--pink);
  margin: 0;
  text-shadow: 0 1px 14px rgba(0,0,0,.12);
}
.hero__title {
  margin-top: 14px;
  color: #fffff6;
  font-family: var(--font-jp);
  font-weight: 700;  /* Figma: DFPMaruGothic-SB */
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.hero__clinic-name {
  display: block;
  font-size: 40px;
  line-height: 1.2;
}
.hero__date {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}
.hero__date em {
  font-style: normal;
  font-size: 36px;
  padding: 0 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ================================================================
   2. GREETING  (カードが HERO に 83px 食い込む)
   背景に jose-losada のテクスチャ (16% 不透明) + cream ベース
   ================================================================ */
.greeting-wrap {
  position: relative;
  background-color: var(--cream);
  padding-top: 0;
  padding-bottom: 150px;
  z-index: 2;
  /* BFC を確立: .greeting の margin-top: -83px が親に吸収されて
     wrap の背景が HERO に食い込むのを防ぎつつ、
     カード自身はクリップされず HERO へ跨いで表示される */
  display: flow-root;
}
/* 背景テクスチャ (jose-losada) を 16% で敷く */
.greeting-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/greeting-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.16;
  z-index: 1;
  pointer-events: none;
}
.greeting {
  position: relative;
  z-index: 3;
  width: 955px;
  max-width: calc(100% - 32px);
  margin: -83px auto 0;
  background: var(--card-80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 52px 84px 56px;
  box-shadow: 0 24px 60px rgba(40, 30, 10, .09),
              0 4px 14px rgba(40, 30, 10, .05);
}
.greeting__title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 20px;
  color: var(--pink);
  letter-spacing: 0.26em;
  text-align: center;
  margin-bottom: 34px;
  line-height: 1;
}
.greeting__text {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 3;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}
.greeting__text p { margin: 0; }
.greeting__sign {
  text-align: right;
  margin-top: 16px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;  /* Figma: DFPMaruGothic-SB 16px */
  letter-spacing: 0.3em;
  color: var(--text-sub);
  line-height: 2.2;
}

/* ================================================================
   3. NEWS (y=1390 - 1789, bg #fefff0)
   Figma: Ellipse 1 (x=-52 y=1702 w=1520 h=138) が news bg rect 下端
   (y=1789) を越えて clinic 側 (petr-magera画像) に 51px はみ出す
   → news 底辺に cream の楕円を突き出して「カーブ下がり」を演出
   ================================================================ */
.news {
  position: relative;
  background: var(--cream);
  padding: 50px 0 110px;
  z-index: 1;
}
.news::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -51px;             /* 138-87 = 51px がはみ出し分 */
  width: 105.5%;             /* Figma 1520 / 1440 ≒ 1.055 */
  height: 138px;
  transform: translateX(-50%);
  background: var(--cream);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.news__head {
  margin-bottom: 50px;
}
.news__list {
  width: 792px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.news__item {
  display: grid;
  grid-template-columns: 182px 1fr;
  align-items: center;
  gap: 0 8px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
.news__date {
  font-family: "A-OTF Maru Folk Pro", var(--font-jp);  /* Figma: A-OTF Maru Folk Pro Medium */
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.news__text {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
  letter-spacing: 0.1em;
}
a.news__text {
  display: block;
  text-decoration: none;
  transition: opacity .2s;
}
a.news__text:hover { opacity: .7; }
.news__item--empty { grid-template-columns: 1fr; }
.news__more {
  width: 792px;
  max-width: calc(100% - 32px);
  margin: 16px auto 0;
  text-align: right;
  padding-right: 82px;
}
.news__more-link {
  display: inline-flex;      /* テキストと矢印をベースラインではなく上下中央で揃える */
  align-items: center;
  gap: 6px;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 700;  /* Figma: DFPMaruGothic-SB */
  letter-spacing: 0.15em;
  color: var(--text-sub);
  line-height: 1.6;
  transition: opacity .2s;
}
.news__more-link::after {
  content: "›";
  color: var(--pink);
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);  /* glyph 固有の上下ズレを最終的にこれで整える */
  transition: transform .2s;
}
.news__more-link:hover { opacity: .7; }
.news__more-link:hover::after { transform: translateY(-1px) translateX(4px); }

/* ================================================================
   4. CLINIC INFO
   petr-magera を 10% で敷き、cream 70% でオーバーレイ
   ================================================================ */
.clinic {
  position: relative;
  padding: 90px 0 80px;
  background-color: var(--cream);
  overflow: hidden;
  z-index: 0;
}
.clinic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.10;
  z-index: -1;
  pointer-events: none;
}
.clinic > * { position: relative; z-index: 1; }
.clinic__head { margin-bottom: 60px; }

.clinic__inner {
  width: 1155px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 445px 510px;
  gap: 60px;
  justify-content: center;
  align-items: start;
}
.clinic__info { padding-top: 0; }
.clinic__logo {
  width: 227px;
  height: 128px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clinic__logo img { width: 100%; height: 100%; object-fit: contain; }

.clinic__address {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-align: center;
  margin-bottom: 18px;
}
.clinic__dept {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--text);
}
.clinic__dept .indent { display: inline-block; }

.clinic__hours {
  width: 422px;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--text);
}
.clinic__hours thead th {
  background: var(--green-bg);
  font-family: var(--font-jp);
  font-weight: 500;  /* Figma: DFPMaruGothic-Md (月火水...) */
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.1em;
}
.clinic__hours thead th:first-child {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;  /* Figma: DFPMaruGothic-SB「診療時間」 */
  text-align: center;
  width: 110px;
}
.clinic__hours tbody td {
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.17em;
  font-weight: 700;  /* Figma: DFPMaruGothic-SB (00:00〜00:00) */
}
.clinic__hours tbody td:first-child {
  width: 110px;
  letter-spacing: 0.17em;
  font-size: 12px;
}
.clinic__hours td.dot-green  { color: var(--green-1); font-size: 12px; }
.clinic__hours td.dot-green2 { color: var(--green-2); font-size: 12px; }
.clinic__hours td.slash { color: var(--text); }

.clinic__holiday {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.11em;
  color: var(--text);
  padding-left: 300px;
}

.clinic__photo {
  width: 510px;
  height: 394px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.clinic__photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.clinic__map {
  width: 955px;
  max-width: calc(100% - 48px);
  margin: 80px auto 0;
  height: 327px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.clinic__map img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================
   5. ACCESS
   petr-magera を 10% で敷き、cream ベース
   ================================================================ */
.access {
  position: relative;
  padding: 70px 0 100px;
  background-color: var(--cream);
  overflow: hidden;
  z-index: 0;
}
.access::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.10;
  z-index: -1;
  pointer-events: none;
}
.access > * { position: relative; z-index: 1; }
.access__head { margin-bottom: 55px; }
.access__grid {
  width: 920px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 100px;
}
.access__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.access__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
}
.access__icon img { width: 40px; height: 40px; object-fit: contain; }
.access__ttl {
  display: block;
  font-family: var(--font-jp);
  font-weight: 700;  /* Figma: DFPMaruGothic-SB (「① 西鉄大橋駅から」など) */
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.11em;
  margin-bottom: 2px;
}
.access__txt {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  line-height: 2.2;
  color: var(--text);
  letter-spacing: 0.11em;
}
.access__txt strong { font-weight: 500; }

/* ================================================================
   6. SERVICES (診療情報) - 白いカード on marios-gkortsilas bg
   marios を 40% で敷き、cream 70% でオーバーレイ
   ================================================================ */
.services {
  position: relative;
  padding: 90px 0 110px;
  background-color: var(--cream);
  overflow: hidden;
  z-index: 0;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/services-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.40;
  z-index: -2;
  pointer-events: none;
}
.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream-soft);
  z-index: -1;
  pointer-events: none;
}
.services > * { position: relative; z-index: 1; }
.services__head { margin-bottom: 60px; }
.services__card {
  width: 955px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 35px 42px 48px;
  background: var(--white);
  border-radius: 17px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.services__block + .services__block {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 28px;
}
.services__h3 {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.11em;
  color: var(--text);
  margin-bottom: 10px;
}
.services__h3 .circ,
.circ { color: var(--pink); font-size: 12px; font-weight: 400; margin-right: 4px; }
.services__dept {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 14px;
  padding-left: 20px;
  color: var(--text);
}
.services__lead {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  line-height: 2.2;
  padding-left: 20px;
  margin-bottom: 22px;
  color: var(--text);
  letter-spacing: 0.11em;
}
.services__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 20px;
  align-items: start;
}
.services__col {
  font-size: 12px;
  line-height: 2.5;
}
/* Figma Line 20-24: 小見出しごとに左ピンク線。線長は中身の高さに合わせる
   (4列目は「医療脱毛」「その他美容医療」で2本に分ける) */
.services__subsection {
  padding-left: 18px;
  border-left: 1px solid var(--pink);
}
.services__subsection + .services__subsection {
  margin-top: 18px;
}
.services__col h4 {
  font-family: var(--font-jp);
  font-weight: 700;  /* Figma: DFPMaruGothic-SB */
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.11em;
  margin-bottom: 2px;
}
.services__col ul { margin: 0; }
.services__col li {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.11em;
  padding-left: 1em;
  text-indent: -1em;
  line-height: 2.5;
}
.services__col li::before { content: "　"; }

/* ================================================================
   7. DOCTOR (y=4154-4896 Rectangle 14 bg=#fffff6)
   ユーザー指定レイアウト:
     - 2カラム (写真 + 経歴カード) はコンテンツ幅の両端に広がる
     - ネームカード (テロップ) は画像の右上から 20% の位置
   → inner width = 955 (コンテンツ幅)
     photo : left=0, width=270, height=404
     career: right=0, width=403, height=395
     name-card: photo の右上 20% 位置 (top=80 ≈ 20% of 404)、
                 photo 右端から右側に延びる形
   ================================================================ */
.doctor {
  position: relative;
  background: #fffff6;
  padding: 55px 0 117px;
}
.doctor__head { margin-bottom: 62px; }
.doctor__inner {
  width: 955px;
  height: 404px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  position: relative;
}
.doctor__photo {
  position: absolute;
  top: 0;
  left: 0;             /* コンテンツ幅左端 */
  width: 270px;
  height: 404px;
  z-index: 1;
}
.doctor__photo img {
  width: 270px;
  height: 404px;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}
/* ネームカード: 画像の右上から 20% の位置にテロップ状に配置
   → top = 404 × 20% ≒ 80px
   → 画像右端 (inner基準 x=270) から右側に 312px 伸びる */
.doctor__name-card {
  position: absolute;
  top: 110px;           /* 少し下へ */
  left: 180px;          /* 少し右へ */
  width: 312px;
  min-height: 83px;
  background: var(--white);
  padding: 14px 18px 16px;
  box-shadow: 0 6px 18px rgba(40, 30, 10, .10);
  z-index: 3;
}
.doctor__clinic {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 2;
}
.doctor__name {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1.8;
  margin-top: 2px;
}
.doctor__name strong {
  font-weight: 700;  /* Figma: DFPMaruGothic-SB 20px (清水裕毅) */
  font-size: 20px;
  letter-spacing: 0.12em;
}
.doctor__name span {
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-left: 2px;
}

/* 経歴カード: コンテンツ幅右端に配置 (right=0) */
.doctor__info {
  position: absolute;
  top: 0;
  right: 0;
  width: 403px;
  min-height: 395px;
  background: var(--white);
  border-radius: 9px;
  padding: 24px 21px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  z-index: 2;
}
/* Line 25 (Figma: x=821 y=4387 h=268, card基準で left=48 top=89)
   → .doctor__career を基準に配置することで、文字サイズが変わっても
      年度テキストの縦ラインに自動追従する */
.doctor__h3 {
  font-family: var(--font-jp);
  font-weight: 700;  /* Figma: DFPMaruGothic-SB 「○ 経歴」 */
  font-size: 16px;
  letter-spacing: 0.11em;
  color: var(--text);
  margin-bottom: 6px;
}
.doctor__h3 .circ { color: var(--pink); }
.doctor__career {
  position: relative;
  padding-left: 51px;  /* 72 - 21(padding) = 51 → 年号 x=845 */
  margin-top: 8px;
}
/* 年度テキスト左の縦線 (Figma Line 25, stroke #F59CB1)
   first li の上端から少しだけ下 → last li の下端の少し手前まで走る */
.doctor__career::before {
  content: "";
  position: absolute;
  top: 0.35em;                    /* 1行目の文字開始付近 */
  left: 27px;                     /* Figma: line x=48 from card, career inner基準で 27 */
  bottom: 0.6em;                  /* 最終行の文字終端手前まで */
  width: 1px;
  background: var(--pink);        /* Figma: #F59CB1 */
}
.doctor__career li {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  line-height: 3.3;
  color: var(--text);
  letter-spacing: 0.11em;
}
.doctor__career .year {
  display: inline-block;
  min-width: 54px;
  color: var(--text);
  margin-right: 2px;
}

.doctor__society {
  width: 863px;  /* Figma 2:135 w=863 */
  max-width: calc(100% - 48px);
  margin: 17px auto 0;  /* inner 下端から 17px */
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  line-height: 2.5;
  letter-spacing: 0.11em;
  color: var(--text);
  text-align: center;
}
.doctor__society .label { display: block; text-align: left; margin-bottom: 2px; }
.doctor__society .bar { color: var(--pink); margin: 0 8px; }

/* ================================================================
   8. FOOTER (y=4893 h=170, bg=rgba(228,211,187,.7))
   ================================================================ */
.footer {
  background: var(--beige-footer);
  height: 170px;
  display: flex;
  align-items: center;
}
.footer__inner {
  width: 1155px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: center;
}
.footer__logo {
  width: 193px;
  height: 109px;
}
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }

.footer__address {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.11em;
  color: var(--text);
  margin-bottom: 2px;
}
.footer__dept {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.11em;
  color: var(--text);
  margin-bottom: 2px;
}
.footer__hours {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.11em;
  color: var(--text);
}
.footer__holiday { margin-left: 64px; }

/* ================================================================
   9. RESPONSIVE
   Figma SP_teaser (390 x 6007) を基準にスマホ用レイアウトを構築
   ================================================================ */

/* タブレット: 1201px 以下で一部PCレイアウトを調整 */
@media (max-width: 1200px) {
  .hero__content { left: 8vw; }
  .hero__logo { left: 2vw; }
  .clinic__inner { grid-template-columns: 1fr 450px; gap: 40px; }
}

/* 中サイズ: タブレット縦〜大きめスマホ */
@media (max-width: 960px) {
  .clinic__inner { grid-template-columns: 1fr; gap: 40px; justify-content: center; }
  .clinic__info { max-width: 510px; margin: 0 auto; }
  .clinic__photo { width: 100%; max-width: 510px; height: auto; aspect-ratio: 510/394; margin: 0 auto; }
  .access__grid { grid-template-columns: 1fr; gap: 28px; }
  .services__columns { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  /* Doctor: 2カラムレイアウト不可 → 写真 + カード縦積み */
  .doctor__inner { height: auto; min-height: 0; }
  .doctor__photo { position: relative; left: auto; margin: 0 auto; }
  .doctor__info { position: relative; right: auto; width: 100%; max-width: 500px; margin: 40px auto 0; }
  .doctor__name-card { left: auto; right: 0; top: 40px; }
}

/* ================================================================
   SP: Figma SP_teaser (390 x 6007) 準拠レイアウト
   ================================================================ */
@media (max-width: 760px) {
  /* ---- HERO (SP: 535px高, Rectangle8 134x105 badge, logo 117x66) ---- */
  .hero { height: 535px; }
  .hero__frame {
    top: 10px;                 /* 上にも左右 (9-10px) と同じぐらいの余白 */
    left: 9px;
    right: 10px;
    bottom: 15px;
    border-radius: 20px;
  }
  .hero__badge {
    width: 134px;
    height: 105px;
    top: -5px;
    border-bottom-right-radius: 50px;
  }
  .hero__logo {
    width: 117px;
    height: 66px;
    top: 16px;
    left: 12px;
  }
  .hero__content {
    left: 34px;
    right: 20px;
    top: 320px;
  }
  .hero__new-open {
    font-size: 54px;
  }
  .hero__title {
    margin-top: 8px;
  }
  .hero__clinic-name {
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  .hero__date {
    font-size: 13px;
    margin-top: 3px;
  }
  .hero__date em {
    font-size: 18px;
  }
  .hero::after {
    bottom: -200px;
    height: 200px;
    border-bottom-right-radius: 140px;
  }

  /* ---- Section titles ---- */
  .sec-title { font-size: 18px; letter-spacing: 0.22em; }
  .sec-title__en { font-size: 15px; margin-top: 6px; }

  /* ---- GREETING (SP: HEROに重ねず、独立ブロックとして配置) ---- */
  .greeting-wrap { padding-top: 40px; padding-bottom: 80px; }
  .greeting {
    width: 371px;
    max-width: calc(100% - 19px);
    padding: 32px 20px 28px;
    margin-top: 0;             /* SP は HERO に重ねない */
    border-radius: 8px;
  }
  .greeting__title {
    font-size: 17px;
    margin-bottom: 22px;
    letter-spacing: 0.3em;
  }
  .greeting__text {
    font-size: 14px;
    line-height: 2.3;
    letter-spacing: 0.06em;
  }
  .greeting__sign {
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 0.25em;
  }

  /* ---- NEWS (SP: bg 399x335) ---- */
  .news { padding: 36px 0 40px; }   /* bottom 90→40 : clinic との余白を狭く */
  .news__head { margin-bottom: 28px; }
  .news__list {
    width: 360px;
    max-width: calc(100% - 16px);
  }
  .news__item {
    grid-template-columns: 105px 1fr;
    gap: 4px 8px;
    padding: 14px 8px;
    align-items: start;
  }
  .news__date { font-size: 14px; }
  .news__text { font-size: 14px; line-height: 1.6; }
  .news__more {
    width: 360px;
    max-width: calc(100% - 16px);
    text-align: center;
    padding-right: 0;
    margin-top: 18px;
  }
  .news::after {
    width: 110%;
    height: 80px;
    bottom: -20px;
  }

  /* ---- CLINIC (SP: logo 227x128, photo 283x219, map 391x192) ---- */
  .clinic { padding: 60px 0 20px; }  /* top padding を広げる */
  .clinic__head { margin-bottom: 30px; }
  .clinic__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: calc(100% - 16px);
    padding: 0 8px;
  }
  .clinic__info {
    padding-top: 30px;               /* 「医院情報」文字の上に余白を確保 */
  }
  .clinic__logo {
    width: 227px;
    height: 128px;
    margin: 0 auto 14px;
  }
  .clinic__address {
    font-size: 12px;
    text-align: left;
    padding: 0 14px;
    margin-bottom: 12px;
  }
  .clinic__dept {
    font-size: 14px;
    padding: 0 14px;
    margin-bottom: 18px;
    line-height: 2;
  }
  .clinic__hours {
    width: calc(100% - 16px);
    margin: 0 auto 8px;
    font-size: 10px;
  }
  .clinic__hours thead th { padding: 6px 0; font-size: 10px; letter-spacing: 0.05em; }
  .clinic__hours thead th:first-child { font-size: 12px; width: 82px; }
  .clinic__hours tbody td { padding: 6px 0; font-size: 10px; letter-spacing: 0.08em; }
  .clinic__hours tbody td:first-child { width: 82px; font-size: 10px; letter-spacing: 0.08em; }
  .clinic__hours td.dot-green,
  .clinic__hours td.dot-green2 { font-size: 13px; }
  .clinic__holiday {
    padding-left: 0;
    text-align: right;
    padding-right: 14px;
    font-size: 12px;
  }
  .clinic__photo {
    width: 283px;
    height: 219px;
    margin: 0 auto;
    aspect-ratio: auto;
  }
  .clinic__map {
    width: 100%;
    max-width: 100%;
    height: 192px;
    margin: 34px 0 0;
  }

  /* ---- ACCESS (SP: icons 40x40 left, text right, 3 items stacked) ---- */
  .access { padding: 48px 0 60px; }
  .access__head { margin-bottom: 32px; }
  .access__grid {
    width: 360px;
    max-width: calc(100% - 16px);
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .access__item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .access__icon { width: 40px; height: 40px; }
  .access__icon img { width: 40px; height: 40px; }
  .access__ttl { font-size: 12px; }
  .access__txt { font-size: 14px; line-height: 1.8; }

  /* ---- SERVICES (SP: card 355px, 1列縦積み) ---- */
  .services { padding: 55px 0 60px; }
  .services__head { margin-bottom: 34px; }
  .services__card {
    width: 355px;
    max-width: calc(100% - 16px);
    padding: 26px 20px 30px;
    border-radius: 12px;
  }
  .services__block + .services__block {
    padding-top: 22px;
    margin-top: 22px;
  }
  .services__h3 { font-size: 14px; }
  .services__dept { font-size: 13px; padding-left: 18px; }
  .services__lead {
    font-size: 14px;
    padding-left: 18px;
    line-height: 1.9;
    margin-bottom: 18px;
  }
  .services__columns {
    grid-template-columns: 1fr;
    padding-left: 12px;
    row-gap: 18px;
  }
  .services__subsection { padding-left: 12px; }
  .services__subsection + .services__subsection { margin-top: 18px; }
  .services__col h4 { font-size: 12px; margin-bottom: 0; }
  .services__col li { font-size: 14px; line-height: 2.2; }

  /* ---- DOCTOR (SP: photo 172x258 left, name-card protrudes RIGHT, career card 346 below) ---- */
  .doctor { padding: 48px 0 50px; }
  .doctor__head { margin-bottom: 34px; }
  /* inner 幅を career card と同じ 346px に統一して、
     photo と career の左端を必ず揃える */
  .doctor__inner {
    width: 100%;
    max-width: 346px;
    height: auto;
    min-height: 0;
    padding: 0;
    position: relative;
  }
  /* photo: inner 左端に揃える → 下の経歴カードの左端と一致 */
  .doctor__photo {
    position: relative;
    left: auto;
    margin: 0;                   /* inner の左端に合わせる */
    width: 172px;
    height: 258px;
  }
  .doctor__photo img {
    width: 172px;
    height: 258px;
  }
  /* name-card: PC と同じ構造で photo の右上から外へはみ出す。
     注: name-card は HTML 上 .doctor__photo の子であり、photo が
         position:relative なので、右端基準は photo(172px) になる。
         → right:0 ではなく明示的に width を指定して、photo 幅を超えて
         右へ延びるようにする (PC と同じ方式)。
     PC: photo 270×404 に対し top:110, left:180, width:312 を
     SP photo 172×258 へ比例換算:
       top   = 110 × (258/404) ≈ 70px
       left  = 180 × (172/270) ≈ 115px
       width = 312 × (172/270) ≈ 199px → 余裕を持って 220px */
  .doctor__name-card {
    position: absolute;
    top: 70px;
    left: 115px;
    right: auto;
    width: 220px;
    max-width: none;
    padding: 12px 16px 14px;
  }
  .doctor__clinic { font-size: 12px; line-height: 1.7; }
  .doctor__name { font-size: 13px; line-height: 1.6; }
  .doctor__name strong { font-size: 17px; }
  .doctor__name span { font-size: 10px; }

  /* career card: photo の下、フル幅 (346) */
  .doctor__info {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 346px;
    min-height: 0;
    margin: 24px auto 0;
    padding: 20px 16px 22px;
  }
  .doctor__h3 { font-size: 15px; }
  .doctor__career {
    padding-left: 40px;
    margin-top: 6px;
  }
  /* SP 線位置: career 基準のため em で自動スケール。左位置だけ Figma SP に合わせる
     (Figma SP: line x=34 from card, .doctor__info padding-left=16, career 位置 0 → 18px from career left) */
  .doctor__career::before {
    left: 18px;
    top: 0.3em;
    bottom: 0.5em;
  }
  .doctor__career li { font-size: 14px; line-height: 2.8; }
  .doctor__career .year { min-width: 50px; }

  .doctor__society {
    width: 331px;
    max-width: calc(100% - 16px);
    margin: 22px auto 0;
    font-size: 14px;
    line-height: 2;
    text-align: left;
  }
  .doctor__society .bar { margin: 0 4px; }

  /* ---- FOOTER (SP: logo 150x84 中央、下に情報左寄せ) ---- */
  .footer {
    height: auto;
    padding: 30px 0;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    padding: 0 20px;
  }
  .footer__logo {
    width: 150px;
    height: 84px;
    margin: 0 auto 4px;
  }
  .footer__address { font-size: 12px; }
  .footer__dept { font-size: 14px; line-height: 1.6; }
  .footer__hours { font-size: 14px; }
  .footer__holiday { display: block; margin-left: 0; }
}

/* 極小スマホ (iPhone SE 等) の微調整 */
@media (max-width: 380px) {
  .hero__new-open { font-size: 46px; }
  .hero__clinic-name { font-size: 15px; }
  .hero__content { top: 310px; }
  .greeting { padding: 28px 16px 24px; }
  .news__item { grid-template-columns: 90px 1fr; }
  .access__grid { gap: 22px; }
  .doctor__name strong { font-size: 15px; }
  .doctor__name-card { padding: 10px 12px 12px; }
}

/* ================================================================
   10. お知らせ 一覧 / 個別（archive.php / home.php / single.php）
   LP 本体とは別ページ。news の意匠を流用する。
   ================================================================ */

/* ---- 下層用 HERO（トップの HERO のおよそ半分の高さ） ---- */
.hero-news {
  position: relative;
  width: 100%;
  height: 354px;              /* トップ 707px の約半分 */
  overflow: hidden;
  background: var(--cream);
}
.hero-news__frame {
  position: absolute;
  top: 51px;
  left: 91px;
  right: 92px;
  bottom: 51px;
  border-radius: 30px;
  overflow: hidden;
  background-color: #b8a88a;
  background-image:
    linear-gradient(to bottom,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.22) 100%),
    url("images/hero-main.jpg");
  background-size: cover;
  background-position: center 38%;
  z-index: 1;
}
/* 左上のクリーム色バッジ（トップと同じ意匠を縮小） */
.hero-news__badge {
  position: absolute;
  top: -16px; left: 0;
  width: 200px;
  height: 130px;
  background: var(--cream);
  border-bottom-right-radius: 52px;
  z-index: 4;
}
.hero-news__logo {
  position: absolute;
  top: 22px; left: 26px;
  width: 160px; height: 90px;
  z-index: 5;
}
.hero-news__logo a { display: block; width: 100%; height: 100%; }
.hero-news__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero-news__content {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  width: 100%;
  padding: 0 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero-news__title {
  font-family: var(--font-jp-mincho);
  font-weight: 500;
  font-size: 26px;
  color: #fffff6;
  letter-spacing: 0.22em;
  line-height: 1;
  margin: 0;
}
.hero-news__title-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-style: italic;
  font-size: 19px;
  color: var(--pink);
  letter-spacing: 0.2em;
  line-height: 1;
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .hero-news__logo { left: 2vw; }
}
@media (max-width: 760px) {
  .hero-news { height: 268px; }   /* SP トップ 535px の約半分 */
  .hero-news__frame {
    top: 10px;
    left: 9px;
    right: 10px;
    bottom: 15px;
    border-radius: 20px;
  }
  .hero-news__badge {
    width: 120px;
    height: 78px;
    top: -5px;
    border-bottom-right-radius: 40px;
  }
  .hero-news__logo {
    width: 96px; height: 54px;
    top: 12px; left: 12px;
  }
  .hero-news__title { font-size: 19px; }
  .hero-news__title-en { font-size: 15px; margin-top: 8px; }
}
.subpage {
  position: relative;   /* HERO の装飾より前面に置く */
  z-index: 2;
  width: 792px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 64px 0 90px;
}
.subpage__empty {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
  padding: 40px 0;
}
.subpage__back { margin-top: 40px; text-align: center; }

.entry__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.entry__date {
  display: block;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.entry__title {
  font-family: var(--font-jp-mincho);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
}
.entry__thumb { margin-bottom: 28px; }
.entry__thumb img { width: 100%; height: auto; border-radius: 4px; }
.entry__body {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}
.entry__body img { max-width: 100%; height: auto; }
.entry__body a { color: var(--text); }
.entry__body h2,
.entry__body h3 {
  font-family: var(--font-jp-mincho);
  color: var(--text);
  margin: 40px 0 16px;
}
.entry__body h2 { font-size: 20px; }
.entry__body h3 { font-size: 17px; }

.pager { margin-top: 36px; }
.pager .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.pager a { color: var(--text-sub); text-decoration: none; }
.pager a:hover { opacity: .7; }
.pager .current { font-weight: 700; color: var(--text); }

@media (max-width: 760px) {
  .subpage { padding: 40px 0 56px; }
  .entry__title { font-size: 19px; }
  .entry__body { font-size: 14px; line-height: 2; }
}
