@charset "UTF-8";

/* =========================================================
   TOPページ専用スタイル
   ========================================================= */

/* ---------------------------------------------------------
   ヒーロー：施工写真のスライド + 窓枠グリッド + 光のすじ
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  height: calc(100svh - var(--header-h));
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__media { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease);
}
.hero__slide.is-active {
  opacity: 1;
  animation: hero-zoom 9s linear forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}

/* 写真を沈めて文字を読ませる */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 31, 63, 0.92) 0%, rgba(7, 31, 63, 0.74) 42%, rgba(11, 47, 94, 0.3) 78%, rgba(11, 47, 94, 0.15) 100%);
}

/* 窓枠のグリッド */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 12.5% 100%;
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px rgba(7, 31, 63, 0.55);
}

/* 斜めに走る光 */
.hero__sheen {
  position: absolute;
  inset: -40% -20%;
  z-index: 1;
  background: linear-gradient(103deg, transparent 44%, rgba(150, 205, 245, 0.16) 50%, transparent 56%);
  transform: translateX(-60%);
  animation: hero-sheen 7s 1.2s var(--ease) infinite;
  pointer-events: none;
}
@keyframes hero-sheen {
  0% { transform: translateX(-60%); }
  45%, 100% { transform: translateX(60%); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-block: clamp(48px, 8vw, 88px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  animation: hero-in 0.9s 0.15s var(--ease) both;
}
.hero__eyebrow span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(26px, 5.6vw, 62px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 24px rgba(7, 31, 63, 0.5);
}
.hero__title span {
  display: block;
  animation: hero-in 1s var(--ease) both;
}
.hero__title span:nth-child(1) { animation-delay: 0.3s; }
.hero__title span:nth-child(2) {
  animation-delay: 0.45s;
  color: var(--blue-light);
}

.hero__lead {
  margin-top: 24px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 1.4vw, 16px);
  animation: hero-in 1s 0.6s var(--ease) both;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: hero-in 1s 0.75s var(--ease) both;
}
.hero .btn--tel {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.hero .btn--tel:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn--tel .tel,
.hero .btn--line span { text-align: left; }

.hero__badge {
  margin-top: 26px;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 14px;
  border-left: 2px solid var(--leaf);
  animation: hero-in 1s 0.9s var(--ease) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* スライドのインジケーター */
.hero__thumbs {
  position: absolute;
  right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__thumb {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}
.hero__thumb:hover { transform: scaleY(1.6); }
.hero__thumb.is-active { background: var(--blue-light); }

/* ---------------------------------------------------------
   ヒーロー下バナー
   --------------------------------------------------------- */
.hero-banner {
  padding-block: clamp(28px, 5vw, 56px);
}
.hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------------------------------------------------------
   お困りごと
   --------------------------------------------------------- */
.trouble__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trouble__item {
  position: relative;
  padding: 30px 24px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.trouble__item::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.trouble__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.trouble__item:hover::before { transform: scaleX(1); }

.trouble__label {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.trouble__title { margin-top: 12px; font-size: 18px; }
.trouble__text { margin-top: 14px; font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ---------------------------------------------------------
   事業内容
   --------------------------------------------------------- */
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.svc-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 31, 63, 0) 45%, rgba(7, 31, 63, 0.6) 100%);
}
.svc-card__tag {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.svc-card__body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.svc-card__title { font-size: clamp(21px, 2.2vw, 26px); }
.svc-card__text { margin-top: 16px; font-size: 15px; color: var(--gray); }

.svc-card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__tags li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.svc-card__spec {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.svc-card__spec div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.svc-card__spec dt {
  flex: none;
  width: 56px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.svc-card__spec dd { font-size: 15px; font-weight: 500; }
.svc-card__spec b {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-right: 2px;
}
/* 日本語の強調は和文書体で、数字よりひとまわり小さく */
.svc-card__spec b.jp { font-family: var(--font-display); font-size: 19px; }
.svc-card__spec span { font-size: 12px; color: var(--gray); }

.svc-card__link {
  margin-top: auto;
  padding-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}
.svc-card__link::after {
  content: "";
  width: 22px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: skewX(45deg) scaleY(0);
  transform-origin: right;
  margin-bottom: 3px;
  transition: width 0.3s var(--ease);
}
.svc-card__link:hover::after { width: 34px; }

/* ---------------------------------------------------------
   選ばれる理由
   --------------------------------------------------------- */
.reason__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.reason__item { position: relative; padding-top: 8px; }

/* 数字の高さを揃え、見出しの位置を3列でそろえる */
.reason__num,
.reason__big {
  display: flex;
  align-items: flex-end;
  min-height: 76px;
  line-height: 1;
}
.reason__num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 52px;
  color: var(--mist-deep);
  letter-spacing: 0.02em;
}
.reason__big { gap: 8px; color: var(--blue); }
.reason__big b {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 76px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reason__big span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  padding-bottom: 8px;
}

.reason__title { margin-top: 18px; font-size: 21px; }
.reason__text { margin-top: 14px; font-size: 15px; color: var(--gray); }

/* ---------------------------------------------------------
   施工の流れ
   --------------------------------------------------------- */
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: flow;
}
.flow__item {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* ステップをつなぐ線 */
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--blue-light);
  border-right: 2px solid var(--blue-light);
  transform: translateY(-50%) rotate(45deg);
}
.flow__step {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.flow__title { margin-top: 18px; font-size: 20px; }
.flow__text { margin-top: 12px; font-size: 14px; color: var(--gray); line-height: 1.85; }

/* ---------------------------------------------------------
   料金
   --------------------------------------------------------- */
.price-teaser__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.price-card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(180deg, var(--white), var(--mist));
}
.price-card--ask { background: var(--white); }
.price-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.price-card__value {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
}
.price-card__value span {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.01em;
  color: var(--blue);
}
.price-card__value--text {
  font-size: 40px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--blue);
}
.price-card__unit { margin-top: 8px; font-size: 13px; color: var(--gray); letter-spacing: 0.04em; }
.price-card__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--mist-deep);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .trouble__list { grid-template-columns: repeat(2, 1fr); }
  .flow__list { grid-template-columns: repeat(2, 1fr); gap: 20px 36px; }
  .flow__item:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-top: 20px; }
  .hero__thumbs { right: 20px; bottom: 20px; }
  .service__grid { grid-template-columns: 1fr; gap: 24px; }
  .reason__list { grid-template-columns: 1fr; gap: 36px; }
  .reason__item { padding-left: 0; }
  .reason__num,
  .reason__big { min-height: 0; }
  .reason__big b { font-size: 68px; }
}

@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__title { line-height: 1.4; }
  .hero__eyebrow { flex-wrap: wrap; gap: 8px; font-size: 13px; }
  .hero__eyebrow span { padding-left: 0; border-left: 0; }
  .trouble__list { grid-template-columns: 1fr; }
  .trouble__title br { display: none; }
  .flow__list { grid-template-columns: 1fr; gap: 32px; }
  .flow__item:not(:last-child)::after {
    top: auto;
    bottom: -22px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .flow__item:nth-child(2)::after { display: block; }
  .price-teaser__cards { grid-template-columns: 1fr; }
  .svc-card__body { padding: 26px 20px 28px; }
}
