/* ============================================================
   styles.css — 東洋医学恒星会 (1画面 100vh 和モダン・エディトリアル)
   ============================================================ */

:root {
  --clr-teal:       #0B4F52; 
  --clr-sage:       #9EBF9A; 
  --clr-sage-lt:    #EEF3ED;
  --clr-orange:     #E69A6C; 
  --clr-cream:      #FAF8F2; 
  --clr-border:     #D8DDD2; 
  --clr-muted:      #6A807E; 

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --dur:  .3s;
}

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

body {
  font-family: var(--font-jp); background: var(--clr-cream); color: var(--clr-teal);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
}
/* トップページのみ1画面固定 */
body.home { height: 100vh; overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── 下層ページ共通 ── */
.interior-main { flex: 1; padding: 60px 2rem 4rem; max-width: 1000px; margin: 0 auto; width: 100%; }
.page-title { font-size: 1.8rem; font-weight: 400; letter-spacing: 0.1em; color: var(--clr-teal); margin-bottom: 2rem; border-bottom: 1px solid var(--clr-border); padding-bottom: 1rem; }
.post-list { display: flex; flex-direction: column; gap: 2rem; }
.post-item { border-bottom: 1px solid var(--clr-border); padding-bottom: 2rem; }
.post-date { font-family: var(--font-en); font-size: 0.8rem; color: var(--clr-muted); margin-bottom: 0.5rem; display: block; }
.post-title { font-size: 1.4rem; color: var(--clr-teal); margin-bottom: 1rem; }
.post-excerpt { font-size: 0.9rem; color: var(--clr-muted); line-height: 1.8; }
.post-content { line-height: 1.9; color: var(--clr-teal); }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.3rem; border-left: 3px solid var(--clr-sage); padding-left: 1rem; }
.post-content p { margin-bottom: 1.5rem; }

/* ── ヘッダー ── */
.header { height: 60px; flex-shrink: 0; border-bottom: 1px solid var(--clr-border); background: var(--clr-cream); }
.header-inner { height: 100%; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.header-logo { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.08em; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.header-link { font-size: 0.75rem; color: var(--clr-muted); transition: color var(--dur); }
.header-link:hover { color: var(--clr-teal); }
.header-cta { font-family: var(--font-en); font-weight: 500; font-size: 0.8rem; padding: 0.4rem 1rem; border-radius: 99px; background: var(--clr-teal); color: var(--clr-cream); transition: opacity var(--dur); }
.header-cta:hover { opacity: 0.85; }

/* ── メインラッパー（1画面固定の要） ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 95px); /* Header(60px) + Footer(35px) = 95px */
  overflow: hidden;
}

/* ── トップ：ブランドロゴエリア（上部40%） ── */
.brand-area { 
  flex: 0 0 40%; 
  display: flex; align-items: center; justify-content: center; position: relative; 
}
.brand-logo-img { 
  width: 100%; max-width: 480px; 
  height: auto; max-height: 200px;
  object-fit: contain;
  opacity: 0; animation: fadeUp 1s cubic-bezier(.16, 1, .3, 1) forwards; 
}
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }

/* ── トップ：事業グリッド（下部58%） ── */
.services-grid { 
  flex: 1; 
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); 
  background: var(--clr-border); 
  gap: 1px; 
  border-top: 1px solid var(--clr-border); 
  min-height: 0; /* フレックス子要素のグリッドが正しく縮むための魔法の記述 */
}
.svc-cell { 
  padding: clamp(0.8rem, 2vh, 1.5rem) clamp(1rem, 2vw, 2rem); 
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  position: relative; z-index: 1;
  overflow: hidden;
}

.svc-cell:nth-child(1) { background: #F2F8F8; }
.svc-cell:nth-child(2) { background: #FEF6F1; }
.svc-cell:nth-child(3) { background: #F5FAF4; }
.svc-cell:nth-child(4) { background: #F0F6F9; }
.svc-cell:nth-child(5) { background: #FAFAFA; }
.svc-cell:nth-child(6) { background: #F5FAF4; }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { font-family: var(--font-en); font-size: clamp(0.85rem, 1.5vh, 1rem); color: var(--clr-teal); font-weight: 600; opacity: 0.5; line-height: 1; }
.svc-arrow { font-family: var(--font-en); font-size: clamp(1rem, 2vh, 1.3rem); color: var(--clr-orange); transition: all 0.4s ease; opacity: 0.8; line-height: 1; }
.svc-bottom { display: flex; flex-direction: column; gap: 0.2rem; }
.svc-cat { display: flex; align-items: center; gap: 0.3rem; font-size: clamp(0.65rem, 1.2vh, 0.75rem); color: var(--clr-muted); letter-spacing: 0.05em; font-weight: 500; }
.svc-name { font-size: clamp(1rem, 1.8vh, 1.2rem); font-weight: 600; color: var(--clr-teal); letter-spacing: 0.02em; line-height: 1.3; }
.svc-desc { 
  font-size: clamp(0.7rem, 1.3vh, 0.8rem); 
  color: var(--clr-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* 行数制限ではみ出し防止 */
}

.svc-cell:hover { 
  background: #FFFFFF; 
  transform: scale(1.03); 
  box-shadow: 0 20px 40px rgba(11, 79, 82, 0.08); 
  z-index: 10; 
  border-radius: 16px; 
}
.svc-cell:hover .svc-arrow { transform: translateX(5px) translateY(-5px); opacity: 1; color: var(--clr-teal); }

.badge { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 99px; font-family: var(--font-en); font-size: 0.6rem; font-weight: 600; }
.badge--new { background: var(--clr-orange); color: #fff; }

.svc-cell--soon { opacity: 0.7; }
.svc-cell--soon:hover { opacity: 1; transform: scale(1.01); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* ── RouteEcho コンパクト版 ── */
.re-compact { display: flex; align-items: stretch; gap: 4rem; }
.re-left { flex: 1; padding-top: 1rem; }
.re-title { font-family: var(--font-en); font-size: 3.5rem; color: var(--clr-teal); margin-bottom: 0.5rem; font-weight: 600; letter-spacing: -0.02em; }
.re-subtitle { font-size: 1.2rem; color: var(--clr-orange); margin-bottom: 2rem; font-weight: 500; }
.re-desc { color: var(--clr-muted); line-height: 1.8; margin-bottom: 3rem; }

.re-feature-list { list-style: none; padding: 0; }
.re-feature-list li { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; color: var(--clr-teal); font-weight: 500; font-size: 1.05rem; }
.re-feature-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--clr-sage-lt); display: flex; align-items: center; justify-content: center; color: var(--clr-orange); font-size: 1.2rem; flex-shrink: 0; }

.re-right { flex: 0 0 400px; }
.re-contact-card { background: var(--clr-teal); padding: 2.5rem; border-radius: 16px; color: var(--clr-cream); box-shadow: 0 20px 40px rgba(11,79,82,0.1); }
.re-contact-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; text-align: center; font-weight: 400; letter-spacing: 0.1em; }
.re-contact-card p { font-size: 0.85rem; text-align: center; margin-bottom: 2rem; opacity: 0.8; }

.re-contact-card input, .re-contact-card textarea, .re-wp-form input:not([type="submit"]), .re-wp-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(250,248,242,0.3); color: var(--clr-cream); padding: 0.8rem 0; margin-bottom: 1.5rem; font-size: 0.95rem; outline: none; transition: border-color var(--dur);
}
.re-contact-card input::placeholder, .re-contact-card textarea::placeholder { color: rgba(250,248,242,0.5); }
.re-contact-card input:focus, .re-contact-card textarea:focus { border-color: var(--clr-orange); }
.re-contact-card button, .re-contact-card input[type="submit"], .re-wp-form button, .re-wp-form input[type="submit"] {
  background: var(--clr-orange); color: #fff; border: none; padding: 1rem; border-radius: 99px; font-size: 1rem; cursor: pointer; transition: opacity var(--dur); width: 100%; font-weight: 500;
}
.re-contact-card button:hover, .re-contact-card input[type="submit"]:hover { opacity: 0.85; }

/* ── ショップ ── */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.product-card { display: block; background: #fff; border: 1px solid var(--clr-border); transition: border-color var(--dur), transform var(--dur); border-radius: 8px; overflow: hidden; }
.product-card:hover { border-color: var(--clr-teal); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(11,79,82,0.05); }
.product-img { aspect-ratio: 1; background: var(--clr-sage-lt); display: flex; align-items: center; justify-content: center; color: var(--clr-muted); font-size: 0.8rem; overflow: hidden; }
.product-info { padding: 1.5rem; text-align: center; }
.product-name { font-size: 1.1rem; color: var(--clr-teal); margin-bottom: 0.5rem; font-weight: 500; }
.product-price { font-family: var(--font-en); font-size: 1.1rem; color: var(--clr-orange); }
.product-badge { display: inline-block; padding: 0.2rem 0.6rem; background: var(--clr-border); color: var(--clr-muted); font-size: 0.7rem; border-radius: 99px; margin-bottom: 0.8rem; }

/* ── フッター ── */
.footer { height: 35px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--clr-cream); }
.footer-copy { font-family: var(--font-en); font-size: 0.7rem; color: var(--clr-muted); }

/* ── スマホ対応 ── */
@media (max-width: 768px) {
  body.home { height: auto; overflow: auto; }
  .main { height: auto; overflow: visible; display: block; }
  .header-inner { padding: 0 1rem; }
  .header-link { display: none; }
  .brand-area { flex: none; padding: 4rem 1rem; display: block; text-align: center; }
  .services-grid { flex: none; display: flex; flex-direction: column; gap: 0; }
  .svc-cell { border-bottom: 1px solid var(--clr-border); padding: 2rem 1.5rem; }
  
  .re-compact { flex-direction: column; gap: 2rem; }
  .re-right { flex: none; width: 100%; }
  .shop-grid { grid-template-columns: 1fr; }
}
/* ── ブログ追加スタイル ── */
.post-title a {
  transition: color var(--dur);
}
.post-title a:hover {
  color: var(--clr-orange);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--clr-border);
  padding-top: 2rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--clr-teal);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--clr-border);
}
.pagination .page-numbers:hover {
  background: var(--clr-sage-lt);
  border-color: var(--clr-teal);
}
.pagination .page-numbers.current {
  background: var(--clr-teal);
  color: #fff;
  border-color: var(--clr-teal);
}
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-orange);
  font-weight: 500;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  text-decoration: none;
  transition: opacity var(--dur);
}
.post-back-link:hover {
  opacity: 0.8;
}
