/* =========================================================
   SENCRA 公式サイト 共通スタイル
   色・文字・余白はここの変数で一括管理します
   ========================================================= */
:root {
  --charcoal: #23211f;      /* メイン：文字・濃い背景 */
  --charcoal-soft: #4a4642; /* 本文の補助色 */
  --ivory: #f7f3ec;         /* サブ：基本の背景 */
  --beige: #ebe3d6;         /* 補助：面の切り替え */
  --beige-line: #d9cebd;    /* 罫線 */
  --wood: #a8784a;          /* アクセント：飾り */
  --wood-text: #855c34;     /* アクセント：文字用（読みやすさ確保） */
  --white: #fdfbf7;

  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; font-family: var(--font-serif); letter-spacing: .08em; line-height: 1.5; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--charcoal); color: var(--ivory); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--beige { background: var(--beige); }
.section--dark { background: var(--charcoal); color: var(--ivory); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--beige-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header__logo { display: block; width: 132px; }
.site-header__logo img { width: 100%; }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav__link {
  position: relative; text-decoration: none;
  font-size: 12px; letter-spacing: .2em; font-weight: 500;
  padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--wood); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link--contact {
  border: 1px solid var(--charcoal); padding: 9px 20px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__link--contact::after { display: none; }
.nav__link--contact:hover, .nav__link--contact[aria-current="page"] { background: var(--charcoal); color: var(--ivory); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 1px; background: var(--charcoal); transition: transform .35s var(--ease), opacity .35s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  /* ぼかし効果があると、メニュー（fixed）がヘッダーの中に閉じ込められるため外す */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 48px; }
  .nav__list li { border-bottom: 1px solid var(--beige-line); }
  .nav__link { display: block; font-size: 15px; padding: 20px 0; }
  .nav__link::after { display: none; }
  .nav__link--contact { border: 0; padding: 20px 0; }
  .nav__link--contact:hover { background: none; color: inherit; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 見出し・共通パーツ ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .32em; font-weight: 500;
  color: var(--wood-text); text-transform: uppercase; margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--wood); }
.section--dark .eyebrow { color: #d2b48f; }
.section--dark .eyebrow::before { background: #d2b48f; }

.heading { font-size: clamp(26px, 3.4vw, 40px); }
.heading--lg { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.45; }
.lead { font-size: clamp(15px, 1.4vw, 17px); color: var(--charcoal-soft); max-width: 40em; }
.section--dark .lead { color: #d8d1c6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px;
  font-size: 13px; letter-spacing: .18em; font-weight: 500; text-decoration: none;
  border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--ivory);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.btn:hover { background: transparent; color: var(--charcoal); }
.btn:hover::after { width: 26px; }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--ivory); }
.section--dark .btn { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.section--dark .btn:hover { background: transparent; color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

.text-link {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 13px; letter-spacing: .16em; font-weight: 500;
  padding-bottom: 6px; border-bottom: 1px solid var(--wood);
}
.text-link::after { content: "→"; transition: transform .3s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

.note { font-size: 12px; color: var(--charcoal-soft); letter-spacing: .04em; line-height: 1.8; }
.badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; padding: 3px 12px;
  border: 1px solid var(--wood); color: var(--wood-text); line-height: 1.8;
}
.card .badge, .plan .badge { align-self: flex-start; }
.badge--muted { border-color: var(--beige-line); color: var(--charcoal-soft); }

/* ---------- ページ上部（下層ページ） ---------- */
.page-hero { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--beige-line); }
.page-hero__en { font-family: var(--font-serif); font-size: clamp(40px, 7vw, 88px); letter-spacing: .12em; line-height: 1.1; font-weight: 500; }
.page-hero__ja { margin-top: 18px; font-size: 13px; letter-spacing: .3em; color: var(--wood-text); }
.page-hero__lead { margin-top: 40px; }

/* ---------- トップ：ファーストビュー ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 6fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; }
.hero__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.55; letter-spacing: .1em; font-weight: 600; }
.nobr { display: inline-block; white-space: nowrap; }
.hero__grid > *, .split > * { min-width: 0; }
@media (max-width: 640px) { .hero__title { font-size: clamp(22px, 8.4vw, 34px); } }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
.hero__sub { margin-top: 32px; font-family: var(--font-serif); font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .14em; color: var(--wood-text); }
.hero__text { margin-top: 24px; color: var(--charcoal-soft); max-width: 26em; }
.hero__visual { position: relative; }
.hero__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__visual::before {
  content: ""; position: absolute; inset: clamp(16px, 2.4vw, 32px) calc(clamp(16px, 2.4vw, 32px) * -1) calc(clamp(16px, 2.4vw, 32px) * -1) clamp(16px, 2.4vw, 32px);
  background: var(--beige); z-index: -1;
}
.hero__caption { margin-top: 18px; text-align: right; }
.hero__vertical {
  position: absolute; right: calc(clamp(16px, 2.4vw, 32px) * -1 + 2px); top: 56px;
  writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 12px; letter-spacing: .5em; color: var(--wood-text);
}

/* ---------- 2カラム ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__media figcaption { margin-top: 14px; }

/* ---------- 理念（トップ） ---------- */
.message { text-align: center; }
.message__title { font-size: clamp(28px, 4.4vw, 52px); letter-spacing: .2em; line-height: 1.6; }
.message__text { margin: 48px auto 0; max-width: 34em; color: var(--charcoal-soft); text-align: left; }
@media (min-width: 720px) { .message__text { text-align: center; } }

/* ---------- 3つの入口 ---------- */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--beige-line); margin-top: 64px; }
.entry { padding: 40px 32px 40px 0; border-bottom: 1px solid var(--beige-line); }
.entry + .entry { padding-left: 32px; border-left: 1px solid var(--beige-line); }
.entry__num { font-family: var(--font-serif); font-size: 13px; letter-spacing: .2em; color: var(--wood-text); }
.entry__title { margin-top: 16px; font-size: 21px; }
.entry__place { margin-top: 6px; font-size: 12px; letter-spacing: .14em; color: var(--charcoal-soft); }
.entry__text { margin-top: 18px; font-size: 14px; color: var(--charcoal-soft); }

.section--dark .entries, .section--dark .entry, .section--dark .entry + .entry { border-color: #4a4642; }
.section--dark .entry__place { color: #bdb5a9; }
.section--dark .entry__text { color: #d8d1c6; }
.product-sub { margin-top: 12px; letter-spacing: .2em; font-size: 13px; color: var(--wood-text); }
.section--dark .product-sub { color: #d2b48f; }
.mt-s { margin-top: 24px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 40px; }
figure.split__media { margin: 0; }
.about-logo { width: min(100%, 380px); margin-inline: auto; }

/* ---------- カード一覧 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--beige-line); border: 1px solid var(--beige-line); margin-top: 64px; }
.card { background: var(--ivory); padding: clamp(32px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.section--beige .card { background: var(--white); }
.card__num { font-family: var(--font-serif); font-size: 13px; letter-spacing: .2em; color: var(--wood-text); }
.card__title { font-size: 21px; }
.card__text { font-size: 14px; color: var(--charcoal-soft); flex: 1; }

/* ---------- 定義リスト・表 ---------- */
.spec { border-top: 1px solid var(--beige-line); }
.spec__row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--beige-line); }
.spec__term { font-family: var(--font-serif); font-weight: 600; letter-spacing: .1em; }
.spec__desc { color: var(--charcoal-soft); }
.spec__desc a { text-underline-offset: 4px; }

/* ---------- 手順 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--beige-line); border: 1px solid var(--beige-line); margin-top: 64px; }
.step { background: var(--ivory); padding: 40px 32px; }
.section--beige .step { background: var(--white); }
.step__num { font-family: var(--font-serif); font-size: 32px; color: var(--wood); line-height: 1; }
.step__title { margin-top: 20px; font-size: 18px; }
.step__text { margin-top: 12px; font-size: 14px; color: var(--charcoal-soft); }

/* ---------- 木材 ---------- */
.woods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.wood { border-top: 2px solid var(--wood); padding-top: 22px; }
.wood__name { font-size: 22px; }
.wood__read { font-size: 11px; letter-spacing: .24em; color: var(--wood-text); margin-top: 4px; }
.wood__text { margin-top: 14px; font-size: 14px; color: var(--charcoal-soft); }

/* ---------- ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2vw, 28px); margin-top: 64px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main img { aspect-ratio: 4 / 3; }
.gallery__side { display: grid; gap: clamp(16px, 2vw, 28px); }
.gallery__side img { aspect-ratio: 16 / 10; }

/* ---------- 導入方法 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.plan { border: 1px solid var(--beige-line); background: var(--white); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.plan--featured { border-color: var(--wood); }
.plan__label { font-family: var(--font-serif); font-size: 40px; color: var(--wood); line-height: 1; }
.plan__title { font-size: 19px; }
.plan__for { font-size: 13px; color: var(--wood-text); letter-spacing: .06em; }
.plan__text { font-size: 14px; color: var(--charcoal-soft); flex: 1; }
.plan__price { font-family: var(--font-serif); font-weight: 600; font-size: 17px; letter-spacing: .06em; line-height: 1.7; padding-top: 16px; border-top: 1px solid var(--beige-line); }
.plan__price span { font-family: var(--font-sans); font-weight: 400; font-size: 12px; color: var(--charcoal-soft); }
.price-from { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); letter-spacing: .06em; margin-top: 8px; }
.price-from span { font-family: var(--font-sans); font-size: 13px; color: var(--charcoal-soft); }
.section--dark .price-from span { color: #bdb5a9; }

/* ---------- サービス一覧 ---------- */
.service { display: grid; grid-template-columns: 120px 1fr; gap: clamp(24px, 4vw, 64px); padding: 56px 0; border-bottom: 1px solid var(--beige-line); }
.service:first-child { border-top: 1px solid var(--beige-line); }
.service__num { font-family: var(--font-serif); font-size: 40px; color: var(--wood); line-height: 1; }
.service__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.service__title { font-size: clamp(20px, 2.2vw, 26px); }
.service__text { margin-top: 20px; color: var(--charcoal-soft); max-width: 44em; }
.service__list { margin-top: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--charcoal-soft); }
.service__list li { padding-left: 20px; position: relative; }
.service__list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 1px; background: var(--wood); }
.service .text-link { margin-top: 28px; }

/* ---------- 価値観 ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 64px; }
.value__title { font-size: 18px; }
.value__text { margin-top: 12px; font-size: 14px; color: var(--charcoal-soft); }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--beige-line); margin-top: 56px; }
.faq__item { border-bottom: 1px solid var(--beige-line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 28px 0; font-family: var(--font-serif); font-weight: 600; font-size: 17px; letter-spacing: .06em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-sans); font-weight: 300; font-size: 24px; color: var(--wood); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 28px; color: var(--charcoal-soft); max-width: 46em; }

/* ---------- お問い合わせ誘導 ---------- */
.cta { text-align: center; }
.cta__title { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: .14em; line-height: 1.6; }
.cta__text { margin: 28px auto 0; max-width: 32em; }
.cta .btn-row { justify-content: center; }

/* ---------- お問い合わせ ---------- */
.contact-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-way { border: 1px solid var(--beige-line); background: var(--white); padding: 40px; text-decoration: none; display: block; transition: border-color .3s var(--ease); }
.contact-way:hover { border-color: var(--wood); }
.contact-way__label { font-size: 11px; letter-spacing: .3em; color: var(--wood-text); }
.contact-way__value { margin-top: 14px; font-family: var(--font-serif); font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .06em; word-break: break-all; }
.contact-way__note { margin-top: 10px; font-size: 13px; color: var(--charcoal-soft); }

.form { margin-top: 32px; display: grid; gap: 28px; }
.form__row { display: grid; gap: 10px; }
.form__row--half { grid-template-columns: 1fr 1fr; gap: 28px; }
.form__label { font-size: 14px; font-weight: 500; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.form__req { font-size: 10px; letter-spacing: .1em; padding: 1px 8px; background: var(--charcoal); color: var(--ivory); }
.form__opt { font-size: 10px; letter-spacing: .1em; padding: 1px 8px; border: 1px solid var(--beige-line); color: var(--charcoal-soft); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--beige-line); border-radius: 0; padding: 14px 16px;
  transition: border-color .3s var(--ease);
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--wood); }
.form [aria-invalid="true"] { border-color: #b4532a; }
.form__error { font-size: 13px; color: #9a4220; min-height: 1em; }
.form__status { padding: 20px 24px; background: var(--beige); font-size: 14px; display: none; }
.form__status.is-visible { display: block; }
.form button { justify-self: start; cursor: pointer; font-family: inherit; }

/* ---------- フッター ---------- */
.site-footer { background: var(--beige); padding-top: 96px; padding-bottom: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer__logo { width: 160px; }
.site-footer__tag { margin-top: 24px; font-family: var(--font-serif); letter-spacing: .16em; }
.site-footer__area { margin-top: 8px; font-size: 13px; color: var(--charcoal-soft); }
.site-footer__head { font-size: 11px; letter-spacing: .3em; color: var(--wood-text); margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; font-size: 14px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--beige-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--charcoal-soft); }

/* ---------- 上品な表示アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .15s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .woods { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-right: calc(var(--gutter) * -1); }
  .hero__visual::before { display: none; }
  .hero__vertical { display: none; }
  .hero__caption { padding-right: var(--gutter); }
  .entries, .cards, .steps, .plans { grid-template-columns: 1fr; }
  .entry, .entry + .entry { padding: 32px 0; border-left: 0; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .split__media--tall img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .spec__row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .service { grid-template-columns: 1fr; gap: 16px; padding: 44px 0; }
  .service__num { font-size: 28px; }
  .contact-ways, .form__row--half { grid-template-columns: 1fr; }
  .contact-way { padding: 28px 24px; }
  .woods, .values { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .form button { justify-self: stretch; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-header__inner { height: 64px; }
  .nav { inset: 64px 0 0 0; }
  .site-header__logo { width: 112px; }
}
