/* Nexfila homepage
   Direction: editorial / technical / restrained.
   No gradients, glassmorphism, decorative cards, or non-functional ornaments.
*/

.home{
  --ink:#142033;
  --ink-strong:#0b1422;
  --blue:#1557d6;
  --blue-dark:#0e3f9b;
  --paper:#fbfbf8;
  --surface:#f3f5f4;
  --surface-blue:#eef4ff;
  --line:#d2d9e2;
  --line-strong:#91a0b2;
  --muted:#566476;
  --measure:46rem;
  background:var(--paper);
  color:var(--ink);
  line-height:1.8;
}

.home .wrap{width:min(1120px,calc(100% - 3rem))}
.home .button{border-radius:2px}
.home > header{background:#fff;border-bottom:1px solid var(--line)}
.home .header{padding-block:.9rem;border-bottom:0}
.home .brand{font-size:1.35rem;letter-spacing:.11em;color:var(--ink-strong)}
.home .brand span{margin-top:.1rem;font-size:.75rem;letter-spacing:.015em;color:var(--muted)}
.home .header nav{gap:.35rem 1.45rem}
.home .header nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-size:.875rem;text-decoration:none;text-underline-offset:.35em}
.home .header nav a:hover{text-decoration:underline;text-decoration-thickness:2px}
.home .header .nav-diagnosis{color:var(--blue);font-weight:780;border-bottom:2px solid var(--blue)}

.home .eyebrow{margin:0 0 .65rem;font-size:.76rem;font-weight:800;letter-spacing:.12em;color:var(--blue)}
.home h1,.home h2,.home h3{color:var(--ink-strong)}
.home h1{max-width:15.5em;margin-bottom:1.45rem;font-size:clamp(2.45rem,5.25vw,4.65rem);font-weight:830;line-height:1.24;letter-spacing:-.045em;text-wrap:balance}
.home h2{margin-bottom:1.15rem;font-size:clamp(1.75rem,3vw,2.55rem);font-weight:790;line-height:1.42;letter-spacing:-.025em;text-wrap:balance}
.home h3{font-size:1.08rem;line-height:1.55}
.home .section{padding-block:5.5rem}
.home .section-heading{max-width:var(--measure);margin-bottom:2.35rem}
.home .section-heading>p:last-child{max-width:42rem;margin-bottom:0;color:var(--muted)}

/* Hero */
.home .hero{padding:5.4rem 0 4.8rem;background:#fff;border-bottom:0}
.home .hero-inner{position:relative;max-width:1120px}
.home .hero-inner::before{content:"";display:block;width:4.5rem;height:3px;margin-bottom:1.5rem;background:var(--blue)}
.home .hero .intro{max-width:44rem;margin-bottom:0;font-size:1.08rem;color:#34445a}
.home .actions{gap:.75rem 1.5rem;margin:2rem 0 .95rem}
.home .primary-cta{min-height:52px;padding:.9rem 1.4rem;background:var(--blue-dark);box-shadow:none}
.home .primary-cta:hover{background:#0a327c}
.home .quiet-link{display:inline-flex;align-items:center;min-height:48px;color:var(--ink);font-weight:700;text-decoration-thickness:1px;text-underline-offset:.35em}
.home .quiet-link:hover{text-decoration-thickness:2px}
.home .microcopy{display:flex;flex-wrap:wrap;gap:.2rem .35rem;margin:0;font-size:.82rem;color:var(--muted)}
.home .microcopy span{margin:0 .2rem;color:var(--line-strong)}

/* Trust strip: facts, not cards */
.home .trust-strip{border-block:1px solid var(--line);background:var(--surface)}
.home .trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.home .trust-grid p{min-width:0;margin:0;padding:1.1rem 1.15rem;border-right:1px solid var(--line)}
.home .trust-grid p:first-child{border-left:1px solid var(--line)}
.home .trust-grid strong,.home .trust-grid span{display:block}
.home .trust-grid strong{font-size:.9rem;color:var(--ink-strong)}
.home .trust-grid span{margin-top:.1rem;font-size:.75rem;line-height:1.55;color:var(--muted)}

/* Problems: scan-friendly vertical list */
.home .problem-list{border-top:2px solid var(--ink-strong)}
.home .problem-list article{display:grid;grid-template-columns:3.4rem minmax(0,1fr);gap:1rem;padding:1.35rem .15rem;border-bottom:1px solid var(--line)}
.home .problem-list article>span,.home .service-number{font-size:.75rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.08em;color:var(--blue)}
.home .problem-list h3,.home .problem-list p{margin:0}
.home .problem-list h3{margin-bottom:.2rem}
.home .problem-list p{max-width:46rem;font-size:.92rem;color:var(--muted)}

/* Principle */
.home .principle{background:var(--ink-strong);color:#fff}
.home .principle-grid{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);gap:5rem;padding-block:4.8rem}
.home .principle .eyebrow{color:#a9c4ff}
.home .principle h2{margin-bottom:0;font-size:clamp(2.2rem,4.5vw,3.8rem);color:#fff}
.home .principle p{max-width:45rem;color:#eef3fb}
.home .principle p:last-child{margin-bottom:0}

/* Services: one ordered path + one comparable list */
.home .service-section{background:#fff;border-bottom:1px solid var(--line)}
.home .service-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;max-width:none}
.home .service-heading>p{margin-bottom:.35rem;font-size:.8rem;color:var(--muted);white-space:nowrap}
.home .service-path-compact{display:flex;align-items:stretch;counter-reset:path;list-style:none;margin:0 0 2rem;padding:0;border-block:1px solid var(--line)}
.home .service-path-compact li{position:relative;display:flex;align-items:center;flex:1 1 0;min-width:0;margin:0;padding:.85rem 1rem .85rem 2.85rem;border-right:1px solid var(--line);font-weight:700}
.home .service-path-compact li:last-child{border-right:0}
.home .service-path-compact li::before{counter-increment:path;content:"0" counter(path);position:absolute;left:.85rem;top:.95rem;font-size:.67rem;font-weight:800;letter-spacing:.05em;color:var(--blue)}
.home .service-path-compact li:not(:last-child)::after{content:"";position:absolute;right:-5px;top:50%;z-index:1;width:8px;height:8px;border-top:1px solid var(--line-strong);border-right:1px solid var(--line-strong);background:#fff;transform:translateY(-50%) rotate(45deg)}
.home .service-path-compact span{font-size:.82rem;line-height:1.55;color:var(--ink)}
.home .service-list{border-top:2px solid var(--ink-strong)}
.home .service-row{display:grid;grid-template-columns:minmax(175px,.82fr) minmax(260px,1.35fr) minmax(165px,.67fr);gap:2rem;padding:1.8rem .1rem;border-bottom:1px solid var(--line);align-items:start}
.home .service-row h3,.home .service-row p{margin:0}
.home .service-row h3{margin:.1rem 0 .2rem}
.home .service-need{font-size:.78rem;line-height:1.6;color:var(--muted)}
.home .service-row>p{max-width:42rem;font-size:.92rem;color:#3b495b}
.home .service-fee{text-align:right}
.home .service-fee strong{display:block;font-size:1.35rem;font-weight:800;line-height:1.35;white-space:nowrap;color:var(--ink-strong)}
.home .service-fee strong span{font-size:.76rem;font-weight:560;color:var(--muted)}
.home .service-fee a{display:inline-flex;align-items:center;min-height:44px;margin-top:.25rem;font-size:.82rem;font-weight:650}
.home .supplement{margin-top:1.3rem;padding:.7rem 0;border-block:1px solid var(--line)}
.home .supplement summary{display:flex;align-items:center;min-height:48px;font-size:.9rem}
.home .supplement>div{display:grid;grid-template-columns:1fr 1fr;gap:2rem;padding:.7rem 0 .35rem}
.home .supplement p{margin:0;font-size:.86rem;color:#3f4d5f}
.home .terms{margin:1rem 0 0;font-size:.78rem;color:var(--muted)}

/* Comparison: desktop table / <=900px stacked key-value rows */
.home .compact-section{padding-block:4.5rem}
.home .comparison{border-top:2px solid var(--ink-strong);border-left:1px solid var(--line)}
.home .comparison-row{display:grid;grid-template-columns:.72fr repeat(3,1fr)}
.home .comparison-row>*{min-width:0;margin:0;padding:.82rem .9rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.home .comparison-head{background:var(--ink-strong);color:#fff}
.home .comparison-head span,.home .comparison-head strong{font-size:.8rem;line-height:1.5;color:#fff}
.home .comparison-row>span{font-size:.82rem;font-weight:760;color:var(--ink-strong)}
.home .comparison-row p b{display:block;font-size:.86rem;font-weight:650;line-height:1.55;color:#334257}
.home .comparison-row p::before{display:none}

/* Search / AI search: restrained emphasis */
.home .search-section{background:var(--surface-blue);border-block:1px solid #cbd8ef}
.home .search-grid{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:5rem}
.home .search-grid h2{max-width:14em}
.home .search-grid>div:last-child{padding-left:2rem;border-left:3px solid var(--blue)}
.home .search-grid>div:last-child>p:first-child{max-width:43rem}
.home .fineprint{font-size:.78rem;color:var(--muted)}

/* About / operator */
.home .about-block{background:var(--surface)}
.home .brand-message{padding-bottom:3.4rem;border-bottom:1px solid var(--line)}
.home .brand-message h2{max-width:12em;margin-bottom:1.35rem;font-size:clamp(2.7rem,6vw,5.25rem);line-height:1.16;letter-spacing:-.05em}
.home .brand-message h2 span{display:block;white-space:normal}
.home .brand-message>p:last-child{max-width:43rem;margin-bottom:0;color:var(--muted)}
.home .about-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:5rem;padding-top:3rem}
.home .about-grid p{font-size:.91rem;color:#3f4d5f}
.home .about-grid>div>p:last-child{margin-bottom:0}
.home .business-data{margin:0;border-top:1px solid var(--line-strong)}
.home .business-data>div{display:grid;grid-template-columns:5rem minmax(0,1fr);gap:1rem;padding:.68rem 0;border-bottom:1px solid var(--line);font-size:.82rem}
.home .business-data dt{font-weight:650;color:var(--muted)}
.home .business-data dd{min-width:0;margin:0;color:var(--ink)}
.home .column-link{display:inline-flex;align-items:center;min-height:44px;margin-top:1.5rem;font-size:.88rem;font-weight:680}

/* FAQ */
.home .faq{max-width:58rem}
.home .faq details{padding:1.1rem 0;border-top:1px solid var(--line)}
.home .faq details:last-child{border-bottom:1px solid var(--line)}
.home .faq summary{display:flex;align-items:center;min-height:48px;font-size:.95rem}
.home .faq details p{margin-top:.85rem;color:#445164}

/* Final action and contact */
.home .end-section{padding:4rem 0;background:var(--blue-dark);color:#fff}
.home .end-section .eyebrow{color:#c3d5ff}
.home .end-section h2{max-width:42rem;margin-bottom:.7rem;color:#fff}
.home .end-inner>p{max-width:43rem;color:#edf3ff}
.home .end-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:1rem 1.5rem;margin-top:1.6rem}
.home .contact-disclosure{flex:1 1 100%;margin-top:.45rem;padding-top:.75rem;border-top:1px solid #6e8bc8}
.home .contact-disclosure>summary{display:inline-flex;align-items:center;min-height:48px;color:#fff;font-size:.9rem;text-decoration:underline;text-underline-offset:.3em}
.home .contact-disclosure[open]>summary{margin-bottom:1.2rem}
.home .contact-disclosure .contact{max-width:800px;padding:1.5rem;border:1px solid #d3dbea;background:#fff;color:var(--ink)}
.home .contact-disclosure .contact .eyebrow{color:var(--blue)}
.home .contact-disclosure .contact h2{font-size:clamp(1.4rem,2.5vw,1.9rem);color:var(--ink-strong)}
.home .contact-disclosure .contact>p{color:#445164}
.home .contact-disclosure form{margin:1.5rem 0 1rem;padding:0;border:0;background:#fff}
.home .contact-disclosure input,.home .contact-disclosure select,.home .contact-disclosure textarea{border-radius:2px}
.home .contact-disclosure .is-error{color:#a52413}
.home .contact-disclosure .is-success{color:#14703d}
.home .contact-disclosure .privacy-note,.home .contact-disclosure .consent,.home .email-fallback,.home #message-help{font-size:.84rem}

/* Footer */
.home footer{padding-block:2.8rem;background:var(--paper)}
.home .footerlinks{gap:.45rem 1.5rem;margin-block:1.25rem}
.home .footerlinks a{display:inline-flex;align-items:center;min-height:44px;font-size:.84rem}
.home .footer-bottom{display:flex;justify-content:space-between;gap:1rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted)}
.home .footer-bottom p,.home .footer-bottom small{margin:0;font-size:.75rem}

@media(max-width:900px){
  .home .section{padding-block:4.5rem}
  .home .trust-grid{grid-template-columns:1fr 1fr}
  .home .trust-grid p:nth-child(3){border-left:1px solid var(--line);border-top:1px solid var(--line)}
  .home .trust-grid p:nth-child(4){border-top:1px solid var(--line)}
  .home .principle-grid,.home .search-grid{grid-template-columns:1fr;gap:1.8rem}
  .home .search-grid>div:last-child{padding-left:1.35rem}
  .home .service-path-compact{display:grid;grid-template-columns:1fr 1fr}
  .home .service-path-compact li:nth-child(2){border-right:0}
  .home .service-path-compact li:nth-child(1),.home .service-path-compact li:nth-child(2){border-bottom:1px solid var(--line)}
  .home .service-path-compact li:nth-child(2)::after{display:none}
  .home .service-row{grid-template-columns:1fr 1.35fr;gap:.8rem 1.5rem}
  .home .service-fee{grid-column:2;display:flex;align-items:baseline;justify-content:space-between;gap:1rem;text-align:left}
  .home .about-grid{grid-template-columns:1fr;gap:2.5rem}

  .home .comparison{border:0}
  .home .comparison-head{display:none}
  .home .comparison-row{display:block;margin:0 0 1rem;border:1px solid var(--line);background:#fff}
  .home .comparison-row>*{border:0;border-bottom:1px solid var(--line)}
  .home .comparison-row>*:last-child{border-bottom:0}
  .home .comparison-row>span{display:block;padding:.65rem .85rem;background:var(--ink-strong);color:#fff;font-size:.78rem;letter-spacing:.01em}
  .home .comparison-row p{display:block;padding:.72rem .85rem}
  .home .comparison-row p::before{display:block;position:static;width:auto;margin:0 0 .15rem;color:var(--muted);font-size:.68rem;font-weight:780;line-height:1.45;letter-spacing:.04em}
  .home .comparison-row p:nth-of-type(1)::before{content:"自作サービス"}
  .home .comparison-row p:nth-of-type(2)::before{content:"テンプレート / CMS"}
  .home .comparison-row p:nth-of-type(3)::before{content:"個別制作・修正"}
  .home .comparison-row p b{font-size:.88rem;line-height:1.55}
}

@media(max-width:640px){
  .home .wrap{width:calc(100% - 2rem)}
  .home .header{display:block;padding-block:.7rem}
  .home .brand span{display:none}
  .home .header nav{display:grid;grid-template-columns:1fr 1fr;gap:0 .85rem;margin-top:.5rem;padding-top:.45rem;border-top:1px solid var(--line)}
  .home .header nav a{min-width:0;min-height:46px;font-size:.8rem}
  .home .header .nav-diagnosis{border-bottom:0;color:var(--blue)}

  .home .hero{padding:3.6rem 0 3.25rem}
  .home .hero-inner::before{width:3rem;margin-bottom:1.15rem}
  .home h1{max-width:none;font-size:clamp(2.05rem,10.4vw,3rem);line-height:1.3;letter-spacing:-.04em}
  .home .wide-only{display:none}
  .home .hero .intro{font-size:.97rem;line-height:1.8}
  .home .actions{align-items:stretch;flex-direction:column;gap:.35rem;margin-top:1.55rem}
  .home .quiet-link{justify-content:center}
  .home .microcopy{display:block;line-height:1.8}
  .home .microcopy span{margin-inline:.2rem}

  .home .section{padding-block:3.75rem}
  .home .section-heading{margin-bottom:1.7rem}
  .home .trust-grid{grid-template-columns:1fr 1fr}
  .home .trust-grid p,.home .trust-grid p:nth-child(3),.home .trust-grid p:nth-child(4){padding:.9rem .8rem;border-left:0;border-top:0}
  .home .trust-grid p:nth-child(odd){border-left:1px solid var(--line)}
  .home .trust-grid p:nth-child(n+3){border-top:1px solid var(--line)}
  .home .trust-grid strong{font-size:.84rem}
  .home .trust-grid span{font-size:.7rem}

  .home .problem-list article{grid-template-columns:2.5rem minmax(0,1fr);gap:.6rem;padding:1.15rem 0}
  .home .problem-list p{font-size:.88rem}
  .home .principle-grid{padding-block:3.6rem}
  .home .principle h2{font-size:clamp(2rem,11vw,3rem)}

  .home .service-heading{display:block}
  .home .service-heading>p{margin-top:.5rem;white-space:normal}
  .home .service-path-compact{display:block;margin-bottom:1.4rem}
  .home .service-path-compact li{padding:.7rem .7rem .7rem 2.55rem;border-right:0;border-bottom:1px solid var(--line)}
  .home .service-path-compact li:last-child{border-bottom:0}
  .home .service-path-compact li::before{left:.65rem;top:.8rem}
  .home .service-path-compact li:not(:last-child)::after{display:none}
  .home .service-row{grid-template-columns:1fr;gap:.65rem;padding:1.45rem 0}
  .home .service-row>p{font-size:.92rem}
  .home .service-fee{grid-column:auto;display:block;text-align:left}
  .home .service-fee strong{white-space:normal}
  .home .supplement>div{grid-template-columns:1fr;gap:.8rem}

  .home .compact-section{padding-block:3.5rem}
  .home .search-grid>div:last-child{padding-left:1rem;border-left-width:2px}
  .home .brand-message{padding-bottom:2.6rem}
  .home .brand-message h2{max-width:10em;font-size:clamp(1.9rem,9.1vw,2.7rem);line-height:1.25}
  .home .about-grid{gap:2rem;padding-top:2.3rem}
  .home .business-data>div{grid-template-columns:4.3rem minmax(0,1fr);gap:.7rem;font-size:.79rem}

  .home .end-section{padding:3.5rem 0}
  .home .end-actions>.button{width:100%}
  .home .contact-disclosure .contact{padding:1rem}
  .home .form-grid{grid-template-columns:1fr}
  .home .wide{grid-column:auto}

  .home .footer-bottom{display:block}
  .home .footer-bottom p{margin-top:.4rem}
}

@media(max-width:360px){
  .home .header nav{grid-template-columns:1fr}
  .home .trust-grid{grid-template-columns:1fr}
  .home .trust-grid p,.home .trust-grid p:nth-child(odd),.home .trust-grid p:nth-child(n+3){border-left:1px solid var(--line);border-top:1px solid var(--line)}
  .home .trust-grid p:first-child{border-top:0}
  .home .brand-message h2{font-size:1.8rem}
  .home .business-data>div{grid-template-columns:1fr;gap:.15rem}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
