/*
Theme Name:   さわやか歯科クリニック テーマ
Theme URI:    https://sawayaka-dentalclinic.jp/
Author:       TAKAHIRO
Author URI:   https://demo-dentalclinic.oohashi-takahiro.com.jp/
Description:  オリジナルテーマのベース
Version:      1.0
Text Domain:  sawayaka-theme
*/


/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #e5eff8;
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* ふわっと出現用クラス */
.fade-in {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ビューに入ったら付与するクラス */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────  
   ヘッダー全体  
────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #dceeff, #d5f9ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

/* 内側の幅寄せ＆Flex配置 */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

/* ──────────────────  
   ロゴエリア  
────────────────── */
.logo-area {
  display: flex;
  align-items: center;
}
.logo-area img {
  height: 60px;
}
.clinic-subname {
  font-size: 0.85rem;
  font-weight: 700;
  color: #777;
  margin-left: 10px;
  font-style: italic;
}

/* ──────────────────  
   ナビゲーション  
────────────────── */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 8px;
  transition: color 0.3s ease;
}

/* リンク下線アニメーション */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #5cacee;
  transition: width 0.3s ease;
}
.main-nav a:hover {
  color: #5cacee;
}
.main-nav a:hover::after {
  width: 100%;
}

/* ──────────────────  
   ドロップダウン  
────────────────── */
/* 親メニューにホバー判定 */
.main-nav li.menu-item-has-children {
  position: relative;
}

/* sub-menu（＝ドロップダウン）の大本 */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -10%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px 20px;
  max-width: 800px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

/* ホバーで開く */
.main-nav li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 子メニュー項目のデザイン */
.main-nav .sub-menu li {
  list-style: none;
  margin-bottom: 8px;
  border-top: 3px solid #eee;
  border-bottom: 2px solid #eee;
}
.main-nav .sub-menu li a {
  display: block;
  padding: 6px 0;
  color: #555;
  font-size: 0.9rem;
  white-space: nowrap;
}


/* ──────────────────  
   ネット予約ボタン  
────────────────── */
.btn-online {
  display: inline-flex;
  background: linear-gradient(135deg, #428dca, #7dcfff);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(92, 172, 238, 0.7);
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-online:hover {
  background: linear-gradient(135deg, #7dcfff, #5cacee);
  transform: translateY(-2px);
}
.btn-online span {
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
}


/* ─── main-visual 全体 ─── */
.main-visual {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

/* ─── Slick用ラッパー ─── */
.visual-carousel {
  height: 100%;
}
.visual-carousel .visual-img {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.visual-carousel .visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out; /* ゆったりズーム */
}

/* ─── スライド切り替え時にズーム＆フェード ─── */
.visual-carousel .slick-active img {
  transform: scale(1.1);
}
.visual-carousel .slick-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.visual-carousel .slick-active {
  opacity: 1;
}

/* ─── ドット（下中央） ─── */
.visual-carousel .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
}
.visual-carousel .slick-dots li button:before {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}
.visual-carousel .slick-dots li.slick-active button:before {
  color: #fff;
}

/* ─── 斜めオーバーレイ ─── */
.visual-overlay {
  position: absolute;
  top: 0;
  right: -1.5rem;
  width: 50%;
  height: 100%;
  background: rgba(91, 158, 222, 0.4);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
  pointer-events: none;
}

/* ─── テキスト ─── */
.visual-text {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  z-index: 2;
}
.visual-text h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.visual-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}


/* クリニック紹介 */
.section-color {
  background-color: #dceeff;
}
:root {
  --primary: #1d92f2;
  --accent: rgba(91,158,222,0.4);
}

/* 全体レイアウト */
.clinic-intro {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 1rem 2rem;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  overflow: hidden;
}

@media (min-width: 481px) {



/* 斜めシェイプ（装飾用） */
.clinic-intro .clip-shape {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 100%;
  background:#b6d1f5;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

/* テキストエリア */
.clinic-intro .clinic-text {
  position: relative;
  z-index: 2;
}
.clinic-intro h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}
.clinic-intro .clinic-desc {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.clinic-desc {
  position: relative;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  line-height: 1.6;
  text-align: center;
}

/* 左上の開き括弧 */
.clinic-desc::before {
  content: "「";
  position: absolute;
  top: 0rem;
  left: -2rem;
  font-size: 3rem;
  color: #fba777;
  line-height: 1;
}

/* 右下の閉じ括弧 */
.clinic-desc::after {
  content: "」";
  position: absolute;
  bottom: 0.3rem;
  right: -1rem;
  font-size: 3rem;
  color: #fba777;
  line-height: 1;
}

/* 機能カード群 */
.clinic-intro .features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.clinic-intro .feature {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 1 1 140px;
}
.clinic-intro .feature .icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1; 
}
.clinic-intro .features .feature:nth-child(3) .icon {
  font-size: 1.2rem;
  width: 64px; height: 42px;
}

.clinic-intro .feature p {
  margin: 0;
  font-size: .95rem;
  color: #333;
  font-weight: 600;
}

/* ボタン */
.clinic-intro .btn-learn-more {
  display: inline-block;
  padding: .8rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  color: var(--primary);
  font-weight: 600;
  transition: all .3s;
  text-decoration: none;
  max-width: 210px;
}
.clinic-intro .btn-learn-more:hover {
  background: var(--primary);
  color: #fff;
}
}


/* クリニック紹介セクション */
.clinic-intro {
  padding: 0 1rem 2rem;
}

/* カード本体 */
.clinic-intro .clinic-text {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 480px;
  margin: 0 auto;
  margin-top: 30px;
}

/* タイトル */
.clinic-text h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
}

/* 説明文 */
.clinic-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

/* アイコン＋テキストリスト */
.feature-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.feature-list .icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ボタン */
.btn-learn-more {
  display: block;
  width: 100%;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  background:#ffffff;
  color: var(--primary);
  text-decoration: none;
  padding: 0.8rem 0;
  border-radius: 9999px;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-learn-more:hover {
  background: var(--accent);
  transform: translateY(-2px);
}



/* 画像エリア */
.clinic-intro .clinic-image {
  width: 90%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2;
  margin-top: 27px;
  overflow: hidden;
}

.clinic-intro .clinic-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/*── 院長のごあいさつセクション ──*/
.greetings-section {
  max-width: 100%;
  margin: 80px auto;
  position: relative;
  padding: 100px 15px;
  overflow: hidden;
  background: #eef6ff;
  border-top: 2px solid #5cacee;
  border-bottom: 2px solid #5cacee;

}

/* 背景の斜めシェイプ */
.greetings-bg-shape {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: rgba(91,158,222,0.2);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
  z-index: 1;
}

/* 中身をグリッドで横並び */
.greetings-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 写真とキャプション */
.greetings-photo {
  margin: 0;
  text-align: center;
}
.greetings-photo img {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.greetings-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

/* テキストエリア */
.greetings-text h2 {
  font-size: 2rem;
  color: #1f3c88;
  margin-bottom: 1rem;
}
.greetings-message {
  background: #fff;
  border-left: 5px solid #fba777;
  border-right: 5px solid #fba777;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}
.greetings-message p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
}

/* ボタン */
.btn-greeting {
  display: inline-block;
  padding: .8rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  color: var(--primary);
  font-weight: 600;
  transition: all .3s;
  text-decoration: none;
}

.btn-greeting:hover {
  background: var(--primary);
  color: #fff;
}


/* ===== 診療案内セクション ===== */
.section-color2{
  background-color: #c9e2fa;
}
#services {
  position: relative;
  padding: 80px 15px;
  max-width: 1200px;
  margin: 0 auto 80px;
  text-align: center;
  font-family: sans-serif;
  background: #c9e2fa;            
  border-radius: 20px;
  overflow: hidden;
}

/* セクション見出し */
#services h1 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #1f3c88;
  margin-bottom: 8px;
}

.section-subtext {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 40px;
}

/* グリッドレイアウト */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* Neumorphism カード */
.service-item {
  background: #b2d4f5;
  border-radius: 20px;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.05),
   -8px -8px 18px rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.3),
   -4px -4px 12px rgba(255, 255, 255, 0.8);
}

/* 画像 */
.service-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

/* テキスト */
.service-item p {
  margin: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f3c88;
  text-align: center;
}

/* 各種情報セクション */

:root {
  --primary: #1d92f2;
  --highlight: #fba777;
  --banner-start: #70b9f6;
  --banner-end: #fba777;
  --button-accent: #9ff3eb;  
  --bg-light: #f7fbff;
  --text-dark: #333;
  --text-muted: #555;
  --bg-sub: #ffffff;
}

/* ===== ご予約バナー ===== */
.reserve-banner {
  position: relative;
  overflow: hidden;
  /* ① グラデーション背景＋斜めカット */
  background: linear-gradient(135deg, var(--banner-start), var(--banner-end));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 4rem; /* 下は余裕を多めに */
}

/* ② 半透明サークルを背後に */
.reserve-banner::before,
.reserve-banner::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  z-index: 0;
}
.reserve-banner::before {
  top: -80px;
  left: -50px;
}
.reserve-banner::after {
  bottom: -80px;
  right: -50px;
}

/* 見出し・テキストは上に出す */
.reserve-banner h2,
.reserve-banner p,
.reserve-banner .btn-reserve-banner {
  position: relative;
  z-index: 1;
}

/* 見出し */
.reserve-banner h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}

/* サブテキスト */
.reserve-banner p {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.1rem;
}

/* ボタン */
.btn-reserve-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--button-accent);
  color: #000;
  padding: 1rem 6rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
}
.btn-reserve-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  background: #68c0ef;
}
.btn-reserve-banner .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-reserve-banner:hover .arrow {
  transform: translateX(4px);
}

/* ===== Info セクション全体 ===== */
.info-section {
  background: var(--bg-light);
  padding: 0; /* バナーのパディングと切り分け */
}

/* 2カラムレイアウト */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 4rem;  /* バナーと下部の間にマージン */
  padding: 0 1rem;
  padding-bottom: 2rem;
}

/* マップ */
.map-container {
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 詳細情報 */
.info-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.clinic-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.info-logo {
  height: 40px;
}
.address {
  white-space: nowrap;
  padding-left: .8rem;
  border-left: 4px solid var(--highlight);
  font-size: .95rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.address .postcode {
  font-weight: bold;
  margin-bottom: .4rem;
}
.address a {
  color: var(--text-dark);
  text-decoration: none;
}

/* Clinic info 内の追加エリア */
.extra-info {
  display: flex;
  gap: 1rem;
  margin-left: auto;       /* 住所の右側に寄せる */
  align-items: flex-start;
}

/* 各カード */
.extra-item {
  background: rgba(251, 167, 119, 0.15); /* --highlight の15%透過 */
  border: 1px solid var(--highlight);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  min-width: 80px;
}

/* 見出し */
.extra-item h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* 詳細テキスト */
.extra-item p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}


/* 時間表 */
.hours {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: .9rem;
}
.hours th,
.hours td {
  padding: .6rem .4rem;
  border: 1px solid rgba(0,0,0,0.1);
}
.hours thead {
  background: #fff;
}
.hours tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
.hours tbody td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

:root {
  --footer-bg: #eef6ff;
  --footer-line-start: #5cacee;
  --footer-line-end: #fba777;
  --footer-text: #777;
}

/* ページトップボタン */
.back-to-top {
  text-align: center;
  margin: 3rem 0 1rem;
}
.back-to-top a {
  display: inline-block;
  background: #8ec6f3;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== サイトフッター ===== */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--footer-text);
  overflow: hidden;
}

/* 上部のグラデライン */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--footer-line-start), var(--footer-line-end));
}

/* クリニック名だけ少し強調 */
.site-footer .clinic-name {
  font-weight: 600;
  color: #333;
}

/* ヘッダー内 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  transition: transform .3s;
}

/* モバイル用 */
@media (max-width: 480px) {
  /* ヘッダー */
  .hamburger {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 80%;
    max-width: 240px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid #eee;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
  }

  .btn-online {
    padding: 0 0;
  }

  /* ドロップダウンを非表示 */
  .has-dropdown .dropdown {
    display: none !important;
  }
}

@media (max-width: 480px) {
  /* --- メインビジュアル --- */

.clinic-subname {
  margin-left: 5px;
  font-size: 0.75rem;
}

  .main-visual {
    height: auto;           /* 高さ固定を解除 */
  }
  .visual-carousel .visual-img img {
    object-fit: cover;
    height: auto;
         
  }
  .visual-overlay {
    display: none;          /* オーバーレイを隠す */
  }
  .visual-text {
    position: static;       /* 画面下固定を解除 */
    transform: none;
    padding: 1rem;
    text-align: center;
    color: var(--primary);
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    margin: 0rem 1rem 2rem; /* 画像にかぶせ＆余白調整 */
  }

  /* --- クリニック紹介セクション --- */
  .clinic-intro {
    display: block;         /* 縦積みレイアウトに */
    background: var(--primary);  /* アクセント薄ブルー */
    padding: 1rem;
    margin: 0;              /* 横余白を詰める */
    border-radius: 0;
  }
  .clinic-intro .clip-shape {
    display: none;          /* 斜めシェイプを隠す */
  }
  .clinic-intro .clinic-text {
    background: #fff;       /* 白いカード風 */
    padding: 1rem;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .clinic-intro .clinic-text h2 {
    font-size: 1.4rem;
  }
  .clinic-intro .clinic-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    background: none;
    padding: 0;
    text-align: left;
    position: static;
  }
  .clinic-intro .features {
    display: flex;
    flex-direction: column; /* 縦にアイコン並べる */
    gap: 0.8rem;
  }
  .clinic-intro .feature {
    padding-left: 0;
    gap: 0.6rem;
  }
  .clinic-intro .btn-learn-more {
    display: block;
    width: 50%;
    text-align: center;
    margin-top: 1rem;
  }
  .clinic-intro .clinic-image {
    width: 100%;
    height: auto;
    aspect-ratio: unset;
    margin-top: 1rem;
    border-radius: 12px;
    background: none;
  }

  /* --- 共通調整 --- */
  body {
    padding-top: 0; /* 固定ヘッダーとの干渉軽減 */
  }
}

/* レスポンシブ */
@media (max-width: 800px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .clinic-info {
    flex-direction: column;
    text-align: center;
  }
}  


/* クリニック紹介のページ */

:root {
  --primary: #1d92f2;
  --accent: #fba777;
  --bg-sub: #ffffff;
  --text-dark: #333;
  --text-muted: #555;
  --page-title-start: #70b9f6;  /* グラデ開始色 */
  --page-title-end:   #fff;     /* グラデ終了色 */

}

.page-title {
  background: linear-gradient(
    to bottom,
    var(--page-title-start),
    var(--page-title-start) 40%,
    var(--page-title-end)
  );
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* パンくずがぴったり続くようにマージン調整 */
.page-title + .breadcrumb {
  margin-top: 0.1rem; 
}

/* ─── パンくず ─── */
.breadcrumb {
  max-width: 1200px;
  margin: 20px auto 20px;
  padding: 0 1rem;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb span {
  color: var(--text-dark);
}

/* ─── 共通ヒーロー ─── */
.info-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 60px auto;
  background: var(--bg-sub);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 2rem;
}

/* 上部右に半透明丸 */
.info-hero::before {
  content: "";
  position: absolute;
  width: 180px;   height: 180px;
  background: var(--accent);
  border-radius: 50%;
  top: -40px;     right: -40px;
  opacity: 0.25;
  z-index: 0;
}

/* 下部左に小さめ丸 */
.info-hero::after {
  content: "";
  position: absolute;
  width: 120px;   height: 120px;
  background: var(--accent);
  border-radius: 50%;
  bottom: -30px;  left: -30px;
  opacity: 0.20;
  z-index: 0;
}

/* テキスト・画像はその上に出す */
.info-hero > * {
  position: relative;
  z-index: 1;
}

.info-hero.reverse {
  flex-direction: row-reverse;
}

/* ─── 画像 ─── */
.info-hero-image {
  flex: 1 1 320px;
}
.info-hero-image img {
  width: 100%;
  display: block;
  height: 320px;       
  object-fit: cover; 
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.info-hero.reverse .info-hero-image img {
  object-fit: cover;
  object-position: 50% 20%; 
  width: 100%;
  height: 320px; 
  border-radius: 16px;
}

/* ─── テキスト ─── */
.info-hero-text {
  flex: 1 1 320px;
}
.info-hero-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.info-hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}
/* テキスト左側にオレンジのラインをアクセント */
.info-hero-text p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: var(--accent);
}

:root {
  --primary:      #1d92f2;
  --accent:       #fba777;
  --bg-light:     #f7fbff;
  --text-dark:    #333;
  --text-muted:   #555;
}

.features-section {
  background: var(--bg-light);
  padding: 80px 1rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 見出し */
.section-title {
  font-size: 2.4rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ① 目玉の特徴 2カラム */
.main-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.feature-card.big {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card.big:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.feature-card.big .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-card.big h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 1rem;
}
.feature-card.big p {
  color: var(--text-muted);
  margin: 0 1rem 1.5rem;
  line-height: 1.6;
}

/* ② その他の特徴 3カラム（画像＋テキスト） */
.sub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}
.feature-card.medium {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: background .3s ease, box-shadow .3s ease;
  padding-top: 2rem;
}
.feature-card.medium .card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.feature-card.medium h4 {
  margin: 0.8rem 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
}
.feature-card.medium:hover {
  background: rgba(251,167,119,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ③ 患者様とのお約束 4カラム（丸＋画像＋テキスト） */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 2rem;
  padding: 2rem 1rem;  /* 余白をやや増やしてゆったり感 */
}
.promise {
  text-align: center;
  position: relative;
}
/* 背後の薄いオレンジ丸 */
.promise::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 140%;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.1;
  z-index: 0;
}
/* 画像とテキストはその上に */
.promise .promise-image,
.promise p {
  position: relative;
  z-index: 1;
}
.promise .promise-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow .3s ease;
}
.promise .promise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promise p {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.3;
  transition: color .3s ease;
}
.promise:hover .promise-image {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.promise:hover p {
  color: var(--primary);
}


/* レスポンシブ調整 */
@media (max-width: 800px) {
  .main-features,
  .sub-features,
  .promises {
    grid-template-columns: 1fr;
  }
}

/* ─── レスポンシブ ─── */
@media (max-width: 800px) {
  .info-hero {
    flex-direction: column;
    text-align: center;
  }
  .info-hero.reverse {
    flex-direction: column;
  }
  .info-hero-text p {
    padding-left: 0;
  }
  .info-hero-text p::before {
    display: none;
  }
}

/* ─── スマホ用（480px以下） ─── */
@media (max-width: 480px) {
  .info-hero {
    margin: 20px 0;         /* 上下20pxに */
    padding: 1rem 0.5rem;   /* パディングを上下1rem、左右0.5remに */
  }
  .info-hero + .info-hero {
    margin-top: 1rem;       /* セクション間1rem */
  }
  .info-hero-image,
  .info-hero-text {
    flex: 1 1 100%;         /* 縦積みで幅100% */
  }
  .info-hero-image img {
    max-height: none;       /* 高さ制限解除して自然なリサイズに */
  }
  .info-hero-text h2 {
    font-size: 1.6rem;      /* タイトル少し小さめに */
  }
}

/* 院長よりごあいさつページ */


/* 挨拶セクションベース */
.greeting-message {
  background: #e5eff8;
  padding: 80px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 2カラム：写真＋テキスト */
.greeting-flex {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 60px;
}

/* 写真側デコレーション */
.greeting-photo {
  position: relative;
}
.greeting-photo .photo-deco {
  position: absolute;
  top: -10px; left: -10px;
  width: 60px; height: 60px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}
.greeting-photo img {
  position: relative;
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1;
}

/* テキスト側デコ：斜めストライプ */
.greeting-text {
  position: relative;
}
.greeting-text .text-deco {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.4),
    rgba(255,255,255,0.4) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 0;
}
.greeting-text h2 {
  position: relative;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f3c88;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
  z-index: 1;
}
.greeting-text p {
  position: relative;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 1rem;
  z-index: 1;
}

/* 略歴＋クリニック全景の2カラム */
.career-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* 略歴 */
.career h3 {
  font-size: 1.6rem;
  color: #1f3c88;
  margin-bottom: 1rem;
  position: relative;
}
.career h3::before {
  content: "●";
  padding-left: 1rem;
  padding-right: 0.9rem;
  color: var(--primary);
}
.career ul {
  list-style: none;
  padding-left: 2.2rem;
  border-left: 4px solid var(--accent);
}
.career li {
  margin-bottom: .6rem;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: #444;
  position: relative;
}
.career li::before {
  content: "●";
  position: absolute;
  left: -1rem;
  color: var(--primary);
  font-size: .8rem;
  padding-right: 10rem;
}

/* クリニック全景 */
.clinic-overview {
  position: relative;
}
.clinic-overview .overview-deco {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 80px; height: 80px;
  background: var(--primary);
  border-radius: 20px 0 20px 0;
  opacity: 0.2;
  z-index: 0;
}
.clinic-overview img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1;
}

/* レスポンシブ */
@media (max-width: 800px) {
  .greeting-flex,
  .career-flex {
    grid-template-columns: 1fr;
  }
  .greeting-text .text-deco,
  .clinic-overview .overview-deco,
  .greeting-photo .photo-deco {
    display: none;
  }
}


/* 診療内容 */



:root {
  --primary:    #1d92f2;
  --accent:     #fba777;
  --bg-light:   #f7fbff;
  --text-dark:  #333;
  --text-muted: #555;
}


/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* コンテナ共通 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

}


/* ── ページヘッダー ── */
.page-header {
  background: linear-gradient(135deg, #dceeff, #e9f6ff);
  text-align: center;
  padding: 40px 0 20px;
}
.page-header h1 {
  font-size: 2.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── サービスタブ ── */
.services-nav {
  padding-bottom: 20px;
  text-align: center;
}
.services-tabs {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.services-tabs li a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  transition: background .3s ease, transform .2s ease;
  text-decoration: none;
}
.services-tabs li a:hover,
.services-tabs li a:focus {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── 院長メッセージ ── */
.services-intro {
  background: var(--bg-light);
  padding: 60px 0;
}
.intro-flex {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.intro-text h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.intro-text p {
  color: var(--text-dark);
  line-height: 1.6;
}
.intro-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


/* --- デコ丸 --- */
.intro-deco-circle {
  position: absolute;
  background: var(--accent);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}
.intro-deco-circle--top {
  width: 80px; height: 80px;
  top: 60px; left: 0;
}
.intro-deco-circle--bottom {
  width: 60px; height: 60px;
  bottom: 20px; left:-70%;
}

/* --- ストライプパターン --- */
.intro-deco-stripe {
  position: absolute;
  top: 0; right: 11rem;
  width: 100px; height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(199, 227, 246, 0.588),
    rgba(173, 200, 251, 0.58) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 0;
}

/* イントロ全体も relative に */
.services-intro .intro-flex {
  position: relative;
}

/* テキストと写真は前面に */
.intro-text, .intro-photo {
  position: relative;
  z-index: 100;
}

/* ── 各サービスセクション ── */
.service-section {
  padding: 60px 0;
  overflow: visible;
}
.service-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
}
.service-title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 30px;
  background: var(--accent);
  margin-right: 8px;
}

/* 画像＋説明 */

.service-photo {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-section.active .service-photo {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 32px rgba(0,0,0,10);
}


.service-desc-flex {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.service-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service-desc p {
  color: var(--text-dark);
  line-height: 1.6;
}


/* ポイント小見出し */
.service-points-heading {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: .6rem;
  margin-top: 1rem;
  letter-spacing: .05em;
}

/* ポイントリスト */
.service-points-list {
  list-style: none;
  padding: 0;
}
.service-points-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .4rem;
  font-size: .95rem;
  color: var(--text-dark);
}
.service-points-list li::before {
  content: "✔︎";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .intro-flex,
  .service-desc-flex,
  .service-points-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* 1. ストライプ消し */
  .services-intro .intro-deco-stripe {
    display: none;
  }

  /* 2. オレンジ丸の位置＆サイズをスマホ用に */
  .services-intro .intro-deco-circle--top {
    width: 50px;
    height: 50px;
    top: -15px;    
    left: 1rem;    
    opacity: 0.25;
  }

  /* 3. セクション上部のパディングをちょい詰め */
  .services-intro {
    padding-top: 30px;  
  }

  /* 4. タイトル下の余白を削る */
  .services-intro .intro-text h2 {
    margin-bottom: 0.4rem;
  }
   /* サービスタブを2カラムのグリッドに */
   .services-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    justify-items: center;
  }
  /* ボタンは幅いっぱいにしてテキスト真ん中寄せ */
  .services-tabs li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1,3rem;
    box-sizing: border-box;
  }
}

/* ── お問い合わせページ ── */
.contact-section {
  padding: 80px 1rem;
  background: #f7fbff;
}
.contact-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* WPForms のフォーム全体 */
.wpforms-form {
  display: grid;
  gap: 1rem;
}

/* 入力フィールド */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* 送信ボタン */
.wpforms-submit {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  justify-self: start;
}
.wpforms-submit:hover {
  background: #e89b5c; /* var(--accent) を少し暗く */
}

body.page-template-page-reservation .menu-item-reservation {
  display: none;
}
/* style.css に追加 */
.main-nav .menu-item-reservation > a.btn-online {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background: linear-gradient(135deg, #428dca, #7dcfff);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s, background .3s;
  text-decoration: none;
}
.main-nav .menu-item-reservation > a.btn-online:hover {
  background: linear-gradient(135deg, #7dcfff, #5cacee);
  transform: translateY(-2px);
}

body.page-template-page-reservation .menu-item-reservation {
  display: none;
}

/* ── ご予約完了ページの装飾 ── */
.thanks-section {
  background: var(--bg-light);
  padding: 80px 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin: 2rem auto;
  max-width: 800px;
}

/* 背景に薄いオレンジの丸を２つ */
.thanks-section::before,
.thanks-section::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}
.thanks-section::before {
  width: 180px; height: 180px;
  top: -60px; right: -60px;
}
.thanks-section::after {
  width: 120px; height: 120px;
  bottom: -40px; left: -40px;
}

/* 見出しにアクセントライン */
.thanks-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 12px;
}
.thanks-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 6px; height: 1.6rem;
  background: var(--accent);
}

/* 文章エリア */
.thanks-message {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
/* 注意書き */
.thanks-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* アクションボタン */
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.thanks-actions .btn {
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thanks-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.thanks-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,146,242,0.4);
}
.thanks-actions .btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.thanks-actions .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,146,242,0.4);
}

/* * ── 404ページ ── */ 
.page-404 {
  position: relative;
  background: var(--bg-light);
  padding: 80px 1rem;
  text-align: center;
  overflow: hidden;
  margin: 2rem auto;
}
.page-404::before,
.page-404::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}
.page-404::before {
  width: 180px; height: 180px;
  top: -60px; left: -60px;
}
.page-404::after {
  width: 120px; height: 120px;
  bottom: -40px; right: -40px;
}

.page-404 .container {
  position: relative;
  z-index: 1;
}

/* 大きな404コード */
.error-code {
  font-size: 6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* メッセージ */
.error-message {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 戻るボタン */
.page-404 .btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #fff;
  color: var(--primary); 
  border-radius: 9999px;
  font-weight: 600;
  border: 2px solid var(--primary);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-404 .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,146,242,0.4);
}

/* ── 最新ニュースセクション ── */
.latest-news-section {
  padding: 60px 1rem;
  background: var(--bg-light);
}
.latest-news-section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}
.news-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.news-item a {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-item time {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-item .news-title {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-dark);
}
.news-item .news-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.btn-news-archive {
  display: inline-block;
  margin: 2rem auto 0;
  padding: 0.8rem 2rem;
  background: #fff;
  color: var(--primary); 
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s;
}
.btn-news-archive:hover {
  background: var(--primary);
  color: #fff;
}


/* ── 投稿詳細ページ おしゃれ横並びレイアウト ── */
.post-detail {
  padding: 60px 1rem;
  background: #f7fbff;
}

/* タイトル・メタは今までどおり中央寄せ */
.post-detail .post-title {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: .5rem;
  text-align: center;
}
.post-detail .post-meta {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* 画像＋本文を横並びにするコンテナ */
.post-detail .post-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* スマホでは縦並びに */
  margin-top: 2rem;
}

/* サムネイル側 */
.post-detail .post-thumbnail {
  flex: 1 1 40%;
  max-width: 400px;
}
.post-detail .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
}

/* 本文側 */
.post-detail .post-content {
  flex: 1 1 50%;
  max-width: 800px;
  line-height: 1.8;
  color: var(--text-dark);
  position: relative;        /* アクセントライン用 */
  padding-left: 1.5rem;      /* ラインのぶんだけ内側に */
}

/* 左側にオレンジのアクセントライン */
.post-detail .post-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ── 投稿一覧へ戻るボタン ── */
.back-to-archive {
  text-align: center;
  margin-top: 2rem;
}

.back-to-archive .btn-back {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: #fff;
  color: var(--primary); 
  border: 2px solid var(--primary);
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.3s ease;
  text-decoration: none;
}

.back-to-archive .btn-back:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}


/* スマホ対応：縦並び＆アクセントラインはオフ */
@media (max-width: 800px) {
  .post-detail .post-body {
    flex-direction: column;
  }
  .post-detail .post-content::before {
    display: none;
  }
}
