/* =========================================================
   トップページ（index.html）だけの見た目
   何の会社かがすぐ分かる入口。物語は story.html へ
   wako.css の後に読み込む
   ========================================================= */
.gnav { display: flex; gap: 4px; margin-left: auto; }
.gnav a { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .1em; padding: 8px 12px; transition: color .4s, opacity .2s; }
.gnav a:hover { opacity: .7; }
.header.is-solid .gnav a { color: var(--text); }
.gnav + .header__tel { margin-left: 12px; }

.t-hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.t-hero__img { position: absolute; inset: 0; background: #33404d url("images/t_hero.jpg") center 40%/cover no-repeat; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.t-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,24,38,.78) 0%, rgba(14,24,38,.35) 55%, rgba(14,24,38,.1) 100%), linear-gradient(0deg, rgba(14,24,38,.55), transparent 50%); }
.t-hero__in { position: relative; z-index: 2; width: min(var(--max), 100% - 48px); margin: 0 auto; padding: 0 0 96px; }
.t-hero__eyebrow { font-size: 13px; letter-spacing: .3em; color: var(--ki-light); margin: 0 0 18px; }
.t-hero h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.4; letter-spacing: .12em; margin: 0 0 22px; text-shadow: 0 2px 20px rgba(0,0,0,.3); animation: rise 1.2s both; }
.t-hero .lead { font-size: 16px; color: #e3e8ee; margin: 0 0 32px; max-width: 520px; animation: rise 1.2s .3s both; }
.t-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 1.2s .5s both; }
.t-hero__btns .btn--line { color: #fff; }
.badge50 { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 96px; z-index: 3; width: 150px; height: 150px; border-radius: 50%; background: rgba(251,249,244,.95); color: var(--ai); text-decoration: none; display: grid; place-items: center; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .3s; animation: rise 1.2s .8s both; }
.badge50:hover { transform: rotate(-4deg) scale(1.05); }
.badge50 b { display: block; font-family: var(--mincho); font-weight: 800; font-size: 54px; line-height: 1; }
.badge50 small { display: block; font-size: 11.5px; letter-spacing: .12em; line-height: 1.6; color: var(--text-2); }
.badge50 em { font-style: normal; color: var(--shu); font-weight: 700; }

.sec { padding: 120px 0; }
.sec-title { display: flex; align-items: baseline; gap: 18px; margin: 0 0 44px; flex-wrap: wrap; }
.sec-title h2 { font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: .12em; margin: 0; }
.sec-title span { color: var(--ki); font-size: 12px; letter-spacing: .35em; }
.sec-title a { margin-left: auto; font-size: 14px; color: var(--ai); text-decoration: none; border-bottom: 1px solid currentColor; }

/* 3つの入口（写真の大きなタイル） */
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entry { position: relative; aspect-ratio: 3/4; overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end; }
.entry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.entry:hover img { transform: scale(1.06); }
.entry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,38,.85), rgba(14,24,38,.05) 60%); }
.entry__body { position: relative; z-index: 2; padding: 28px 26px; width: 100%; }
.entry__no { font-family: var(--mincho); color: var(--ki-light); letter-spacing: .3em; font-size: 12px; }
.entry h3 { font-family: var(--mincho); font-weight: 800; font-size: 30px; letter-spacing: .2em; margin: 4px 0 8px; }
.entry p { margin: 0 0 14px; font-size: 14px; color: #dfe5ec; line-height: 1.8; }
.entry .go { font-size: 13px; letter-spacing: .12em; border-bottom: 1px solid rgba(255,255,255,.6); }

/* 五十年の物語への帯 */
.story-band { background: var(--ai-deep); color: #fff; overflow: hidden; position: relative; }
.story-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 50%, rgba(63,127,140,.35), transparent 60%); }
.story-band__in { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 56px; align-items: center; padding: 70px 0; }
.story-band__fifty { font-family: var(--mincho); font-weight: 800; font-size: clamp(120px, 15vw, 210px); line-height: .85; letter-spacing: -.04em; background: url("images/hero.jpg") 60% 55%/cover; -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.story-band h2 { font-family: var(--mincho); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .14em; line-height: 1.7; margin: 0 0 10px; }
.story-band p { color: #c6d1de; margin: 0; font-size: 15px; }
.story-band .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.story-band .chips span { font-size: 12px; border: 1px solid rgba(255,255,255,.25); padding: 2px 12px; border-radius: 99px; color: #dfe5ec; }

/* 最新の施工実績 */
.latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.latest a { text-decoration: none; color: inherit; display: block; }
.latest__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.latest__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.latest a:hover img { transform: scale(1.05); }
.latest__cat { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ai); font-size: 12px; font-weight: 700; padding: 2px 10px; letter-spacing: .1em; z-index: 2; }
.latest h3 { font-family: var(--mincho); font-weight: 700; font-size: 18px; letter-spacing: .06em; margin: 14px 0 2px; line-height: 1.6; }
.latest small { color: var(--text-3); font-size: 13px; }

/* お知らせ */
.news2 { display: grid; grid-template-columns: 220px 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; margin-top: 90px; }
.news2 h2 { font-family: var(--mincho); font-weight: 800; font-size: 26px; letter-spacing: .14em; margin: 0; }
.news2 ul { list-style: none; margin: 0; padding: 0; }
.news2 li { display: grid; grid-template-columns: 110px 90px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.news2 time { color: var(--text-3); font-size: 13.5px; }
.news2 .tag { font-size: 11.5px; text-align: center; border: 1px solid var(--ai); color: var(--ai); padding: 1px 0; }
.news2 .tag.rec { border-color: var(--shu); color: var(--shu); }

/* 採用の帯 */
.recruit-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--ai); color: #fff; padding: 48px 56px; }
.recruit-band h2 { font-family: var(--mincho); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .14em; margin: 0 0 8px; }
.recruit-band p { margin: 0; color: #c6d1de; }

/* 2つの拠点 */
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.base { background: var(--paper); padding: 32px 34px; border-top: 3px solid var(--ai); box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.base:nth-child(2) { border-top-color: var(--ki); }
.base small { color: var(--ki); letter-spacing: .3em; font-size: 12px; }
.base h3 { font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .14em; margin: 4px 0 10px; }
.base p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; }
.base a { font-family: var(--mincho); font-weight: 800; font-size: 26px; color: var(--ai); text-decoration: none; letter-spacing: .06em; }

@media (max-width: 960px) {
  .gnav { display: none; }
  .entries, .latest, .bases { grid-template-columns: 1fr; }
  .entry { aspect-ratio: 16/10; }
  .story-band__in { grid-template-columns: 1fr; gap: 20px; padding: 56px 0; }
  .news2 { grid-template-columns: 1fr; gap: 12px; }
  .news2 li { grid-template-columns: 96px 80px; }
  .news2 li span:last-child { grid-column: 1 / -1; }
  .recruit-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .badge50 { width: 112px; height: 112px; bottom: auto; top: 120px; }
  .badge50 b { font-size: 40px; }
}
@media (max-width: 600px) {
  .sec { padding: 84px 0; }
  .t-hero__in { padding-bottom: 64px; }
  .t-hero h1 { font-size: 34px; }
}

/* 帯の「50」は段落の文字設定に負けないように */
.story-band .story-band__fifty { font-size: clamp(120px, 15vw, 210px); color: transparent; margin: 0; }
