/* home.css — トップページ固有
   並び：ベース → 768px以下 → 480px以下 */

/* ============ FV ============ */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-content: center;
  min-height: max(640px, 100svh);
  color: #fff; background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
/* 写真の暗さ：顧客の写真がそのままでも文字が読めるよう、ここで暗くする（数値を上げると暗く） */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, .72) 0%, rgba(8, 10, 14, .35) 60%, rgba(8, 10, 14, .2) 100%),
    linear-gradient(0deg, rgba(8, 10, 14, .6) 0%, transparent 35%);
}

.hero__inner { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; padding-block: var(--header-h) 120px; }
.hero__en {
  font-family: var(--font-en);
  font-size: clamp(64px, 11vw, 176px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.045em;
}
.hero__en em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; }
.hero__title {
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}
.hero__lead { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .78); }

/* 読み込み時の表示 */
.js .hero__line > span { transform: translateY(105%); animation: heroUp 1.2s var(--ease-out) forwards; }
.js .hero__line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__title, .js .hero__lead, .js .hero__bottom, .js .hero__scroll { opacity: 0; animation: heroFade 1.2s var(--ease-out) forwards; }
.js .hero__title { animation-delay: .5s; }
.js .hero__lead { animation-delay: .65s; }
.js .hero__bottom, .js .hero__scroll { animation-delay: .9s; }
@keyframes heroUp { to { transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto;
  padding-bottom: 40px;
}
.hero__counter { display: flex; align-items: center; gap: 16px; font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; }
.hero__num { color: #fff; font-weight: 600; }
.hero__total { color: rgba(255, 255, 255, .5); }
.hero__bar { position: relative; width: 120px; height: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__bar > span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__bar.is-running > span { animation: heroBar var(--hero-interval, 6s) linear forwards; }
@keyframes heroBar { to { transform: scaleX(1); } }

.hero__news {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 20px;
  max-width: 520px; padding: 18px 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  transition: background-color .3s var(--ease);
}
.hero__news:hover { background: rgba(255, 255, 255, .16); }
.hero__news-label {
  padding: 2px 10px; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent);
}
.hero__news time { font-family: var(--font-en); color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.hero__news-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 72px;
  background: linear-gradient(rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, .25) 50%) 0 0 / 1px 200%;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ============ NEWS ============ */
.news__inner { display: grid; grid-template-columns: 340px 1fr; gap: 48px; }
/* 左に見出しを置くセクション（News・Company）は英字を少し小さく */
.sec-head--side .sec-head__en { font-size: clamp(44px, 5.4vw, 76px); }
.news__more { margin-top: 40px; text-align: right; }

/* ============ ABOUT ============ */
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 7vw, 112px); }
.about__statement {
  margin-bottom: 36px;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .06em;
  color: var(--ink);
}
.about__desc p + p { margin-top: 1.2em; }
.about__desc { color: var(--text); }
.about__img { aspect-ratio: 3 / 4; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat dt { font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.stat dd { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; color: var(--ink); }
.stat__num {
  font-family: var(--font-en); font-size: clamp(56px, 6.4vw, 88px); font-weight: 600;
  line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 16px; font-weight: 700; color: var(--accent); }

/* ============ STRENGTH ============ */
.strength-list { display: grid; gap: clamp(72px, 9vw, 128px); }
.strength-item { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.strength-item:nth-child(even) .strength-item__img { order: 2; }
.strength-item__img { position: relative; aspect-ratio: 768 / 400; overflow: hidden; }
.strength-item__img img { width: 100%; height: 100%; object-fit: cover; }
.strength-item__num {
  font-family: var(--font-en); font-size: clamp(72px, 8vw, 112px); font-weight: 600;
  line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
}
.strength-item__title {
  position: relative;
  margin: 20px 0 20px; padding-bottom: 20px;
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: .08em; color: var(--ink);
}
.strength-item__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent); }

/* ============ BUSINESS ============ */
.business { padding-top: 0; }
.business__band { height: clamp(280px, 42vw, 560px); }
.business__band img { width: 100%; height: 100%; object-fit: cover; }
.business__grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 112px);
  margin-top: calc(clamp(64px, 8vw, 120px) * -1);
  position: relative;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px) 0;
  background: var(--paper);
}
.business__lead { color: var(--text); }
.biz-list { border-top: 1px solid var(--ink); }
.biz-list li { border-bottom: 1px solid var(--line); }
.biz-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 32px 0;
}
a.biz-item { position: relative; padding-right: 64px; }
a.biz-item::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  border: 1px solid var(--line);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%230e1014' stroke-width='1.5'/%3E%3C/svg%3E");
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
a.biz-item:hover::after {
  background-color: var(--accent); border-color: var(--accent); transform: translateX(4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}
.biz-item__num { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.biz-item__main { display: grid; gap: 4px; }
.biz-item__en { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.biz-item__title { font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--ink); transition: color .3s var(--ease); }
a.biz-item:hover .biz-item__title { color: var(--accent); }
.biz-item__text { margin-top: 6px; font-size: 15px; color: var(--text); }

/* ============ PHILOSOPHY ============ */
.philosophy { color: rgba(255, 255, 255, .78); background: var(--ink); }
.philosophy__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.philosophy__head .sec-head { margin-bottom: 0; }
.philosophy__lead { max-width: 420px; padding-bottom: 6px; }
.philo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 4vw, 56px); }
.philo-item { position: relative; padding-top: 36px; }
/* 上の罫線：表示時に左から伸びる */
.philo-item::before, .philo-item::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.philo-item::before { width: 100%; background: rgba(255, 255, 255, .16); }
.philo-item::after { width: 64px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .3s; }
.philo-item.is-inview::after, html:not(.js) .philo-item::after { transform: none; }
.philo-item__en { font-family: var(--font-en); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: #fff; }
.philo-item__title { margin: 24px 0 16px; font-size: 20px; font-weight: 700; letter-spacing: .08em; color: #fff; }

/* ============ COMPANY ============ */
.company__grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; }
.profile { border-top: 1px solid var(--ink); }
.profile__row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; color: var(--ink); }
.profile a { text-decoration: underline; text-underline-offset: 3px; }
.company__map { margin-top: 48px; aspect-ratio: 16 / 7; background: var(--paper-2); }
.company__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.company__map:hover iframe { filter: none; }

/* ============ CONTACT ============ */
.contact { position: relative; isolation: isolate; padding-block: clamp(96px, 12vw, 160px); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* 背景の白いもや：数値を上げると白く */
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244, 245, 247, .62); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.contact__en {
  font-family: var(--font-en); font-size: clamp(64px, 10vw, 150px); font-weight: 600;
  line-height: .9; letter-spacing: -.05em; color: var(--ink);
}
.contact__ja { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.contact__ja::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.contact__lead { margin-top: 24px; }
.contact__actions { display: grid; gap: 16px; }
.contact-card {
  position: relative;
  display: grid; gap: 4px;
  padding: 28px 96px 28px 32px;
  background: var(--paper);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.contact-card::after {
  content: ""; position: absolute; right: 32px; top: 50%;
  width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  border: 1px solid var(--line);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%230e1014' stroke-width='1.5'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.contact-card--form { color: #fff; background: var(--accent); }
.contact-card--form::after {
  border-color: rgba(255, 255, 255, .4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}
.contact-card:hover::after { transform: translateX(6px); }
.contact-card--tel:hover { background: var(--ink); color: #fff; }
.contact-card--tel:hover::after {
  border-color: rgba(255, 255, 255, .4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}
.contact-card--form:hover { background: var(--accent-dark); }
.contact-card__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .75; }
.contact-card__main { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.contact-card--tel .contact-card__main { font-family: var(--font-en); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: .02em; }
.contact-card__note { font-size: 13px; opacity: .75; }

/* ============ 768px以下 ============ */
@media (max-width: 768px) {
  .hero { align-content: end; }
  .hero__inner { padding-bottom: 200px; }
  .hero__lead { font-size: 14px; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: 24px; }
  .hero__news { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; max-width: none; }
  .hero__news-title { grid-column: 1 / -1; }
  .hero__scroll { display: none; }

  .news__inner, .company__grid { grid-template-columns: 1fr; gap: 0; }
  .news__more { margin-top: 32px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__img { order: -1; width: 72%; margin-left: auto; aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: 1fr; border-top: 0; }
  .stat, .stat + .stat { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat dd { margin-top: 0; }
  .stat__num { font-size: 56px; }

  .strength-item { grid-template-columns: 1fr; gap: 28px; }
  .strength-item:nth-child(even) .strength-item__img { order: 0; }
  .strength-item__num { font-size: 64px; }

  .business__grid { grid-template-columns: 1fr; gap: 0; width: 100%; margin-top: -48px; padding: 48px var(--gutter) 0; }
  .business__lead { margin-top: -16px; margin-bottom: 40px; }
  .biz-item { grid-template-columns: 40px 1fr; gap: 12px; padding: 24px 0; }
  a.biz-item { padding-right: 52px; }
  .biz-item__title { font-size: 18px; }

  .philosophy__head { flex-direction: column; align-items: flex-start; }

  .profile__row { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .company__map { margin-top: 32px; aspect-ratio: 4 / 3; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 80px 24px 24px; }
  .contact-card::after { right: 20px; width: 44px; height: 44px; margin-top: -22px; }
}

/* ============ 480px以下 ============ */
@media (max-width: 480px) {
  .hero__en { font-size: 60px; }
  .hero__title { font-size: 20px; }
  .hero__bar { width: 72px; }
  .stat__num { font-size: 48px; }
  .contact__en { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transform: none; }
  .js .hero__line > span { transform: none; }
  .js .hero__title, .js .hero__lead, .js .hero__bottom, .js .hero__scroll { opacity: 1; }
  .hero__scroll::after { animation: none; }
  .philo-item::after { transform: none; }
}
