/*
Theme Name: trois
Description: 医療法人社団trois 公式サイト用テーマ（1ページ）
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: trois
*/

:root {
  --navy: #233246;
  --text: #2e3238;
  --text-sub: #7a7f86;
  --line: #e4e1dc;
  --bg: #ffffff;
  --bg-sub: #f7f5f2;
  --max: 1120px;
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --en: "Cormorant Garamond", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 2.1;
  font-size: 15px;
  letter-spacing: .06em;
}
a { color: inherit; text-decoration: none; }
.nw { white-space: nowrap; }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .inner { padding: 0 24px; } body { font-size: 14px; } }

/* Header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}
header .inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: none; }
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ja { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--navy); }
.logo-en { font-family: var(--en); font-size: 11px; letter-spacing: .25em; color: var(--text-sub); }
nav ul { display: flex; gap: 36px; list-style: none; }
nav a { font-size: 13px; position: relative; padding-bottom: 4px; }
nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--navy); transition: width .3s; }
nav a:hover::after { width: 100%; }
@media (max-width: 900px) { nav { display: none; } }

/* FV */
.fv { padding: 200px 0 120px; position: relative; overflow: hidden; }
.fv .en { font-family: var(--en); font-size: 13px; letter-spacing: .4em; color: var(--text-sub); }
.fv h1 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(28px, 4.4vw, 48px); line-height: 1.7; letter-spacing: .12em;
  margin: 24px 0 32px;
}
.fv p { color: var(--text-sub); max-width: 36em; }
.fv-mark {
  position: absolute; right: 40px; bottom: 20px;
  font-family: var(--en); font-size: clamp(80px, 14vw, 180px); line-height: 1;
  color: var(--bg-sub); letter-spacing: .05em; z-index: -1; user-select: none;
}
@media (max-width: 600px) { .fv { padding: 140px 0 80px; } }

/* Section */
section { padding: 140px 0; }
section.sub { background: var(--bg-sub); }
.sec { display: grid; grid-template-columns: 280px 1fr; gap: 60px; }
.sec-title .en { display: block; font-family: var(--en); font-size: 13px; letter-spacing: .35em; color: var(--text-sub); text-transform: uppercase; }
.sec-title h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--navy); letter-spacing: .12em; margin-top: 12px; line-height: 1.5; }
.sec-title::after { content: ""; display: block; width: 40px; height: 1px; background: var(--navy); margin-top: 28px; }
@media (max-width: 900px) {
  section { padding: 96px 0; }
  .sec { grid-template-columns: 1fr; gap: 40px; }
  .sec-title h2 { font-size: 24px; }
}

/* Info table */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 22px 0; text-align: left; vertical-align: top; font-weight: 300; }
.info-table th { width: 9em; font-family: var(--serif); font-weight: 500; color: var(--navy); white-space: nowrap; }
@media (max-width: 600px) { .info-table th, .info-table td { display: block; } .info-table th { padding: 20px 0 0; border: 0; } .info-table td { padding: 2px 0 20px; } }

.map { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-bottom: 40px; display: block; }

/* Clinics */
.clinic { background: var(--bg-sub); border-left: 2px solid var(--navy); padding: 40px 44px; }
.clinic h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--navy); letter-spacing: .1em; }
.clinic address { font-style: normal; margin-top: 16px; color: var(--text-sub); font-size: 14px; }
@media (max-width: 600px) { .clinic { padding: 28px 24px; } .clinic h3 { font-size: 19px; } }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 88px 0 40px; font-size: 13px; }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
footer .logo-ja { font-size: 20px; color: #fff; }
footer .logo-en { color: rgba(255,255,255,.55); }
footer address { font-style: normal; margin-top: 20px; color: rgba(255,255,255,.7); }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: flex-end; }
footer ul a:hover { color: #fff; }
.copyright { width: 100%; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.5); }

/* Fade-in */
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.js .fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }

/* WordPress admin bar */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }
