/* =============================================
   日伊協会 — Shared Stylesheet
   ============================================= */

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

:root {
  --green:  #1a6b3c;
  --red:    #c0392b;
  --cream:  #faf8f3;
  --dark:   #1a1a1a;
  --gray:   #555555;
  --light:  #f0ede6;
  --gold:   #c9a84c;
  --border: #e0d9cc;
  --serif-en: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --serif-ja: 'Noto Serif JP', serif;
  --sans-ja:  'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans-ja);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.8;
  font-weight: 400;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- UTILITIES --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  color: var(--dark);
}

.section-title-en {
  font-family: var(--serif-en);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  line-height: 1.08;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-family: var(--sans-ja);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  border: 1px solid currentColor;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.btn-dark {
  background: var(--dark); color: #fff; border-color: var(--dark);
}
.btn-dark:hover { background: var(--green); border-color: var(--green); }

.btn-outline {
  background: transparent; color: var(--dark); border-color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: #fff; }

.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: #fff; color: var(--dark); }

.btn-green {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn-green:hover { background: #155232; border-color: #155232; }

.btn-red {
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn-red:hover { background: #a93226; border-color: #a93226; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,243,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo { display: flex; flex-direction: column; gap: 3px; padding: 4px 0; }
.logo-flag { display: flex; gap: 4px; margin-bottom: 5px; }
.logo-flag span { width: 9px; height: 9px; border-radius: 50%; }
.flag-g { background: #009246; }
.flag-w { background: #fff; border: 1px solid #ddd; }
.flag-r { background: #ce2b37; }
.logo-ja {
  font-family: var(--serif-ja); font-size: 1.1rem;
  font-weight: 500; letter-spacing: 0.15em; color: var(--dark);
}
.logo-it {
  font-family: var(--serif-en); font-size: 0.69rem;
  font-style: italic; letter-spacing: 0.18em; color: #888;
}

.site-nav {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.site-nav a {
  font-size: 0.76rem; letter-spacing: 0.04em; color: #777;
  position: relative; transition: color 0.2s; white-space: nowrap;
  font-weight: 400;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--green); transition: width 0.3s;
}
.site-nav a:hover { color: var(--dark); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.active { color: var(--green); }
.site-nav a.active::after { width: 100%; }

.header-cta {
  font-size: 0.78rem; padding: 10px 24px;
}

/* --- SVG ICONS --- */
.svg-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.svg-icon-sm {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  padding-top: 84px;
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%);
}

/* Italian flag stripe */
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(to bottom, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%);
  z-index: 2;
}

.page-hero-content {
  position: relative; z-index: 2;
  padding: 0 80px 52px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.page-hero-label::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}

.page-hero-title {
  font-family: var(--serif-ja);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; color: #fff; line-height: 1.25;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--gray);
}
.breadcrumb-inner a { color: var(--gray); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--dark); }

/* --- FLAG DIVIDER --- */
.flag-divider {
  height: 3px;
  background: linear-gradient(to right, #009246 33.3%, #fff 33.3% 66.6%, #ce2b37 66.6%);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand .logo-ja { color: #fff; font-size: 1.1rem; }
.footer-brand .logo-it { color: rgba(255,255,255,0.4); }

.footer-desc {
  font-size: 0.8rem; line-height: 1.9; margin-top: 20px;
  color: rgba(255,255,255,0.45);
}

.footer-flag {
  display: flex; width: 32px; height: 4px; margin-top: 20px;
  overflow: hidden; border-radius: 2px;
}
.footer-flag span { flex: 1; }

.footer-col-title {
  font-family: var(--serif-en); font-style: italic;
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 20px;
}

.footer-links {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  transition: color 0.2s; letter-spacing: 0.04em;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy {
  font-family: var(--serif-en); font-size: 0.72rem;
  color: rgba(255,255,255,0.25); letter-spacing: 0.1em;
}

.footer-policy { display: flex; gap: 24px; }
.footer-policy a { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-policy a:hover { color: rgba(255,255,255,0.7); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .site-nav { display: none; }
  .page-hero-content { padding: 0 32px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
