/* ========== カラートークン ========== */
:root{
  --brand:#002b5c;
  --brand-dk:#001f44;
  --bg:#f1f5f9;
  --text:#1e293b;
  --border:#cbd5e1;
  --card:#ffffff;
}

/* ========== Reset & Base ========== */
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:"Noto Sans JP",sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x: hidden; /* 横スクロールを防ぐ */
}
.l-main{
  padding-bottom:4rem;
}
a{color:var(--brand);text-decoration:none;transition:opacity .25s;}
a:hover{opacity:.75;}
.l-inner{
  max-width:1100px;
  margin:auto;
  padding:0 1rem;
  width: 100%; /* 追加 */
}
.req{color:#dc2626;font-weight:bold;}
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position:static;
  width:auto;
  height:auto;
  padding:.75rem 1rem;
  background:#fff;
  box-shadow:0 0 0 3px var(--brand);
  z-index:1000;
}
.sr-only{
  border:0;
  clip:rect(0 0 0 0);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute;
  width:1px;
}

/* ========== Header ========== */
.l-header{
  background:var(--brand-dk);
  color:#fff; 
  height:90px;
  width: 100%;
  overflow-x: hidden; /* 横スクロールを防ぐ */
}
.header__inner,
.l-header .l-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:90px;
  width: 100%;
}
.logo{font-weight:700;letter-spacing:.05em;}

/* ---- ハンバーガー ---- */
.hamburger{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  z-index:100;
  flex-shrink: 0; /* 縮小を防ぐ */
}
.hamburger span{
  display:block;
  width:24px;
  height:3px;
  background:#fff;
  margin:5px 0;
  transition:.3s;
}
.hamburger.is-open span:nth-child(1){transform:translateY(8px) rotate(45deg);}
.hamburger.is-open span:nth-child(2){opacity:0;}
.hamburger.is-open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
img{
  height:3em;
  flex-shrink: 0; /* 縮小を防ぐ */
}

/* ---- ナビ ---- */
.gnav ul{
  display:flex;
  gap:2rem;
  font-weight:600;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gnav a{
  color:#fff; 
  font-size: 20px; 
  text-decoration: none;
  white-space: nowrap; /* テキストの折り返しを防ぐ */
}
.gnav li{
  text-decoration: none;
  list-style: none;
}
.gnav a.current{text-decoration:underline;text-underline-offset:2px;}

/* ========== Breadcrumb ========== */
.breadcrumb{
  background:#e2e8f0;
  font-size:.875rem;
  padding:.75rem 0;
}
.breadcrumb ol{
  list-style:none;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.breadcrumb li::after{
  content:"/";
  margin-left:.5rem;
}
.breadcrumb li:last-child::after{
  content:"";
}
.breadcrumb [aria-current="page"]{
  color:var(--text);
  font-weight:600;
}

/* ========== Card Section ========== */
.card{
  background:var(--card);
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:2.5rem;
  margin-top:2.5rem;
  box-shadow:0 4px 12px rgb(0 0 0/.05);
}
.card__header{
  margin-bottom:1.5rem;
}
.ttl{font-size:1.6rem;font-weight:700;color:var(--brand);margin-bottom:1.5rem;}
.lead{margin-bottom:1.5rem;line-height:1.7;}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;}
.field label{display:block;font-weight:600;margin-bottom:.4rem;}
.field input,
.field textarea{
  width:100%;border:1px solid var(--border);border-radius:6px;
  padding:.55rem .8rem;font-size:1rem;
}
.field input:focus,
.field textarea:focus{outline:2px solid rgb(29 78 216 / .4);}
.agree{display:flex;align-items:flex-start;gap:.6rem;margin-top:1rem;font-size:.9rem;}
.btn-area{text-align:center;margin-top:1.8rem;}
.btn-send{
  background:var(--brand);color:#fff;font-weight:600;padding:.8rem 2.8rem;
  border:none;border-radius:6px;cursor:pointer;
  box-shadow:0 2px 4px rgb(0 0 0/.15);
  transition:background .25s,transform .2s;
}
.btn-send:hover{background:var(--brand-dk);transform:translateY(-2px);}
fieldset{
  border:none;
  padding:0;
  margin:0;
}

/* ========== Footer ========== */
.footer{background:#111827;color:#d1d5db;margin-top:4rem;padding:3rem 1rem;text-align:center;font-size:.875rem;}
.footer h2{font-weight:700;color:#fff;margin-bottom:1rem;}
.footer .mail{font-size:1.1rem;font-weight:700;color:#fff;margin-bottom:.5rem;}
.footer .btn-form{display:inline-block;margin-top:.8rem;padding:.5rem 1.8rem;background:#fff;color:var(--brand);font-weight:600;border-radius:6px;}
.footer .copy{margin-top:2rem;font-size:.75rem;color:#9ca3af;}

/* ========== Responsive ========== */
@media(max-width:768px){
  .gnav{
    position:absolute;
    top:90px; /* ヘッダーの高さに合わせる */
    left:0;
    right:0; /* 追加：右端を固定 */
    width:100%;
    background:var(--brand);
    display:none;
    box-sizing: border-box;
    overflow-x: hidden; /* 横スクロールを防ぐ */
  }
  .gnav.is-open{display:block;}
  .gnav ul{
    flex-direction:column;
    padding:1rem;
    gap:1rem;
    text-align:center; 
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    list-style: none;
  }
  .gnav li {
    width: 100%;
    box-sizing: border-box;
    list-style: none;
  }
  .gnav a {
    display: block;
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
  }
  .hamburger{display:block;}
  
  /* ヘッダー内のl-innerも調整 */
  .l-header .l-inner {
    padding: 0 1rem;
    width: 100%;
  }
}
@media(max-width:480px){
  .form-grid{grid-template-columns:1fr;}
  .btn-send{width:100%;}
  
  .gnav ul {
    padding: 0.5rem;
  }
}
@media(max-width:1200px){
  .l-inner{
    margin-left: 5%; 
    margin-right: 5%;
    max-width: 90%;
  }
}
