/* 全体地盤 */
body {
  font-family: 'Noto Serif JP', serif;
  margin:  0 auto;
}
h1 {
  font-size: clamp(28px, calc(2.5vw + 20px), 48px);
}
h2 {
  font-size: clamp(24px, calc(1.875vw + 10px), 32px);
  font-weight: 700;
}
h3 {
  font-size: clamp(22px, calc(2.4vw + 6px), 28px);
}
p {
  font-size: clamp(14px, calc(1.17vw + 4px), 16px);
}
ol,ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: black;
}
img {
  width: 100%;
  height: auto;
}
.mw {
    max-width: 1000px;
    margin: 0 auto;
}
.sp-br {
    display: none;
}
@media screen and (max-width: 375px) {
  .sp-br {
    display: block;
}
}

/*===== 縦書き設定 =========================*/
.tate {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 2.3;
    letter-spacing: 0.16em;
}
.tate-title {
    line-height: 1.6;
}
/* 縦書き（混植用：英数字を回転させない） */
.tate-mixed {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.tate-box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 54px;
}
.indent {
    display: inline-block;
    margin-top: 76px;
}
@media screen and (max-width: 500px) {
  .tate-box {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}


/*===== ヘッダー =========================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ロゴ */
.logo a {
    display: block;
}
.logo img {
    height: 80px;
    width: auto;
}

/* デスクトップメニュー */
.nav-desktop ul {
    display: flex;
    gap: 40px;
    list-style: none;
}
.nav-desktop a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-desktop a:hover {
    opacity: 0.7;
}
.nav-desktop li {
    font-size: 14px;
}
/* ハンバーガーアイコン */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}
/* モバイルメニュー */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #000;
    z-index: 2000;
    transition: right 0.4s ease;
    overflow-y: auto;
}
.nav-mobile.active {
    right: 0;
}
.nav-mobile nav {
    padding: 80px 40px 100px;
}
.nav-mobile ul {
    list-style: none;
    text-align: center;
}
.nav-mobile li {
    margin-bottom: 56px;
}
.nav-mobile a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}
.nav-mobile a:hover {
    opacity: 1;
}
/* 閉じるボタン（バツ） */
.close-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.close-btn span {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #fff;
}
.close-btn span:first-child {
    transform: rotate(45deg);
}
.close-btn span:last-child {
    transform: rotate(-45deg);
}
/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}
.logo-sp {
    display: none;
}
.logo-humburger {
    max-width: 80px;
    margin: 0 auto 85px;
}
/* ヘッダー文字色変更アニメーション */
.nav-desktop a {
    transition: color 0.3s;
}
.header.nav-white .nav-desktop a {
    color: #fff;
}
.header.nav-black .nav-desktop a {
    color: #000;
}
.nav-desktop a:hover {
    opacity: 0.7;
}
/* ハンバーガーメニューアイコン色 */
.header.nav-white .hamburger span {
    background: #fff;
}
.header.nav-black .hamburger span {
    background: #000;
}
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-mobile {
        width: 100%;
        max-width: none;
    }
}
@media screen and (max-width: 500px) {
  .logo {
      display: none;
    }
    .header-inner {
      justify-content: flex-end;
    }
    .logo-sp {
      display: block;
      position: absolute;
      top: 15%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin: 0;
      max-width: 70px;
  }
}

/* fade-in アニメーション */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* 下からマスクで出す（縦書き対応） */
.mask-bottom {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s ease, opacity 0.8s ease;
}

/* 表示 */
.fade-in.is-show {
  opacity: 1;
}

.fade-in.is-show.mask-bottom {
  clip-path: inset(0 0 0 0);
}