/* 事業紹介ページ(2026-11-23 試作)。トップの styles.css・wind-air.css の上に重ねる
   ・ページの頭 = にじむ背景+題と言葉(流れる写真の列は外した 2026-11-23 本人)
   ・主力事業 = 3つを1つのゆるい波の上に(トップの「風の通り道」)。写真は大小2枚の丸いいびつな形
   ・そのほかの事業 = 2つを横向きに、段をずらして
   ・区画の境目 = トップと同じ、右から左へ流れる細線の束 */

/* ---------- ページの頭 ---------- */
.ph { position: relative; overflow: hidden; padding: 72px 0 80px; }
.ph .w-air { /* taste-skill-ignore: トップの理念と同じ「にじむ背景」の端を白へ溶かす(本人採用済み) */ -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 60%, transparent 100%); }
.ph-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ph h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.25; letter-spacing: 0.1em; }
.ph-statement { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.6; }
.ph-lead { font-size: 16px; line-height: 2; max-width: 34em; text-wrap: pretty; }


/* 読み込んだとき:写真が左から順に、続いて題→言葉→説明が現れる(トップと同じ値) */
.js .ph.is-ready .fv-in { opacity: 1; transform: none; filter: none; }
.js .ph.is-ready .fv-in:nth-child(1) { transition-delay: 250ms; }
.js .ph.is-ready .fv-in:nth-child(2) { transition-delay: 330ms; }
.js .ph.is-ready .fv-in:nth-child(3) { transition-delay: 410ms; }
.js .w-air-ph { opacity: 0; transition: opacity 900ms var(--ease-out); }
.js .ph.is-ready .w-air-ph { opacity: 1; }

/* 境目の細線:頭と主力事業の見出しの間を通す */
.w-seam-b1 { z-index: 0; }
.w-seam-b1 .w-bundle { top: -70px; height: 190px; }
.w-seam-b2 { z-index: 0; }
.w-seam-b2 .w-bundle { top: -110px; height: 200px; }
.core, .more, .ask { position: relative; z-index: 1; }

/* ---------- 共通:事業の名前・説明・リンク ---------- */
.item-name { font-size: 24px; font-weight: 700; line-height: 1.5; }
.item-desc { font-size: 16px; line-height: 1.9; max-width: 34em; }
.item-more { font-size: 15px; font-weight: 700; color: var(--kifu-teal-text); }
.core-item a, .more-item a { text-decoration: none; }
.core-item a:hover .item-more, .more-item a:hover .item-more { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 主力事業 ---------- */
.core { padding: 150px 0 96px; }
.core h2, .more h2 { font-size: var(--h2); line-height: 1.4; text-align: center; margin-bottom: var(--space-4); }
.core-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
/* 1つのゆるい波の上に(上からのずれ。トップの5枚の波と同じ考え方) */
.core-item:nth-child(2) { margin-top: 72px; }
.core-item:nth-child(3) { margin-top: 24px; }
.core-item a { display: flex; flex-direction: column; gap: 10px; }

/* 写真2枚:大きい写真の右下に、小さい写真を少し重ねる(トップの「不規則にちりばめる」を1事業の中で) */
.pair { position: relative; display: block; padding: 0 12% 14% 0; margin-bottom: 18px; }
.pair-main, .pair-sub { display: block; overflow: hidden; }
.pair-main { aspect-ratio: 1 / 1; }
.pair-sub { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1 / 1; outline: 6px solid var(--paper); }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .core-item a:hover .pair-main img { transform: scale(1.04); }
  .core-item a:hover .pair-sub img { transform: scale(1.06); }
}

/* ---------- そのほかの事業 ---------- */
.more { padding: 48px 0 150px; }
.more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.more-item:nth-child(2) { margin-top: 56px; }
.more-item a { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; }
.more-photo { display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.more-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more-item a:hover .more-photo img { transform: scale(1.04); } }
.more-text { display: flex; flex-direction: column; gap: 8px; }

/* ---------- お問い合わせ ---------- */
.ask { padding: 0 0 var(--space-5); }
.btn-lg { min-height: 60px; padding: 0 44px; font-size: 17px; }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  .ph { padding: 48px 0 72px; }
  .ph-copy { gap: 14px; }
  .core { padding: 120px 0 var(--space-4); }
  .w-seam-b1 .w-bundle { top: 0; height: 110px; }
  .w-seam-b2 .w-bundle { top: -90px; height: 130px; }
  .core { padding-top: 140px; }
  .core-list { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  /* 縦1列では、写真を左右交互に寄せて波を作る */
  .core-item:nth-child(n) { margin-top: 0; }
  .core-item .pair { width: 78%; }
  .core-item:nth-child(2) .pair { align-self: flex-end; }
  .item-name { font-size: 22px; }
  .more { padding-bottom: 130px; }
  .more-list { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .more-item:nth-child(2) { margin-top: 0; }
  .more-item a { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
}
@media (max-width: 600px) {
  .ph-statement { font-size: 19px; }
  .ph-lead { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pair img, .more-photo img { transition: none; }
}
