/* ===================================
   三田鍼灸整骨院 — 新デザイン CSS
   Medical Clinic Web Design
   =================================== */

/* ---------- リセット & ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #f8f9fb;
}

a {
  color: #1a6b9b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #0e4870; text-decoration: underline; }

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

ul { list-style: none; }

/* ---------- レイアウト共通 ---------- */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ヘッダー ---------- */
#site-header {
  background: #fff;
  border-bottom: 3px solid #1a6b9b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ロゴ */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-ja {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.04em;
}
.site-logo .logo-en {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.08em;
}
.site-logo a { text-decoration: none; color: inherit; }

/* 電話番号 */
.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.header-tel .tel-label {
  font-size: 10px;
  color: #888;
}
.header-tel .tel-number {
  font-size: 22px;
  font-weight: 700;
  color: #1a6b9b;
  letter-spacing: 0.05em;
}
.header-tel .tel-number::before {
  content: "☎ ";
  font-size: 16px;
}

/* ---------- グローバルナビ ---------- */
#gnav {
  background: #1a3a5c;
}
.gnav-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
}
.gnav-inner li { flex: 1; }
.gnav-inner li a {
  display: block;
  text-align: center;
  padding: 12px 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}
.gnav-inner li:first-child a { border-left: 1px solid rgba(255,255,255,0.12); }
.gnav-inner li a .nav-en {
  display: block;
  font-size: 10px;
  color: #9db8d0;
  font-weight: 300;
}
.gnav-inner li a:hover,
.gnav-inner li.current a {
  background: #1a6b9b;
  text-decoration: none;
  color: #fff;
}

/* ---------- ページバナー (サブページ用) ---------- */
.page-banner {
  background: linear-gradient(135deg, #1a3a5c 0%, #1a6b9b 100%);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
}
.page-banner h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-banner .page-banner-en {
  font-size: 12px;
  color: #9db8d0;
  letter-spacing: 0.15em;
}

/* ---------- メインビジュアル（トップページ） ---------- */
.hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #1a6b9b 60%, #2ca0c8 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/main.png") center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content .hero-since {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #9dd4f0;
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 15px;
  color: #c8e4f5;
  margin-bottom: 32px;
}
.hero-btn {
  display: inline-block;
  background: #fff;
  color: #1a3a5c !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 36px;
  border-radius: 30px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-btn:hover {
  background: #e8f4fb;
  transform: translateY(-2px);
}

/* ---------- メインコンテンツ領域 ---------- */
.page-body {
  max-width: 1060px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* ---------- セクション共通 ---------- */
.content-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px;
  margin-bottom: 28px;
}
.content-section:last-child { margin-bottom: 0; }

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #1a6b9b;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-title .title-en {
  font-size: 11px;
  color: #9db8d0;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- ごあいさつ ---------- */
.greeting-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.greeting-text { flex: 1; }
.greeting-text p { margin-bottom: 12px; }
.greeting-img {
  width: 160px;
  flex-shrink: 0;
}
.greeting-img img {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* お知らせリスト */
.news-list dt {
  font-size: 12px;
  color: #888;
  margin-bottom: 2px;
  margin-top: 14px;
}
.news-list dt:first-child { margin-top: 0; }
.news-list dd {
  padding-left: 0;
  font-size: 14px;
}

/* ---------- 受付時間テーブル ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid #d0d9e4;
  text-align: center;
  padding: 10px 8px;
}
.schedule-table th {
  background: #1a3a5c;
  color: #fff;
  font-weight: 600;
}
.schedule-table .time-col {
  background: #e8f0f8;
  color: #1a3a5c;
  font-weight: 600;
  white-space: nowrap;
}
.schedule-table .circle { color: #1a6b9b; font-weight: 700; }
.schedule-table .cross { color: #bbb; }
.schedule-note { font-size: 12px; color: #777; margin-top: 8px; }

/* ---------- サイドバー ---------- */
#sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  border-left: 3px solid #1a6b9b;
  padding-left: 10px;
  margin-bottom: 14px;
}

.sidebar-nav-list li {
  border-bottom: 1px solid #edf0f4;
}
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: #1a3a5c;
  transition: color 0.2s;
}
.sidebar-nav-list li a:hover { color: #1a6b9b; text-decoration: none; padding-left: 4px; }
.sidebar-nav-list li a::before { content: "▶ "; font-size: 9px; color: #1a6b9b; }

.clinic-info p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 6px;
}
.clinic-info .info-label {
  font-size: 11px;
  font-weight: 700;
  color: #1a6b9b;
  margin-top: 10px;
  margin-bottom: 2px;
}

.line-btn-wrap {
  text-align: center;
  margin-top: 4px;
}
.line-btn-wrap img {
  display: inline-block;
}
.line-btn-wrap p {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ---------- 治療内容 ---------- */
.therapy-block {
  margin-bottom: 8px;
}
.therapy-block p { margin-bottom: 10px; }
.therapy-list {
  margin: 12px 0 12px 8px;
}
.therapy-list li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px dashed #e0e8f0;
}
.therapy-list li:last-child { border-bottom: none; }
.therapy-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #1a6b9b;
  font-size: 10px;
  top: 7px;
}

.notice-box {
  background: #fef6e4;
  border-left: 4px solid #f0aa00;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  margin-top: 14px;
}

.alert-box {
  background: #fff0f0;
  border-left: 4px solid #e05050;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  margin-top: 14px;
}

/* ---------- 保険取扱テーブル ---------- */
.insurance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}
.insurance-table th {
  background: #1a3a5c;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.insurance-table th.ok { background: #1a6b9b; }
.insurance-table th.ng { background: #8d3030; }
.insurance-table td {
  padding: 8px 14px;
  border: 1px solid #d0d9e4;
  vertical-align: top;
}
.insurance-table tr:nth-child(even) td { background: #f4f7fb; }
.insurance-table li { padding: 3px 0 3px 16px; position: relative; }
.insurance-table li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ---------- 当院紹介・地図 ---------- */
.intro-profile {
  font-size: 14px;
  line-height: 2;
}
.intro-profile .profile-label {
  display: inline-block;
  width: 9em;
  color: #1a3a5c;
  font-weight: 600;
}
.map-wrap {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}
.map-link {
  text-align: right;
  font-size: 12px;
  margin-top: 4px;
}

/* ---------- お問い合わせ ---------- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.contact-card {
  background: #f4f7fb;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.contact-card .contact-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.contact-card .contact-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}
.contact-card .contact-value {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a5c;
}
.contact-card .contact-note {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}
.contact-full {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
}
.contact-full p { margin-bottom: 8px; }

/* ---------- NEWS / お知らせページ ---------- */
.news-article .section-title { margin-bottom: 6px; }
.news-article .news-date {
  font-size: 12px;
  color: #1a6b9b;
  margin-bottom: 14px;
}
.news-article p { margin-bottom: 10px; font-size: 14px; }

/* ---------- フッター ---------- */
#site-footer {
  background: #1a3a5c;
  color: #c8d8e8;
  margin-top: 60px;
}
.footer-nav-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-logo .logo-ja {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-logo .logo-en {
  font-size: 10px;
  color: #7a9bb8;
  letter-spacing: 0.1em;
}
.footer-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav ul li a {
  color: #c8d8e8;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  background: #0f2438;
  text-align: center;
  padding: 14px;
  font-size: 11px;
  color: #5a7a9a;
}

/* ---------- ページトップへ ---------- */
.page-top-btn {
  display: inline-block;
  background: #1a6b9b;
  color: #fff !important;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.page-top-btn:hover { background: #1a3a5c; }

/* ---------- 汎用ユーティリティ ---------- */
.text-center { text-align: center; }
.mt8  { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }

strong { font-weight: 700; }
u { text-decoration: underline; }

/* ---------- レスポンシブ対応 ---------- */
@media (max-width: 900px) {
  .page-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #sidebar {
    position: static;
    top: auto;
  }

  .footer-nav-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  #site-header {
    position: static;
  }

  .header-inner {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-logo .logo-ja {
    font-size: 18px;
  }

  .site-logo .logo-en {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .header-tel {
    align-items: flex-start;
  }

  .header-tel .tel-number {
    font-size: 20px;
  }

  .gnav-inner {
    flex-wrap: wrap;
  }

  .gnav-inner li {
    flex: 1 1 50%;
  }

  .gnav-inner li a,
  .gnav-inner li:first-child a {
    border-left: none;
  }

  .gnav-inner li a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .hero {
    padding: 48px 20px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .page-banner {
    padding: 24px 16px;
  }

  .page-banner h1 {
    font-size: 22px;
  }

  .page-body {
    margin: 24px auto;
    padding: 0 16px;
  }

  .content-section,
  .sidebar-section {
    padding: 22px 18px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 17px;
  }

  .greeting-wrap {
    flex-direction: column-reverse;
  }

  .greeting-img {
    width: min(220px, 100%);
    margin: 0 auto;
  }

  .schedule-table,
  .insurance-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .schedule-table th,
  .schedule-table td {
    white-space: nowrap;
  }

  .insurance-table {
    display: table;
    table-layout: fixed;
    overflow-x: visible;
    font-size: 12px;
  }

  .insurance-table th,
  .insurance-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 10px 10px;
  }

  .insurance-table li {
    padding-left: 14px;
  }

  .map-wrap iframe {
    height: 320px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .page-top-btn {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo .logo-ja {
    font-size: 17px;
  }

  .site-logo .logo-en {
    line-height: 1.5;
  }

  .header-tel .tel-number {
    font-size: 18px;
  }

  .gnav-inner li {
    flex-basis: 100%;
  }

  .hero {
    padding: 40px 16px;
  }

  .hero-content .hero-since {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
  }

  .page-body {
    padding: 0 12px;
  }

  .content-section,
  .sidebar-section {
    padding: 18px 14px;
  }

  .section-title {
    font-size: 16px;
  }

  .therapy-list {
    margin-left: 0;
  }

  .insurance-table {
    display: flex;
    flex-direction: column;
    font-size: 11px;
  }

  .insurance-table th,
  .insurance-table td {
    display: block;
    width: 100%;
  }

  .insurance-table thead,
  .insurance-table tbody,
  .insurance-table tr {
    display: contents;
  }

  .insurance-table th {
    margin-top: 10px;
    border-bottom: none;
  }

  .insurance-table th:first-child {
    margin-top: 0;
  }

  .insurance-table td {
    border-top: none;
  }

  .insurance-table th.ok {
    order: 1;
  }

  .insurance-table tbody td:first-child {
    order: 2;
  }

  .insurance-table th.ng {
    order: 3;
  }

  .insurance-table tbody td:last-child {
    order: 4;
  }

  .intro-profile .profile-label {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }

  .map-wrap iframe {
    height: 260px;
  }

  .footer-nav-wrap {
    padding: 24px 16px 20px;
  }

  .footer-logo .logo-ja {
    font-size: 16px;
  }
}
