/* ========================================
   GRAN PARMU - Global Styles
   参考テイスト: kokuu-sotoha.com
   白/クリーム基調・筑紫系明朝・和モダン
   ======================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 参考サイト準拠カラー (ライト系・暖白) */
  --color-bg: #fcfaf7;
  --color-bg-white: #ffffff;
  --color-bg-cream: #f5f0e8;
  --color-bg-warm: #ede6da;
  --color-bg-dark: #2b2520;
  --color-bg-dark-sub: #3a332c;
  --color-text: #2e2b24;
  --color-text-sub: #5d574e;
  --color-text-muted: #837c70;
  --color-text-white: #f0ebe3;
  --color-accent: #b09070;
  --color-accent-light: #c8ab8d;
  --color-border: #ddd6cb;
  --color-border-light: #eae4db;

  /* 参考サイト: tsukushioldmincho → Noto Serif JPで代替 */
  --font-heading: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-body: 'Noto Sans JP', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-en: 'Cormorant Garamond', 'Times New Roman', serif;

  --fs-hero: clamp(36px, 5.5vw, 64px);
  --fs-section-title: clamp(28px, 4vw, 48px);
  --fs-section-sub: clamp(11px, 1.2vw, 13px);
  --fs-h3: clamp(22px, 2.8vw, 32px);
  --fs-body: clamp(15px, 1.2vw, 17px);
  --fs-small: clamp(12px, 1vw, 14px);
  --fs-nav: 13px;

  --section-padding: clamp(80px, 12vw, 140px);
  --content-width: 980px;
  --content-width-narrow: 680px;
  --header-height: 76px;

  --ease-out: cubic-bezier(.37, 0, .63, 1);
  --ease-in-out: cubic-bezier(.87, 0, .13, 1);
}

html { font-size: 10px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 2;
  letter-spacing: .04em;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.heading-en {
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.heading-jp {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.8;
}

/* --- Layout --- */
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: var(--content-width-narrow); margin: 0 auto; padding: 0 40px; }

.section { padding: var(--section-padding) 0; background-color: var(--color-bg); }
.section--cream { background-color: var(--color-bg-cream); }
.section--warm { background-color: var(--color-bg-warm); }
.section--white { background-color: var(--color-bg-white); }
.section--light { background-color: var(--color-bg-cream); }
.section--dark { background-color: var(--color-bg-dark); color: var(--color-text-white); }

/* --- Section Title (参考サイト準拠: 英語小+和タイトル+縦線) --- */
.section-title { text-align: center; margin-bottom: 64px; }

.section-title__en {
  font-family: var(--font-en);
  font-size: var(--fs-section-sub);
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

.section-title__jp {
  font-family: var(--font-heading);
  font-size: var(--fs-section-title);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.5;
  display: block;
}

.section-title__line {
  display: block;
  width: 1px;
  height: 32px;
  background-color: var(--color-accent);
  margin: 20px auto 0;
}

.section--dark .section-title__en { color: var(--color-accent-light); }
.section--dark .section-title__jp { color: var(--color-text-white); }
.section--dark .section-title__line { background-color: var(--color-accent-light); }

/* --- Buttons (参考サイト: ボーダー+ホバーフィル) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 44px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn span { position: relative; z-index: 1; }

.btn--white { border-color: #fff; color: #fff; }
.btn--white:hover { background-color: #fff; color: var(--color-bg-dark); }

.btn--accent { border-color: var(--color-accent); color: var(--color-accent); }
.btn--accent:hover { background-color: var(--color-accent); color: #fff; }

.section--dark .btn { border-color: rgba(255,255,255,.5); color: var(--color-text-white); }
.section--dark .btn:hover { background-color: var(--color-text-white); color: var(--color-bg-dark); }

/* --- Image --- */
.img-wrap { overflow: hidden; position: relative; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.img-wrap--zoom:hover img { transform: scale(1.04); }

/* --- Scroll Animation (参考サイト: opacity+transform) --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in[data-delay="1"] { transition-delay: .1s; }
.fade-in[data-delay="2"] { transition-delay: .2s; }
.fade-in[data-delay="3"] { transition-delay: .3s; }
.fade-in[data-delay="4"] { transition-delay: .4s; }
.fade-in[data-delay="5"] { transition-delay: .5s; }
.fade-in-left[data-delay="1"],.fade-in-right[data-delay="1"] { transition-delay: .1s; }
.fade-in-left[data-delay="2"],.fade-in-right[data-delay="2"] { transition-delay: .2s; }
.fade-in-left[data-delay="3"],.fade-in-right[data-delay="3"] { transition-delay: .3s; }

/* --- Page Transition (参考サイト: OutIn effect) --- */
.page-transition {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--color-bg-cream);
  z-index: 9999; pointer-events: none;
  transform: translateY(100%);
}
.page-transition.is-active { animation: slideUp .6s var(--ease-in-out) forwards; }
.page-transition.is-leaving { animation: slideDown .6s var(--ease-in-out) forwards; }
@keyframes slideUp { 0%{transform:translateY(100%)} 100%{transform:translateY(0)} }
@keyframes slideDown { 0%{transform:translateY(0)} 100%{transform:translateY(-100%)} }

/* --- Header (常時白背景) --- */
.header {
  position: fixed; top: 0; left: 0;
  width: 100%; height: var(--header-height);
  z-index: 1000;
  background-color: rgba(252,250,247,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header.is-scrolled {
  background-color: rgba(252,250,247,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1100px; margin: 0 auto; padding: 0 36px;
}

.header__logo {
  display: flex; align-items: center;
  height: 100%;
}
.header__logo a { display: flex; align-items: center; height: 100%; }
.header__logo-img {
  height: calc(var(--header-height) - 24px); width: auto;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav__link {
  font-family: var(--font-en);
  font-size: var(--fs-nav); font-weight: 300;
  letter-spacing: .12em;
  color: var(--color-text-sub);
  padding: 4px 0;
  transition: color .4s ease;
  text-transform: uppercase;
  position: relative;
}

.nav__link:hover { color: var(--color-text); }

.nav__link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 1px;
  background-color: var(--color-accent);
  transition: width .4s ease, left .4s ease;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { width: 100%; left: 0; }

/* Hamburger */
.hamburger {
  display: none; width: 26px; height: 16px;
  position: relative; z-index: 1100; cursor: pointer;
}
.hamburger__line {
  display: block; width: 100%; height: 1px;
  background-color: #fff; position: absolute; left: 0;
  transition: all .4s ease;
}
.header.is-scrolled .hamburger__line { background-color: var(--color-text); }
.hamburger__line:nth-child(1) { top: 0; }
.hamburger__line:nth-child(2) { top: 50%; }
.hamburger__line:nth-child(3) { bottom: 0; }
.hamburger.is-active .hamburger__line:nth-child(1) { top: 50%; transform: rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }
.hamburger.is-active .hamburger__line { background-color: var(--color-text); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background-color: rgba(252,250,247,.98);
  backdrop-filter: blur(16px);
  z-index: 1050;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.mobile-menu.is-active { opacity: 1; visibility: visible; }
.mobile-menu__nav { text-align: center; }
.mobile-menu__link {
  display: block; font-family: var(--font-en);
  font-size: 14px; letter-spacing: .18em;
  text-transform: uppercase; padding: 14px 0;
  color: var(--color-text-sub);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease, color .3s ease;
}
.mobile-menu__link:hover { color: var(--color-text); }
.mobile-menu.is-active .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-active .mobile-menu__link:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(2) { transition-delay: .1s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(3) { transition-delay: .15s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(4) { transition-delay: .2s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(5) { transition-delay: .25s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(6) { transition-delay: .3s; }
.mobile-menu.is-active .mobile-menu__link:nth-child(7) { transition-delay: .35s; }

/* --- Footer (ヘッダーと同じ白背景) --- */
.footer {
  background-color: rgba(252,250,247,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4a4a4a;
  padding: 80px 0 36px;
}
.footer__inner { max-width: var(--content-width); margin: 0 auto; padding: 0 40px; }
.footer__top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.footer__logo {
  margin-bottom: 20px;
}
.footer__logo-img {
  height: 48px; width: auto;
  object-fit: contain;
}
.footer__info p { font-size: var(--fs-small); line-height: 2; color: #999; }
.footer__nav-title {
  font-family: var(--font-en); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 20px; color: #e63312;
}
.footer__nav-link {
  display: block; font-size: var(--fs-small);
  color: #999; padding: 5px 0;
  transition: color .3s ease;
}
.footer__nav-link:hover { color: #4a4a4a; }
.footer__bottom {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__copyright {
  font-family: var(--font-en); font-size: 12px;
  color: #bbb; letter-spacing: .08em;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-size: 12px; color: #bbb; transition: color .3s; }
.footer__bottom-links a:hover { color: #4a4a4a; }

/* --- CTA Float --- */
.cta-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 900; display: flex; flex-direction: column; gap: 10px;
}
.cta-float__btn {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cta-float__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cta-float__btn--tel { background-color: var(--color-accent); }
.cta-float__btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.cta-float__btn svg { width: 20px; height: 20px; fill: currentColor; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --header-height: 56px; --section-padding: clamp(48px, 10vw, 90px); }
  .nav { display: none; }
  .hamburger { display: block; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .container, .container--narrow { padding: 0 20px; }
  .section-title { margin-bottom: 44px; }
  .btn { min-width: 160px; padding: 13px 32px; }
}

@media (max-width: 480px) {
  .cta-float { bottom: 14px; right: 14px; }
  .cta-float__btn { width: 44px; height: 44px; }
}

/* PC only: 全フォント1.2倍 */
@media (min-width: 769px) {
  :root {
    --fs-hero: clamp(43px, 6.6vw, 77px);
    --fs-section-title: clamp(34px, 4.8vw, 58px);
    --fs-section-sub: clamp(13px, 1.4vw, 16px);
    --fs-h3: clamp(26px, 3.4vw, 38px);
    --fs-body: clamp(18px, 1.4vw, 20px);
    --fs-small: clamp(14px, 1.2vw, 17px);
    --fs-nav: 16px;
  }
  .btn { font-size: 16px; padding: 19px 56px; }
  .header__logo-img { height: calc(var(--header-height) - 20px); }
  .footer__logo-img { height: 52px; }
  .footer__nav-title { font-size: 14px; }
  .footer__copyright { font-size: 14px; }
  .footer__bottom-links a { font-size: 14px; }
}
