/* =================================================================
   Portfolio Sample sites — 共通ベース
   業種別にアクセントカラーだけ切り替える
   ================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-card: #ffffff;
  --border: #e5e7ec;
  --text: #0f1419;
  --text-mid: #4a5260;
  --text-mute: #6b7280;
  --text-dim: #9aa0a8;
  --max: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ff-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --ff-en: "Inter", system-ui, sans-serif;

  /* default = business (will be overridden per page) */
  --accent: #0a3d62;
  --accent-2: #3c6382;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-jp);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

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

/* --- BizMOWA preview header (sample であることを示す) --- */
.sample-ribbon {
  background: #0f1419;
  color: #fff;
  font-size: 12px;
  padding: 8px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-en);
  letter-spacing: 0.05em;
}
.sample-ribbon a { color: #fff; text-decoration: underline; }

/* --- Site header --- */
.s-header {
  padding: 18px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.s-brand { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.s-brand .name { font-size: 19px; font-weight: 700; color: var(--text); }
.s-brand .sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; font-family: var(--ff-en); }
.s-nav { display: flex; gap: 28px; align-items: center; }
.s-nav a { font-size: 14px; color: var(--text-mid); font-weight: 500; }
.s-nav a:hover { color: var(--accent); }
.s-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 720px) { .s-nav a:not(.s-cta) { display: none; } }

/* --- Hero --- */
.s-hero {
  padding: 96px var(--pad-x) 80px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,0,0,0.04), transparent 60%),
    var(--bg);
}
.s-hero .inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .s-hero .inner { grid-template-columns: 1fr; } }
.s-hero .eyebrow { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.s-hero h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 24px; }
.s-hero h1 .acc { color: var(--accent); }
.s-hero p.lead { font-size: 16px; color: var(--text-mid); line-height: 1.95; margin-bottom: 32px; max-width: 540px; }
.s-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 4px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.primary:hover { color: #fff; opacity: 0.92; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--bg-soft); color: var(--accent); border-color: var(--accent); }
.s-hero .visual { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; aspect-ratio: 4/3; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; font-family: var(--ff-en); letter-spacing: 0.1em; }
.s-hero .visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,0,0,0.04), transparent 60%); }
.s-hero .visual .lab { position: relative; z-index: 1; }

/* --- Sections --- */
.s-section { padding: clamp(64px, 9vw, 120px) var(--pad-x); }
.s-section.alt { background: var(--bg-soft); }
.s-section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.015em; }
.s-section .head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.s-section .head p { color: var(--text-mid); font-size: 15.5px; line-height: 1.9; }
.s-section .head .eyebrow { font-family: var(--ff-en); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; display: block; }
.s-section .container { max-width: var(--max); margin: 0 auto; }

/* --- Features grid --- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feat:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 20, 25, 0.06); }
.feat .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grad);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.feat .icon svg {
  width: 26px; height: 26px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--text-mid); line-height: 1.85; }

/* --- Service list 4列 --- */
.svc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .svc-list { grid-template-columns: 1fr; } }
.svc { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.svc .num { font-family: var(--ff-en); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 8px; }
.svc h3 { font-size: 15px; margin-bottom: 6px; }
.svc p { font-size: 13px; color: var(--text-mute); line-height: 1.7; }

/* --- CTA banner --- */
.s-cta-banner {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: clamp(48px, 7vw, 72px) var(--pad-x);
  border-radius: 8px;
  margin: 0 var(--pad-x);
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
}
.s-cta-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.s-cta-banner p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 28px; }
.s-cta-banner .btn.primary { background: #fff; color: var(--accent); }
.s-cta-banner .btn.primary:hover { color: var(--accent); }

/* --- Footer --- */
.s-footer { background: #fafbfc; padding: 48px var(--pad-x) 28px; border-top: 1px solid var(--border); margin-top: 80px; }
.s-footer .inner { max-width: var(--max); margin: 0 auto; }
.s-footer .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .s-footer .row { grid-template-columns: 1fr; gap: 24px; } }
.s-footer .row .name { font-weight: 700; font-size: 17px; }
.s-footer .row address { font-style: normal; color: var(--text-mid); font-size: 13px; line-height: 1.85; margin-top: 12px; }
.s-footer h4 { font-size: 11px; letter-spacing: 0.18em; color: var(--text-dim); font-family: var(--ff-en); text-transform: uppercase; margin-bottom: 14px; }
.s-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.s-footer ul a { color: var(--text-mid); font-size: 14px; }
.s-footer .copy { text-align: center; color: var(--text-dim); font-size: 12px; padding-top: 24px; font-family: var(--ff-en); letter-spacing: 0.1em; }

/* ---- Business 配色 ---- */
.theme-business { --accent: #0a3d62; --accent-2: #3c6382; }
/* ---- Shigyou 配色（士業：深い赤茶系で格式） ---- */
.theme-shigyou { --accent: #5d2e2e; --accent-2: #8b4f3f; }
/* ---- Medical 配色（医療：清潔感のあるスカイブルー） ---- */
.theme-medical { --accent: #1b6ca8; --accent-2: #3aa6c9; --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }
/* ---- Restaurant 配色（飲食：温かみのあるバーガンディ） ---- */
.theme-restaurant { --accent: #6b2a3a; --accent-2: #a4564f; --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }

/* === HERO visual に実画像を表示 === */
.s-hero .visual.has-image {
  background-size: cover;
  background-position: center;
  border-color: transparent;
}
.s-hero .visual.has-image .lab { display: none; }
.s-hero .visual.has-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.10) 100%);
}

.s-hero .visual.visual-business { background-image: url("img/business.jpg"); }
.s-hero .visual.visual-shigyou  { background-image: url("img/shigyou.jpg"); }
.s-hero .visual.visual-medical  { background-image: url("img/medical.jpg"); }
.s-hero .visual.visual-restaurant { background-image: url("img/restaurant.jpg"); }

/* === 予約フォーム（共通ラッパー） === */
.reserve {
  background: var(--bg-soft);
  padding: clamp(48px, 7vw, 80px) var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reserve .container { max-width: 760px; margin: 0 auto; }
.reserve .head { text-align: center; margin-bottom: 36px; }
.reserve .head .eyebrow {
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}
.reserve .head h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.reserve .head p { color: var(--text-mid); font-size: 14.5px; }

.reserve-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 14px rgba(15, 20, 25, 0.05);
}
.reserve-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.reserve-form .row.full { grid-template-columns: 1fr; }
@media (max-width: 600px) { .reserve-form .row { grid-template-columns: 1fr; } }
.reserve-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.reserve-form label .req { color: #d33; margin-left: 4px; font-weight: 700; }
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.reserve-form textarea { resize: vertical; min-height: 90px; }
.reserve-form .submit-row { text-align: center; margin-top: 24px; }
.reserve-form .submit-row button {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s, transform .2s;
}
.reserve-form .submit-row button:hover { opacity: 0.92; transform: translateY(-1px); }
.reserve-form .note { font-size: 12px; color: var(--text-mute); text-align: center; margin-top: 14px; line-height: 1.7; }

/* === 病院風 診療時間テーブル === */
.schedule {
  margin: 0 auto;
  max-width: 760px;
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 20, 25, 0.04);
}
.schedule table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  min-width: 600px;
}
.schedule th,
.schedule td {
  padding: 14px 6px;
  text-align: center;
  border: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}
.schedule thead th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.schedule thead th.holiday { color: #c0392b; }
.schedule thead th.saturday { color: var(--accent); }
.schedule tbody th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-mid);
  text-align: left;
  padding-left: 16px;
  font-size: 13px;
  width: 140px;
}
.schedule tbody td {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.schedule tbody td.closed {
  color: var(--text-dim);
  font-weight: 400;
}
.schedule-note {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.85;
  text-align: center;
}
.schedule-note .legend {
  display: inline-flex; gap: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-mid);
}
.schedule-note .legend span { display: inline-flex; align-items: center; gap: 4px; }
.schedule-note .legend strong { color: var(--accent); font-weight: 700; }
.schedule-note .legend .x { color: var(--text-dim); }

/* === Hero h1 の文節制御（医療系の長文タイトル対応） === */
.s-hero h1 .line {
  display: block;          /* 各文節を完全に独立行に。中間で折れない */
}
.s-hero h1 {
  word-break: keep-all;    /* 日本語の語中で折らない */
  line-break: strict;
}
