/* ========================================
   Common Styles - 知心寺 宿曜鑑定
   Purple × Gold Dark Theme
======================================== */

/* ========== CSS Variables ========== */
:root {
  /* Colors - Dark Theme */
  --color-bg: #0a0614;
  --color-bg-light: #120b1f;
  --color-bg-dark: #050309;
  --color-text: #e8dbb8;
  --color-text-light: rgba(232, 219, 184, 0.7);
  --color-text-muted: rgba(232, 219, 184, 0.5);
  --color-gold: #c9a962;
  --color-gold-light: #e8dbb8;
  --color-gold-dark: #a68b4b;
  --color-gold-pale: rgba(232, 219, 184, 0.95);
  --color-purple: #7b4bb8;
  --color-purple-light: #9b6dcc;
  --color-purple-glow: #a8b4d4;
  --color-border: rgba(123, 75, 184, 0.2);
  --color-border-light: rgba(123, 75, 184, 0.1);

  /* Typography */
  --font-mincho: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-size-base: 1rem;
  --font-size-sm: 13px;
  --font-size-xs: 12px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;
  --font-size-3xl: 26px;
  --font-size-4xl: 32px;
  --font-size-5xl: 42px;
  --line-height-base: 1.9;
  --line-height-tight: 1.6;
  --line-height-loose: 2.2;
  --letter-spacing-base: 0.08em;
  --letter-spacing-wide: 0.15em;
  --letter-spacing-wider: 0.2em;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  --spacing-3xl: 120px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 1000px;
  --max-width-content: 800px;
  --max-width-text: 700px;
  --header-height: 70px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========== Base Styles ========== */
html {
    font-size: 1rem;
    scroll-behavior: smooth;
    background: #0d0820;
}

body {
    font-family: var(--font-mincho);
    font-size: 1rem;
    line-height: 2.1rem;
    color: #ffefcf;
    background: linear-gradient(180deg, #0a0614 0%, #1a0f2e 50%, #0d0820 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-gold-light);
}

p {
    line-height: 2.1rem;
}









@media (max-width: 1024px) {

}


@media (max-width: 768px) {
    body,p {
        font-size: .875rem;
    }
}



@media (max-width: 600px) {
    p {
        line-height: 1.9rem;
    }
}



/* ========== Stars Background ========== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 20%, transparent 70%);
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.3);
}

.star.purple {
  background: radial-gradient(circle, rgba(200,180,255,0.9) 0%, rgba(168,180,212,0.6) 20%, transparent 70%);
  box-shadow: 0 0 5px 1px rgba(168,180,212,0.4);
}

.star.bright {
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, transparent 60%);
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.5), 0 0 15px 4px rgba(201,169,98,0.2);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes twinkleBright {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.8); }
  50% { opacity: 0.8; transform: scale(1.2); }
  75% { opacity: 1; transform: scale(1.6); }
}

/* ========== Layout Utilities ========== */
.l-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}




/*==================================================
　Header
==================================================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-height);
  transition: all var(--transition-base);
}

.header.is-scrolled {
  background: rgba(10, 6, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.header__logo-symbol {
    width: 3.5rem;
    height: 3.5rem;
}

.header__logo-txt {
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-gold-pale);
}

.header__logo a:hover {
  opacity: 0.8;
}


/* Navigation */
.header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__reserve-btn {
    text-align: center;
    display: block;
    min-width: 180px;
    padding: .5rem 1rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #0a0614;
    letter-spacing: .1em;
    border-radius: 3px;
    transition: all var(--transition-base);
}

.header__reserve-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    color: #0a0614;
}

.header__line-btn {
    text-align: center;
    display: block;
    min-width: 180px;
    padding: .5rem 1rem;
    position: relative;
    border: 1px solid #c9a962;
    color: #c9a962;
    background: #0a0614;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.header__line-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    color: #c9a962;
}








.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.header__nav-link:hover {
  color: var(--color-gold-light);
}

.header__nav-link--reserve {
  display: none;
}

/* Mobile Menu Button */
.header__menu-btn {
    display: none;
    width: 56px;
    height: 56px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    z-index: 1001;
}
.header__menu-btn span {
    display: block;
    width: 38px;
    height: 2px;
    background: #fff7e9;
    transition: all var(--transition-base);
    border-radius: 1px;
}
.header__menu-btn.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* メニューが開いたらハンバーガーボタンを即座に隠す */
.header__menu-btn.is-active {
    opacity: 0;
    pointer-events: none;
}






/* ========== Mobile Navigation ========== */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 6, 20, 0.98);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.nav-mobile.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.nav-mobile__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-mobile__close span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-gold-light);
}

.nav-mobile__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-mobile__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-mobile__inner {
    /*display: flex;
    align-items: center;
    justify-content: center;*/
    padding: 5rem 2rem;
}

.nav-mobile__list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.nav-mobile__item {
    margin: .5rem 0;
    border-bottom: 1px solid rgba(123, 75, 184, .3);
}

.nav-mobile__link {
    display: block;
    font-size: 18px;
    color: #ffefcf;
    letter-spacing: 0.15em;
    padding: 10px 0;
}

.nav-mobile__link:hover {
  color: var(--color-gold-light);
}

.nav-mobile__link--reserve {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-bg) !important;
  border-radius: 2px;
}

@media (max-width: 1280px) {
    .header__inner {
        padding: 0 1rem;
    }
    .header__logo-symbol {
        width: 2.5rem;
        height: 2.5rem;
    }
   
    .header__logo-txt {
        font-size: 2rem;
    }
    .header__reserve-btn,
    .header__line-btn {
        min-width: 130px;
        font-size: .9rem;
        padding: .3rem .8rem;
    }
    .header__nav-list li {
        font-size: .875rem;
    }
    
}


@media (max-width: 1024px) {
    .header {
        height: 4.6rem;
    }
    .header__inner {
        padding: 0 1.5rem;
    }
    .header__logo-symbol {
        width: 2.5rem;
        height: 2.5rem;
    }
    .header__logo-txt {
        font-size: 2rem;
    }
    
    .header__menu-btn {
        display: flex;
    }
    .header__nav,
    .header__reserve-btn,
    .header__line-btn {
        display: none;
    }
    .nav-mobile {
        display: block;
    }

}


@media (max-width: 768px) {
    .header {
        height: 3.6rem;
    }
    .header__logo-symbol {
        width: 2rem;
        height: 2rem;
    }
    .header__logo-txt {
        font-size: 1.5rem;
    }
    .header__menu-btn {
        width: 40px;
        height: 40px;
        gap: .5rem;
    }
    .header__menu-btn span {
        width: 36px;
        height: 1.5px;
    }

}




@media (max-width: 600px) {
    
}

















/*==================================================
　Footer
==================================================*/
.footer {
    background: linear-gradient(180deg, rgba(10, 6, 20, 0.8) 0%, rgba(5, 3, 9, 0.95) 100%);
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.footer__inner {
    max-width: 1020px;
    margin: 0 auto;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer__info {}
.footer__logo a {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.footer__logo-symbol {
    width: 5rem;
    height: 5rem;
}
.footer__logo-txt {
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: .15rem;
    color: #ffefcf;
}

.footer__info h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: .5rem;
}

.footer__info p {
  font-size: .875rem;
  line-height: 2;
}

.footer__nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:.5rem;
    list-style: none;
}

.footer__nav a {
    font-size: .875rem;
}

.footer__nav a:hover {
    color: #c9a962;
}

.footer__bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer__copyright {
    font-size: .75rem;
    opacity: 0.5;
}


@media (max-width: 1024px) {
    .footer__content {
        grid-template-columns: 1fr;
    }
    .footer__nav ul {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 768px) {

}


@media (max-width: 600px) {
    .footer__logo a {
        margin-bottom: 1rem;
    }
    .footer__logo-symbol {
        width: 3rem;
        height: 3rem;
    }
    .footer__logo-txt {
        font-size: 2rem;
    }
    .footer__info h3 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    .footer__nav ul {
        gap: 0 .5rem;
    }
    
    
    
    
}








/* ========== Section Common ========== */
.section {
    padding: 5rem 3rem;
    position: relative;
    z-index: 1;
}

.section--bg-light {
  background: rgba(18, 11, 31, 0.5);
}

.section--bg-base {
  background: transparent;
}

.section--bg-dark {
  background: linear-gradient(135deg, rgba(123, 75, 184, 0.15) 0%, rgba(10, 6, 20, 0.9) 100%);
}

.section__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.section__title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section__title-en {
    font-size: .6875rem;
    color: #a8b4d4;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section__title-ja {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .15em;
    color: #ffefcf;
}



.section__title-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

.section__title-ornament-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section__title-ornament-diamond {
    width: 8px;
    height: 8px;
    border: 1px solid #c9a962;
    transform: rotate(45deg);
}



@media (max-width: 1024px) {
    .section__title-ja {
        font-size: 1.75rem;
    }
}



@media (max-width: 768px) {
    .section__title-en {
        margin-bottom: .5rem;
    }
}




@media (max-width: 600px) {
    .section {
        padding: 3rem 2rem;
    }
    .section__title-ja {
        font-size: 1.3rem;
    }
    .section__title-en {
        margin-bottom: 0;
    }
    .section__title-ornament {
        margin: 1.1rem 0;
        gap: .8rem;
    }
    .section__title-ornament-diamond {
        width: 5px;
        height: 5px;
    }
}





/* ========== Buttons ========== */
.btn {
    /*display: inline-block;*/
    letter-spacing: .15rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    padding-top: 2rem;
    margin: 0 auto 1rem;
}

.btn--cta {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #0a0614;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
}

.btn--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 169, 98, 0.4);
    color: var(--color-bg);
}


.btn--primary {
    padding: 1rem 2rem;
    border: 1px solid #c9a962;
    color: #c9a962;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 169, 98, 0.4);
  color: var(--color-bg);
}

.btn--primary {
    padding: 1rem 2rem;
    position: relative;
    border: 1px solid #c9a962;
    color: #c9a962;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.3);
    padding-right: 5rem;
}
.btn--primary::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 1px solid #c9a962;
    border-right: 1px solid #c9a962;
    transform: translateY(-50%) rotate(45deg);
    transition: right var(--transition-base);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 169, 98, 0.4);
    color: #c9a962;
}

.btn--primary:hover::after {
  right: 24px;
}


@media (max-width: 1024px) {

}
@media (max-width: 768px) {

}
@media (max-width: 600px) {

}





/* ========== More Link ========== */
.more-link {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.more-link a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
}

.more-link a:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

/* ========== Gold Line ========== */
.gold-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  margin: var(--spacing-lg) auto;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: calc(var(--header-height) + 20px) var(--spacing-lg) 0;
  position: relative;
  z-index: 1;
}

.breadcrumb__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  list-style: none;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item::after {
  content: '>';
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumb__item:last-child::after {
  content: none;
}

.breadcrumb__link {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.breadcrumb__link:hover {
  color: var(--color-gold-light);
}




@media (max-width: 1024px) {

}
@media (max-width: 768px) {

}
@media (max-width: 600px) {

}



/* ========== Page Header ========== */
.page-header {
    padding-top: 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(18, 11, 31, 0.8) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.page-header__title-en {
    font-size: .75rem;
    color: #a8b4d4;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.page-header__title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .15rem;
    color: #ffefcf;
}




@media (max-width: 1024px) {
    .page-header__title {
        font-size: 1.75rem;
    }

}
@media (max-width: 768px) {

}
@media (max-width: 600px) {
    .page-header {
        padding-top: 2rem;
    }
    .page-header__title {
        font-size: 1.5rem;
    }

}



/* ========== Fixed Reserve Button (Mobile) ========== */
.fixed-reserve {
  display: none;
}



@media (max-width: 768px) {
    .fixed-reserve {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        padding: 12px 20px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        background: rgba(10, 6, 20, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--color-border);
    }
    .fixed-reserve__btn {
        display: block;
        width: 100%;
        padding: .8rem 1.5rem;
        background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
        color: #0a0614;
        text-align: center;
        font-size: 1rem;
        letter-spacing: .15rem;
        border-radius: 3px;
  }
  .footer {
      padding-bottom: calc(var(--spacing-lg) + 80px);
  }

}




@media (max-width: 600px) {
    .fixed-reserve {
        padding: .5rem 1rem;
    }
    .fixed-reserve__btn {
        font-size: .875rem;
        padding: .5rem 1rem;
    }

}



/*==================================================
　Scroll Animation
==================================================*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.is-active {
    opacity: 1;
    transform: translateY(0);
}






/*==================================================
　共　通
==================================================*/
.br-pc {display: block;}
.br-tab {display: none;}
.br-sp {display: none;}

@media (max-width: 1024px) {

}
@media (max-width: 768px) {
    .br-pc {display: block;}
    .br-pc {display: block;}
    .br-sp {display: none;}

}
@media (max-width: 600px) {
    .br-pc {display: none;}
    .br-tab {display: none;}
    .br-sp {display: block;}
}

