/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }

/* 基本設定 */
:root {
  --ink: #22241f;
  --muted: #63655f;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --forest: #243b2d;
  --forest-light: #395d46;
  --wood: #a36b3f;
  --wood-dark: #764725;
  --sand: #e9dfcf;
  --line: rgba(34, 36, 31, 0.14);
  --shadow: 0 18px 50px rgba(42, 36, 27, 0.13);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--forest);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.practice-notice {
  position: relative;
  z-index: 90;
  padding: 7px 0;
  color: #3d433c;
  background: #e9dfcf;
  border-bottom: 1px solid rgba(61, 67, 60, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ヘッダー */
.site-header {
  position: absolute;
  z-index: 80;
  top: 38px;
  left: 0;
  width: 100%;
  color: #fff;
  background: rgba(36, 59, 45, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-fixed {
  position: fixed;
  top: 0;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 30px rgba(31, 33, 27, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.logo-mark { width: 32px; height: 32px; }
.logo span { display: grid; line-height: 1.15; }
.logo strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.12rem; letter-spacing: 0.12em; }
.logo small { margin-top: 5px; font-size: 0.56rem; letter-spacing: 0.28em; opacity: 0.72; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a { position: relative; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 0.2s ease;
}
.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a:not(.nav-cta):focus-visible::after { width: 100%; }

.nav-cta {
  padding: 12px 22px;
  color: #fff;
  background: var(--forest-light);
  border: 1px solid rgba(255,255,255,0.35);
}

.site-header:not(.is-fixed) .nav-cta {
  color: #fff;
  background: #9a6540;
  border-color: #b98259;
}
.menu-button { display: none; }

/* 共通パーツ */
.section { padding: clamp(90px, 10vw, 150px) 0; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--wood-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.eyebrow.light { color: #e7c8a9; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.055em;
}

h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { line-height: 1.55; }

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 26px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button svg { width: 19px; height: 19px; transition: transform 0.2s ease; }
.button:hover svg, .button:focus-visible svg { transform: translateX(4px); }
.button-primary { color: #fff; background: var(--forest-light); box-shadow: 0 12px 30px rgba(10, 28, 17, 0.2); }
.button-primary:hover, .button-primary:focus-visible { background: #2d5039; }
.button-light { color: var(--forest); background: #fff; }
.button-light:hover, .button-light:focus-visible { background: #f1e9dc; }
.button-large { min-width: min(100%, 280px); }

.text-link { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.08em; text-underline-offset: 5px; }
.text-link.light { color: #fff; }

/* メインビジュアル */
.hero {
  position: relative;
  display: grid;
  min-height: 810px;
  overflow: hidden;
  align-items: center;
  color: #fff;
  background: #334338;
}

.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image {
  background-image: url("../images/hero-house.jpg");
  background-position: center 48%;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(25, 42, 31, 0.94) 0%, rgba(27, 44, 33, 0.78) 42%, rgba(27, 44, 33, 0.32) 70%, rgba(27, 44, 33, 0.12) 100%),
    linear-gradient(180deg, rgba(30, 46, 35, 0.14), rgba(74, 45, 24, 0.18));
}

.hero-inner { position: relative; z-index: 2; padding-top: 115px; padding-bottom: 54px; }
.hero-copy { max-width: 720px; }
.hero h1 { margin-bottom: 28px; font-size: clamp(2.85rem, 6.5vw, 5.4rem); text-shadow: 0 5px 30px rgba(0, 0, 0, 0.18); }
.hero-lead { max-width: 640px; margin-bottom: 36px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0; margin-top: 50px; }
.hero-points span { padding: 0 22px; border-left: 1px solid rgba(255,255,255,0.44); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; }
.hero-points span:first-child { padding-left: 0; border-left: 0; }
.photo-credit { position: absolute; z-index: 3; right: 18px; bottom: 8px; margin: 0; font-size: 0.55rem; letter-spacing: 0.05em; opacity: 0.75; }

/* サービス */
.services { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr); align-items: end; gap: 70px; margin-bottom: 62px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 7px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { overflow: hidden; background: var(--white); box-shadow: 0 12px 35px rgba(58, 46, 31, 0.08); }
.service-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.service-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-image-wrap img { transform: scale(1.035); }
.service-number { position: absolute; right: 0; bottom: 0; min-width: 58px; padding: 8px 12px; color: #fff; background: var(--wood-dark); font-family: Georgia, serif; font-size: 0.85rem; text-align: center; }
.service-body { position: relative; padding: 36px 30px 34px; }
.service-icon { position: absolute; top: 36px; right: 28px; width: 25px; height: 25px; color: var(--wood); }
.service-body h3 { margin-bottom: 16px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.5rem; letter-spacing: 0.08em; }
.service-body p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

/* 強みと施工の流れ */
.promise { color: #f9f5eb; background: var(--forest); }
.promise-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(60px, 9vw, 130px); }
.promise-intro > p:last-child { max-width: 590px; margin-bottom: 0; color: rgba(255,255,255,0.7); }
.promise-cards { display: grid; align-content: start; gap: 18px; }
.promise-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px; border: 1px solid rgba(255,255,255,0.17); background: rgba(255,255,255,0.045); }
.promise-card > svg { width: 36px; height: 36px; color: #d7ae80; }
.promise-card h3 { margin: 1px 0 10px; font-size: 1.15rem; letter-spacing: 0.08em; }
.promise-card p:last-child { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.card-label { margin-bottom: 4px; color: #d7ae80; font-family: Georgia, serif; font-size: 0.66rem; letter-spacing: 0.2em; }
.process { margin-top: 90px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,0.15); }
.process > h3 { margin-bottom: 32px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.35rem; letter-spacing: 0.1em; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; }
.process-list li { position: relative; display: grid; padding-right: 38px; }
.process-list li:not(:last-child)::after { position: absolute; top: 13px; right: 15px; width: 24px; height: 1px; background: rgba(255,255,255,0.4); content: ""; }
.process-list span { margin-bottom: 11px; color: #d7ae80; font-family: Georgia, serif; font-size: 0.72rem; letter-spacing: 0.12em; }
.process-list strong { margin-bottom: 7px; font-size: 0.96rem; letter-spacing: 0.06em; }
.process-list small { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* 採用 */
.recruit { position: relative; overflow: hidden; color: #fff; background: var(--wood-dark); }
.recruit::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(87, 48, 24, 0.98), rgba(118, 71, 37, 0.86)), url("../images/service-new-build.jpg") center / cover;
  content: "";
}
.recruit-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr); align-items: center; gap: clamp(60px, 10vw, 140px); }
.recruit-copy > p:not(.eyebrow) { max-width: 610px; margin-bottom: 36px; color: rgba(255,255,255,0.8); }
.job-card { padding: clamp(32px, 5vw, 54px); color: var(--ink); background: rgba(255, 253, 248, 0.96); box-shadow: var(--shadow); }
.job-card-title { margin-bottom: 24px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.1em; }
.job-card dl { margin: 0; }
.job-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.job-card dt { color: var(--wood-dark); font-size: 0.78rem; font-weight: 700; }
.job-card dd { margin: 0; font-size: 0.9rem; }
.job-note { margin: 22px 0 0; padding: 14px; color: var(--muted); background: #f0e9dd; font-size: 0.72rem; line-height: 1.7; }

/* よくある質問・お問い合わせ */
.faq-contact { background: #eee8dc; }
.faq-layout { display: grid; grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1fr); gap: clamp(60px, 10vw, 140px); }
.faq-heading { position: sticky; top: 130px; align-self: start; }
.faq-heading > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 26px 48px 26px 42px; cursor: pointer; font-weight: 700; letter-spacing: 0.04em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { position: absolute; left: 0; color: var(--wood-dark); content: "Q"; font-family: Georgia, serif; font-size: 1.1rem; }
.faq-list summary::after { position: absolute; right: 8px; top: 50%; color: var(--wood-dark); content: "+"; font-size: 1.5rem; font-weight: 400; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 44px 26px 42px; margin: 0; color: var(--muted); font-size: 0.91rem; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 50px; margin-top: 110px; padding: clamp(42px, 7vw, 76px); color: #fff; background: var(--forest); box-shadow: var(--shadow); }
.contact-panel h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3.5vw, 3rem); }
.contact-panel p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,0.72); }

/* フッター */
.site-footer { padding: 66px 0 100px; color: #e9e6de; background: #1c241e; }
.footer-inner { display: flex; justify-content: space-between; gap: 50px; }
.footer-logo { margin-bottom: 18px; }
.footer-inner p { margin-bottom: 0; color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.footer-meta { text-align: right; }
.copyright { padding-top: 40px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.4); }
.mobile-cta { display: none; }

.placeholder-message {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  width: min(480px, calc(100% - 40px));
  padding: 15px 20px;
  color: #fff;
  background: #242820;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  text-align: center;
  transform: translateX(-50%);
}

/* スクロール時の表示 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* タブレット */
@media (max-width: 980px) {
  .site-nav { gap: 16px; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service-card:last-child .service-image-wrap { aspect-ratio: auto; }
  .promise-layout, .recruit-layout, .faq-layout { grid-template-columns: 1fr; gap: 56px; }
  .faq-heading { position: static; }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .contact-panel { grid-template-columns: 1fr; }
}

/* スマートフォン */
@media (max-width: 700px) {
  .container { width: min(100% - 34px, var(--container)); }
  .practice-notice { padding: 6px 0; font-size: 0.61rem; }
  .site-header { top: 34px; }
  .site-header.is-fixed { top: 0; }
  .header-inner { min-height: 70px; }
  .logo-mark { width: 27px; height: 27px; }
  .logo strong { font-size: 1rem; }
  .logo small { font-size: 0.49rem; }
  .menu-button {
    position: relative;
    z-index: 2;
    display: flex;
    width: auto;
    height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
  }
  .menu-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; }
  .menu-button svg { width: 18px; height: 18px; }
  .menu-close-icon { display: none; }
  .menu-button[aria-expanded="true"] .menu-open-icon { display: none; }
  .menu-button[aria-expanded="true"] .menu-close-icon { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 90px 36px;
    color: #fff;
    background: var(--forest);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav > a:not(.nav-cta) { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.16); font-size: 1rem; }
  .site-nav .nav-cta { margin-top: 28px; padding: 16px; text-align: center; }
  .site-header:has(.site-nav.is-open) { color: #fff; }

  .section { padding: 78px 0; }
  h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero { min-height: 790px; }
  .hero-image { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(25, 42, 31, 0.94), rgba(27, 44, 33, 0.64)); }
  .hero-inner { padding-top: 130px; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .hero-lead { font-size: 0.96rem; line-height: 1.9; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .text-link { text-align: center; }
  .hero-points { display: grid; margin-top: 38px; }
  .hero-points span { padding: 7px 0; border: 0; font-size: 0.72rem; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 42px; }
  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card:last-child { display: block; grid-column: auto; }
  .service-card:last-child .service-image-wrap { aspect-ratio: 4 / 3; }
  .service-body { padding: 30px 24px; }
  .promise-layout { gap: 42px; }
  .promise-card { padding: 25px 22px; gap: 17px; }
  .promise-card > svg { width: 30px; height: 30px; }
  .process { margin-top: 62px; padding-top: 38px; }
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-list li { grid-template-columns: 44px 1fr; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .process-list li::after { display: none; }
  .process-list span { grid-row: 1 / 3; margin: 0; }
  .recruit-layout { gap: 44px; }
  .job-card { padding: 28px 22px; }
  .job-card dl div { grid-template-columns: 74px 1fr; }
  .faq-list summary { padding-right: 42px; font-size: 0.92rem; }
  .contact-panel { width: 100%; margin-top: 80px; padding: 46px 24px 54px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-meta { text-align: left; }
  .site-footer { padding-bottom: 118px; }
  .mobile-cta {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    padding: 5px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
  }
  .mobile-cta a { display: block; padding: 14px; color: #fff; background: var(--forest-light); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-decoration: none; }
  .placeholder-message { bottom: 84px; }
}
