html {
    scroll-behavior: smooth;
}

html, body, div, span, object, iframe,  
h1, h2, h3, h4, h5, h6, p, blockquote, pre,  
abbr, address, cite, code,  
del, dfn, em, img, ins, kbd, q, samp,  
dl, dt, dd, ol, ul, li,  
fieldset, form, label, legend,  
table, caption, tbody, tfoot, thead, tr, th, td,  
article, aside, canvas, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section, summary,  
time, mark, audio, video {  
margin: 0;  
padding: 0;  
border: 0;  
outline: 0;  
font-size: 100%;  
font-weight: normal;  
box-sizing: border-box;  
}

* {
    font-family: "Montserrat", "Zen Kaku Gothic Antique", sans-serif;
}


.header-site {
    width: 100%;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1290px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: clamp(60px, 6.94vw, 100px);
}

/* Logo */
.header-logo-link {
    display: block;
    line-height: 0;
}

.header-logo-img {
    /* PCデザイン1440px時のロゴサイズを想定し、clampで調整 */
    width: clamp(200px, 24.3vw, 310px);
    height: auto;
}

/* PC Navigation */
.header-nav {
    display: none;
}

.header-nav-list {
    list-style: none;
    display: flex;
    /* メニュー間の余白をclampで調整 */
    gap: clamp(20px, 3.47vw, 50px);
}

.header-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    /* フォントサイズをclampで調整 */
    font-size: clamp(14px, 1.11vw, 16px);
    transition: color 0.3s;
    font-family: "Zen Kaku Gothic Antique", sans-serif!important;
}

.header-nav-link:hover {
    color: #00a0a9;
}

.header-nav-link.is-active {
    color: #00a0a9;
}

/* Hamburger Menu (SP) */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 36px; /* バツ印がはみ出さないように十分な幅を確保 */
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.header-hamburger-line {
    width: 100%;
    height: 3px; /* 少し細くしてシャープに */
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.header-hamburger-line:nth-child(1) { top: 0; }
.header-hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header-hamburger-line:nth-child(3) { bottom: 0; }

/* 三色のバー */
.header-hamburger-line:nth-child(1) { background-color: #009FE8; }
.header-hamburger-line:nth-child(2) { background-color: #00307F; }
.header-hamburger-line:nth-child(3) { background-color: #00A0A9; }

/* Hamburger Active (X mark) */
.header-hamburger.is-active {
    z-index: 1001;
}

.header-hamburger.is-active .header-hamburger-line {
    background-color: #fff; /* バツ印は白（背景が濃い青のため） */
}

.header-hamburger.is-active .header-hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header-hamburger.is-active .header-hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-hamburger.is-active .header-hamburger-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* SP Navigation */
.sp-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #00307f; /* 添付画像より濃い青 */
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-nav.is-active {
    right: 0;
}

.sp-nav-list {
    list-style: none;
    text-align: center;
}

.sp-nav-item {
    margin-bottom: 40px;
}

.sp-nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

/* Desktop Media Query (768px以上) */
@media screen and (min-width: 768px) {
    .header-nav {
        display: block;
    }
    
    .header-hamburger {
        display: none;
    }
}

/* SP Media Query (767px以下) */
@media screen and (max-width: 767px) {
    .header-inner {
        /* SP: 750pxデザインを基準にclamp */
        padding: 0 clamp(15px, 4vw, 20px);
        height: clamp(60px, 16vw, 120px); /* SP時は少し高めに */
        justify-content: center; /* ロゴを中央へ */
        position: relative;
    }

    .header-logo-img {
        /* SPデザイン750px時で、画面幅に対して大きめに配置 (例: 50%程度まで) */
        width: clamp(200px, 53.3vw, 400px);
    }
    
    .header-hamburger {
        position: absolute;
        right: clamp(15px, 4vw, 25px);
        top: 50%;
        transform: translateY(-50%);
        width: 36px; /* 固定サイズ */
        height: 24px; /* 固定サイズ */
        z-index: 1001;
    }

    .header-hamburger-line {
        height: 3px; /* 固定サイズ */
    }
}


.footer-site {
  background-color: #003a8c;
  color: #ffffff;
  font-family: sans-serif;
  padding: clamp(60px, 8vw, 100px) 0 clamp(20px, 3vw, 40px);
  line-height: 1.6;
}

.footer-inner {
  width: 90%;
  max-width: 1245px;
  margin: 0 auto;
  display: grid;
  /* PC版レイアウト定義 */
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: 
    "contact contact"
    "intro   intro"   /* 紹介文をメニューより上の行に配置 */
    "corp    nav"     /* 会社情報(ロゴ)とナビを同じ行にして上端を揃える */
    "bottom  bottom";
  align-items: start;
}

/* --- 各エリアの割り当て --- */
.footer-contact     { grid-area: contact; text-align: left; margin-bottom: clamp(60px, 8vw, 100px); }
.footer-group-intro { grid-area: intro;   text-align: left; margin-bottom: 25px; font-size: clamp(12px, 1.1vw, 14px); }
.footer-corporate   { grid-area: corp;    text-align: left; }
.footer-nav         { grid-area: nav;     text-align: left; }
.footer-bottom      { grid-area: bottom;  text-align: right; margin-top: clamp(60px, 8vw, 120px); }

/* --- Contact装飾 --- */
.footer-contact-title {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 500;
  margin-bottom: 15px;
}
.footer-contact-text {
  font-size: clamp(14px, 1.4vw, 18px);
  margin-bottom: 30px;
}
.footer-contact-button {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 50px;
  padding: 15px clamp(40px, 5vw, 80px);
  font-size: clamp(14px, 1.4vw, 18px);
  transition: 0.3s;
}
.footer-contact-button:hover { background-color: #ffffff; color: #003a8c; }

/* --- 会社情報(ロゴ)装飾 --- */
.footer-logo {
  width: clamp(280px, 28vw, 420px);
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.footer-info { font-size: clamp(12px, 1.1vw, 15px); }
.footer-address { font-style: normal; }

/* --- ナビゲーション装飾 --- */
.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(13px, 1.1vw, 15px);
  display: flex;
}
.footer-nav-item a::before { content: "・"; margin-right: 4px; }

/* --- Responsive (768px以下 / SP版) --- */
@media screen and (max-width: 768px) {
  .footer-inner {
    display: flex; /* SPは上から順に並べるためFlexboxに切り替え */
    flex-direction: column;
    width: 88%;
  }

  /* SP版の並び順をorderで指定 */
  .footer-contact     { order: 1; margin-bottom: 50px; }
  .footer-nav         { order: 2; margin-bottom: 50px; width: 100%; }
  .footer-group-intro { order: 3; margin-bottom: 20px; }
  .footer-corporate   { order: 4; width: 100%; }
  .footer-bottom      { order: 5; text-align: left; margin-top: 60px; }

  .footer-logo {
    width: 250px;
  }
  .footer-nav-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
  }
}

/* 固定お問い合わせタブ */
.fixed-contact-tab {
    position: fixed;
    top: 30vh;
    right: 0;
    z-index: 999;
}

.fixed-contact-tab a {
    display: block;
    line-height: 0;
}

.fixed-contact-tab img {
    width: 48px; /* 1440px時に80px程度を想定 */
    height: auto;
}

.fixed-contact-tab .img-mouseover {
    display: none;
}

.fixed-contact-tab a:hover .img-mouseout {
    display: none;
}

.fixed-contact-tab a:hover .img-mouseover {
    display: block;
}

/* SPでは非表示 */
@media screen and (max-width: 767px) {
    .fixed-contact-tab {
        display: none;
    }
}

/* Utilities */
.pc-only { display: block; }
.sp-only { display: none; }

/* --- Responsive Layout (Break Point: 768px) --- */

@media screen and (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}