@charset "UTF-8";
/* =========================================================
   株式会社アオト
   common.css - 全ページ共通（トークン／リセット／共通パーツ）
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
  /* Brand */
  --c-navy:        #0000ff;  /* コーポレートカラー */
  --c-navy-950:    #02071a;
  --c-navy-900:    #04102a;
  --c-navy-850:    #061530;
  --c-navy-800:    #0a1f43;
  --c-navy-700:    #0d2c5c;
  --c-navy-600:    #123f7d;
  --c-blue-500:    #1c4f9c;
  --c-blue-400:    #2f77b4;
  --c-blue-300:    #6ea3d6;
  --c-blue-100:    #cfe2f8;

  --c-gold:        #c9a86a;
  --c-gold-light:  #e3bc7e;

  --c-ivory:       #f5f7fb;
  --c-ivory-deep:  #e8edf5;
  --c-white:       #ffffff;

  --c-text:        #1b2532;
  --c-text-sub:    #5a6675;
  --c-text-onDark: rgba(255,255,255,.86);
  --c-text-onDarkSub: rgba(255,255,255,.62);

  --c-line:        #06c755; /* LINE ブランドカラー */
  --c-line-dark:   #05a948;

  /* Typography */
  --ff-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --ff-mincho: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --ff-en: "Cormorant Garamond", "Times New Roman", serif;

  /* Layout */
  --w-container: 1180px;
  --gutter: 24px;
  --header-h: 88px;
  --radius: 6px;
  --sp-section: clamp(76px, 9vw, 132px);

  /* Effects */
  --ease: cubic-bezier(.22,.68,.28,1);
  --shadow-soft: 0 18px 44px rgba(3, 16, 42, .12);
  --shadow-card: 0 24px 60px rgba(2, 12, 32, .28);
}

/* ---------------------------------------------------------
   2. Reset / base
   --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease), opacity .3s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--c-navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-gold-light);
  outline-offset: 3px;
}

/* 欧文セリフ体は既定でオールドスタイル数字になるため、
   数字を含む箇所はライニング数字（高さの揃った数字）に固定する */
.header__tel-num,
.footer__copy,
.point__no,
.point__num,
.flow__no,
.diag__step-no,
.diag__tel a,
.reno__label-no,
.quickbar__item dd b,
.trouble__risk-no,
.cost__factor-no,
.area__ttl span,
.faq__q::before {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* 本文へスキップ（キーボード操作用） */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10001;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--c-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--w-container));
  margin-inline: auto;
}

.section { padding-block: var(--sp-section); position: relative; }

.section--navy {
  background: var(--c-navy-800);
  color: var(--c-text-onDark);
  background-image: url("../images/pattern-shingle.svg");
  background-size: 160px 80px;
}

.section__lead {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 2.2;
  color: inherit;
}

.pc-only { display: inline; }
.sp-only { display: none; }

/* Section heading ---------------------------------------- */
.sec-head {
  text-align: center;
  margin-bottom: clamp(44px, 5vw, 72px);
}
/* 見出しの上の小さな切妻マーク（屋根モチーフ） */
.sec-head__line {
  display: block;
  width: 52px;
  height: 15px;
  margin: 0 auto 22px;
  background: var(--c-gold);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 92% 100%, 50% 19%, 8% 100%);
}
.sec-head__line--light { background: rgba(255,255,255,.7); }

.sec-head__en {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--c-gold);
  text-transform: uppercase;
}
.sec-head__ja {
  margin-top: 14px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: .22em;
  line-height: 1.6;
}
.section--navy .sec-head__ja,
.section--navy .sec-head__en { color: var(--c-gold-light); }
.section--navy .sec-head__ja { color: #fff; }

.sec-head--left { text-align: left; }
.sec-head--left .sec-head__line { margin: 0 0 22px; }

/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */
.btn {
  --btn-py: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--btn-py) 34px;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: left;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 24px; height: 24px; flex: none; fill: currentColor; }

.btn__body { display: flex; flex-direction: column; gap: 2px; }
.btn__body em { font-style: normal; font-size: 17px; }
.btn__body small { font-size: 11.5px; font-weight: 400; letter-spacing: .05em; opacity: .82; }

.btn--line {
  background: var(--c-line);
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 199, 85, .3);
}
.btn--line:hover { background: var(--c-line-dark); box-shadow: 0 16px 34px rgba(6, 199, 85, .38); }

.btn--outline {
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.04);
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.btn--sm { --btn-py: 12px; padding-inline: 20px; font-size: 13px; gap: 8px; }
.btn--sm svg { width: 19px; height: 19px; }
.btn--lg { --btn-py: 18px; padding-inline: 30px; }
.btn--xl { --btn-py: 22px; padding-inline: 46px; }
.btn--xl .btn__body em { font-size: clamp(18px, 2.2vw, 22px); }
.btn--xl svg { width: 30px; height: 30px; }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------
   5. Loader
   --------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--c-navy-700) 0%, var(--c-navy-950) 72%);
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

.loader__inner { text-align: center; }

/* ロゴ配置エリア（ローダー） */
.loader__logo { display: grid; justify-items: center; }

/* ロゴ本体（現状は差し替え用プレースホルダー） */
.loader__img {
  width: 184px;
  max-width: 54vw;
  height: auto;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .16s forwards;
}

.loader__sub {
  margin-top: 16px;
  font-family: var(--ff-mincho);
  font-size: 11.5px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: var(--c-gold-light);
  opacity: 0;
  animation: fadeUp .9s var(--ease) .74s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader__bar {
  width: 168px;
  height: 1px;
  margin: 34px auto 0;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c-gold-light);
  transform: scaleX(0);
  transform-origin: left center;
  animation: barGrow 1.5s var(--ease) .2s forwards;
}
@keyframes barGrow { to { transform: scaleX(1); } }

/* ---------------------------------------------------------
   6. Header
   --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  transition: height .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,7,26,.62), rgba(2,7,26,0));
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.header.is-scrolled {
  height: 72px;
  background: rgba(4, 16, 42, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(2, 10, 28, .3);
}
.header.is-scrolled::before { opacity: 0; }

.header__inner {
  position: relative;
  height: 100%;
  width: min(100% - 40px, 1560px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴ配置エリア（ヘッダー） */
.header__logo { display: block; flex: none; }
.header__logo img {
  width: auto;
  height: 56px;
  transition: height .4s var(--ease);
}
.header.is-scrolled .header__logo img { height: 44px; }

.gnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 38px); }

.gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.5vw, 26px);
}
.gnav__list a {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #fff;
  padding-block: 6px;
}
.gnav__en {
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: .12em;
  line-height: 1;
  transition: color .3s var(--ease);
}
.gnav__ja {
  font-size: 9.5px;
  letter-spacing: .12em;
  line-height: 1;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.gnav__list a:hover .gnav__en,
.gnav__list a.is-current .gnav__en { color: var(--c-gold-light); }
.gnav__list a:hover .gnav__ja,
.gnav__list a.is-current .gnav__ja { color: rgba(255,255,255,.9); }

.gnav__cta { display: flex; align-items: center; gap: 18px; }

.header__tel { display: grid; gap: 1px; color: #fff; }
.header__tel-label { font-size: 9.5px; letter-spacing: .16em; color: rgba(255,255,255,.6); }
.header__tel-num {
  font-family: var(--ff-en);
  font-size: 22px;
  letter-spacing: .04em;
  line-height: 1.1;
}
.header__tel:hover { color: var(--c-gold-light); }

/* Hamburger ---------------------------------------------- */
.hamburger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22.5px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(2, 7, 24, .6);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.drawer-overlay.is-open { opacity: 1; }

/* ---------------------------------------------------------
   7. Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: 92px 0 40px;
  color: #fff;
  text-align: center;
  background: var(--c-navy-950);
}
.footer__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-roofscape.svg") center bottom / cover no-repeat;
  opacity: .55;
}
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,7,26,.9) 0%, rgba(2,7,26,.55) 45%, rgba(2,7,26,.92) 100%);
}
.footer__inner { position: relative; z-index: 1; }

.footer__pagetop {
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 52px;
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.8);
}
.footer__pagetop-line {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.7));
  transition: height .4s var(--ease);
}
.footer__pagetop:hover { color: var(--c-gold-light); }
.footer__pagetop:hover .footer__pagetop-line { height: 68px; }

/* ロゴ配置エリア（フッター） */
.footer__logo img { width: auto; height: 76px; }

.footer__catch {
  margin-top: 26px;
  font-family: var(--ff-mincho);
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: .14em;
  line-height: 2;
  color: rgba(255,255,255,.9);
}

.footer__address {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--c-text-onDarkSub);
}
.footer__address a:hover { color: var(--c-gold-light); }

.footer__nav { margin-top: 40px; }
.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.footer__nav a {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.72);
}
.footer__nav a:hover { color: var(--c-gold-light); }

.footer__copy {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
}

/* ---------------------------------------------------------
   8. SP fixed CTA
   --------------------------------------------------------- */
.spcta {
  position: fixed;
  inset: auto 0 0;
  z-index: 850;
  display: none;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.2);
  transform: translateY(102%);
  transition: transform .45s var(--ease);
  box-shadow: 0 -8px 26px rgba(2, 10, 28, .22);
}
.spcta.is-visible { transform: translateY(0); }

.spcta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px calc(15px + env(safe-area-inset-bottom));
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.spcta__btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.spcta__btn--line { background: var(--c-line); }
.spcta__btn--tel  { background: var(--c-navy-800); }

/* ---------------------------------------------------------
   9. Scroll reveal
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   10. Responsive
   --------------------------------------------------------- */
@media (max-width: 1280px) {
  .header__tel { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .header__logo img { height: 46px; }
  .header.is-scrolled .header__logo img { height: 42px; }

  /* ドロワー（z-index:890）より前面に置き、閉じるボタンとして見えるようにする */
  .hamburger { display: block; z-index: 895; }

  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 890;
    width: min(380px, 88vw);
    height: 100dvh;
    padding: 100px 32px 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background: linear-gradient(160deg, var(--c-navy-800), var(--c-navy-950));
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    visibility: hidden;
  }
  .gnav.is-open { transform: translateX(0); visibility: visible; }

  .gnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .gnav__list li + li { border-top: 1px solid rgba(255,255,255,.12); }
  .gnav__list a {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: baseline;
    gap: 12px;
    padding: 17px 4px;
  }
  .gnav__en { font-size: 17px; }
  .gnav__ja { font-size: 11px; }

  .gnav__cta { flex-direction: column; align-items: stretch; margin-top: 34px; }
  .gnav__cta .btn { justify-content: center; }
  .gnav__cta .btn--sm { --btn-py: 15px; font-size: 14px; }

  .header__tel { display: grid; text-align: center; justify-items: center; margin-top: 6px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 62px; }
  .spcta { display: grid; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  body { font-size: 15px; line-height: 1.95; }

  .pc-only { display: none; }
  .sp-only { display: inline; }

  .sec-head__line { width: 44px; height: 13px; margin-bottom: 18px; }

  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .btn--xl { --btn-py: 18px; padding-inline: 24px; }

  .footer { padding: 72px 0 32px; }
  .footer__logo img { height: 60px; }
  .footer__pagetop { margin-bottom: 40px; }
  .footer__pagetop-line { height: 42px; }
  .footer__nav ul { gap: 8px 18px; }
}

/* ---------------------------------------------------------
   11. Motion preferences
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loader__img, .loader__sub { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   12. Print
   --------------------------------------------------------- */
@media print {
  .loader, .header, .spcta, .drawer-overlay, .footer__pagetop { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
