/* ==========================================================
   トップページ（index.html）だけで使うスタイル
   共通のスタイルは common.css。こちらは common.css の後に読み込む
   ========================================================== */

/* ─── ヒーロー ─────────────────────────────── */
.hero { position: relative; padding: 56px 0 96px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero__label { font-size: 13px; letter-spacing: 0.14em; color: var(--ink-soft); line-height: 1.6; }
.hero__title {
  margin-top: 28px;
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 300; line-height: 1.55;
  letter-spacing: 0.1em; word-break: keep-all; font-feature-settings: "palt";
}
.hero__lead { margin-top: 32px; max-width: 30em; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; padding: 0 28px 28px 0; }
.hero__photo { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--paper-deep); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero__visual .s1 { width: 132px; height: 66px; background: var(--mustard); left: -44px; bottom: 28px; }
.hero__visual .s2 { width: 74px; height: 74px; background: var(--sage); right: 0; bottom: 0; border-radius: 10px; }
.hero__visual .s3 { width: 64px; height: 58px; background: var(--terracotta); right: 4px; top: 12%; }
.hero__side {
  position: absolute; right: 20px; top: 120px;
  writing-mode: vertical-rl; font-family: var(--font-en); font-size: 11px;
  letter-spacing: 0.3em; color: var(--ink-soft); text-transform: uppercase;
}

/* ─── コンセプト ───────────────────────────── */
.concept { padding: 104px 0 96px; }
.concept__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.concept__facts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 24px 20px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__num { font-family: var(--font-en); font-weight: 300; font-size: 44px; line-height: 1.1; letter-spacing: 0.02em; }
.fact__num small { font-family: var(--font-ja); font-size: 14px; margin-left: 4px; letter-spacing: 0.06em; }
.fact__label { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

/* 写真の帯 */
.strip { overflow: hidden; padding: 8px 0 104px; }
.strip__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: strip 60s linear infinite; }
.strip__track img { height: 220px; width: auto; border-radius: var(--radius); object-fit: cover; }
.strip__track img:nth-child(3n+2) { height: 280px; aspect-ratio: 3 / 4; }
.strip__track img:nth-child(3n) { height: 180px; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ─── 業務内容 ─────────────────────────────── */
.service { position: relative; background: var(--paper-deep); border-radius: 56px 56px 0 0; padding: 104px 0 112px; }
.service .s1 { width: 96px; height: 48px; background: var(--sky); right: 9%; top: -48px; }
.service__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.service__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 36px 28px 32px; display: flex; flex-direction: column; }
.card__icon { position: relative; width: 48px; height: 48px; }
.card__icon .shape { inset: 0; margin: auto; }
.card__title { margin-top: 28px; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: 0.06em; word-break: keep-all; }
.card__text { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.service__note { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1.5; letter-spacing: 0.04em; }
.note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.service__more { margin-top: 48px; text-align: center; }

/* ─── 設計実績 ─────────────────────────────── */
.works { background: var(--paper-deep); padding: 0 0 120px; }
.works__inner { background: var(--paper); border-radius: 56px; padding: 96px 0 104px; }
.works__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.works__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
/* 実績のカード（.work）は下層ページでも使うので common.css にある。ここは並べ方だけ */
.work:nth-child(3n+2) { margin-top: 48px; }
.work:nth-child(1) .work__photo { border-radius: 999px 999px var(--radius) var(--radius); }
.work:nth-child(6) .work__photo { border-radius: var(--radius) var(--radius) 999px 999px; }

/* ─── そのほかの設計 ───────────────────────── */
.other { padding: 112px 0; }
.other__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.feature { display: grid; grid-template-rows: auto 1fr; }
.feature__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-deep); }
.feature__photo img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding-top: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.feature__en { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.feature__title { margin-top: 10px; font-size: 22px; font-weight: 400; line-height: 1.5; letter-spacing: 0.08em; }
.feature__text { margin: 16px 0 24px; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.feature .link-arrow { margin-top: auto; }

/* ─── 受賞・掲載 ───────────────────────────── */
.awards { border-top: 1px solid var(--line); padding: 104px 0; }
.awards__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
.awards__list li { display: grid; grid-template-columns: 5.5em 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.awards__list li:first-child { border-top: 1px solid var(--line); }
.awards__year { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.1em; color: var(--ink-soft); padding-top: 3px; white-space: nowrap; }
.awards__name { font-size: 15px; line-height: 1.7; word-break: keep-all; }
.awards__name small { display: block; font-size: 13px; color: var(--ink-soft); }

/* ─── お知らせ ─────────────────────────────── */
.news { background: var(--paper-deep); border-radius: 56px 56px 0 0; padding: 104px 0 120px; }
.news__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
.news__list a { display: grid; grid-template-columns: 7.5em 1fr 20px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); line-height: 1.4; transition: padding .3s ease; }
.news__list li:first-child a { border-top: 1px solid var(--line); }
.news__list a:hover { padding-left: 10px; }
.news__date { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.08em; color: var(--ink-soft); white-space: nowrap; }
.news__title { font-size: 15px; line-height: 1.7; }
.news__list svg { width: 16px; height: 16px; color: var(--ink-soft); }
.news__more { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
}

/* ─── タブレット ───────────────────────────── */
@media (max-width: 1000px) {
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(3n+2) { margin-top: 0; }
  .work:nth-child(even) { margin-top: 40px; }
  .hero__side { display: none; }
}

/* ─── スマートフォン ───────────────────────── */
@media (max-width: 760px) {
  .hero { padding: 24px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; padding: 0 18px 18px 0; margin-left: 18px; }
  .hero__photo { aspect-ratio: 4 / 4.2; }
  .hero__visual .s1 { width: 88px; height: 44px; left: -18px; bottom: 18px; }
  .hero__visual .s2 { width: 48px; height: 48px; }
  .hero__visual .s3 { width: 42px; height: 38px; right: 0; }
  .hero__title { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .concept { padding: 72px 0 64px; }
  .concept__inner, .awards__inner, .news__inner { grid-template-columns: 1fr; gap: 40px; }
  .concept__facts { margin-top: 40px; }
  .fact { padding-right: 4px; }
  .fact + .fact { padding-left: 10px; }
  .fact__num { font-size: 32px; }
  .fact__num small { font-size: 12px; }
  .fact__label { font-size: 12px; letter-spacing: 0; }

  .strip { padding-bottom: 72px; }
  .strip__track { gap: 16px; }
  .strip__track img { height: 150px; }
  .strip__track img:nth-child(3n+2) { height: 190px; }
  .strip__track img:nth-child(3n) { height: 120px; }

  .service, .news { border-radius: 32px 32px 0 0; }
  .service { padding: 72px 0 80px; }
  .service .s1 { width: 64px; height: 32px; top: -32px; }
  .service__grid { grid-template-columns: 1fr; margin-top: 40px; gap: 14px; }
  .card { padding: 28px 24px; }
  .card__title { margin-top: 20px; }
  .service__note { grid-template-columns: 1fr; gap: 10px; }
  .note { border-radius: 16px; }

  .works { padding-bottom: 72px; }
  .works__inner { border-radius: 32px; padding: 72px 0; }
  .works__grid { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .work:nth-child(even) { margin-top: 0; }

  .other { padding: 72px 0; }
  .other__grid { grid-template-columns: 1fr; gap: 56px; margin-top: 40px; }

  .awards { padding: 72px 0; }
  .awards__list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }

  .news { padding: 72px 0 80px; }
  .news__list a { grid-template-columns: 1fr 20px; gap: 4px 16px; padding: 18px 0; }
  .news__date { grid-column: 1; }
  .news__title { grid-column: 1; }
  .news__list svg { grid-column: 2; grid-row: 1 / span 2; }
}
