/* ===== first-guide.html dedicated styles (loaded after style.css) ===== */

/* --- Page FV (left-aligned, 2-line) --- */
/* 縦長写真。Figma render: 天井ダウンライト(左上)＋ネット上を歩く子ども(中央)＋キリン玩具(右)。上寄りクロップ */
.page-fv .fv-bg{background-position:center 31%}
.page-fv .fv-title{line-height:1.5}

/* ===================================================================
   Features
   =================================================================== */
.fg-features{position:relative;background:var(--offwhite);padding:120px 0 200px;overflow:hidden}
.fg-features .container{position:relative;z-index:2}
.fg-features .sec-head{margin-bottom:80px}

.fg-feat-list{display:flex;flex-direction:column;gap:48px}

.fg-feature{
  display:grid;grid-template-columns:1fr 480px;align-items:center;gap:80px;
  background:#fff;box-shadow:0 14px 44px rgba(70,55,50,.06);
  padding:72px 80px;
}
.fg-feature--left{grid-template-columns:480px 1fr}

.fg-feat-num{display:flex;align-items:center;gap:16px;margin-bottom:32px}
.fg-feat-num .lb{
  font-family:var(--en);font-size:20px;color:var(--accent);letter-spacing:.02em;
}
.fg-feat-num .en{font-family:var(--en);font-size:100px;font-weight:500;color:var(--accent);line-height:1}

.fg-feat-title{
  font-family:var(--serif);font-size:24px;font-weight:600;color:var(--accent);
  line-height:1.6;letter-spacing:.02em;
}
.fg-feat-desc{margin-top:20px;font-size:15px;font-weight:400;color:var(--text);line-height:2;letter-spacing:.02em}

.fg-feat-img{width:480px;height:340px;overflow:hidden}
.fg-feature--left .fg-feat-img{width:auto}
.fg-feat-img img{width:100%;height:100%;object-fit:cover;transition:.6s}
.fg-feature:hover .fg-feat-img img{transform:scale(1.04)}

/* bottom white wave into Case studies (white) */
.fg-features::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:110px;z-index:1;
  background:url(../assets/img/wave_white.svg) center bottom/100% 110px no-repeat;
}

/* ===================================================================
   Case studies
   =================================================================== */
.fg-cases{background:#fff;padding:120px 0}
.fg-cases .sec-head{margin-bottom:64px}

.fg-case-grid{display:grid;grid-template-columns:repeat(2,360px);gap:60px;justify-content:center}
.fg-case{display:flex;flex-direction:column}
.fg-case .thumb{aspect-ratio:360/250;overflow:hidden}
.fg-case .thumb img{width:100%;height:100%;object-fit:cover;transition:.5s}
.fg-case:hover .thumb img{transform:scale(1.04)}
.fg-case-body{padding-top:22px;display:flex;flex-direction:column;align-items:flex-start}
.fg-tag{
  display:inline-flex;align-items:center;height:24px;padding:0 8px;
  background:#ece6dd;font-family:var(--serif);font-size:13px;font-weight:500;
  color:var(--text);line-height:1;letter-spacing:.02em;
}
.fg-case-body h3{
  margin-top:14px;font-family:var(--serif);font-size:20px;font-weight:600;
  color:var(--ink);line-height:1.6;letter-spacing:.02em;
}
.fg-case-body .link-more{margin-top:20px}

.fg-case-more{display:flex;justify-content:center;margin-top:60px}

/* ===================================================================
   FAQ
   =================================================================== */
.fg-faq{background:var(--cream);padding:120px 0}
.fg-faq .sec-head{margin-bottom:64px}

.fg-faq-row{display:grid;grid-template-columns:600px 1fr;gap:70px;align-items:start}

.fg-faq-qa{margin-bottom:0;border-bottom:none}
.fg-faq-qa .qa-item:first-child{border-top:none;padding-top:0}
.fg-faq-link{margin-top:24px;padding-left:31px}

.fg-faq-imgs{position:relative;min-height:572px}
.fg-faq-imgs img{object-fit:cover}
.fg-faq-imgs .big{position:absolute;left:0;top:0;width:280px;height:400px}
.fg-faq-imgs .small{position:absolute;right:0;top:272px;width:210px;height:300px}

/* ===================================================================
   Flow
   =================================================================== */
.fg-flow{background:#fff;padding:120px 0}
.fg-flow .sec-head{margin-bottom:64px}

.fg-flow-steps{display:flex;align-items:stretch;gap:37px}

.fg-step{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:20px;
  min-height:350px;padding:40px 25px;
  background:#fff;border:1.27px solid #cac7c4;
}
.fg-step-figs{flex:1;display:flex;align-items:center;justify-content:center;width:100%}
.fg-step-icon{position:relative;overflow:hidden}
.fg-step-icon img{position:absolute;max-width:none}

.fg-step--1 .fg-step-icon{width:190px;aspect-ratio:729/471}
.fg-step--1 .fg-step-icon img{height:217.41%;width:210.7%;left:-54.6%;top:-51.38%}
.fg-step--2 .fg-step-icon{width:138px;aspect-ratio:137.674/141.959}
.fg-step--2 .fg-step-icon img{height:206.04%;width:318.67%;left:-117.01%;top:-51.11%}
.fg-step--3 .fg-step-icon{width:190px;aspect-ratio:217/122}
.fg-step--3 .fg-step-icon img{height:431.07%;width:363.53%;left:-125.76%;top:-287.24%}

.fg-step-cap{text-align:center}
.fg-step-cap .ttl{display:flex;justify-content:center;gap:16px;align-items:baseline}
.fg-step-cap .ttl .no{font-family:var(--en);font-size:24px;color:var(--accent);line-height:1.6}
.fg-step-cap .ttl .tx{font-family:var(--serif);font-size:24px;font-weight:500;color:var(--accent);line-height:1.6}
.fg-step-cap .desc{margin-top:16px;font-size:15px;font-weight:500;color:var(--text);line-height:1.6}

.fg-flow-arrow{display:flex;align-items:center;flex:0 0 auto}
.fg-flow-arrow::before{
  content:"";width:0;height:0;
  border-style:solid;border-width:9px 0 9px 15px;
  border-color:transparent transparent transparent var(--accent);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media(max-width:1024px){
  .fg-feature{gap:48px;padding:56px 56px}
  .fg-feat-num .en{font-size:72px}
  .fg-case-grid{grid-template-columns:1fr 1fr;gap:40px}
  .fg-faq-row{grid-template-columns:1fr 320px;gap:40px}
}

@media(max-width:768px){
  .page-fv .fv-title{font-size:34px;line-height:1.5}

  /* Features */
  .fg-features{padding:64px 0 140px}
  .fg-features .sec-head{margin-bottom:48px}
  .fg-feat-list{gap:32px}
  .fg-feature,
  .fg-feature--left{grid-template-columns:1fr;gap:28px;padding:36px 24px}
  .fg-feature--left .fg-feat-img{order:-1}
  .fg-feat-num{margin-bottom:20px;gap:14px}
  .fg-feat-num .en{font-size:60px}
  .fg-feat-num .lb{font-size:18px}
  .fg-feat-title{font-size:20px}
  .fg-feat-desc{margin-top:18px}
  .fg-feat-img,
  .fg-feature--left .fg-feat-img{width:100%;height:auto;aspect-ratio:480/340}

  /* Case studies */
  .fg-cases{padding:64px 0}
  .fg-case-grid{grid-template-columns:1fr;gap:36px}
  .fg-case-body h3{font-size:19px}
  .fg-case-more{margin-top:44px}
  .fg-case-more .btn-outline{width:100%;max-width:353px}

  /* FAQ */
  .fg-faq{padding:64px 0}
  .fg-faq-row{grid-template-columns:1fr;gap:36px}
  .fg-faq-imgs{min-height:0;display:flex;gap:16px;justify-content:center}
  .fg-faq-imgs .big,
  .fg-faq-imgs .small{position:static}
  .fg-faq-imgs .big{width:54%;height:auto;aspect-ratio:280/400}
  .fg-faq-imgs .small{width:40%;height:auto;align-self:flex-end;aspect-ratio:210/300}

  /* Flow */
  .fg-flow{padding:64px 0}
  .fg-flow-steps{flex-direction:column;gap:20px;align-items:stretch}
  .fg-step{min-height:0;padding:32px 24px;gap:16px}
  .fg-step-figs{flex:0 0 auto}
  .fg-flow-arrow{justify-content:center}
  .fg-flow-arrow::before{
    border-width:15px 9px 0 9px;
    border-color:var(--accent) transparent transparent transparent;
  }
}
