*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:#0b1f3a;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.75;background:#fff}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.wrap{width:min(1180px,calc(100% - 48px));margin:auto}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid #e7edf5}
.nav{min-height:76px;display:flex;align-items:center;gap:30px}
.brand{font-size:25px;font-weight:900;letter-spacing:.06em;line-height:1}
.brand span{display:block;font-size:10px;letter-spacing:.28em;color:#1478dc;margin-top:9px}
.links{margin-left:auto;display:flex;align-items:center;gap:27px;font-size:14px;font-weight:800}
.btn{display:inline-flex;align-items:center;justify-content:center;background:#1478dc;color:#fff;border-radius:999px;padding:14px 24px;font-weight:800;white-space:nowrap}
.outline{background:transparent}
.hero{min-height:680px;position:relative;display:flex;align-items:center;background:#eef6fd url("assets/gunma-approved-wide.jpg") center/cover no-repeat;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.91) 31%,rgba(255,255,255,.22) 62%,rgba(255,255,255,0) 100%)}
.hero .wrap{position:relative;z-index:2}
.hero h1{font-size:clamp(52px,6vw,82px);line-height:1.14;letter-spacing:-.045em;margin:0;max-width:690px}
.hero p{font-size:18px;font-weight:700;max-width:660px;margin:28px 0 0}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.hero .white{background:#1478dc;color:#fff}
.hero .outline{border:1px solid #c9d5e3;color:#0b1f3a!important;background:rgba(255,255,255,.86)}
.hero small{position:absolute;right:18px;bottom:10px;z-index:2}
.section{padding:92px 0}
.soft{background:#f5f8fc}
.eyebrow{margin:0 0 12px;color:#1478dc;font-size:12px;font-weight:900;letter-spacing:.22em}
h2{
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
  text-wrap: balance;
};margin:0 0 18px}
.lead{font-size:18px;color:#43536a}
.grid{display:grid;gap:18px;margin-top:38px}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.card{border:1px solid #e0e8f1;border-radius:24px;padding:28px;background:#fff}
.card .num{font-size:12px;font-weight:900;color:#1478dc}
.card h3{font-size:21px;line-height:1.4;margin:22px 0 10px}
.card p{margin:0;color:#526176}
.primary{background:#0b1f3a;color:#fff}
.primary p{color:#d9e4ef}
.badge{display:inline-block;background:#1478dc;color:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}
.feature{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:center}
.photo{min-height:420px;border-radius:28px;overflow:hidden;background:#eef3f8}
.photo img{width:100%;height:100%;min-height:420px;object-fit:cover}
.note{font-size:12px;color:#8290a3}
.scene{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.pill{border:1px solid #d9e2ec;border-radius:999px;padding:11px 16px;background:#fff;font-weight:700}
.safety{background:#0b1f3a;color:#fff;text-align:center}
.safety .eyebrow{color:#67b7ff}.safety .lead{color:#d9e4ef}
.safety .white{background:#fff;color:#0b1f3a}
.auto{background:#1478dc;color:#fff}
.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.auto .eyebrow,.auto .lead{color:#fff}
.linebtn{border:1px solid rgba(255,255,255,.75);background:transparent}
.service-list{display:grid;gap:12px}
.service-list div{border:1px solid rgba(255,255,255,.3);border-radius:18px;padding:18px 20px;font-weight:800}
.person{display:grid;grid-template-columns:320px 1fr;gap:50px;align-items:center}
.person img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:26px;background:#eef3f8}
.newslist{margin-top:32px;border-top:1px solid #dce5ee}
.newsitem{display:grid;grid-template-columns:150px 1fr;gap:24px;padding:22px 0;border-bottom:1px solid #dce5ee}
.newsitem p{margin:4px 0 0;color:#607086}
.contact{background:#0b1f3a;color:#fff}
.contactgrid{display:grid;grid-template-columns:1fr 250px;gap:60px;align-items:center}
.qrbox{background:#fff;color:#0b1f3a;border-radius:24px;padding:22px;text-align:center}
.qrbox img{width:160px;margin:0 auto 12px}
.footer{background:#071426;color:#fff;padding:42px 0}
.footergrid{display:flex;justify-content:space-between;gap:40px}
.footer p{color:#c6d2df}

@media(max-width:800px){
  .wrap{width:min(100% - 32px,680px)}
  .topbar{position:relative}
  .nav{min-height:68px;flex-wrap:wrap;padding:13px 0;gap:10px}
  .brand{font-size:20px}
  .brand span{font-size:8px;margin-top:6px}
  .links{order:3;width:100%;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid #e7edf5;padding-top:10px}
  .links a{text-align:center;font-size:10px;padding:7px 2px}
  .nav>.btn{margin-left:auto;padding:10px 13px;font-size:11px}
  .hero{min-height:620px;align-items:flex-end;padding:70px 0 55px;background-position:center}
  .hero:before{background:linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,.72) 42%,rgba(255,255,255,.98) 72%)}
  .hero h1{font-size:clamp(42px,12.5vw,58px);line-height:1.08;max-width:100%}
  .hero p{font-size:15px;line-height:1.8;margin-top:20px}
  .actions{gap:10px;margin-top:22px}
  .btn{padding:12px 17px;font-size:13px}
  .hero small{font-size:10px}
  .section{padding:66px 0}
  h2{font-size:36px}
  .lead{font-size:16px}
  .g4,.g3,.feature,.split,.person,.contactgrid{grid-template-columns:1fr}
  .grid{gap:14px;margin-top:28px}
  .card{padding:23px}
  .feature{gap:28px}
  .photo,.photo img{min-height:240px}
  .photo img{height:240px}
  .split{gap:32px}
  .person{gap:28px}
  .person img{width:min(260px,80%);margin:auto}
  .newsitem{grid-template-columns:1fr;gap:5px}
  .contactgrid{gap:30px}
  .qrbox{max-width:260px}
  .footergrid{flex-direction:column}
}
{/* スマホ版の見出しを調整 */}
@media screen and (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.45;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.9;
    margin: 22px 0;
  }

  .hero .actions {
    margin-top: 24px;
  }
}
/* スマホ版：背景画像と重なる見出しを非表示 */
@media screen and (max-width: 767px) {
  .hero h1 {
    display: none;
  }
}
/* パソコン版：見出しをスマートに */
@media screen and (min-width: 768px) {
  .hero h1 {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.4;
    letter-spacing: 0;
    max-width: 760px;
  }
}
/* Air First 新しいトップ画像 */
.hero {
  background-image: url("airfirst-hero.png") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 768px){
  .hero{
    min-height: 520px;
    padding: 36px 0 28px;
    background-position: center center;
  }

  .hero:before{
    background: linear-gradient(
      90deg,
      rgba(255,255,255,.88) 0%,
      rgba(255,255,255,.72) 42%,
      rgba(255,255,255,.18) 100%
    );
  }

  .hero .wrap{
    width: min(100% - 32px, 1180px);
  }

  .hero h1{
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    max-width: 320px;
  }

  .hero p{
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
    margin: 0 0 22px;
    max-width: 340px;
  }

  .actions{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
  }

  .actions .btn{
    width: 100%;
    max-width: 300px;
    min-height: 54px;
    font-size: 16px;
  }

  .hero small{
    right: 14px;
    bottom: 10px;
    font-size: 11px;
  }
}
/* Air First スマホ専用デザイン */
@media screen and (max-width: 767px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 0 0 24px;
    background-image: none !important;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    content: "";
    display: block;
    height: 240px;
    background: url("airfirst-hero.png") center 43% / cover no-repeat;
  }

  .hero .wrap {
    width: calc(100% - 40px);
    padding: 30px 0 10px;
  }

  .hero h1 {
    display: block;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
  }

  .hero .actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero .actions .btn {
    max-width: none;
    width: 100%;
    min-height: 48px;
  }

  .hero small {
    bottom: 28px;
    right: 12px;
  }
}
/* スマホ専用メニュー */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {
  .topbar .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 10px;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
    background: #1478dc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  .topbar .links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    order: 3;
  }

  .topbar .links.is-open {
    display: flex;
  }

  .topbar .links a {
    display: block;
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }
}
@media (max-width: 768px){

  .section{
    padding: 64px 0;
  }

  h2{
    font-size: clamp(24px, 8vw, 38px);
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }

  .eyebrow{
    font-size: 11px;
    letter-spacing: .22em;
    margin-bottom: 10px;
  }

  .lead{
    font-size: 16px;
    line-height: 1.8;
  }

  .wrap{
    width: min(1180px, calc(100% - 32px));
  }
}
/* スマホ版：見出しをコンパクトに */
@media screen and (max-width: 767px) {
  .section h2,
  section h2 {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }
}