/* ==========================================================
   machicado design. — サイト全体のスタイル
   色や文字を変えたいときは、まず下の :root だけ触ればOK
   ========================================================== */

:root {
  --ink: #202326;        /* 文字・線（アスファルト色） */
  --paper: #ffffff;      /* 背景 */
  --concrete: #efefeb;   /* 区切りの背景（コンクリート色） */
  --line: #c9cbcf;       /* 細い線 */
  --muted: #555a62;      /* 補足の文字 */
  --accent: #c8553d;     /* ロゴの点の色（ここを変えると全体の差し色が変わる） */

  --font-latin: "Jost", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-header .mark {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}
.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.dot { color: var(--accent); }

/* ---------- ファーストビュー ---------- */
.hero { padding-top: clamp(32px, 8vw, 96px); padding-bottom: clamp(48px, 9vw, 120px); overflow-x: clip; }

.wordmark {
  margin: 0;
  font-family: var(--font-latin);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.wordmark .w1 {
  display: block;
  font-weight: 700;
  font-size: clamp(56px, 15vw, 200px);
}
.wordmark .w2 {
  display: block;
  font-weight: 400;
  font-size: clamp(34px, 8.7vw, 116px);
  padding-left: 0.06em;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
  align-items: end;
}
.hero-copy .lead {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.hero-copy .sub { margin: 0; color: var(--muted); max-width: 30em; }

/* まちかど：見出しの左上に「角」を置く。サイト全体で使うのはこの形だけ */
.corner {
  position: relative;
  padding-top: 28px;
  padding-left: 28px;
}
.corner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
}

/* ---------- セクション共通 ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section--concrete { background: rgba(239, 239, 235, 0.9); }

.section-title {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.section-title small {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 3つのお約束 ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li { border-top: 2px solid var(--ink); padding-top: 24px; }
.promises h3 { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; letter-spacing: 0.04em; }
.promises p { margin: 0; color: var(--muted); }

/* ---------- よくある質問 ---------- */
.faq { margin: 0; max-width: 760px; border-top: 2px solid var(--ink); }
.faq div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; font-size: 19px; }
.faq dd { margin: 8px 0 0; color: var(--muted); }

/* ---------- できること・料金（表のように並べる） ---------- */
.menu { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.menu li {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.menu h3 { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: 0.04em; }
.menu p { margin: 0; color: var(--muted); }
.menu .price {
  font-family: var(--font-latin);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}
.menu .price span { font-family: var(--font-ja); font-size: 14px; font-weight: 400; }
.note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- 実績 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.work figure { margin: 0; }
.work .thumb {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work figcaption { margin-top: 16px; }
.work h3 { margin: 0; font-size: 20px; }
.work p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- 依頼の流れ（本当に順番があるので番号を使う） ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.flow li {
  counter-increment: step;
  padding: 0 20px 0 0;
  border-top: 2px solid var(--ink);
}
.flow li::before {
  content: counter(step);
  display: block;
  margin: 16px 0 8px;
  font-family: var(--font-latin);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.flow h3 { margin: 0; font-size: 18px; }
.flow p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- プロフィール ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.profile .photo {
  aspect-ratio: 1 / 1;
  background: var(--concrete);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.profile h3 { margin: 0 0 16px; font-size: 24px; }
.profile h3 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--muted); }
.profile p { margin: 0 0 16px; max-width: 34em; }

/* ---------- お問い合わせフォーム ---------- */
.contact-intro { max-width: 34em; margin: 0 0 40px; }
.form { display: grid; gap: 28px; max-width: 720px; }
.form .row { display: grid; gap: 8px; }
.form .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.form label,
.form legend { font-weight: 700; font-size: 16px; }
.form .req,
.form .opt {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
}
.form .req { color: var(--accent); }
.form .opt { color: var(--muted); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.form textarea { min-height: 180px; resize: vertical; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.form .choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 400;
  cursor: pointer;
}
.form .choices input { accent-color: var(--accent); width: 18px; height: 18px; }
.form .choices label:has(input:checked) { background: var(--ink); color: var(--paper); }
.form .agree { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.form .agree input { margin-top: 7px; width: 20px; height: 20px; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start;
  min-height: 60px;
  padding: 16px 44px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.button:hover { background: var(--accent); }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .mark { font-family: var(--font-latin); font-weight: 700; font-size: 20px; color: var(--ink); }

/* ---------- 下層ページ（プライバシーポリシーなど） ---------- */
.page { padding-top: 48px; padding-bottom: 96px; max-width: 760px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.4; margin: 0 0 32px; }
.page h2 { font-size: 20px; margin: 40px 0 8px; }
.page p,
.page li { color: var(--ink); }

/* ---------- 街のブロック（main.js でスクロールに合わせて動かす） ---------- */
:root {
  --c-blue: #2f5d9e;    /* 住所の看板の青 */
  --c-yellow: #e8b931;  /* 横断歩道・注意の黄 */
  --c-green: #3c7a5a;   /* 街路樹の緑 */
}
.hero,
.section { position: relative; overflow-x: clip; }
.hero > .wrap,
.section > .wrap { position: relative; z-index: 1; }
.blocks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.block { position: absolute; display: block; will-change: transform; }
/* どのブロックも、角がひとつだけ丸い「街区」の形 */
.b-hero1 { right: -6vw; top: 3%; width: 30vw; height: 24vw; background: var(--c-yellow); border-bottom-left-radius: 45%; }
.b-hero2 { left: -5vw; bottom: 8%; width: 15vw; height: 19vw; background: var(--c-blue); border-top-right-radius: 50%; }
.b-hero3 { right: 20vw; bottom: 6%; width: 6vw; height: 6vw; background: var(--accent); border-top-left-radius: 50%; }
.b-w1 { right: -8vw; top: 32%; width: 20vw; height: 28vw; background: var(--c-green); border-top-left-radius: 50%; }
.b-m1 { left: -6vw; top: 5%; width: 13vw; height: 17vw; background: var(--c-blue); border-bottom-right-radius: 50%; }
.b-m2 { right: -4vw; bottom: 6%; width: 10vw; height: 10vw; background: var(--c-yellow); border-top-left-radius: 50%; }
.b-k1 { right: -6vw; top: 2%; width: 20vw; height: 15vw; background: var(--accent); border-bottom-left-radius: 50%; }
.b-f1 { left: -5vw; bottom: 4%; width: 15vw; height: 13vw; background: var(--c-yellow); border-top-right-radius: 50%; }
.b-p1 { right: -5vw; bottom: 8%; width: 13vw; height: 21vw; background: var(--c-blue); border-top-left-radius: 50%; }
.b-c1 { right: -6vw; top: 8%; width: 17vw; height: 23vw; background: var(--c-green); border-bottom-left-radius: 50%; }

/* 見出し：英語（小文字）を大きく、日本語を添える */
.section-title .en {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.section-title .ja {
  display: block;
  margin-top: 12px;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.08em;
}

/* ---------- オープニング ---------- */
.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--paper);
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.intro.is-done { opacity: 0; pointer-events: none; }
.intro-corner { width: 150px; height: 150px; overflow: visible; }
.intro-corner path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}
.intro-mark { position: relative; width: 150px; height: 150px; }
.intro-dot {
  position: absolute;
  top: 70px;
  left: 70px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.intro-text {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
}
.intro.is-playing .intro-corner path { animation: draw 0.9s ease-out 0.2s forwards; }
.intro.is-playing .intro-dot { animation: drop 0.5s cubic-bezier(.3, 1.6, .5, 1) 1s forwards; }
.intro.is-playing .intro-text { animation: rise 0.8s ease 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* オープニングが終わったら、ロゴがふわっと出る */
.hero { transition: opacity 0.9s ease; }
.js:not(.intro-finished) .hero { opacity: 0; }

/* 見出しの角：画面に入ったら線が引かれる */
.corner::before { transition: width 0.45s ease, height 0.45s ease 0.2s; }
.js .corner:not(.is-in)::before { width: 0; height: 0; }

/* ---------- こんなこと、ありませんか ---------- */
.worries { margin: 0; padding: 0; list-style: none; }
.worries li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/* 一行ずつ右へずらして、街角を曲がっていくような階段に */
.worries li:nth-child(2) { margin-left: 8%; }
.worries li:nth-child(3) { margin-left: 16%; }
.worries li:nth-child(4) { margin-left: 24%; }
.worries-answer {
  margin: 48px 0 0 24%;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}
.worries-answer::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- スマホ ---------- */
@media (max-width: 820px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .menu li { grid-template-columns: minmax(0, 1fr); }
  .menu .price { text-align: left; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow li { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 16px 0 0; }
  .flow li::before { margin: 0; grid-row: span 2; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile .photo { max-width: 240px; }
  .form .row-2 { grid-template-columns: minmax(0, 1fr); }
  .site-header { flex-direction: column; align-items: flex-start; }
  .worries li:nth-child(n) { margin-left: 0; }
  .worries-answer { margin-left: 0; }
  .b-hero2, .b-hero3, .b-m2 { display: none; }
  .b-hero1 { right: -16vw; width: 44vw; height: 34vw; }
  .b-w1, .b-p1, .b-c1, .b-k1 { right: -14vw; }
}
