/* ============================================
   CONSTRUCTION PAINT TEMPLATE
   外壁・屋根の塗装店 — 白地 × 墨色の大きな文字 × 色見本チップ
============================================ */

:root {
  --paper: #fafaf7; /* 地（少しだけ黄みのある白） */
  --white: #ffffff;
  --ink: #1f1f1d; /* 墨色（文字・ボタン） */
  --ink-2: #5a5953; /* 補助文字 */
  --rule: #1f1f1d; /* 色見本帳の罫線 */
  --line: rgba(31, 31, 29, 0.14);
  --mustard: #c6a46a; /* 差し色（芥子）。強調は色見本チップに任せて、ここは控えめに */
  --font-body: "BIZ UDPGothic", "Hiragino Sans", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace; /* 番号・色コード */
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

/* 見出しを意味の切れ目で改行する */
.kw {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.br-sp {
  display: none;
}

.nw {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .br-sp {
    display: inline;
  }
  .br-pc {
    display: none;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- スクロールで出る（JSが動いたときだけ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal--d1 {
  transition-delay: 0.08s;
}
.js .reveal--d2 {
  transition-delay: 0.16s;
}
.js .reveal--d3 {
  transition-delay: 0.24s;
}

/* ---------- アコーディオン（grid-rows で開閉） ---------- */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.acc-panel.is-open {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
  min-height: 0;
}

/* ---------- 表をスマホで横スクロール枠に ---------- */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-x table {
  min-width: 640px;
}

.scroll-hint {
  display: none;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .scroll-hint {
    display: block;
  }
}

.form-msg {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}

/* アニメが止まる環境の保険：2.5秒後には開幕のアニメを外して通常の表示に */
.anim-done body * {
  animation: none !important;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

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

/* ---------- 共通 ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--ink);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--rule);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 24px;
  max-width: 1360px;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo__chips {
  display: flex;
}

.logo__chips i {
  width: 10px;
  height: 26px;
  background: #44566b;
}
.logo__chips i:nth-child(2) {
  background: #c6a46a;
}
.logo__chips i:nth-child(3) {
  background: #a8a397;
}

.logo__ja {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav__list a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav__cta {
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 16px;
}
.nav-toggle span:nth-child(2) {
  top: 23px;
}
.nav-toggle span:nth-child(3) {
  top: 30px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  :root {
    --header-h: 60px;
  }
  .header__inner {
    padding-inline: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px 20px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
    counter-reset: n;
  }
  .nav__list a {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a::before {
    counter-increment: n;
    content: "0" counter(n);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-2);
    padding-top: 4px;
  }
  .nav__cta {
    text-align: center;
    padding: 16px;
    font-size: 16px;
  }
}

/* ---------- ヒーロー（文字だけの大組み） ---------- */
.hero {
  padding-top: clamp(48px, 8vw, 110px);
  border-bottom: 2px solid var(--rule);
}

.hero__no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 7.4vw, 104px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 「あと15年」だけ、色見本を貼ったように下に色を敷く */
.hero__em {
  background: linear-gradient(transparent 62%, var(--mustard) 62% 92%, transparent 92%);
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin: 40px 0 56px;
}

.hero__text {
  font-size: 16px;
  max-width: 34em;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.js .hero .container > * {
  animation: heroIn 0.8s var(--ease) both;
}
.js .hero .container > :nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero .container > :nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 色見本チップの帯 */
.chips-band {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 2px solid var(--rule);
}

.chips-band li {
  border-right: 1px solid var(--line);
  background: var(--white);
}

.chips-band li:last-child {
  border-right: 0;
}

.chips-band li::before {
  content: "";
  display: block;
  height: clamp(80px, 11vw, 150px);
  background: var(--c);
}

.chips-band span,
.chips-band code {
  display: block;
  padding-inline: 12px;
}

.chips-band span {
  font-weight: 700;
  font-size: 14px;
  padding-top: 8px;
}

.chips-band code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding-bottom: 10px;
}

@media (max-width: 700px) {
  .hero__foot {
    margin: 28px 0 40px;
  }
  .hero__btns,
  .hero__btns .btn {
    width: 100%;
  }
  .chips-band {
    grid-template-columns: repeat(4, 1fr);
  }
  .chips-band li:nth-child(4) {
    border-right: 0;
  }
  .chips-band li:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }
  .chips-band li::before {
    height: 64px;
  }
  .chips-band span {
    font-size: 13px;
    padding-inline: 8px;
  }
  .chips-band code {
    padding-inline: 8px;
    font-size: 11px;
  }
}

/* ---------- お知らせ ---------- */
.news {
  border-bottom: 2px solid var(--rule);
}

.news__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding-block: 28px;
}

.news__inner .label {
  margin: 4px 0 0;
}

.news__list li {
  display: flex;
  gap: 24px;
  padding: 6px 0;
  font-size: 15px;
}

.news__list time {
  font-family: var(--font-mono);
  color: var(--ink-2);
  flex-shrink: 0;
}

.news__list a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .news__inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .news__list li {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 色シミュレーター ---------- */
.simulator {
  padding: 96px 0;
  border-bottom: 2px solid var(--rule);
}

.sim__head {
  max-width: 640px;
  margin-bottom: 40px;
}

.sim__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.sim__house {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px 24px 16px;
}

.sim__house svg {
  width: 100%;
  height: auto;
}

/* 色を切り替えたときだけ、ゆっくり色が移る */
.sim__house svg [id^="h-"],
.sim__house .h-trim rect {
  transition:
    fill 0.4s var(--ease),
    stroke 0.4s var(--ease);
}

.sim__house figcaption {
  font-size: 14px;
  margin-top: 10px;
  color: var(--ink-2);
}

.swatches {
  border: 0;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatches legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  width: 100%;
}

.swatches button {
  width: 52px;
  height: 52px;
  background: var(--c);
  border: 1px solid var(--line);
  position: relative;
}

.swatches button[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sim__tip {
  font-size: 15px;
  background: var(--white);
  border-left: 4px solid var(--mustard);
  padding: 14px 16px;
}

@media (max-width: 860px) {
  .simulator {
    padding: 64px 0;
  }
  .sim__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sim__house {
    padding: 12px;
  }
}

/* ---------- 塗料グレード ---------- */
.grade {
  padding: 96px 0;
  background: var(--white);
  border-bottom: 2px solid var(--rule);
}

.grade__lead {
  margin-bottom: 28px;
  max-width: 44em;
}

.scroll-x .grade__table {
  min-width: 820px;
}

.grade__table {
  border-top: 2px solid var(--rule);
  font-size: 15px;
}

.grade__table th,
.grade__table td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.grade__table thead th {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 400;
  padding-block: 12px;
}

.grade__table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.grade__table tbody th i {
  display: inline-block;
  width: 14px;
  height: 22px;
  background: var(--c);
  vertical-align: -5px;
  margin-right: 10px;
}

.grade__table td:nth-child(3),
.grade__table td:nth-child(4) {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.grade__table .is-pick {
  background: #f4f1e8;
}

.pick {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 1px 8px;
}

@media (max-width: 700px) {
  .grade {
    padding: 64px 0;
  }
}

/* ---------- 工程 ---------- */
.process {
  padding: 96px 0;
  border-bottom: 2px solid var(--rule);
}

.process__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}

.process__side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.process__side img {
  margin-top: 28px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process__list {
  border-top: 2px solid var(--rule);
}

.process__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process__day {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
  padding-top: 3px;
}

.process__list h3 {
  font-size: 19px;
  line-height: 1.5;
}

.process__list p {
  font-size: 15px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .process {
    padding: 64px 0;
  }
  .process__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process__side {
    position: static;
  }
  .process__list li {
    grid-template-columns: 1fr;
  }
  .process__day {
    grid-row: auto;
  }
}

/* ---------- 施工例 ---------- */
.works {
  padding: 96px 0;
  border-bottom: 2px solid var(--rule);
}

.works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.work img {
  width: 100%;
  aspect-ratio: 9 / 6.4;
  object-fit: cover;
}

.work__chips {
  display: flex;
  margin-top: -14px;
  margin-left: 14px;
  position: relative;
}

.work__chips i {
  width: 28px;
  height: 28px;
  background: var(--c);
  border: 2px solid var(--white);
}

.work h3 {
  font-size: 17px;
  margin: 12px 0 8px;
  line-height: 1.5;
}

.work dl > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  font-size: 14px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.work dt {
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .works__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .works {
    padding: 64px 0;
  }
  .works__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 職人と保証 ---------- */
.crew {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--rule);
  background: var(--white);
}

.crew__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.crew__body {
  padding: clamp(40px, 6vw, 80px);
}

.crew__facts {
  margin: 28px 0;
  border-top: 2px solid var(--rule);
}

.crew__facts li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  align-items: baseline;
}

.crew__facts b {
  font-size: 24px;
}

.crew__color img {
  width: 100%;
  aspect-ratio: 7 / 4.4;
  object-fit: cover;
}

.crew__color figcaption {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 8px;
}

@media (max-width: 860px) {
  .crew {
    grid-template-columns: 1fr;
  }
  .crew__photo img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .crew__body {
    padding: 40px 20px 56px;
  }
  .crew__facts li {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- よくある質問 ---------- */
.faq {
  padding: 96px 0;
  border-bottom: 2px solid var(--rule);
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.faq__list {
  border-top: 2px solid var(--rule);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item button {
  width: 100%;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
}

/* ＋ を 45° 回して × にする */
.faq__item button i {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.faq__item button i::before,
.faq__item button i::after {
  content: "";
  position: absolute;
  background: var(--ink);
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
}

.faq__item button i::after {
  transform: rotate(90deg);
}

.faq__item button[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.faq__item .acc-panel p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .faq {
    padding: 64px 0;
  }
  .faq__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .faq__item button {
    font-size: 16px;
  }
}

/* ---------- 会社概要 ---------- */
.company {
  padding: 96px 0;
  background: var(--white);
  border-bottom: 2px solid var(--rule);
}

.company__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.company__list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.company__list dt {
  color: var(--ink-2);
}

.company__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  filter: grayscale(0.7);
}

.company__map p {
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .company {
    padding: 64px 0;
  }
  .company__inner {
    grid-template-columns: 1fr;
  }
  .company__list > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .company__list dt {
    font-size: 13px;
  }
}

/* ---------- お問い合わせ ---------- */
.contact {
  padding: 96px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact__tel {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}

.contact__tel small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.contact__line {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  padding-bottom: 2px;
}

.form {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--rule);
  padding-top: 8px;
}

.form label {
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0 6px;
}

.form em {
  font-style: normal;
  font-size: 11px;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--ink);
}

.form input,
.form select,
.form textarea {
  min-height: 50px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid #b9b7ae;
  border-radius: 0;
  font-size: 16px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.form .btn {
  margin-top: 24px;
}

@media (max-width: 800px) {
  .contact {
    padding: 64px 0;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink);
  color: #d6d4cc;
  padding: 36px 0;
  font-size: 14px;
}

.footer__name {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.7;
}
