/* 初めての方への固有セクション（Figma 2558:44399。docs/design-first.md）。
   縦位置・字間・行間は Figma の値（px）。横位置は 1440px の箱に対する割合にして、1024〜1440px で重ならないようにする。 */

/* ---------- 02 コンセプト（2558:44434） ---------- */
.first-concept,.first-concept-2,.first-reasons{text-spacing-trim:space-all}/* Figma は約物を詰めない（Chrome 123+ の既定は隣接する約物を半角に詰める） */
.first-concept{overflow-x:clip;background:var(--color-white)}/* 右端に寄る写真・ぼかしで横スクロールを出さない */
/* 第4ラウンド: 外枠 2558:44398 直下の浮動要素（枠線 2558:44772・写真 2558:44774/44775）を重ねるため、中身を 1440px の箱にし、左の余白を箱に対する割合にした（1440px では従来と同じ 234px）。 */
.first-concept__inner{position:relative;box-sizing:border-box;max-width:1440px;min-height:640px;margin:0 auto;padding:118px 24px 0 calc(234 / 1440 * 100%)}
/* 枠線 Vector 39（2558:44772。0.5px #030303。参照画像の描き方: 縦線は2pxの帯・不透明度25%、横線は1px・50%）。このブロックでは 縦 x=164〜165（y=0〜260）→ 横 y=260（x=165〜1152）→ 縦 x=1152〜1153（y=260〜下端。次のブロックへ続く）。横線の x=906〜 は写真の下。 */
.first-concept__line{position:absolute;top:0;bottom:0;left:calc(164 / 1440 * 100%);width:calc(990 / 1440 * 100%);background:linear-gradient(rgba(3,3,3,.25),rgba(3,3,3,.25)) no-repeat 0 0/2px 261px,linear-gradient(rgba(3,3,3,.5),rgba(3,3,3,.5)) no-repeat 1px 260px/calc(100% - 2px) 1px,linear-gradient(rgba(3,3,3,.25),rgba(3,3,3,.25)) no-repeat 100% 260px/2px calc(100% - 260px);pointer-events:none}
/* 写真（同じ元画像 4096×2731）。ぼかし 2558:44774: 474×469、blur 2.9px、不透明度40%、cover・横位置14.61%（Figma の w148.19%・left−7.04% と同じ切り抜き）。前景 2558:44775: 398.516×307、cover・横位置35.33%（w115.54%・left−5.49%）。 */
.first-concept__blur{position:absolute;top:29px;left:calc(963 / 1440 * 100%);width:calc(474 / 1440 * 100%);aspect-ratio:474/469;filter:blur(2.9px);pointer-events:none}
.first-concept__blur-image{position:absolute;inset:0;width:100%;max-width:none;height:100%;object-fit:cover;object-position:14.61% 50%;opacity:.4}
.first-concept__photo{position:absolute;top:83px;left:calc(906.484 / 1440 * 100%);width:calc(398.516 / 1440 * 100%);aspect-ratio:398.516/307;overflow:hidden}
.first-concept__photo-image{display:block;width:100%;max-width:none;height:100%;object-fit:cover;object-position:35.33% 50%}
.first-concept__title{max-width:458px;font-family:var(--font-mincho);font-weight:400;font-size:30px;line-height:48px;letter-spacing:3px;color:var(--color-charcoal)}
.first-concept__lead{max-width:574px;margin-top:9.5px;font-family:var(--font-mincho);font-weight:400;font-size:14px;line-height:31px;letter-spacing:1.12px;color:var(--color-warm-brown-gray)}
.first-concept__body{max-width:760px;margin-top:113.5px;font-family:var(--font-sans);font-weight:400;letter-spacing:1.12px;color:var(--color-warm-brown-gray)}
/* 字間は Figma では文字の大きさに対する比率（14px 1.12px＝8%）。16px の見出しは 1.28px（第3ラウンド・追加） */
.first-concept__label{font-weight:700;font-size:16px;line-height:35px;letter-spacing:1.28px;margin-bottom:-1px}
.first-concept__text{font-size:14px;line-height:31px}
.first-concept__text--spaced{margin-top:31px}

/* ---------- 03 コンセプト（2558:44439） ---------- */
.first-concept-2{background:var(--color-white)}
.first-concept-2__inner{position:relative;box-sizing:border-box;display:grid;grid-template-columns:min(175px,12.153%) min(385px,26.736%) minmax(0,760px);align-items:start;max-width:1440px;min-height:640px;margin:0 auto}
.first-concept-2__heading{grid-column:2;padding-top:279px}
/* 枠線 Vector 39 の続き: 縦 x=1152〜1153（y=0〜22）→ 横 y=22（x=460〜1151）→ 縦 x=459・460（参照画像では不透明度19%・25%、y=22〜582）→ 横 y=582（x=460〜889）。 */
.first-concept-2__line{position:absolute;top:0;left:calc(459 / 1440 * 100%);width:calc(695 / 1440 * 100%);height:583px;background:linear-gradient(rgba(3,3,3,.25),rgba(3,3,3,.25)) no-repeat 100% 0/2px 23px,linear-gradient(rgba(3,3,3,.5),rgba(3,3,3,.5)) no-repeat 1px 22px/calc(100% - 3px) 1px,linear-gradient(rgba(3,3,3,.187),rgba(3,3,3,.187)) no-repeat 0 22px/1px 561px,linear-gradient(rgba(3,3,3,.25),rgba(3,3,3,.25)) no-repeat 1px 22px/1px 561px,linear-gradient(rgba(3,3,3,.5),rgba(3,3,3,.5)) no-repeat 1px 582px/calc(430 / 695 * 100%) 1px;pointer-events:none}
/* 浮動写真 shibatasama 1（2558:44773）: x=905〜1440、y=1217〜1938（このブロックの上へ18px、下の選ばれる理由へ63px はみ出す）。縦横比を保たず枠に合わせる（Figma の size-full と同じ）。 */
.first-concept-2__portrait{position:absolute;top:-18px;right:0;width:calc(535 / 1440 * 100%);max-width:none;height:721px;object-fit:fill;pointer-events:none}
.first-concept-2__en{font-family:var(--font-en);font-weight:400;font-size:16px;line-height:19px;letter-spacing:1.92px;color:var(--color-silver-gray)}
.first-concept-2__title{margin-top:14px;font-family:var(--font-mincho);font-weight:400;font-size:30px;line-height:48px;letter-spacing:3px;color:var(--color-charcoal);white-space:nowrap}
.first-concept-2__body{grid-column:3;min-width:0;padding:136px 24px 0 0}
.first-concept-2__catch{font-family:var(--font-mincho);font-weight:400;font-size:24px;line-height:46px;letter-spacing:1.92px;color:var(--color-charcoal)}
.first-concept-2__text{margin-top:62px;font-family:var(--font-sans);font-weight:400;font-size:14px;line-height:31px;letter-spacing:1.12px;color:var(--color-warm-brown-gray)}
.first-concept-2__text--note{margin-top:54px}
.first-concept-2__more{margin-top:62px;padding-left:min(545px,calc(100% - 160px))}

/* ---------- 04 選ばれる理由（2558:44446。S-2 状態 2567:48516） ---------- */
/* 既定（JSなし・動作軽減）: 5項目を「写真＋本文」の行として縦に並べる。
   .is-scroll-switch-enabled: Figma の 1217px の画面（写真1枚＋一覧、現在の項目だけ本文を開く）を固定し、項目を切り替える。 */
.first-reasons{background:var(--color-white)}
.first-reasons__stage{position:relative;box-sizing:border-box;max-width:1440px;margin:0 auto;padding:140px 0 228px}
/* 枠線 Vector 39 の最後の線（M1155.25 1402.25 V1581.5）: 縦 x=1319〜1320、y=121（不透明度6%の行）〜300。見出しの右、一覧の上の罫線まで。 */
.first-reasons__line{position:absolute;top:121px;left:calc(1319 / 1440 * 100%);width:2px;height:180px;background:linear-gradient(rgba(3,3,3,.063) 0 1px,rgba(3,3,3,.25) 1px);pointer-events:none}
.first-reasons__heading{text-align:center}
.first-reasons__en{font-family:var(--font-en);font-weight:400;font-size:16px;line-height:19px;letter-spacing:1.92px;color:var(--color-silver-gray)}
.first-reasons__title{margin-top:17px;font-family:var(--font-mincho);font-weight:400;font-size:30px;line-height:48px;letter-spacing:3px;color:var(--color-charcoal)}
.first-reasons__body{position:relative;display:grid;grid-template-columns:calc(760 / 1440 * 100%) calc(560 / 1440 * 100%);margin-top:76px;border-top:1px solid transparent}
/* 上下の罫線（x=120〜1320）。 */
.first-reasons__body::before,.first-reasons__body::after{content:"";position:absolute;left:calc(120 / 1440 * 100%);right:calc(120 / 1440 * 100%);height:1px;background:var(--color-light-greige);pointer-events:none}
.first-reasons__body::before{top:-1px}
.first-reasons__body::after{bottom:0;z-index:1}
.first-reasons__media,.first-reasons__list{display:contents}
.first-reasons__picture{display:contents}/* SP だけ別画像の <picture>（02・04・05）。PC の重ね方・グリッドは img に効かせる */
.first-reasons__image{display:block;grid-column:1;width:100%;max-width:none;height:auto;aspect-ratio:760/687;object-fit:cover}
.first-reasons__image--stretch{object-fit:fill}/* 原本の写真01は縦横比を保たずに枠へ引き伸ばし（2558:44473）。差し替えた写真には付けない（cover で表示） */
.first-reasons__item{box-sizing:border-box;grid-column:2;min-width:0;padding:17px 0 49px 52px;border-bottom:1px solid var(--color-light-greige);border-left:1px solid var(--color-light-greige)}
.first-reasons__image--1,.first-reasons__item:nth-child(1){grid-row:1}
.first-reasons__image--2,.first-reasons__item:nth-child(2){grid-row:2}
.first-reasons__image--3,.first-reasons__item:nth-child(3){grid-row:3}
.first-reasons__image--4,.first-reasons__item:nth-child(4){grid-row:4}
.first-reasons__image--5,.first-reasons__item:nth-child(5){grid-row:5}
.first-reasons__number{font-family:var(--font-en);font-weight:400;font-size:40px;line-height:48px;letter-spacing:3.2px;color:var(--color-silver-gray)}
.first-reasons__item-title{margin-top:16px;font-family:var(--font-mincho);font-weight:400;font-size:19px;line-height:32px;letter-spacing:1.52px;color:var(--color-charcoal)}
.first-reasons__detail{max-width:507px;padding-top:41px}
.first-reasons__text{font-family:var(--font-sans);font-weight:400;font-size:13px;line-height:27px;letter-spacing:1.04px;color:var(--color-warm-brown-gray)}
.first-reasons__more{margin-top:6px;text-align:right}

/* 有効時（動作軽減でなく JS あり）。JS（first.js）が --scroll-switch-top を一覧が画面の中央に来る値にする。 */

/* 中央揃え・字間ありの文字は、末尾の字間の分（字間の半分）左へずれるため、左に字間と同じ余白を足す。
   Cormorant 16px（行の高さ normal＝19px）は Figma より1px上に描かれるため、見た目だけ1px下げる。 */
.first-reasons__en{padding-left:1.92px}
.first-reasons__title{padding-left:3px}
.first-concept-2__en,.first-reasons__en{position:relative;top:1px}

/* 有効時（JSあり・動作軽減でない・画面表示・1024px以上）の重ね方と切替。印刷では既定（全項目を縦に並べる）のまま。
   開いていない項目の文は透明にするだけで、読み上げとキーボードの対象に残す（フォーカスが入ると JS がその項目まで送る）。 */
@media screen and (min-width:1024px){/* 第4ラウンド: SP（1023px以下）は切替・固定なし（SP 注釈 2881:21588）のため PC に限定 */
.first-reasons.is-scroll-switch-enabled{--scroll-switch-top:-160px}
.is-scroll-switch-enabled .first-reasons__body{display:flex;align-items:stretch;height:689px}
.is-scroll-switch-enabled .first-reasons__media{position:relative;display:block;flex:0 0 calc(760 / 1440 * 100%);height:687px;overflow:hidden}
.is-scroll-switch-enabled .first-reasons__image{position:absolute;inset:0;height:100%;aspect-ratio:auto;opacity:0;transition:opacity .6s ease}
.is-scroll-switch-enabled .first-reasons__image.is-active{opacity:1}
.is-scroll-switch-enabled .first-reasons__list{display:flex;flex:0 0 calc(560 / 1440 * 100%);flex-direction:column;min-width:0;border-left:1px solid var(--color-light-greige)}
.is-scroll-switch-enabled .first-reasons__item{flex:0 0 100px;overflow:hidden;padding:0 0 0 52px;border-left:0}
.is-scroll-switch-enabled .first-reasons__item:nth-child(1){flex-basis:98px}
.is-scroll-switch-enabled .first-reasons__item:nth-child(3),.is-scroll-switch-enabled .first-reasons__item:nth-child(4){flex-basis:101px}
.is-scroll-switch-enabled .first-reasons__item.is-active{flex:1 0 auto;padding-top:17px}
.is-scroll-switch-enabled .first-reasons__number{font-size:30px;line-height:36px;letter-spacing:2.4px}
.is-scroll-switch-enabled .first-reasons__item-title{margin-top:8px;color:var(--color-silver-gray);transition:color .4s ease}
.is-scroll-switch-enabled .first-reasons__detail{opacity:0;pointer-events:none;transition:opacity .4s ease}
.is-scroll-switch-enabled .is-active .first-reasons__number{font-size:40px;line-height:48px;letter-spacing:3.2px}
.is-scroll-switch-enabled .is-active .first-reasons__item-title{margin-top:16px;color:var(--color-charcoal)}
.is-scroll-switch-enabled .is-active .first-reasons__detail{opacity:1;pointer-events:auto;transition:opacity .4s ease}
.is-scroll-switch-enabled .first-reasons__item:nth-child(2) .first-reasons__item-title,.is-scroll-switch-enabled .first-reasons__item:nth-child(5) .first-reasons__item-title{margin-top:7px}
.is-scroll-switch-enabled .first-reasons__item:nth-child(3) .first-reasons__number,.is-scroll-switch-enabled .first-reasons__item:nth-child(4) .first-reasons__number{padding-top:1px}
.is-scroll-switch-enabled .first-reasons__item:nth-child(3) .first-reasons__item-title,.is-scroll-switch-enabled .first-reasons__item:nth-child(4) .first-reasons__item-title{margin-top:7px}
.is-scroll-switch-enabled .first-reasons__item.is-active .first-reasons__number{padding-top:0}
.is-scroll-switch-enabled .first-reasons__item.is-active .first-reasons__item-title{margin-top:16px}
/* 状態02〜05（項目02〜05が開いているとき）は原本 2567:48516 の配置が状態01と違う（閉じた行の番号と見出しの間が3px狭い、項目01の行98px・項目02の行112px、
   開いた行の番号・見出し・本文の間隔）。参照画像 design/reference/first-visit-reasons-states.png の文字の行の位置に合わせた値。
   各行の高さ（罫線の位置）: 状態02 98/288/101/101/100、状態03 98/112/277/101/100、状態04 98/112/101/277/100、状態05 98/112/101/101/276。 */
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:not(.is-active){padding-top:4px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:nth-child(1){padding-top:1px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:nth-child(2):not(.is-active){flex-basis:112px;padding-top:15px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:nth-child(5):not(.is-active){padding-top:3px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child)) .first-reasons__number{padding-top:0}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child)) .first-reasons__item-title{margin-top:4px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item.is-active{padding-top:3px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:nth-child(2).is-active{padding-top:14px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child))>.first-reasons__item:nth-child(5).is-active{padding-top:2px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child)) .is-active .first-reasons__item-title{margin-top:18px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child)) .is-active .first-reasons__detail{padding-top:36px}
.is-scroll-switch-enabled .first-reasons__list:has(>.is-active:not(:first-child)) .is-active .first-reasons__more{margin-top:11px}
/* 状態05: 写真は原本で761px幅（2568:48636）。x=760 の縦線の上に重なる。下端の全幅の罫線はなく、罫線は一覧の側（x=760〜）だけ */
.is-scroll-switch-enabled .first-reasons__media{overflow:visible}
.is-scroll-switch-enabled .first-reasons__image--5{width:calc(100% + 1px)}
.is-scroll-switch-enabled .first-reasons__body:has(.first-reasons__item:nth-child(5).is-active)::after{display:none}
}

/* ==========================================================================
   SP（1023px 以下。Figma SP 2881:21545、基準 393px）。第4ラウンド。
   寸法・字間・行間は 393px のときの Figma の値。幅は可変（写真は 345:幅 の縦横比を保つ）。
   ========================================================================== */
@media (max-width:1023px){
/* 02 コンセプト（2881:21563 393×810）: 見出し → リード → 写真（2881:21564 345×265）→ 本文。PC の枠線・ぼかしは出さない */
.first-concept__inner{max-width:none;min-height:0;padding:40px 24px 72px}
.first-concept__line,.first-concept__blur{display:none}
.first-concept__title{max-width:none;font-size:22px;line-height:35px;letter-spacing:2.2px}
.first-concept__lead{max-width:none;margin-top:0;font-size:13px;line-height:26px;letter-spacing:1.04px}
.first-concept__lead{position:relative;top:1px}/* 参照画像では明朝 13px の行が CSS より1px下（見た目だけ下げる） */
.first-concept__photo{position:static;width:auto;margin-top:22px;aspect-ratio:345/265}
.first-concept__photo-image{object-position:50% 50%}
.first-concept__body{max-width:none;margin-top:36px;letter-spacing:1.04px}
.first-concept__label{margin-bottom:0;font-size:14px;line-height:28px;letter-spacing:1.12px}
.first-concept__text{font-size:13px;line-height:26px}
.first-concept__text--spaced{margin-top:26px}

/* 03 コンセプト（2881:21571 393×565）: 英字・見出し・キャッチ・本文・リンクを縦に並べる */
.first-concept-2__inner{display:block;min-height:0;padding:68px 24px 72px}
.first-concept-2__line,.first-concept-2__portrait{display:none}
.first-concept-2__heading{padding-top:0}
.first-concept-2__en{top:0;font-size:14px;line-height:17px;letter-spacing:1.68px}/* PC の 16px の補正（1px下げ）は 14px では不要（参照画像で確認） */
.first-concept-2__title{margin-top:7px;font-size:22px;line-height:35px;letter-spacing:2.2px;white-space:normal}
.first-concept-2__body{padding:0}
.first-concept-2__catch{font-size:19px;line-height:36px;letter-spacing:1.52px}
.first-concept-2__text{margin-top:50px;font-size:13px;line-height:26px;letter-spacing:1.04px}
.first-concept-2__text--note{margin-top:27px}
.first-concept-2__more{margin-top:31px;padding-left:0}

/* 04 選ばれる理由（2881:21588 393×2667。2026-10-26 13:45 JST の再編集後: 写真 → 5px → 番号 → 罫線 → 20px → 見出し）: 注釈「SP：スライド切替・スクロール連動なし。01〜05 を縦積みで表示（アニメーションなし）」。
   共通の S-2（common.js）は幅を見ずに有効になるため、SP では固定と高さの指定を打ち消す（PC 側の有効時の見た目は min-width:1024px に限定済み）。 */
.first-reasons[data-scroll-switch].is-scroll-switch-enabled{height:auto}
.first-reasons[data-scroll-switch].is-scroll-switch-enabled .first-reasons__stage{position:relative;top:auto}
.first-reasons__stage{padding:70px 24px 72px}
.first-reasons__line{display:none}
.first-reasons__en{top:0;padding-left:1.68px;font-size:14px;line-height:17px;letter-spacing:1.68px}
.first-reasons__title{margin-top:9px;padding-left:2.2px;font-size:22px;line-height:35px;letter-spacing:2.2px}
.first-reasons__body{grid-template-columns:minmax(0,1fr);margin-top:44px;padding-bottom:40px;border-top:0;border-bottom:1px solid var(--color-light-greige)}
.first-reasons__body::before,.first-reasons__body::after{display:none}
.first-reasons__image{aspect-ratio:345/240;object-fit:cover}
.first-reasons__image--stretch{object-fit:cover}
/* 05 は再編集後（2026-10-26 13:45 JST）の参照画像で 364×252 に拡大して左19px・上6px ずらした切り抜き（参照画像との照合で求めた値。RMSE 0.93%）。
   どのブラウザでも効くよう、<picture> を切り抜きの箱（overflow:hidden、345:240）にし、写真を％で拡大・移動する（364/345＝105.51%、252/240＝105%、−19/345＝−5.51%、−6/240＝−2.5%。object-fit:fill）。
   SP の原本（<source>）があるときだけ。管理画面で差し替えると source が外れ、<picture> は display:contents に戻り、写真は他の項目と同じ cover で表示する */
.first-reasons__picture:has(source):has(>.first-reasons__image--5){position:relative;display:block;grid-row:9;grid-column:1;overflow:hidden;aspect-ratio:345/240}
.first-reasons__picture:has(source)>.first-reasons__image--5{position:absolute;top:-2.5%;left:-5.51%;width:105.51%;max-width:none;height:105%;aspect-ratio:auto;object-fit:fill}
/* 04 の元画像（Figma の rawImages、902×670）は、Figma の表示より暗い（Figma の画像の調整がアップロード画像に含まれない）。
   Figma の書き出し（2890:2931、345×240）に合わせて求めた近似値で明るくする（中央 cover の書き出しとの RMSE 15.9%→4.2%）。SP の原本（<source>）があるときだけ */
.first-reasons__picture:has(source)>.first-reasons__image--4{filter:brightness(1.44) contrast(.9)}
.first-reasons__image--1{grid-row:1}.first-reasons__item:nth-child(1){grid-row:2}
.first-reasons__image--2{grid-row:3}.first-reasons__item:nth-child(2){grid-row:4}
.first-reasons__image--3{grid-row:5}.first-reasons__item:nth-child(3){grid-row:6}
.first-reasons__image--4{grid-row:7}.first-reasons__item:nth-child(4){grid-row:8}
.first-reasons__image--5{grid-row:9}.first-reasons__item:nth-child(5){grid-row:10}
.first-reasons__item{grid-column:1;margin-top:5px;padding:0;border:0}
.first-reasons__item:not(:last-child){margin-bottom:48px}
.first-reasons__number{border-bottom:1px solid var(--color-light-greige);font-size:26px;line-height:31px;letter-spacing:2.08px}/* 罫線は番号の下（y276） */
.first-reasons__item-title{margin-top:20px;font-size:15px;line-height:26px;letter-spacing:1.2px}
.first-reasons__detail{max-width:none;padding-top:16px}
.first-reasons__text{font-size:12px;line-height:25px;letter-spacing:.96px}
.first-reasons__more{margin-top:12px;text-align:left}
/* 参照画像の文字の行に合わせた見た目だけの補正: 見出し（明朝 15px・行 25.5px）は1px下、本文（12px・行 25.2px）は1px上 */
.first-reasons__item-title{position:relative;top:1px}
.first-reasons__text{position:relative;top:-1px}
}
