/* ==========================================================================
   サイト工房 — スタイルシート
   色はキャラクターのイラストから取っている(朱・こげ茶・生成り)。
   色を変えたいときは :root の変数だけ書き換えればよい。
   ========================================================================== */

:root {
  --shu: #f15d18;          /* 朱(法被・背景の色) */
  --shu-dark: #c9460c;
  --shu-soft: #fde4d6;
  --cha: #4a3326;          /* こげ茶(線・文字の色) */
  --cha-soft: #6e5547;
  --kinari: #fbf5ea;       /* 生成り(背景) */
  --kinari-deep: #f4ead8;
  --white: #fffdf8;
  --line: 2px solid var(--cha);
  --pop: 4px 4px 0 var(--cha);   /* イラストの太い線に合わせた「ずらし影」 */

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-hand: "Yomogi", "Zen Maru Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--kinari);
  color: var(--cha);
  font-family: var(--font-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.45; }
p { margin: 0; }
.nowrap { display: inline-block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border: var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--shu); color: #fff; box-shadow: var(--pop); }
.btn--ghost { background: var(--white); color: var(--cha); box-shadow: var(--pop); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--cha); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--cha); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: rgba(251, 245, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--line);
}
.header__brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--font-head); font-weight: 900; font-size: 1.15rem;
}
.header__brand img { width: 36px; height: 36px; }
.header__nav { display: none; }
.header__cta {
  background: var(--shu); color: #fff;
  border: var(--line); border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--cha);
}

/* ---------- トップ ---------- */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(circle at 85% 30%, var(--shu-soft) 0 180px, transparent 181px),
    var(--kinari);
  overflow: hidden;
}
.hero__inner { display: grid; gap: 28px; align-items: center; }
.hero__visual { position: relative; max-width: 300px; margin: 0 auto; order: -1; }
.hero__visual img { filter: drop-shadow(5px 6px 0 rgba(74, 51, 38, .9)); }
.hero__badge {
  position: absolute; right: -14px; bottom: 6px;
  background: var(--white);
  border: var(--line); border-radius: 14px;
  box-shadow: var(--pop);
  padding: 8px 14px;
  text-align: center;
  transform: rotate(4deg);
}
.hero__badge span { display: block; font-family: var(--font-hand); font-size: .85rem; color: var(--shu-dark); }
.hero__badge strong { font-family: var(--font-head); font-size: 1.1rem; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--shu-dark);
  border-bottom: 2px dashed var(--shu);
  margin-bottom: 14px;
}
.hero__title { font-size: clamp(1.75rem, 6.6vw, 2.9rem); font-weight: 900; margin-bottom: 16px; }
.hero__lead { color: var(--cha-soft); font-size: 1.02rem; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- お悩み ---------- */
.worries { background: var(--cha); color: var(--kinari); padding: 48px 0; }
.worries__title { font-size: 1.35rem; text-align: center; margin-bottom: 22px; }
.worries__list { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 640px; display: grid; gap: 10px; }
.worries__list li {
  position: relative;
  background: rgba(255, 253, 248, .08);
  border: 1px solid rgba(255, 253, 248, .25);
  border-radius: 12px;
  padding: 12px 16px 12px 44px;
  font-size: .95rem;
}
.worries__list li::before {
  content: "?";
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--shu); color: #fff;
  font-weight: 700; font-size: .8rem; line-height: 20px; text-align: center;
}
.worries__answer { text-align: center; font-family: var(--font-head); font-size: 1.1rem; }
.worries__answer strong { color: #ffb38a; }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--kinari-deep); border-top: var(--line); border-bottom: var(--line); }
.heading { text-align: center; margin-bottom: 40px; }
.heading__en {
  display: inline-block;
  font-family: var(--font-hand);
  color: var(--shu-dark);
  letter-spacing: .2em;
  font-size: .9rem;
}
.heading__ja { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 900; }

/* ---------- できること ---------- */
.cards { display: grid; gap: 18px; }
.card {
  background: var(--white);
  border: var(--line); border-radius: 18px;
  box-shadow: var(--pop);
  padding: 22px 22px 20px;
}
.card__num {
  display: inline-block;
  font-family: var(--font-head); font-weight: 900;
  color: #fff; background: var(--shu);
  border-radius: 999px; padding: 0 12px;
  font-size: .85rem; margin-bottom: 10px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--cha-soft); font-size: .94rem; }

/* ---------- 見本 ---------- */
.works { display: grid; gap: 32px; align-items: center; }
.works__phone {
  display: block;
  width: 230px; margin: 0 auto;
  border: 3px solid var(--cha); border-radius: 30px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--cha);
  background: var(--cha);
  transition: transform .2s ease;
}
.works__phone:hover { transform: rotate(-2deg); }
/* 390×844 のスマホ画面を枠の幅に合わせて縮小 */
.works__phone { position: relative; aspect-ratio: 390 / 844; }
.works__phone iframe {
  position: absolute; top: 0; left: 0;
  width: 390px; height: 844px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(calc(224 / 390));
  pointer-events: none;
  background: #fff;
}
.works__tag { font-family: var(--font-hand); color: var(--shu-dark); }
.works__text h3 { font-size: 1.5rem; margin-bottom: 10px; }
.works__text p { color: var(--cha-soft); margin-bottom: 12px; }
.works__text .works__note { font-size: .82rem; margin-bottom: 20px; }

/* ---------- 料金 ---------- */
.price-main {
  position: relative;
  max-width: 520px; margin: 0 auto 28px;
  background: var(--white);
  border: 3px solid var(--cha); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--shu);
  padding: 40px 24px 26px;
  text-align: center;
}
.price-main__ribbon {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--shu); color: #fff;
  border: var(--line); border-radius: 999px;
  padding: 4px 18px;
  font-family: var(--font-head); font-weight: 700;
}
.price-main__label { font-family: var(--font-head); font-weight: 700; }
.price-main__value { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; line-height: 1.2; }
.price-main__yen { font-size: 3.4rem; color: var(--shu); }
.price-main__normal { color: var(--cha-soft); font-size: .9rem; margin: 6px 0 14px; }
.price-main__desc { font-size: .92rem; color: var(--cha-soft); border-top: 2px dashed var(--kinari-deep); padding-top: 14px; }

.price-table {
  width: 100%; max-width: 640px; margin: 0 auto;
  border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border: var(--line); border-radius: 16px;
  overflow: hidden;
}
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--kinari-deep); vertical-align: middle; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table th { text-align: left; font-weight: 700; font-size: .95rem; }
.price-table td { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; }
.price-table small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .76rem; color: var(--cha-soft); white-space: normal; }
.price-table td strong { color: var(--shu-dark); }
.price-note { text-align: center; font-size: .85rem; color: var(--cha-soft); margin-top: 16px; }

/* ---------- 流れ ---------- */
.flow { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 16px; position: relative; }
.flow__item {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: var(--line); border-radius: 18px;
  box-shadow: var(--pop);
  padding: 14px 18px 14px 14px;
}
.flow__item img, .flow__icon { width: 76px; height: 76px; flex: 0 0 76px; }
.flow__icon {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--shu); color: #fff;
  font-size: 2rem; font-weight: 700;
  border: var(--line);
}
.flow__item h3 { font-size: 1.05rem; }
.flow__item h3 span { display: block; font-family: var(--font-hand); color: var(--shu-dark); font-size: .8rem; font-weight: 400; letter-spacing: .1em; }
.flow__item p { font-size: .9rem; color: var(--cha-soft); }

/* ---------- 自己紹介 ---------- */
.about { display: grid; gap: 28px; align-items: center; max-width: 880px; margin: 0 auto; }
.about__img { width: 220px; margin: 0 auto; filter: drop-shadow(5px 6px 0 rgba(74, 51, 38, .9)); }
.about__facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.about__facts li {
  background: var(--shu-soft);
  border: 1.5px solid var(--cha);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: .88rem; font-weight: 700;
}
.about__text p { margin-bottom: 14px; color: var(--cha-soft); }

/* ---------- 無料相談 ---------- */
.contact { background: var(--shu); color: #fff; border-top: var(--line); }
.heading--light .heading__en { color: #ffe1cf; }
.contact__lead { text-align: center; margin-bottom: 32px; }
.contact__grid { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.contact__card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--white); color: var(--cha);
  border: var(--line); border-radius: 18px;
  box-shadow: var(--pop);
  padding: 22px 16px;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact__card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--cha); }
.contact__card strong { font-family: var(--font-head); font-size: 1.15rem; }
.contact__card span:last-child { font-size: .85rem; color: var(--cha-soft); word-break: break-all; }
.contact__icon { font-size: 1.8rem; }
.contact__card--main { background: var(--cha); color: #fff; }
.contact__card--main span:last-child { color: #f4ead8; }

/* ---------- フッター ---------- */
.footer { background: var(--cha); color: #e9dccb; text-align: center; padding: 36px 20px; font-size: .85rem; }
.footer__brand { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; color: #fff; }
.footer__links { display: flex; justify-content: center; gap: 18px; margin: 10px 0; }
.footer__copy { opacity: .7; font-size: .75rem; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .works { grid-template-columns: 280px 1fr; }
  .works__phone { width: 260px; }
  .works__phone iframe { transform: scale(calc(254 / 390)); }
  .about { grid-template-columns: 240px 1fr; }
}
@media (min-width: 880px) {
  .header__nav { display: flex; gap: 22px; font-weight: 700; font-size: .92rem; }
  .header__nav a { text-decoration: none; }
  .header__nav a:hover { color: var(--shu-dark); }
  .hero { padding: 64px 0 80px; background: radial-gradient(circle at 78% 50%, var(--shu-soft) 0 260px, transparent 261px), var(--kinari); }
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .hero__visual { order: 0; max-width: 400px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}
