/* 株式会社LifeCalm 企業サイト
   色・文字はここだけで決める（ページごとの違いは body の class：page-restoration・page-reform） */
:root {
  --bg: #f8f7f3;
  --bg-soft: #f1efe8;
  --ink: #303b36;
  --ink-sub: #5d6862;
  --accent: #667261;
  --accent-deep: #4f5b4b;
  --line: #dcded5;
  --white: #ffffff;
  --radius: 4px;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --wrap: 1120px;
}

/* 原状回復：少しグリーン寄りで清潔に */
.page-restoration {
  --bg-soft: #eef1ec;
  --accent: #5f7166;
  --accent-deep: #475a4f;
}
/* リフォーム：ベージュと木のぬくもり */
.page-reform {
  --bg-soft: #f3ede3;
  --accent: #7a6a52;
  --accent-deep: #5f523f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}

/* ---------- 見出し・文字 ---------- */
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.target {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink-sub);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin: 0;
}
h2 {
  font-size: clamp(24px, 3.6vw, 34px);
}
h3 {
  font-size: 20px;
}
p {
  margin: 0;
}
.lead {
  color: var(--ink-sub);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn-line {
  background: transparent;
  color: var(--accent-deep);
}
.btn-line:hover {
  background: var(--accent-deep);
  color: var(--white);
}
.btn .arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.ext {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark .name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.wordmark .name em {
  font-style: normal;
  color: var(--accent);
}
.wordmark .sub {
  white-space: nowrap;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
}
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav a,
.global-nav button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.global-nav a[aria-current="page"] {
  color: var(--accent-deep);
  box-shadow: inset 0 -1px 0 var(--accent-deep);
}
.global-nav .nav-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.global-nav .nav-switch a {
  border-radius: 999px;
  min-height: 38px;
}
.global-nav .nav-switch a[aria-current="page"] {
  background: var(--accent-deep);
  color: var(--white);
  box-shadow: none;
}
.global-nav .nav-sub a {
  font-size: 13px;
  color: var(--ink-sub);
}
.global-nav .nav-consult button {
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  color: var(--accent-deep);
}
.menu-toggle {
  display: none;
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }
  .menu-toggle .bars {
    width: 22px;
    height: 12px;
    position: relative;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }
  .menu-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    border-top: 1px solid currentColor;
  }
  .global-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
  }
  .global-nav.is-open {
    display: block;
  }
  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .global-nav .nav-switch {
    border-radius: 12px;
  }
  .global-nav .nav-switch a {
    flex: 1;
    justify-content: center;
  }
  .global-nav a,
  .global-nav button {
    width: 100%;
    font-size: 15px;
  }
  .global-nav .nav-consult button {
    justify-content: center;
    margin-top: 8px;
  }
}

/* ---------- トップ：メイン ---------- */
.top-hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(36px, 6vw, 64px);
  text-align: center;
}
.top-hero h1 {
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.75;
}
.top-hero p {
  margin-top: 22px;
  color: var(--ink-sub);
}

/* トップの写真の切りかえ（スライド）。写真の上に文字を重ねる */
.hero-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 72vh, 720px);
  margin-bottom: clamp(32px, 6vw, 64px);
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero-slider .slides {
  position: absolute;
  inset: 0;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slider .slide.is-active {
  opacity: 1;
}
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 文字を読みやすくする、うすい暗い面（写真の上に1枚） */
.hero-slider .slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 33, 0.42);
}
.hero-slider .hero-copy {
  position: relative;
}
.hero-slider .eyebrow,
.hero-slider h1,
.hero-slider p {
  color: var(--white);
}
.hero-slider p {
  color: rgba(255, 255, 255, 0.88);
}
.slider-controls {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.slider-dots {
  display: flex;
  gap: 4px;
}
/* 押せる大きさ（44px）を取り、見た目は小さな点 */
.slider-dot {
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.slider-dot::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.5);
}
.slider-dot.is-active::before {
  background: var(--white);
}
.slider-pause {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.slider-dot:focus-visible,
.slider-pause:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide {
    transition: none;
  }
}

/* 入口（パソコンは横並び・スマホは縦並び） */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
@media (max-width: 760px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
.door {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
}
.door figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.door:hover img {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .door img {
    transition: none;
  }
}
.door-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  flex: 1;
}
.door-body .target {
  margin-bottom: 4px;
  align-self: flex-start;
}
.door-body h2 {
  font-size: clamp(26px, 3.4vw, 32px);
}
.door-body p {
  color: var(--ink-sub);
}
.door-body .btn {
  margin-top: auto;
  align-self: flex-start;
}
.door-body .door-btn-wrap {
  margin-top: 18px;
}
.door-restoration {
  border-top: 3px solid #5f7166;
}
.door-reform {
  border-top: 3px solid #7a6a52;
}

/* ---------- 現場スムーズの帯 ---------- */
.service-band {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px 32px;
}
@media (max-width: 760px) {
  .service-band {
    grid-template-columns: 1fr;
  }
}
.service-band .target {
  margin-bottom: 10px;
}
.service-band h2,
.service-band h3 {
  font-size: clamp(19px, 2.6vw, 24px);
}
.service-band p {
  margin-top: 8px;
  color: var(--ink-sub);
  font-size: 15px;
}
.service-band .btn {
  white-space: nowrap;
}

/* ---------- 会社概要 ---------- */
.company {
  padding: clamp(56px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
}
.company-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
}
.company dl {
  margin: 0;
  border-top: 1px solid var(--line);
}
.company dl > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 520px) {
  .company dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.company dt {
  color: var(--ink-sub);
  font-size: 14px;
}
.company dd {
  margin: 0;
}
.pending {
  color: var(--ink-sub);
}

/* ---------- 下層ページ：メインビジュアル ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(78vh, 720px);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  background: var(--bg-soft);
}
.hero-text h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.7;
}
.hero-text p {
  margin-top: 24px;
  color: var(--ink-sub);
}
.hero figure {
  margin: 0;
  min-height: 300px;
}
.hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .hero figure {
    order: -1;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

/* ---------- 導入 ---------- */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }
}
.intro h2 {
  font-size: clamp(26px, 3.8vw, 36px);
  line-height: 1.75;
}
.intro .body {
  margin-top: 28px;
  color: var(--ink-sub);
}
.intro .body p + p {
  margin-top: 1.2em;
}
.intro figure {
  margin: 0;
}
.intro figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* ---------- 工事内容（写真と文が左右に交互） ---------- */
.works-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.work {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.work:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.work:nth-child(even) figure {
  order: 2;
}
@media (max-width: 760px) {
  .work,
  .work:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .work:nth-child(even) figure {
    order: 0;
  }
}
.work figure {
  margin: 0;
}
.work figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.work .num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}
.work h3 {
  font-size: clamp(20px, 2.6vw, 25px);
}
.work p {
  margin-top: 14px;
  color: var(--ink-sub);
}

/* ---------- 大切にしていること ---------- */
.values {
  background: var(--bg-soft);
}
.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 80px);
}
@media (max-width: 860px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
.values h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.75;
}
.values ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.values li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.values li:first-child {
  border-top: 1px solid var(--line);
}
.values li h3 {
  font-size: 19px;
}
.values li p {
  margin-top: 8px;
  color: var(--ink-sub);
  font-size: 15px;
}

/* ---------- ご依頼の流れ ---------- */
.flow ol {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
@media (max-width: 860px) {
  .flow ol {
    grid-template-columns: 1fr;
  }
}
.flow li {
  position: relative;
  padding: 24px 22px 26px 0;
  border-top: 1px solid var(--ink);
  counter-increment: step;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .flow li {
    padding-right: 0;
  }
}
.flow li h3 {
  font-size: 18px;
}
.flow li p {
  margin-top: 8px;
  color: var(--ink-sub);
  font-size: 15px;
}

/* ---------- 相談への案内 ---------- */
.consult {
  text-align: center;
  border-top: 1px solid var(--line);
}
.consult h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.75;
}
.consult p {
  margin-top: 20px;
  color: var(--ink-sub);
}
.consult .btn {
  margin-top: 32px;
}
.consult .note {
  margin-top: 16px;
  font-size: 14px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: #e9ebe4;
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer a {
  color: #e9ebe4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer .wordmark .name {
  color: #f8f7f3;
}
.site-footer .wordmark .name em {
  color: #b9c2b1;
}
.site-footer .wordmark .sub {
  color: #b9c2b1;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #b9c2b1;
  margin-bottom: 12px;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  text-decoration: none;
}
.site-footer li a:hover {
  text-decoration: underline;
}
.photo-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 235, 228, 0.2);
  font-size: 12px;
  color: #b9c2b1;
  line-height: 1.8;
}
.copyright {
  margin-top: 8px;
  font-size: 12px;
  color: #b9c2b1;
}

/* ---------- ご相談の前に（ダイアログ） ---------- */
dialog.consult-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
dialog.consult-dialog::backdrop {
  background: rgba(48, 59, 54, 0.45);
}
.dialog-inner {
  padding: 32px 28px 28px;
}
.dialog-inner h2 {
  font-size: 22px;
  padding-right: 48px;
}
.dialog-inner .lead {
  margin-top: 12px;
  font-size: 15px;
}
.dialog-inner ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.dialog-inner li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15px;
}
.dialog-inner li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.dialog-inner .status {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  font-size: 15px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dialog-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* 工事内容は導入のすぐ下に続ける */
.section-flush {
  padding-top: 0;
}
/* 下層ページの現場スムーズの帯のまわり */
.band-wrap {
  padding-bottom: clamp(56px, 8vw, 96px);
}
/* ダイアログの中の見出し */
.guide-title {
  margin-top: 20px;
  font-size: 17px;
}
