:root {
  --bg: #f7eee1;			/* body背景色（メイン） */
  --bg-alt: #ffffff;
  --accent: #2a6f87;       /* 見やすい青緑（メイン） */
  --accent-soft: #e0f1f5;  /* 薄い背景 */
  --accent-dark: #1e5673;  /* リンクなどくっきり色 */
  --text-main: #222222;
  --text-muted: #666666;
  --border-soft: #e4ddd4;
  --max-width: 1080px;
  --radius: 14px;
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

/* 強調用 */
.emphasis {
  color: var(--accent-dark);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 17px;
}

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #18435a;
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 背景ロゴの透かし */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/ito-clinic-logo.png");
  background-repeat: no-repeat;
  background-position: calc(50% + 150px) 25%;
  background-size: 85vmin;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* スマホ専用：背景ロゴの位置と大きさを調整 */
@media (max-width: 600px) {
  body::before {
    background-position: calc(50% + 40px) 80%;
    background-size: 70vmin;
    opacity: 0.20;
  }
}

/* ================= ヘッダー ================= */

.site-header {
  background: transparent;   /* 背景色自体は透明。下の ::before で帯を作る */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  top: 0;
  z-index: 20;
  position: relative;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(60, 110, 65, 0.85);
  z-index: -1;  /* 背景だけ背面に置く。文字は透けない */
}

/* クリニック名・サブタイトル */
.clinic-name {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
}

.clinic-sub {
  color: #e8f5ec;
}

/* 住所や電話など右側の文字 */
.header-right,
.header-info {
  color: #f2f8f4;
}

.header-phone {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}

/* 全体レイアウト */
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ロゴ＋クリニック名 */
.header-left {
  flex: 1 1 220px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.clinic-logo {
  height: 80px;
  width: auto;
}

.header-info {
  text-align: right;
  line-height: 1.4;
}

/* ナビゲーション */
.header-nav {
  width: 100%;
  border-top: 1px solid var(--border-soft);
  margin-top: 0.4rem;
  background: #f7fdf4;
}

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.2rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  list-style: none;
  font-size: 1rem;
}

/* ナビボタン */
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav-list a:hover {
  background-color: rgba(42, 111, 135, 0.12);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* 下線アクセント（ホバー時だけ） */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.nav-list a:hover::after {
  background: var(--accent-dark);
}

/* ================= メイン共通 ================= */

main {
  flex: 1;
}

.section {
  padding: 1.8rem 1rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* セクション共通ヘッダー */
.section-header {
  margin-bottom: 1.2rem;
}

.section-header h2 {
  position: relative;
  display: block;
  padding: 0.5rem 0.9rem;
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  background: rgba(255, 255, 255, 0.9);
  border-left: 5px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.section-header p {
  margin: 0;
  margin-left: 0.3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* 内視鏡ページなどの小見出し */
.subsection h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.5rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--accent-soft);
  border-radius: 999px;
}

/* ================= HERO ================= */

.hero {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  padding: 2rem 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 1.8rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.3rem, 2vw + 1rem, 1.7rem);
  margin: 0 0 0.6rem;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
}

.hero-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.hero-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.6rem;
  margin: 0 0 0.6rem;
}

.hero-card dt {
  font-weight: 600;
}

.hero-card dd {
  margin: 0;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ボタン */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 0.95;
  text-decoration: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: #f8fbfa;
  text-decoration: none;
}

/* hero 内の英語情報＆SNSリンク */
.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-links a {
  font-weight: 500;
}

.hero-links .label {
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  width: 6rem;
}

.hero-link-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.hero-link-row.line-row {
  display: block;  /* LINE の説明を縦積みにする用 */
}

.hero-link-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.line-desc {
  margin-left: 2.2rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* バナー右寄せ */
.banner-right {
  margin-left: auto;
  display: flex;
}

.banner-right img,
.hero-banner-inline img {
  vertical-align: middle;
}

/* SNSボタン */
.sns-btn {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* English */
.en-btn {
  background: var(--accent-dark);
  color: white;
}
.en-btn:hover {
  background: #17465d;
}

/* LINE */
.line-btn {
  background: #06c755;
  color: white;
}
.line-btn:hover {
  background: #05b14c;
}

/* Facebook */
.fb-btn {
  background: #1877f2;
  color: white;
}
.fb-btn:hover {
  background: #145cd1;
}

/* スマホ用 hero-link-row 調整 */
@media (max-width: 480px) {
  .hero-link-row {
    flex-wrap: wrap;
  }

  .banner-right {
    margin-left: 0;
    margin-top: 0.3rem;
  }
}

/* ================= 診療案内カード ================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff !important;  /* 完全な不透明白 */
  backdrop-filter: none !important;  /* 透明感の原因を無効化 */
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  background: #dde9ff;
  color: #0041a8;
  padding: 0.3rem 0.6rem;   /* ← 角丸を綺麗に見せるため必須 */
  border-radius: 6px;       /* ← 角丸を追加！ */
}

.card p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
}

.card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.card li {
  margin-bottom: 0.1rem;
}

/* ================= 初めての方へ（フロー） ================= */

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.flow-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.flow-step {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3c6e68;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.flow-body-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.flow-body-text {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ================= 診療時間 ================= */

.schedule-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.schedule-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 95%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #e2d7c9;
  vertical-align: middle;
  padding: 0.45rem 0.3rem;
  word-break: break-word;
  text-align: center;
}

/* 左端列の幅 */
.schedule-table th:first-child {
  width: 22%;
}

/* ヘッダー行（曜日ラベル）の色 */
.schedule-table th {
  background: #e0f1f5;        /* ← アクセント寄りの薄い水色 */
  color: #1e5673;             /* ← 文字色も少し濃いめに */
  font-weight: 600;
}

.schedule-highlight {
  background: #fff6dc;
}




/* スマホでの横スクロール案内（基本は非表示） */
.schedule-scroll-note {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-align: left;
}

/* 診療時間：スマホ用調整 */
@media (max-width: 768px) {
  .schedule-table {
    width: 680px;
    min-width: 680px;
    font-size: 0.74rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.35rem 0.2rem;
  }

  .schedule-table th:first-child {
    width: 26%;
  }

  .schedule-note {
    font-size: 0.75rem;
  }

  .schedule-scroll-note {
    display: block;
  }
}

/* ================= アクセス ================= */

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 1.4rem;
}

.access-list {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.6rem;
  padding-left: 1.1rem;
}

.map-placeholder {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= 募集状況テーブル（offer.html） ================= */

.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.status-table th,
.status-table td {
  border: 1px solid #e0dcd4;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.status-table th {
  background: #faf2e5;
  font-weight: 600;
  color: var(--text-main);
}

.status-table tbody tr {
  background: #ffffff;
}

.status-table tbody tr:hover {
  background: #f3ede3;
}

.status-label-open {
  color: #0a8022;
  background: #dff7e7;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-label-closed {
  color: #666;
  background: #eee;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ================= 医療DX等 必須記載ブロック ================= */

.legal-notes {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legal-notes h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.legal-notes p {
  margin: 0 0 0.6rem;
}

/* ================= フッター ================= */

.site-footer {
  background: #2b3036;
  color: #f0f0f0;
  padding: 1.2rem 1rem 1.6rem;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-block {
  flex: 1 1 200px;
  min-width: 0;
}

.footer-block h3 {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.15rem;
}

.footer-nav a {
  color: #d0d6e3;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  color: #9ca3b6;
  font-size: 0.76rem;
}

.footer-logo {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.footer-address {
  color: #c1c6d3;
}

/* ================= 共通ユーティリティ ================= */

.fs-small {
  font-size: 0.78rem;
}

.fs10 {
  font-size: 0.7rem;
}

.bullet-list {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bullet-list li {
  margin-bottom: 0.2rem;
}

.section-divider {
  border: none;
  border-top: 1px dashed var(--border-soft);
  margin: 1.4rem 0 1.1rem;
}

/* 診療日カレンダー周り */

.calendar-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calendar-wrapper {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
}

.calendar-legend {
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.calendar-legend span {
  margin-right: 0.7rem;
}

.calendar-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.calendar-frame iframe {
  width: 100%;
  display: block;
}

/* calender.html 内の詳細スケジュール用テーブル */
#schedule-detail .schedule-table {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

/* 2カラム汎用レイアウト */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2fr);
  gap: 1.4rem;
}

/* 注意枠 */
.notice-box {
  background: #fffef5;
  border-radius: var(--radius);
  border: 1px solid #f0e2b3;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 料金表テーブル */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0.6rem 0 1rem;
}

.price-table th,
.price-table td {
  border: 1px solid #e0dcd4;
  padding: 0.45rem 0.7rem;
}

.price-table th {
  background: #faf2e5;
  font-weight: 600;
}

/* ================= レスポンシブ共通 ================= */

@media (max-width: 768px) {
  .header-inner {
    padding: 0.5rem 0.8rem;
  }

  .header-right {
    justify-content: flex-start;
    text-align: left;
  }

  .header-info {
    text-align: left;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #schedule-detail .schedule-table {
    width: 100%;
  }

  .clinic-logo {
    height: 60px;
  }

  .clinic-name {
    font-size: 2rem;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-list {
    font-size: 0.78rem;
    padding-inline: 0.7rem;
  }

  .hero {
    padding-top: 1.6rem;
    padding-bottom: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .clinic-name {
    font-size: 1.3rem;
  }

  .clinic-logo {
    height: 44px;
  }
}

/* ================= 固定ヘッダー用：ページ内リンク位置調整 ================= */

#top,
#schedule,
#guide,
#services,
#access,
#links,
#medical-info {
  scroll-margin-top: 160px;
}

@media (max-width: 768px) {
  #top,
  #schedule,
  #guide,
  #services,
  #access,
  #links,
  #medical-info {
    scroll-margin-top: 200px;
  }
}

@media (max-width: 480px) {
  #top,
  #schedule,
  #guide,
  #services,
  #access,
  #links,
  #medical-info {
    scroll-margin-top: 330px;
  }
}

/* ================= 最新のお知らせ ================= */

.news-list-wrapper {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0.5rem;
  padding: 0.8rem 0.7rem 0.8rem 0.4rem;
  background: #fffffc;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 1件分（スマホは縦積み） */
.news-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5e0d8;
  font-size: 0.95rem;
}

/* 日付・アイコン・ラベル */
.news-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-date-icon {
  width: 16px;
  height: 16px;
}

.news-date {
  font-weight: 600;
  font-size: 0.85rem;
}

.news-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.news-label {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #e0e0e0;
  color: #444;
}

.news-label.important {
  background: #ffdddd;
  color: #b30000;
}

.news-label.new {
  background: #dde9ff;
  color: #0041a8;
}

/* 本文 */
.news-text {
  line-height: 1.45;
}

/* ================= PC（2カラム整列） ================= */
@media (min-width: 769px) {
  .news-item {
    display: grid;
    grid-template-columns: 400px 1fr; /* 左カラム幅：調整OK */
    gap: 1rem;
    align-items: start;
  }

  /* 左カラムを横並び */
  .news-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;  /* タイトルが長い場合でも綺麗に折り返せる */
  }
}


/* ================= スマホ表示微調整 本文の上に隙間 ================= */
@media (max-width: 768px) {
  .news-text {
	display: block;		
	margin-top: 0.6rem;  /* ← 好みで0.3〜0.6remに調整可 */
  }
}

.policy-date {
  text-align: right;
  margin-top: 0.8rem;   /* ← 文章と少し離す。お好みで調整 */
  color: #555;          /* ← 少し控えめカラー（任意） */
  font-size: 0.9rem;    /* ← ほんの少し小さめ（任意） */
}
