/* ====================================
   Main Stylesheet - Final Version
   ==================================== */

/* --- 1. 基本リセット --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; background: var(--black); color: var(--off-white); font-family: 'Noto Serif JP', 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.7; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* --- 2. サイト全体の基本スタイル --- */
.body__wrapper { position: relative; width: 100%; overflow: hidden; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- 3. ヘッダー --- */
.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; transition: background-color 0.3s; }
.header.is-scrolled { position: fixed; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 70px; max-width: 1600px; margin: 0 auto; padding: 0 50px; }
.header__logo a { display: block; color: var(--white); }
.header__logo .logo-sub { display: block; font-size: 12px; font-family: 'Cormorant Garamond', serif; letter-spacing: 0.1em; opacity: 0.8; }
.header__logo .logo-main { display: block; font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; letter-spacing: 0.05em; }
.header__nav-list { display: flex; gap: 40px; }
.header__nav-link { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding: 5px 0; }
.header__nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.header__nav-link:hover::after, .header__nav-link.current::after { transform: scaleX(1); transform-origin: left; }

/* --- 4. スマホ用メニューパネル --- */
.sp-menu { display: none; position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.98); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); z-index: 5000; }
.sp-menu.is-active { transform: translateX(0); }
.sp-menu__nav { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.sp-menu__list { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.sp-menu__link { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--white); padding: 10px 20px; }

/* --- 5. PC / SP 表示切り替えの基本ルール (最重要) --- */
@media (max-width: 768px) {
    .sp-menu { display: block !important; }
    .sp-menu { display: block !important; }
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
}
@media (min-width: 769px) {
    .sp-only { display: none !important; }
}

/* --- ハンバーガーメニューボタンのスタイル --- */
.header__hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}
.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 11px; }
.header__hamburger span:nth-child(3) { top: 22px; }

/* --- スマホメニューの表示制御 --- */
.sp-menu.active {
    transform: translateX(0) !important;
}
.header__hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}
