/* =============================================
   Custom styles (ope_sample を参考に拡張)
   ============================================= */

/* --- CSS Variables --- */
:root {
  --gold:         #ff6900;
  --gold-light:   #ff8c42;
  --gold-dark:    #cf2e2e;
  --gold-pale:    #fff5f0;
  --navy:         #fcf6eb;
  --navy-2:       #fff5f0;
  --border-gold:  rgba(255,105,0,0.3);
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --transition:   0.35s cubic-bezier(0.4,0,0.2,1);
  --sticky-cta-h: 68px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-cta-h);
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* --- Serif font --- */
.font-serif {
  font-family: 'Noto Serif JP', serif;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* =============================================
   BACK TO TOP
   ============================================= */
#backToTop {
  position: fixed;
  bottom: calc(var(--sticky-cta-h) + 16px);
  right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,105,0,0.85);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
#backToTop.show { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: rgba(207,46,46,0.9); }

@media (min-width: 1024px) {
  #backToTop { bottom: 32px; right: 32px; width: 48px; height: 48px; }
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border-gold);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  padding: 10px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px)  { .nav-container { padding: 0 32px; } }
@media (min-width: 1024px) { .nav-container { padding: 0 40px; } }

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  cursor: default;
}
.logo-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d2800;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.logo-en {
  font-size: 0.55rem;
  color: rgba(61,40,0,0.5);
  letter-spacing: 0.18em;
  transition: color var(--transition);
}
#navbar.scrolled .logo-jp { color: #3d2800; }
#navbar.scrolled .logo-en { color: rgba(61,40,0,0.5); }

/* PCナビリンク（初期非表示） */
.nav-links { display: none; }

@media (min-width: 1024px) {
  #navbar { padding: 20px 0; }
  #navbar.scrolled { padding: 12px 0; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #3d2800;
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: right;
  }
  .nav-links a:hover { color: var(--gold-light); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  #navbar.scrolled .nav-links a { color: #3d2800; }
  #navbar.scrolled .nav-links a:hover { color: var(--gold); }

  .nav-cta {
    padding: 8px 20px !important;
    border: 1px solid var(--gold) !important;
    border-radius: 0 !important;
    color: var(--gold) !important;
    transition: background var(--transition), color var(--transition) !important;
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover { background: var(--gold) !important; color: #fff !important; }
}

/* =============================================
   HAMBURGER ボタン
   ============================================= */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #3d2800;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
#navbar.scrolled .hamburger span { background: #3d2800; }

#hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
#hamburger-btn.open span:nth-child(2) { opacity: 0; }
#hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

@media (min-width: 1024px) { .hamburger { display: none; } }

/* =============================================
   モバイルメニュー（全画面スライドイン）
   ============================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,14,22,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 90px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-link {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.8);
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: 'Noto Serif JP', serif;
  width: 100%;
  text-align: left;
}
.mobile-link:active { color: var(--gold-light); padding-left: 8px; }

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
.mobile-tel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* =============================================
   HERO GRID OVERLAY（デジタル感）
   ============================================= */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,105,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,105,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

/* =============================================
   SECTION TITLE 装飾ライン
   ============================================= */
.title-ornament {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 16px;
}
.title-ornament-left {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 8px 0 0;
}

/* =============================================
   AOS スクロールアニメーション
   ============================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] {
  transform: translateX(-24px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}
[data-aos="fade-right"] {
  transform: translateX(24px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

/* 遅延 */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }

/* reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   CTA ボタン shimmer（PC のみ）
   ============================================= */
@media (min-width: 1024px) {
  .btn-shimmer {
    background: linear-gradient(
      110deg,
      #ff6900 0%,
      #ff8c42 40%,
      #ff6900 60%,
      #cf2e2e 100%
    );
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
  }
  @keyframes shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
  }
}

/* =============================================
   STICKY CTA BAR（モバイル固定下部）
   ============================================= */
#sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  display: flex;
  height: var(--sticky-cta-h);
  border-top: 1px solid var(--border-gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: opacity 0.3s ease;
}

#sticky-cta .cta-tel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #1A2332;
  color: var(--gold-light);
  text-decoration: none;
  border-right: 1px solid var(--border-gold);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition);
}
#sticky-cta .cta-tel:active { background: #0D1520; }
#sticky-cta .cta-tel i    { font-size: 1.1rem; }
#sticky-cta .cta-tel span {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}

#sticky-cta .cta-consult {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
}
#sticky-cta .cta-consult:hover { background: #fff; color: #ff6900; }
#sticky-cta .cta-consult:active { filter: brightness(0.9); }
#sticky-cta .cta-consult i { font-size: 0.85rem; }

@media (min-width: 1024px) {
  #sticky-cta { display: none; }
}

/* セーフエリア対応 */
.mobile-menu-drawer {
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
}

/* =============================================
   FAQ アコーディオン
   ============================================= */
.faq-item.open {
  border-color: rgba(255,105,0,0.5);
}
.faq-item.open .faq-btn {
  background-color: #fff5f0;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-item.open .faq-answer {
  max-height: 600px;
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: #1A2332;
  border-top: 1px solid var(--border-gold);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (min-width: 768px)  { .footer-inner { padding: 0 32px; } }
@media (min-width: 1024px) { .footer-inner { padding: 0 40px; } }

.footer-top { padding: 52px 0 40px; }
@media (min-width: 768px)  { .footer-top { padding: 64px 0 52px; } }
@media (min-width: 1024px) { .footer-top { padding: 80px 0 64px; } }

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 640px) {
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
}

/* ブランドエリア */
.footer-brand .footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-bottom: 16px;
}
.footer-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
  letter-spacing: 0.04em;
}
@media (min-width: 1024px) {
  .footer-catch { font-size: 1.1rem; }
  .footer-desc  { font-size: 0.8rem; }
}

/* リンクカラム */
.footer-links-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gold);
  text-transform: uppercase;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--gold-light); }

/* お問い合わせブロック */
.footer-contact-block {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  background: rgba(255,105,0,0.04);
}
.footer-address-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-tel {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color var(--transition);
}
.footer-tel:hover { color: rgba(255,255,255,0.7); }
.footer-address-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* フッターボトム */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer-disclaimer {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.85;
  margin-bottom: 10px;
}
.copyright {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* =============================================
   スクロールバー
   ============================================= */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
