/* ======== ハンバーガーメニュー・アニメーション ======== */
.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  cursor: pointer;
  z-index: 1201;
  margin-right: 16px;
  align-items: center;
  transition: background 0.3s;
}
a{
text-decoration: none;}
.hamburger__line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 1.25px;
  transition: all .6s cubic-bezier(.56,2,.34,.77);
}
.hamburger__line:nth-child(1) { top: 8px; }
.hamburger__line:nth-child(2) { top: 16px; }
.hamburger__line:nth-child(3) { top: 24px; }
.hamburger.active .hamburger__line { background-color: #fff; }
.hamburger.active .hamburger__line:nth-child(1) { transform: translateX(-50%) translateY(8px) rotate(-45deg);}
.hamburger.active .hamburger__line:nth-child(2) { opacity: 0;}
.hamburger.active .hamburger__line:nth-child(3) { transform: translateX(-50%) translateY(-8px) rotate(45deg);}

/* ===== body.mobile用：大きいボタン＆ハンバーガー ===== */


  .mobile-menu-overlay,
  .mobile-nav {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    pointer-events: none;
  }
  .mobile-menu-overlay.open,
  .mobile-nav.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 14, 14, 0.98);
    z-index: 2010;
  }
  .mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    min-height: 100vh;
    background: #130e0e;
    z-index: 2020;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 縦中央揃え */
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
  }
  .mobile-nav .close-mobile-nav {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    background: none;
    border: none;
    font-size: 2.2em;
    width: 44px;
    height: 44px;
    z-index: 9999;
    opacity: 1;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  /* 検索フォーム */
  .mobile-nav .mobile-search {
    margin: 0 0 32px 0;
    width: 80vw;
    max-width: 480px;
    align-self: center;
    display: flex;
    justify-content: center;
    position: relative;
  }
  .mobile-nav .mobile-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    opacity: 0.85;
    width: 26px;
    height: 26px;
    pointer-events: none;
  }
  .mobile-nav .mobile-search input[type="text"] {
    width: 100%;
    border: none;
    background: none;
    border-radius: 30px;
    padding: 13px 16px 13px 38px; /* ←アイコンとの距離縮める */
    color: #fff;
    font-size: 1.3em;
    font-weight: 500;
    outline: none;
    background-color: transparent;
    border: 1.6px solid #fff;
    box-sizing: border-box;
    margin: 0;
  }
  .mobile-nav .mobile-search input::placeholder {
    color: #fff;
    opacity: 0.7;
  }
  .mobile-nav .mobile-search button[type="submit"] {
    display: block;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 2;
  }
  /* グラデ線 汎用 */
  .mobile-nav-divider {
    width: 80vw;
    max-width: 600px;
    height: 4px;
    margin: 32px auto;
    background: linear-gradient(90deg, #5fc3e4 0%, #a17efe 100%);
    border-radius: 4px;
    opacity: 0.8;
    align-self: center;
  }
  /* メニュー中央縦並び、文字2倍 */
  .mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 18px;
    margin-bottom: 32px;
  }
  .mobile-nav-menu a,
  .mobile-nav a {
    font-size: 2em; /* ←2倍サイズ */
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    width: auto;
    min-width: 160px;
    text-align: center;
    margin: 0;
    background: none;
    border: none;
    display: block;
    letter-spacing: 0.01em;
    transition: color .22s;
  }
  .mobile-nav a:hover,
  .mobile-nav-menu a:hover {
    color: #d37eff;
  }
  .mobile-nav-logo {
    margin: 36px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  .mobile-nav-logo img {
    width: 160px;
    margin-bottom: 12px;
  }
  .mobile-nav-logo-sub {
    color: #fff;
    font-size: 0.95em;
    letter-spacing: 0.01em;
    opacity: 0.85;
    text-align: center;
  }

/* ===== ヘッダー共通レイアウト ===== */
.header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid #f4f4f4;
}
.header-inner {
  max-width: 1368px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 36px 26px 36px;
  box-sizing: border-box;
  position: relative;
}

/* スマホ版でのヘッダー調整 */
@media (max-width: 768px) {
  .header-inner {
    max-width: 100vw;
    padding: 0 12px;
    gap: 10px;
    box-sizing: border-box;
  }
  .header {
    min-width: 0;
    width: 100vw;
    box-sizing: border-box;
  }
  
  .header-logo {
    min-width: auto;
    margin-right: 0;
  }
  
  .header-logo img {
    height: 40px;
  }
  
  .hamburger {
    margin-right: 0;
    width: 40px;
    height: 40px;
  }
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 142px;
  margin-right: 28px;
}
.header-logo img {
  height: 48px;
  margin-bottom: 2px;
}
.header-logo-sub {
  font-size: 0.77em;
  color: #666;
  margin-left: 4px;
  letter-spacing: .01em;
  margin-top: -8px;
}
.header-search {
  position: relative;
  flex: 1;
  max-width: 410px;
  min-width: 210px;
  background: #fff;
  border-radius: 999px;
  border: 1.5px solid #DCDCDC;
  box-shadow: none;
  display: flex;
  align-items: center;
  margin: 0 40px 0 0;
  height: 42px;
  font-size: 1em;
  transition: all .2s cubic-bezier(.4,2,.6,1.4);
}
.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  transition: width .2s, height .2s, left .2s;
}
.header-search input[type="text"] {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1em;
  color: #bbb;
  flex: 1;
  padding: 0 16px 0 44px;
  border-radius: 999px;
  height: 42px;
  line-height: 42px;
  box-sizing: border-box;
  transition: font-size .2s, height .2s, padding .2s;
}
.header-search input[type="text"]::placeholder {
  color: #bbb;
  font-weight: 500;
  opacity: 1;
}
.header-search button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: none;
}
.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 0 26px 0 6px;
}
.nav a {
  color: #222;
  font-size: 1.13em;
  font-weight: 500;
  transition: color .14s;
  letter-spacing: 0.01em;
  position: relative;
  padding: 3px 6px;
  display: inline-block;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #e7ffbb;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.56,2,.34,.77);
  z-index: 0;
}
.nav a:hover::after,
.nav a:focus::after,
.nav a.active::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.login-btn {
  background: #393939;
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 180px;
  height: 60px;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all .14s;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}
.login-btn .login-icon {
  width: 30px;
  height: 30px;
  display: block;
}
.login-btn span {
  font-size: 1.04em;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.post-btn {
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 180px;
  height: 60px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all .14s;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}
.login-btn.logout-btn {
  background: #393939;
}
.login-btn.post-btn {
  background: #807DFF;
  margin-right: 8px;
}

.login-btn.mypage-btn {
  background: #454545;
  white-space: nowrap;
}

.login-btn .mypage-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.login-btn svg {
  margin-left: 8px;
  vertical-align: middle;
}

/* ハンバーガーはスマホ時のみ表示。PCでは非表示 */
.hamburger { display: none; }
@media (max-width: 1200px) {
  .header-search,
  .nav,
  .header-actions {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
    /* position: fixed !important; */
    position: relative !important;
    top: 20px;
    right: 20px;
    left: auto;
    margin: 0;
    z-index: 3000;
    background: #130e0e;
    box-shadow: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 1201px) {
  .hamburger { display: none !important; }
}

/* PC用ナビ/ボタン類/検索欄は1200px以下で非表示 */
@media (max-width: 1200px) {
  .header-search,
  .nav,
  .header-actions {
    display: none !important;
  }
}

/* ---- モバイルナビ・オーバーレイ（初期状態は非表示） ---- */
.mobile-menu-overlay,
.mobile-nav {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  pointer-events: none;
}
.mobile-menu-overlay.open,
.mobile-nav.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 14, 14, 0.98);
  z-index: 2010;
}

/* ===== 1200px以下モバイルメニュー中央寄せレイアウト ===== */
@media (max-width: 1200px) {
  /* ハンバーガー固定 */
  .hamburger {
    display: flex !important;
    position: absolute !important;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    margin: 0;
    z-index: 3000;
    background: #130e0e;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }
  .mobile-nav a{
text-decoration: none;
  }
  .header-search, .nav, .header-actions { display: none !important; }

  /* オーバーレイ/メニュー表示制御 */
  .mobile-menu-overlay,
  .mobile-nav {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    pointer-events: none;
  }
  .mobile-menu-overlay.open,
  .mobile-nav.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 14, 14, 0.98);
    z-index: 2010;
  }
  .mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    min-height: 100vh;
    background: #130e0e;
    z-index: 2020;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    padding: 0;
  }

  /* 閉じるボタン：右上 */
  .mobile-nav .close-mobile-nav {
    position: absolute;
    top: 38px;
    right: 48px;
    color: #fff;
    background: none;
    border: none;
    font-size: 2.8em;
    width: 46px;
    height: 46px;
    z-index: 2100;
    opacity: 1;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  /* 検索欄：クローズボタン下に80%幅・中央 */
  .mobile-nav .mobile-search {
    margin: 96px auto 38px auto;
    width: 80vw;
    max-width: 480px;
    min-width: 220px;
    align-self: center;
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 32px;
    background: none;
  }
  .mobile-nav .mobile-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    opacity: 0.85;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 1;
  }
  .mobile-nav .mobile-search input[type="text"] {
    width: 100%;
    border: 1.8px solid #fff;
    border-radius: 32px;
    background: transparent;
    padding: 18px 20px 18px 48px;
    color: #fff;
    font-size: 1.3em;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    margin: 0;
    transition: border 0.18s;
  }
  .mobile-nav .mobile-search input::placeholder {
    color: #fff;
    opacity: 0.8;
  }
  .mobile-nav .mobile-search button[type="submit"] {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6em;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
  }

  /* グラデ横線：幅80%・中央 */
  .mobile-nav-divider {
    width: 80vw;
    max-width: 600px;
    min-width: 180px;
    height: 4px;
    margin: 36px auto 36px auto;
    background: linear-gradient(90deg, #5fc3e4 0%, #a17efe 100%);
    border-radius: 4px;
    opacity: 0.82;
    align-self: center;
  }

  /* メニュー本体（中央揃え） */
  .mobile-nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
    margin: 0 0 0 0;
  }
  .mobile-nav-menu a,
  .mobile-nav a {
    font-size: 2em;
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    text-align: center;
    margin: 0;
    background: none;
    border: none;
    display: block;
    letter-spacing: 0.01em;
    transition: color .22s;
  }
  .mobile-nav a:hover,
  .mobile-nav-menu a:hover {
    color: #d37eff;
  }

  /* ロゴ最下部に */
  .mobile-nav-logo {
    margin-top: auto;
    margin-bottom: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  .mobile-nav-logo img {
    width: 170px;
    margin-bottom: 12px;
  }
  .mobile-nav-logo-sub {
    color: #fff;
    font-size: 1em;
    letter-spacing: 0.01em;
    opacity: 0.9;
    text-align: center;
  }


}
/* PCではモバイルメニュー強制非表示 */
@media (min-width: 1201px) {
  .mobile-nav, .mobile-menu-overlay { display: none !important; }
}

/* ===== フッター ===== */
.footer {
  background: #f8f8f9;
  border-top: 4px solid #beadfd;
  padding-bottom: 42px;
  margin-top: 60px;
  box-sizing: border-box;
  font-weight: 600;
}
.footer-link {
  color: #3E3E3E;
  text-decoration: none;
  font-size: 14px;
  margin: 0 2px;
  transition: color .13s;
}
.footer-link:hover {
  color: #a179e6;
  text-decoration: underline;
}
.footer-logo img {
  display: block;
  margin: 0 auto;
}
