/* =========================================================
   ひづなプロジェクト 公式サイト
   黒を基調に、火の赤・オレンジだけを際立たせる。
   色や余白はここの変数を変えれば全体に反映される。
   ========================================================= */
:root {
  --black: #0A0A0A;        /* 基本の背景 */
  --black-2: #111214;      /* 区切り用に少しだけ明るい黒 */
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --text: #F2EEE8;         /* 温かい白 */
  --muted: #A8A39C;        /* 補足の文字（黒の上で約7:1） */
  --fire: #F26A2E;         /* 火のオレンジ */
  --ember: #E0452B;        /* 赤寄りのオレンジ */
  --radius: 16px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- 文字 ---------- */
.label {
  color: var(--fire);
  font-size: 13px;
  letter-spacing: .22em;
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; line-height: 1.45; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 700; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 40px; }
h3 { font-size: 19px; font-weight: 700; }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; }
.note a { color: var(--text); }

/* ---------- ボタン（高さ48px・角丸16px） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1.5px solid var(--fire); border-radius: var(--radius);
  color: var(--fire); text-decoration: none; font-weight: 700; font-size: 16px;
  transition: background .3s, color .3s, box-shadow .3s;
}
.btn:hover { background: var(--fire); color: var(--black); box-shadow: 0 0 24px rgba(242, 106, 46, .45); }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn-fill { background: linear-gradient(135deg, var(--fire), var(--ember)); color: #fff; border: 0; margin-top: 12px; }
.btn-fill:hover { color: #fff; box-shadow: 0 0 32px rgba(224, 69, 43, .6); }

/* ---------- ヘッダー（スケルトン → スクロールで半透明の黒） ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px;
  transition: background .4s, backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(0, 0, 0, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { text-decoration: none; display: grid; line-height: 1.3; }
.logo-ja { font-weight: 700; font-size: 16px; margin: 0; }
.logo-en { font-size: 12px; letter-spacing: .3em; margin: 0; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .15em; }
.nav a:hover { color: var(--fire); }
.menu-btn { display: none; }

/* ---------- ファーストビュー ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { animation: breathe 18s ease-in-out infinite alternate; }
.hero::after { /* 文字の後ろだけ暗く、下は黒へ溶かす */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 65%, var(--black) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 80px; }
.hero .label { padding-bottom: 14px; border-bottom: 1px solid rgba(242,106,46,.6); display: inline-block; }
.hero h1 { margin: 18px 0 20px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.lead { max-width: 34em; margin: 0 0 32px; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section + .section { border-top: 1px solid rgba(255,255,255,.04); }
#philosophy { background: var(--black); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 32px 28px 32px 0; }
.value + .value { border-left: 1px solid var(--line); padding-left: 28px; }
.value .num { color: var(--fire); font-size: 13px; letter-spacing: .18em; margin: 0 0 14px; }
.value h3 { margin-bottom: 10px; }
.value p:last-child { color: var(--muted); font-size: 15px; margin: 0; }

/* カード：黒の上に薄い枠線だけ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- お悩み ---------- */
.worries { padding-bottom: 0; background: var(--black-2); }
.worry-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.worry { padding: 28px 24px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.worry .dash { width: 24px; height: 2px; background: var(--fire); }
.worry p { margin: 24px 0 0; font-weight: 700; }

/* ---------- 画像の帯（見せたい部分の上に文字・カードを置かない） ---------- */
.band { position: relative; margin: 0; overflow: hidden; }
.band img { width: 100%; object-fit: cover; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; z-index: 1; pointer-events: none; }
.band-hands { margin-top: 40px; }
.band-hands img { height: clamp(300px, 46vw, 600px); object-position: center 52%; }
.band-hands::before { top: 0; background: linear-gradient(var(--black-2), transparent); }
.band-hands::after { bottom: 0; background: linear-gradient(transparent, var(--black)); }
.band-copy { position: absolute; left: 0; right: 0; bottom: 8%; z-index: 2; text-align: center; font-size: clamp(16px, 2vw, 20px); letter-spacing: .3em; color: var(--text); text-shadow: 0 2px 12px #000; }
.band-campfire img { height: clamp(260px, 44vw, 620px); object-position: center 62%; }
.band-campfire::before { top: 0; background: linear-gradient(var(--black), transparent); }
.band-campfire::after { bottom: 0; background: linear-gradient(transparent, var(--black)); }

/* ---------- サービス ---------- */
.services { padding-top: 0; }
.services .wrap { margin-top: 48px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { overflow: hidden; display: flex; flex-direction: column; }
.service img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(.62) saturate(.85) sepia(.18); transition: filter .4s, transform .6s; }
.service:hover img { filter: brightness(.85) saturate(.95) sepia(.1); transform: scale(1.03); }
.service-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-body h3 { letter-spacing: .12em; }
.service-body p { margin: 0; color: var(--muted); font-size: 15px; }
.service-body .price { color: var(--text); font-weight: 700; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.price small { color: var(--muted); font-weight: 400; }
.service-body .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- 声・よくある質問 ---------- */
#voice { background: var(--black-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.voice-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.voice-lines li { padding-left: 18px; border-left: 2px solid var(--ember); }
.faq-title { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--fire); font-size: 22px; font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- 相談 ---------- */
.contact { background: radial-gradient(ellipse at 50% 100%, rgba(224,69,43,.18), transparent 60%), var(--black); }
.contact h2 { margin-bottom: 16px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tagline { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { text-decoration: none; font-size: 13px; letter-spacing: .15em; }
.footer-nav a:hover { color: var(--fire); }
.copy { text-align: center; color: var(--muted); font-size: 12px; margin: 40px 0 0; }

/* ---------- すっと現れる動き（JSが動くときだけ隠す） ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .menu-btn {
    display: grid; gap: 5px; place-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.35); cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.92); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.6) 70%, var(--black) 100%); }
  .values, .worry-cards, .service-cards, .two-col { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 24px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .worry { min-height: 0; }
  .two-col { gap: 48px; }
  h2 { margin-bottom: 28px; }
}
