@charset "UTF-8";
/* ============================================================
   創光ホームエンジニアリング コーポレートサイト
   方向: 明るい親しみ型（白×オレンジ・丸み）— 問い合わせのハードルを下げる
   本文は16px。高槻のシニア層が読者に含まれるため小さくしない
   構成: 1.トークン 2.ベース 3.ヘッダー 4.パーツ 5.セクション 6.モーション
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  --orange: #f2721c;         /* 主役。CTAと強調だけに使う */
  --orange-deep: #d1560a;
  --orange-pale: #fff1e6;
  --cream: #fffaf5;          /* 地 */
  --ink: #2b2118;            /* 文字。真っ黒にせず茶を含ませる */
  --gray: #6f6259;
  --line: #f0e2d5;
  --white: #ffffff;
  --green: #3f8f5f;          /* 「無料」など安心の合図にだけ使う差し色 */

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", var(--font-ja);

  --container: 1080px;
  --gutter: 20px;
  --sp-xl: 128px;
  --sp-lg: 88px;
  --sp-md: 56px;

  --radius: 24px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --shadow: 0 14px 34px rgba(43, 33, 24, 0.10);

  --duration: 0.7s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 100;
  --z-modal: 1000;
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
  padding-bottom: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - 32px, 1280px); margin-inline: auto;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__name {
  font-family: var(--font-round);
  font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0.01em;
}
.logo__sub { display: block; font-size: 11px; font-weight: 500; color: var(--gray); letter-spacing: 0.06em; }

.header__right { display: flex; align-items: center; gap: 22px; }
.global-nav ul { display: flex; align-items: center; gap: 24px; }
.global-nav a { font-size: 14px; font-weight: 700; white-space: nowrap; transition: color 0.2s; }
.global-nav a:hover { color: var(--orange); }

.header__tel { text-align: right; line-height: 1.3; }
.header__tel span { display: block; font-size: 11px; color: var(--gray); font-weight: 700; }
.header__tel strong {
  font-family: var(--font-round);
  font-size: 24px; letter-spacing: 0.01em; color: var(--ink);
}
.nav-toggle { display: none; }

/* ---------- 4. パーツ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 0 34px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--white);
  font-family: var(--font-round);
  font-size: 18px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(242, 114, 28, 0.32);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(242, 114, 28, 0.4); }
.btn--line { background: var(--white); color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.btn--line:hover { background: var(--orange-pale); color: var(--orange-deep); box-shadow: inset 0 0 0 2px var(--orange-deep); }
.btn--tel { background: var(--ink); box-shadow: 0 8px 20px rgba(43, 33, 24, 0.22); }
.btn--tel:hover { background: #12100e; box-shadow: 0 14px 28px rgba(43, 33, 24, 0.3); }
.btn--sm { min-height: 50px; padding: 0 24px; font-size: 15px; }

.badge-free {
  display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--green); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

.sec-head { text-align: center; }
.sec-head__label {
  display: inline-block;
  font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: 0.1em;
}
.sec-head__title {
  margin-top: 8px;
  font-family: var(--font-round);
  font-size: 40px; font-weight: 700; line-height: 1.45; letter-spacing: 0.01em;
  text-wrap: balance;
}
.sec-head__note { margin-top: 14px; font-size: 16px; color: var(--gray); text-wrap: balance; }

.section { padding: var(--sp-xl) 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: var(--sp-lg) 0; }

/* ---------- 5-1. ヒーロー ---------- */
.hero { position: relative; background: var(--orange-pale); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255, 250, 245, 0.97) 0%, rgba(255, 250, 245, 0.9) 42%,
    rgba(255, 250, 245, 0.35) 68%, rgba(255, 250, 245, 0.1) 100%);
}
.hero__inner { position: relative; padding: 96px 0 108px; }
.hero__copy { max-width: 620px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--radius-pill);
  background: var(--white); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--orange-deep);
}
.hero__title {
  margin-top: 22px;
  font-family: var(--font-round);
  font-size: 54px; font-weight: 700; line-height: 1.4; letter-spacing: 0.005em;
  text-wrap: balance;
}
.hero__title mark {
  background: linear-gradient(transparent 62%, #ffd9b8 62%);
  color: inherit; padding: 0 2px;
}
.hero__lead { margin-top: 24px; font-size: 18px; line-height: 2; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero__points li {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700;
}
.hero__points li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 5-2. 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.reason {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 28px 32px; box-shadow: var(--shadow);
  position: relative;
}
.reason__no {
  position: absolute; top: -18px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  font-family: var(--font-round); font-size: 18px; font-weight: 700;
}
.reason__icon { width: 62px; height: 62px; margin-bottom: 14px; }
.reason__title {
  font-family: var(--font-round);
  font-size: 22px; font-weight: 700; line-height: 1.5; text-wrap: balance;
}
.reason__text { margin-top: 12px; font-size: 15px; line-height: 1.95; color: var(--gray); }

/* 写真の帯（イメージ写真。施工事例ではないので実績としては見せない） */
.photoband { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photoband li { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.photoband img { width: 100%; height: 100%; object-fit: cover; }
.photoband li:nth-child(even) { translate: 0 22px; }

/* ---------- 5-3. サービス ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.service {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.service:hover { border-color: var(--orange); transform: translateY(-4px); }
.service__icon { width: 54px; height: 54px; }
.service__title { margin-top: 12px; font-family: var(--font-round); font-size: 21px; font-weight: 700; }
.service__text { margin-top: 8px; font-size: 15px; color: var(--gray); line-height: 1.9; }

/* ---------- 5-4. 施工事例（写真待ちの枠） ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.work {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.work__ph {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; gap: 8px;
  background: repeating-linear-gradient(-45deg, #fbf2ea 0 12px, #f6e9de 12px 24px);
  color: #b79b83; text-align: center;
}
.work__ph svg { width: 46px; height: 46px; }
.work__ph span { font-size: 13px; font-weight: 700; }
.work__body { padding: 20px 22px 24px; }
.work__cat {
  display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--orange-pale); color: var(--orange-deep);
  font-size: 12px; font-weight: 700;
}
.work__title { margin-top: 10px; font-family: var(--font-round); font-size: 19px; font-weight: 700; }
.work__meta { margin-top: 6px; font-size: 14px; color: var(--gray); }

/* ---------- 5-5. 流れ ---------- */
.flow { margin-top: 52px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow__item {
  position: relative; text-align: center;
  background: var(--white); border-radius: var(--radius); padding: 30px 16px 26px;
  box-shadow: var(--shadow);
}
.flow__item::after {
  content: ""; position: absolute; top: 50%; right: -12px; translate: 0 -50%;
  width: 0; height: 0; border-left: 9px solid var(--orange);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.flow__item:last-child::after { display: none; }
.flow__no { font-family: var(--font-round); font-size: 13px; font-weight: 700; color: var(--orange); }
.flow__icon { width: 46px; height: 46px; margin: 8px auto 10px; }
.flow__title { font-family: var(--font-round); font-size: 17px; font-weight: 700; line-height: 1.5; }
.flow__text { margin-top: 6px; font-size: 13px; color: var(--gray); line-height: 1.8; }

/* ---------- 5-6. 代表あいさつ ---------- */
.owner { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.owner__photo {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(-45deg, #fbf2ea 0 12px, #f6e9de 12px 24px);
  color: #b79b83;
}
.owner__photo svg { width: 54px; height: 54px; }
.owner__photo span { font-size: 13px; font-weight: 700; }
.owner__title {
  font-family: var(--font-round); font-size: 30px; font-weight: 700; line-height: 1.55;
  text-wrap: balance;
}
.owner__text { margin-top: 20px; font-size: 16px; line-height: 2.05; }
.owner__sign { margin-top: 22px; font-size: 15px; color: var(--gray); }
.owner__sign strong { font-family: var(--font-round); font-size: 22px; color: var(--ink); margin-left: 8px; }

/* ---------- 5-7. よくある質問 ---------- */
.faq { max-width: 820px; margin: 52px auto 0; display: grid; gap: 14px; }
.faq__item {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px;
}
.faq__q {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--font-round); font-size: 18px; font-weight: 700; line-height: 1.6;
}
.faq__q::before {
  content: "Q"; flex: none;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--white); font-size: 15px;
}
.faq__a { display: flex; gap: 12px; margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--gray); }
.faq__a::before {
  content: "A"; flex: none;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-pale); color: var(--orange-deep); font-size: 15px; font-weight: 700;
}

/* ---------- 5-8. お問い合わせ ---------- */
.cta { background: var(--orange); color: var(--white); border-radius: var(--radius-lg); padding: 62px 6% 58px; }
.cta__title {
  font-family: var(--font-round); font-size: 36px; font-weight: 700; line-height: 1.5; text-align: center;
  text-wrap: balance;
}
.cta__text { margin-top: 16px; font-size: 16px; text-align: center; line-height: 1.95; }
.cta__box {
  margin: 34px auto 0; max-width: 760px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.cta__card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; text-align: center; color: var(--ink); }
.cta__card h3 { font-family: var(--font-round); font-size: 18px; font-weight: 700; }
.cta__tel {
  display: block; margin-top: 8px;
  font-family: var(--font-round); font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em;
}
.cta__hours { font-size: 13px; color: var(--gray); }
.cta__card .btn { margin-top: 14px; width: 100%; }

/* ---------- 5-9. フッター ---------- */
.site-footer { background: var(--ink); color: #e7ded6; padding: 66px 0 0; }
.site-footer .logo__name { color: var(--white); }
.site-footer .logo__sub { color: #b9aca1; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; }
.footer__info { margin-top: 22px; font-size: 15px; line-height: 2; }
.footer__info dt { float: left; clear: left; width: 96px; color: #b9aca1; font-size: 14px; }
.footer__info dd { margin: 0 0 0 96px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer__nav a { font-size: 15px; transition: color 0.2s; }
.footer__nav a:hover { color: var(--orange); }
.footer__bar {
  margin-top: 54px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__bar .container { padding: 18px 0; font-size: 12px; color: #b9aca1; text-align: center; }

/* スマホ用の固定バー（電話とLINE的な導線を常に出す） */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.sticky-cta .btn { flex: 1; min-height: 54px; font-size: 16px; padding: 0 12px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .global-nav { display: none; }
  .hero__title { font-size: 44px; }
  .reasons, .services, .works { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__item::after { display: none; }
}

@media (max-width: 768px) {
  :root { --sp-xl: 72px; --sp-lg: 56px; --sp-md: 40px; }
  body { padding-bottom: 78px; }

  .site-header__inner { height: 64px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 16px; }
  .logo__sub { font-size: 10px; }
  .header__tel { display: none; }

  .hero__inner { padding: 48px 0 56px; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(255,250,245,.96) 0%, rgba(255,250,245,.9) 55%, rgba(255,250,245,.55) 100%);
  }
  .hero__title { font-size: 31px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .sec-head__title { font-size: 26px; }
  .sec-head__note { font-size: 15px; }

  .reasons, .services, .works, .flow { grid-template-columns: 1fr; }
  .photoband { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
  .photoband li:nth-child(even) { translate: 0 14px; }
  .reasons { margin-top: 40px; gap: 32px; }
  .owner { grid-template-columns: 1fr; gap: 26px; }
  .owner__photo { max-width: 260px; margin-inline: auto; }
  .owner__title { font-size: 23px; }

  .cta { border-radius: 26px; padding: 44px 20px 40px; }
  .cta__title { font-size: 25px; }
  .cta__box { grid-template-columns: 1fr; }
  .cta__tel { font-size: 28px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky-cta { display: flex; }
}

/* ---------- 6. モーション（スターターの仕組みを維持） ---------- */
.js-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* モーション停止(SKILL.mdのポリシー実装。削除禁止) */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 92px; z-index: var(--z-modal);
  padding: 10px 16px; font-size: 12px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .motion-stop { display: block; } }
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }
