/* ===== FUJI KENSHO - Common Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;700&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
  --green-dark:   #2d5a3d;
  --green-mid:    #3d7a55;
  --green-light:  #5a9e72;
  --green-pale:   #e8f2ec;
  --navy:         #1e2e45;
  --navy-mid:     #2e4263;
  --gold:         #b8965a;
  --gold-light:   #d4b07a;
  --white:        #ffffff;
  --off-white:    #f7f9f7;
  --gray-light:   #e8ece9;
  --gray-mid:     #a0ada5;
  --gray-dark:    #4a5450;
  --text-main:    #2a3028;
  --text-sub:     #5a6560;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;

  --shadow-sm: 0 2px 8px rgba(30,46,69,0.08);
  --shadow-md: 0 6px 24px rgba(30,46,69,0.12);
  --shadow-lg: 0 16px 48px rgba(30,46,69,0.16);

  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

/* ===== NAVIGATION ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-dark);
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--green-mid);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.site-nav a:hover { color: var(--green-dark); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--green-dark); font-weight: 700; }
.site-nav a.active::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  transition: var(--transition);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-light);
  padding: 0.6rem 2rem;
  font-size: 0.8rem;
  color: var(--gray-mid);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--green-mid); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray-mid); }

/* ===== MAIN CONTENT WRAPPER ===== */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--green-light);
  display: inline-block;
}

.section-sub {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== INFO TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.info-table th, .info-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
  text-align: left;
}
.info-table th {
  width: 180px;
  color: var(--green-dark);
  font-weight: 600;
  background: var(--green-pale);
  white-space: nowrap;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-logo img { height: 40px; opacity: 0.9; margin-bottom: 0.75rem; }
.footer-logo p { font-size: 0.8rem; line-height: 1.7; }

.footer-nav h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--green-light); }

.footer-contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-contact p { font-size: 0.82rem; line-height: 1.9; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 99;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); background: var(--green-mid); }

/* ===== UTILITY ===== */
.text-gold { color: var(--gold); }
.bg-pale { background: var(--off-white); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 2rem; border-bottom: 1px solid var(--gray-light); }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; }
  .content-wrap { padding: 2.5rem 1rem; }
  .page-hero { padding: 2.5rem 1rem; }
  .info-table th { width: 120px; }
}
