/* ============ 共通リセット ============ */
* { box-sizing: border-box; }
body { margin: 0; }

header, #head {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ============ ロゴ ============ */
#siteid {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo {
  height: 60px;
  width: auto;
  display: block;
}

/* ============ ヘッダー行全体 ============ */
.header-row {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

/* ============ PC表示（1100px～） ============ */
@media (min-width: 1100px) {
  .hamburger { display: none !important; }

  #head {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* ロゴ左、ナビ右 */
    padding: 0 40px;
    height: 88px;
    background: #fff;
  }
  #siteid {
    margin-right: 36px;
  }
  .header-row {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ナビを右端に */
    min-width: 0;
  }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ナビ全体を右端に */
    width: 100%;
    gap: 0;
  }
  .nav__list {
    display: flex;
    align-items: center;
    margin: 0 0 0 45px;
    padding: 0;
    list-style: none;
    gap: 0;
  }
  .nav-left, .nav-right { gap: 0; }
  .nav__item { margin: 0 0 0 40px; padding: 0; }
  .nav__link {
    display: block;
    color: #FF6600;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    transition: opacity .2s;
    padding: 10px 0 6px 0;
    border: none;
    background: none;
    margin: 10px 0;
    letter-spacing: 1px;
  }
  .nav__link:hover { opacity: .7; }
  .hamburger_txt02, .sub-txt {
    font-size: 13px; color: #666; font-weight: normal; margin: 5px 0px;
  }
  /* PCで中央のオレンジボタン（nav-center）は完全非表示＋隙間ゼロ */
  .nav-center {
    display: none !important;
    width: 0 !important; min-width: 0 !important; max-width: 0 !important;
    padding: 0 !important; margin: 0 !important; border: none !important; flex: 0 0 0 !important; overflow: hidden !important;
  }
  /* サブリンク（右端） */
  .nav__link_border {
    display: flex; align-items: center; gap: 14px;
    border: none; margin: 0; padding: 0;
  }
  .nav__link_sub {
    color: #444;
    font-size: 14px;
    padding: 0 7px;
    text-decoration: none;
    font-weight: normal;
    transition: opacity .2s;
    letter-spacing: 1px;
  }
  .nav__link_sub:hover { opacity: .7; }
}

/* ============ SP/タブレット（～1099px） ============ */
@media (max-width: 1099px) {
  #head {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background: #fff;
    padding: 0 16px;
    position: relative;
  }
  #siteid {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 60px;
  }
  .logo {
    height: 50px;
    width: auto;
    display: block;
  }

  /* ナビ本体 */
  .nav {
    position: fixed;
    top: 60px;   /* ← ヘッダーの高さ分下げる */
    right: 0;
    width: 82vw;
    max-width: 350px;
    height: calc(100vh - 60px); /* ← 高さも調整 */
    background: #fff;
    box-shadow: -2px 0 0.8px rgba(0,0,0,0.09);
    transform: translateX(100%);
    transition: transform 0.33s cubic-bezier(.7,.3,0,1);
    z-index: 1001;
    padding-top: 32px;
    padding-bottom: 24px;
    overflow-y: auto;
  }
  .nav[aria-hidden="false"] {
    transform: translateX(0%);
  }
  .header-row, .nav-row {
    display: block;
    width: 100%;
    margin: 0; padding: 0;
  }
  .nav__list {
    display: block;
    margin: 0 0 12px 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }
  .nav__item, .btn-nav, .nav__link_border {
    margin: 0; padding: 0;
    width: 100%;
  }
  .nav__link {
    display: block;
    padding: 12px 0 6px 20px;
    color: #FF6600;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    background: none;
    margin: 10px 0;
  }
  .nav__link:hover { opacity: .75; }
  .hamburger_txt02, .sub-txt {
    font-size: 13px; color: #666; margin: 5px 0 10px 10px;
  }
  /* オレンジボタンもSP時は普通に表示 */
  .btn-nav .custom-btn-link {
    display: flex; align-items: center;
    background: #fff8f1; border-radius: 22px;
    border: 2px solid #ff6900; color: #ff6900; font-weight: bold;
    margin: 18px 12px; padding: 5px 5px;
    font-size: 15px; text-decoration: none;
    transition: background 0.18s;
  }
  .btn-nav .custom-btn-link:hover {
    background: #fff3e1;
  }
  .custom-btn-icon img {
    vertical-align: middle; width: 38px; height: 38px; margin-right: 7px;
  }
  .custom-btn-text { font-size: 16px; margin-right: 9px; }
  .custom-btn-arrow { margin-left: 2px; }
  .nav__link_border {
    text-align: center;
    display: block;
  }
  .nav__link_sub {
    font-size: 10px; color: #444;
    display: inline-block;
    padding: 7px 2px;
    text-decoration: none;
  }

  .nav__link_border {
    border-top: 2px solid #eee;
    padding: 10px;
  }
}

/* ハンバーガーデザインは現状維持（色味・太さ・背景） */
.hamburger__line {
  background: #ff6900 !important;
  height: 4px !important;
}
.nav {
  background: #fff !important;
}
.custom-btn-link {
  background: #fff8f1 !important;
  border: 2px solid #ff6900 !important;
  color: #ff6900 !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000; /* ナビやドロワーより下にならないよう大きめに */
    background: #fff; /* お好みで */
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  box-sizing: border-box;
}
@media (max-width: 1099px) {
  .header-inner {
    max-width: 100vw;
    padding: 0 16px;
    height: 60px;
    margin: 0 auto;
  }
}

/*　追記　*/

/* 線の共通設定 */

.hamburger {
  width: 48px;
  height: 48px;
  border: 2px solid #FF7B29;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.hamburger__line {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #FF7B29;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 配置：3本線 */
.hamburger__line:nth-child(1) {
  top: 12px;
}

.hamburger__line:nth-child(2) {
  top: 22px;
}

.hamburger__line:nth-child(3) {
  top: 32px;
}

/* 開いた状態での変形 */
.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg);
  top: 22px;
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg);
  top: 22px;
}