/* =========================================================
   トップページ
   ========================================================= */

/* ---------- ヒーロー（three.jsの配管が背面で動く） ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--c-pearl);
  /* ALBIONのファーストビューのような、右上から差す暖かい光 */
  background:
    radial-gradient(55% 70% at 78% 32%, rgba(234, 212, 178, .26), transparent 70%),
    radial-gradient(40% 50% at 96% 92%, rgba(185, 189, 194, .12), transparent 70%),
    linear-gradient(180deg, #231D19 0%, var(--c-lacquer) 100%);
}
.hero__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 2s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 24, 21, .92) 0%, rgba(28, 24, 21, .6) 36%, rgba(28, 24, 21, 0) 66%);
}
.hero__inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 64px) 120px; }

/* sample.png の黄色い太帯 → シャンパンの細い帯。読み込み後に左から伸びる */
.hero__rule {
  position: absolute; z-index: 1; height: 2px;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  background: var(--c-champagne);
  transform-origin: left;
}
.hero__rule--top { top: calc(var(--header-h) + 20px); }
.hero__rule--bottom { bottom: 72px; }
.js .hero__rule { transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.js .hero__rule--bottom { transition-delay: .25s; }
.js.is-loaded .hero__rule { transform: none; }

.hero__place {
  font-family: var(--ff-serif); font-size: 14px; letter-spacing: .24em;
  color: var(--c-champagne); margin-bottom: 26px;
}
.hero__title {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(38px, 6.2vw, 84px); line-height: 1.38; letter-spacing: .1em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; }
.hero__lead { margin-top: 30px; max-width: 32em; color: #D4CBC1; line-height: 2.1; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* 読み込み後の一連の動き（ページ内でいちばん大きな演出はここだけ） */
.js .hero__place, .js .hero__lead, .js .hero__actions {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.js .hero__line > span { transform: translateY(110%); transition: transform 1.5s var(--ease-out); }
.js .hero__line:nth-child(2) > span { transition-delay: .14s; }
.js .hero__place { transition-delay: .05s; }
.js .hero__lead { transition-delay: .5s; }
.js .hero__actions { transition-delay: .7s; }
.js.is-loaded .hero__place, .js.is-loaded .hero__lead, .js.is-loaded .hero__actions,
.js.is-loaded .hero__line > span { opacity: 1; transform: none; }

.hero__scroll {
  position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 88px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--ff-serif); font-size: 11px; letter-spacing: .24em; color: var(--c-mute-dark);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 56px;
  background: linear-gradient(var(--c-champagne), var(--c-champagne)) no-repeat top / 1px 40%;
  background-color: rgba(205, 174, 127, .25);
  animation: scrollDrip 2.4s var(--ease) infinite;
}
@keyframes scrollDrip {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 180%; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hero__veil { background: linear-gradient(90deg, rgba(28, 24, 21, .94) 0%, rgba(28, 24, 21, .72) 48%, rgba(28, 24, 21, .1) 80%); }
}
@media (max-width: 767px) {
  .hero { align-items: flex-end; }
  .hero__veil { background: linear-gradient(0deg, rgba(28, 24, 21, .94) 0%, rgba(28, 24, 21, .7) 45%, rgba(28, 24, 21, .1) 80%); }
  .hero__inner { padding-block: 34vh 76px; }
  .hero__place { margin-bottom: 16px; font-size: 12px; }
  .hero__lead { margin-top: 20px; font-size: 14px; line-height: 2; }
  .hero__actions { margin-top: 28px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; min-height: 50px; }
  .hero__rule--bottom { bottom: 40px; }
  .hero__scroll { display: none; }
}

/* ---------- 想い ---------- */
.philosophy__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.philosophy__title {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.6; letter-spacing: .1em;
}
.philosophy__text { display: grid; gap: 22px; color: #D4CBC1; justify-items: start; }
.philosophy__text .text-link { margin-top: 12px; color: var(--c-champagne); }
@media (max-width: 767px) { .philosophy__grid { grid-template-columns: 1fr; } }

/* ---------- 事業内容（sample.png の Trade Solutions） ---------- */
.service__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.service__head .text-link { color: var(--c-brass); }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--c-pearl); background: var(--c-lacquer); }
.svc-card__photo { position: absolute; inset: 0; }
.svc-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-card a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 21, .05) 30%, rgba(28, 24, 21, .88) 100%);
}
.svc-card__body { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 6px; padding: 26px 24px; }
.svc-card__title { font-family: var(--ff-serif); font-size: 26px; letter-spacing: .14em; line-height: 1.4; }
.svc-card__text { font-size: 13px; line-height: 1.8; color: #D4CBC1; }
.svc-card__more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: 12px; letter-spacing: .14em; color: var(--c-champagne);
}
.svc-card__more .btn__arrow { width: 18px; }
.svc-card a:hover img { transform: scale(1.06); }
.svc-card a:hover .btn__arrow { transform: translateX(4px); }
.service__note { margin-top: 36px; color: var(--c-mute); font-size: 15px; }
@media (max-width: 1023px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) {
  .svc-cards { gap: 12px; }
  .svc-card__body { padding: 16px 14px; }
  .svc-card__title { font-size: 20px; }
  .svc-card__text { display: none; }
}

/* ---------- 強み（sample.png の A name that means something） ---------- */
.strength {
  position: relative; padding-bottom: var(--sec-y);
  background:
    linear-gradient(180deg, var(--c-pearl) 0 clamp(40px, 6vw, 80px), transparent 0),
    radial-gradient(60% 80% at 80% 100%, rgba(205, 174, 127, .45), transparent 70%),
    var(--c-sand);
}
.strength__photo { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; aspect-ratio: 1320 / 600; }
.strength__card {
  position: relative; margin-top: clamp(-180px, -12vw, -64px);
  display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  background: var(--c-white);
}
.strength .sec-title { font-size: clamp(24px, 2.4vw, 31px); }
.strength__items { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.strength__item { padding-top: 22px; border-top: 1px solid var(--c-champagne); color: var(--c-mute); font-size: 15px; }
.strength__name { font-family: var(--ff-serif); font-weight: 500; font-size: 22px; letter-spacing: .08em; color: var(--c-ink); margin-bottom: 14px; line-height: 1.5; }
@media (max-width: 1023px) { .strength__card { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .strength__photo { width: 100%; aspect-ratio: 4 / 3; }
  .strength__items { grid-template-columns: 1fr; }
}

/* ---------- 施工実績 ---------- */
.works .service__head { margin-bottom: clamp(40px, 6vw, 64px); }
.work-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card { background: var(--c-white); padding: 14px 14px 26px; }
.work-card__photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--c-sand); }
.work-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.work-card__cat, .work-card__title, .work-card__text { padding-inline: 8px; }
.work-card__cat { font-size: 12px; letter-spacing: .14em; color: var(--c-brass); }
.work-card__title { font-family: var(--ff-serif); font-weight: 500; font-size: 19px; letter-spacing: .06em; line-height: 1.6; margin-top: 4px; }
.work-card__text { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--c-mute); }
@media (max-width: 1023px) { .work-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .work-cards { grid-template-columns: 1fr; } }

/* ---------- 社長の一言 ---------- */
.message__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.message__title {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.6; letter-spacing: .1em; margin-bottom: 28px;
}
.message__text > p:not(.sec-label):not(.message__sign) { color: var(--c-mute); max-width: 30em; }
.message__sign { margin: 32px 0 36px; font-size: 13px; letter-spacing: .14em; color: var(--c-mute); }
.message__sign span { margin-left: 16px; font-family: var(--ff-serif); font-size: 24px; letter-spacing: .2em; color: var(--c-ink); }
.message__photo { aspect-ratio: 3 / 4; max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 767px) {
  .message__grid { grid-template-columns: 1fr; }
  .message__photo { order: -1; justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; }
}
