@charset "utf-8";
/* ==========================================================================
   松落造園 デモサイト
   配色：G5選定シート（色相の変更なし）
   base #FFFFFF / band #F2F0ED / accent #B7AA9D / link #6F6152
   heading #494036 / text #1F1F1F
   ========================================================================== */

:root {
  --c-base:    #FFFFFF;
  --c-band:    #F2F0ED;
  --c-accent:  #B7AA9D;  /* 面と細い罫にのみ使う */
  --c-link:    #6F6152;
  --c-head:    #494036;
  --c-text:    #1F1F1F;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;

  --w-text: 720px;   /* 本文の最大幅（全角40文字以内） */
  --w-wide: 1120px;  /* レイアウトの最大幅 */

  --sp-sec: 96px;    /* セクション上下余白（PC） */
  --hd-h: 88px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-base);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 1.4em; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

/* キーボード操作の可視フォーカス（除去しない） */
:focus-visible {
  outline: 3px solid var(--c-link);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-base); color: var(--c-link);
  padding: 12px 20px; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- typography ---------- */
h1, h2 {
  font-family: var(--font-mincho);
  font-weight: 500;
  color: var(--c-head);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}
h1 { font-size: 40px; line-height: 1.4; }
h2 { font-size: 30px; line-height: 1.5; }
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  color: var(--c-head);
  margin: 0 0 12px;
}
p { margin: 0 0 1.4em; }
.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-link);
  margin: 8px 0 0;
}
.lead { font-size: 17px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 48px, var(--w-wide)); margin-inline: auto; }
.narrow { width: min(100%, var(--w-text)); }
.sec { padding: var(--sp-sec) 0; }
.sec--band { background: var(--c-band); }   /* 境界に線を引かず地の色で区切る */
.sec__head { margin-bottom: 40px; }
.sec__head .narrow { margin-inline: 0; }

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

.seclink { margin: 40px 0 0; }
.seclink a { font-weight: 700; }
.seclink a::after { content: "　→"; }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--c-base);
  border-bottom: 1px solid var(--c-accent);
  transition: background-color .2s ease-out;
}
.hd__inner {
  width: min(100% - 40px, 1240px); margin-inline: auto;
  height: var(--hd-h);
  display: flex; align-items: center; gap: 24px;
  transition: height .2s ease-out;
}
.hd.is-small { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.hd.is-small .hd__inner { height: 64px; }

.hd__brand {
  font-family: var(--font-mincho); font-size: 22px; font-weight: 500;
  color: var(--c-head); text-decoration: none; white-space: nowrap;
}
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  font-size: 14px; color: var(--c-text); text-decoration: none;
  padding: 6px 2px; display: inline-block; border-bottom: 2px solid transparent;
}
.gnav a:hover { border-bottom-color: var(--c-accent); }
.gnav a[aria-current="page"] { border-bottom-color: var(--c-head); font-weight: 700; }

.hd__cta { display: flex; align-items: center; gap: 14px; }
.hd__tel { text-decoration: none; color: var(--c-head); line-height: 1.25; text-align: right; }
.hd__tel .num {
  display: flex; align-items: center; gap: 6px; justify-content: flex-end;
  font-family: var(--font-mincho); font-size: 21px; font-weight: 500; letter-spacing: .01em;
}
.hd__tel .num img { width: 17px; }
.hd__tel .cap { display: block; font-size: 12px; color: var(--c-link); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; min-height: 48px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border-radius: 0; border: 1px solid var(--c-head);
  background: var(--c-base); color: var(--c-head);
  transition: background-color .2s ease-out, color .2s ease-out;
  cursor: pointer;
}
.btn:hover { background: var(--c-band); }
.btn--solid { background: var(--c-head); color: var(--c-base); }
.btn--solid:hover { background: var(--c-link); color: var(--c-base); }
.btn img { width: 16px; }
.btn--solid img { filter: invert(1); }

.hd__burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; background: none; border: 1px solid var(--c-accent);
  cursor: pointer;
}
.hd__burger span { display: block; width: 22px; height: 1px; background: var(--c-head); margin: 5px auto; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: var(--hd-h); background: var(--c-base); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero__body { padding: 72px 0; }
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 17px; margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media img { border-radius: 4px; width: 100%; }
.hero__lottie {
  position: absolute; top: 0; right: -6%; width: 22%; height: 100%;
  pointer-events: none;
}

/* 下層ページの帯ヒーロー */
.phero { position: relative; padding-top: var(--hd-h); }
.phero__media { position: relative; }
.phero__media img { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; }
.phero__body { padding: 48px 0 8px; }
.phero h1 { margin-bottom: 12px; }

.scrolldown {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-link); padding-bottom: 32px;
}
.scrolldown img { width: 15px; transform: rotate(90deg); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(7px); } }

/* ---------- ドラッグ比較（主役層） ---------- */
.compare { width: min(100%, 860px); margin-inline: auto; }
.compare__stage {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 3; background: var(--c-band);
  touch-action: pan-y; cursor: ew-resize; user-select: none;
}
.compare__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-user-drag: none; user-select: none;
}
.compare__after { clip-path: inset(0 0 0 50%); }
.compare__label {
  position: absolute; top: 16px; z-index: 3;
  background: rgba(255,255,255,.9); color: var(--c-head);
  font-size: 13px; font-weight: 700; padding: 5px 12px; letter-spacing: .04em;
}
.compare__label--l { left: 16px; }
.compare__label--r { right: 16px; }
.compare__bar {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 2px; background: var(--c-base); transform: translateX(-1px);
}
.compare__handle {
  position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; border: 1px solid var(--c-accent);
  background: var(--c-base); color: var(--c-head);
  display: flex; align-items: center; justify-content: center; gap: 3px;
  cursor: ew-resize; padding: 0;
}
.compare__handle svg { width: 34px; height: 14px; }
.compare__handle:focus-visible { outline: 3px solid var(--c-link); outline-offset: 3px; }
.compare__hint { text-align: center; }
.compare__desc { margin-top: 32px; }
.compare__desc li { margin-bottom: .5em; }

/* ---------- card ---------- */
.card {
  background: var(--c-base); border: 1px solid var(--c-accent);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
}
.sec--band .card { border-color: var(--c-accent); }
.card__media { overflow: hidden; }         /* 枠固定 */
.card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { margin-bottom: 16px; }
.card__body .seclink { margin-top: auto; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }

.photo { border-radius: 4px; overflow: hidden; }
.photo img { width: 100%; }

/* ---------- こよみ（アコーディオン） ---------- */
.koyomi { border-top: 1px solid var(--c-accent); }
.koyomi__item { border-bottom: 1px solid var(--c-accent); }
.koyomi__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left;
}
.koyomi__m {
  font-family: var(--font-mincho); font-size: 22px; color: var(--c-head);
  min-width: 62px; line-height: 1.4;
}
.koyomi__t { font-size: 17px; font-weight: 700; color: var(--c-head); line-height: 1.6; flex: 1; }
.koyomi__mark { width: 14px; height: 14px; position: relative; flex: none; margin-top: 8px; }
.koyomi__mark::before, .koyomi__mark::after {
  content: ""; position: absolute; background: var(--c-link); transition: transform .15s ease-out;
}
.koyomi__mark::before { inset: 6px 0 auto 0; height: 1px; }
.koyomi__mark::after  { inset: 0 6px 0 auto; width: 1px; }
.koyomi__btn[aria-expanded="true"] .koyomi__mark::after { transform: scaleY(0); }
.koyomi__panel { overflow: hidden; }
.koyomi__panel[hidden] { display: none; }
.koyomi__inner { padding: 4px 4px 28px 78px; }
.koyomi__dl { margin: 0; }
.koyomi__dl dt {
  font-size: 13px; font-weight: 700; color: var(--c-link);
  letter-spacing: .06em; margin-top: 16px;
}
.koyomi__dl dt:first-child { margin-top: 0; }
.koyomi__dl dd { margin: 2px 0 0; }
.koyomi__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.koyomi__tags li {
  font-size: 13px; border: 1px solid var(--c-accent); padding: 3px 10px; color: var(--c-head);
}

/* ---------- 施工事例 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; padding: 0; list-style: none; }
.tabs button {
  padding: 12px 18px; min-height: 48px; font-size: 15px; cursor: pointer;
  background: var(--c-base); border: 1px solid var(--c-accent); color: var(--c-text);
}
.tabs button[aria-selected="true"] { background: var(--c-head); border-color: var(--c-head); color: var(--c-base); font-weight: 700; }
.tabpanel[hidden] { display: none; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba figcaption { font-size: 13px; font-weight: 700; color: var(--c-link); margin-bottom: 8px; letter-spacing: .06em; }
.ba img { border-radius: 4px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work__meta { margin-top: 20px; }
.work__meta dt { font-size: 13px; font-weight: 700; color: var(--c-link); letter-spacing: .06em; }
.work__meta dd { margin: 2px 0 14px; }

/* Swiper */
.swiper { padding-bottom: 44px; }
.swiper-slide { height: auto; }
.swiper-slide .card { height: 100%; }
:root {
  --swiper-theme-color: #494036;
  --swiper-navigation-size: 24px;
  --swiper-pagination-bullet-inactive-color: #B7AA9D;
  --swiper-pagination-bullet-inactive-opacity: 1;
}

/* ---------- 表 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { border: 1px solid var(--c-accent); padding: 14px 16px; text-align: left; vertical-align: top; }
.tbl th { background: var(--c-band); color: var(--c-head); font-weight: 700; white-space: nowrap; width: 26%; }
.tbl--scroll { display: block; overflow-x: auto; }

/* ---------- 進め方 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { border: 1px solid var(--c-accent); border-radius: 4px; padding: 20px 16px; }
.steps .n { font-family: var(--font-mincho); font-size: 15px; color: var(--c-link); display: block; }
.steps .t { font-weight: 700; color: var(--c-head); }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 22px; }
.form label { display: block; font-weight: 700; font-size: 15px; color: var(--c-head); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--c-text);
  padding: 12px 14px; min-height: 48px;
  background: var(--c-base); border: 1px solid var(--c-accent); border-radius: 0;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font-size: 13px; color: var(--c-link); margin: 6px 0 0; }
.form__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.telbox { border: 1px solid var(--c-accent); border-radius: 4px; padding: 28px 24px; text-align: center; }
.telbox .cap { font-size: 15px; color: var(--c-head); margin: 0 0 6px; }
.telbox .num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mincho); font-size: clamp(30px, 5vw, 42px); line-height: 1.3;
  color: var(--c-head); text-decoration: none;
}
.telbox .num img { width: 28px; }

/* ---------- フッター ---------- */
.ftr { background: var(--c-band); padding: 64px 0 140px; margin-top: 0; }
.ftr__lottie { height: 90px; }
.ftr__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.ftr__brand { font-family: var(--font-mincho); font-size: 22px; color: var(--c-head); margin: 0 0 14px; }
.ftr address { font-style: normal; font-size: 16px; }
.ftr__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mincho); font-size: 26px; color: var(--c-head); text-decoration: none; }
.ftr__tel img { width: 20px; }
.ftr__nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.ftr__nav li { margin-bottom: 10px; break-inside: avoid; }
.ftr__nav a { font-size: 15px; color: var(--c-text); text-decoration: none; }
.ftr__nav a:hover { text-decoration: underline; }
.ftr__demo {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-accent);
  font-size: 13px; line-height: 1.7; color: var(--c-link);
}

/* ---------- SP固定バー ---------- */
.spbar { display: none; }

/* ---------- 404 ---------- */
.nf { padding: 140px 0 var(--sp-sec); text-align: center; }
.nf .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- 基礎層（フェードイン）の初期状態 ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1080px) {
  .gnav ul { gap: 12px; }
  .gnav a { font-size: 13px; }
  .hd__tel .num { font-size: 18px; }
}
@media (max-width: 900px) {
  :root { --sp-sec: 56px; --hd-h: 64px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .wrap { width: min(100% - 32px, var(--w-wide)); }
  .hd__burger { display: block; }
  .hd__cta { display: none; }
  .gnav {
    position: fixed; inset: var(--hd-h) 0 auto 0; margin: 0;
    background: var(--c-base); border-bottom: 1px solid var(--c-accent);
    padding: 8px 0 20px; display: none;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--c-band); }
  .gnav a { display: block; padding: 15px 20px; font-size: 16px; border-bottom: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__body { padding: 40px 0 32px; }
  .hero__lottie { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .koyomi__inner { padding-left: 4px; }
  .compare__handle { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

  .spbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    background: var(--c-base); border-top: 1px solid var(--c-accent);
  }
  .spbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 60px; font-size: 16px; font-weight: 700; text-decoration: none;
    color: var(--c-head);
  }
  .spbar a + a { background: var(--c-head); color: var(--c-base); }
  .spbar img { width: 18px; }
  .spbar a + a img { filter: invert(1); }
  .ftr { padding-bottom: 100px; }
}
@media (max-width: 620px) {
  .grid--2, .grid--4, .ba { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr__nav ul { columns: 1; }
}

/* ==========================================================================
   prefers-reduced-motion：全アニメーションを無効化
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scrolldown img { animation: none; }
}
