/* ===================================================
   笑成 (Shosei) - Common Styles
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&family=Cinzel:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #E86A2B;
  --primary-dark: #C4521E;
  --primary-light: #FF8A50;
  --gold: #C8A028;
  --gold-light: #E8C558;
  --gold-dark: #9E7E1A;
  --dark: #1A1A1A;
  --text: #333333;
  --text-mid: #555555;
  --text-light: #888888;
  --bg: #FFFFFF;
  --bg-warm: #FDF7EF;
  --bg-section: #F5EFE6;
  --border: #E5D8C8;
  --shadow: rgba(200, 130, 40, 0.12);
  --header-h: 80px;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading .en {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-heading .lead {
  margin-top: 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3A2810 100%);
  padding: 100px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/笑成.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__en {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #FFFFFF;
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

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

.breadcrumb__sep {
  opacity: 0.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 106, 43, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #FFFFFF;
  border-color: var(--gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 160, 40, 0.4);
}

.btn--white {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
}

.btn--white:hover {
  background: var(--bg-warm);
  transform: translateY(-2px);
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.section {
  padding: 90px 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section--orange {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
}

.section--dark {
  background: var(--dark);
  color: #FFFFFF;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-text .ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.header-logo-text .en {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  white-space: nowrap;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a:hover::after {
  width: 60%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-tel {
  text-align: right;
}

.header-tel .label {
  font-size: 0.65rem;
  color: var(--text-light);
  display: block;
}

.header-tel .number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.03em;
}

.header-tel .number:hover {
  color: var(--primary);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  margin-bottom: 24px;
}

.mobile-nav ul li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav ul li a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav ul li a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav .header-tel {
  text-align: center;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}

.mobile-nav .header-tel .number {
  font-size: 1.4rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand .logo-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.footer-brand .logo-en {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-nav-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  padding-left: 12px;
  position: relative;
}

.footer-nav ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.footer-nav ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* --- Contact Banner --- */
.contact-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #8B3A12 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.03) 30px,
    rgba(255,255,255,0.03) 60px
  );
}

.contact-banner__inner {
  position: relative;
  z-index: 1;
}

.contact-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.contact-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.contact-banner__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===================================================
   Responsive
   =================================================== */

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .header-cta .header-tel {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .footer-top-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero {
    padding: 80px 20px 48px;
  }

  .contact-banner__btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-banner__btns .btn {
    width: 100%;
  }
}
