/*
Theme Name: 香里まつだ整骨院
Theme URI: https://korimatsudaseikotsuin.com
Author: 香里まつだ整骨院
Description: 枚方市・香里まつだ整骨院のオリジナルWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kori-matsuda
*/

/* ========================================
   基本リセット・フォント設定
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:   #3D7A6F;   /* 深みのあるグリーン */
  --color-primary-light: #5A9E91;
  --color-accent:    #E8A045;   /* 温かみのあるオレンジ */
  --color-bg:        #F7F9F8;
  --color-white:     #FFFFFF;
  --color-text:      #333333;
  --color-text-light:#666666;
  --color-border:    #E0E8E5;
  --font-main: 'Noto Sans JP', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   ボタン
======================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61,122,111,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   セクション共通
======================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--color-white); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* ========================================
   ヘッダー
======================================== */
#site-header {
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .clinic-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.site-logo .clinic-sub {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

/* カスタムロゴ */
.site-logo .custom-logo-link img,
.site-logo .custom-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* ナビゲーション */
#site-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
#site-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 0;
  position: relative;
}
#site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}
#site-nav a:hover::after,
#site-nav a.current-page::after { width: 100%; }

/* ハンバーガーメニュー（スマホ） */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   ヒーローセクション
======================================== */
#hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2A5F56 100%);
  color: var(--color-white);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.hero-title span { color: #B8E6DF; }
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.9;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.btn-hero:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.btn-hero-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

/* 診療時間バー */
.hero-hours {
  margin-top: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 32px;
  display: inline-flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-hours-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.hero-hours-item .icon { font-size: 20px; }
.hero-hours-item strong { font-size: 16px; color: #fff; }

/* ========================================
   特徴セクション
======================================== */
#features { background: var(--color-white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.feature-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ========================================
   メニュー・料金（トップページ用）
======================================== */
#menu-preview .menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.menu-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.3s;
}
.menu-card:hover { box-shadow: var(--shadow); }
.menu-card-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.menu-card-body {}
.menu-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.menu-card-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 10px;
}
.menu-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}
.menu-more { text-align: center; }

/* ========================================
   お知らせ・ブログ
======================================== */
.news-list { margin-bottom: 40px; }
.news-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-item:first-child { border-top: 1px solid var(--color-border); }
.news-date {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 100px;
}
.news-category {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.news-title-link {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
}
.news-title-link:hover { color: var(--color-primary); }
.news-more { text-align: center; }

/* ========================================
   アクセス
======================================== */
#access { background: var(--color-white); }
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
  background: #e0e8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}
.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.access-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.access-table th, .access-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.access-table th {
  color: var(--color-text-light);
  white-space: nowrap;
  width: 90px;
  font-weight: 500;
}
.access-table td { font-weight: 400; }
.closed { color: #d9534f; font-weight: 500; }

/* ========================================
   フッター
======================================== */
#site-footer {
  background: #2A3D3A;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-clinic-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.footer-nav a:hover { color: #fff; }
.footer-hours-table { width: 100%; font-size: 13px; }
.footer-hours-table tr td { padding: 4px 0; }
.footer-hours-table .day { color: rgba(255,255,255,0.5); min-width: 80px; }
.footer-hours-table .time { color: rgba(255,255,255,0.85); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   メニュー・料金ページ
======================================== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), #2A5F56);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.page-header p {
  margin-top: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.page-content { padding: 60px 0; }

.price-section { margin-bottom: 60px; }
.price-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--color-accent);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.price-table thead { background: var(--color-primary); color: #fff; }
.price-table th { padding: 14px 20px; font-weight: 500; font-size: 14px; }
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-bg); }
.price-amount { font-weight: 700; color: var(--color-accent); }
.price-note {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 12px;
}

/* ========================================
   ブログ一覧
======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card-img {
  height: 180px;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 13px;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.blog-card-date { font-size: 12px; color: var(--color-text-light); }
.blog-card-cat {
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 50px;
}
.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--color-primary); }

/* ========================================
   単一記事ページ
======================================== */
.single-post { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.single-post-header { margin-bottom: 32px; }
.single-post-cats { display: flex; gap: 8px; margin-bottom: 12px; }
.single-post-cat {
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 50px;
}
.single-post-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 12px;
}
.single-post-date { font-size: 13px; color: var(--color-text-light); }
.single-post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.single-post-content { line-height: 1.9; }
.single-post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.single-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.single-post-content p { margin-bottom: 16px; }
.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.post-nav-link .label { color: var(--color-text-light); }
.post-nav-link .title { font-weight: 700; color: var(--color-primary); }

/* ========================================
   レスポンシブ（スマホ対応）
======================================== */
@media (max-width: 768px) {
  #site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 16px 0; }
  #site-nav.is-open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav a { display: block; padding: 12px 24px; font-size: 16px; }
  #menu-toggle { display: flex; }
  .header-inner { position: relative; }

  .features-grid { grid-template-columns: 1fr; }
  #menu-preview .menu-cards { grid-template-columns: 1fr; }
  .access-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero-hours { gap: 20px; padding: 16px 20px; }
  .section { padding: 56px 0; }
  #hero { padding: 70px 24px; }
}
