/* ==============================================
   合同会社結縁地 Corporate Site - Global Styles
   ============================================== */

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

/* ── CSS Variables ── */
:root {
  --color-green:      #2b4c2b;
  --color-green-mid:  #3d6b3d;
  --color-green-light:#e8f0e8;
  --color-beige:      #f8f6f0;
  --color-beige-dark: #ede9df;
  --color-brown:      #5c473d;
  --color-brown-light:#8c7068;
  --color-white:      #ffffff;
  --color-text:       #333333;
  --color-text-light: #666666;
  --font-serif:       'Noto Serif JP', 'Georgia', serif;
  --font-sans:        'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --transition:       0.3s ease;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.16);
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        16px;
  --max-width:        1100px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.4;
  color: var(--color-green);
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-primary:hover {
  background-color: var(--color-green-mid);
  border-color: var(--color-green-mid);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}
.btn-outline:hover {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-green);
  border-color: var(--color-white);
}
.btn-white:hover {
  background-color: var(--color-beige);
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading .en {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-green-mid);
  display: block;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}
.section-heading p {
  margin-top: 14px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider */
.divider {
  width: 40px;
  height: 2px;
  background: var(--color-green);
  margin: 16px auto 0;
}

/* ===============================================
   HEADER / NAV
   =============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.site-logo .logo-ja {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-green);
  letter-spacing: 0.08em;
}
.site-logo .logo-en {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--color-brown-light);
  text-transform: uppercase;
}

/* Desktop Nav */
.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav a {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: color var(--transition), background-color var(--transition);
}
.global-nav a:hover,
.global-nav a.active {
  color: var(--color-green);
  background-color: var(--color-green-light);
}
.global-nav .nav-contact {
  margin-left: 8px;
  padding: 8px 18px;
  background-color: var(--color-green);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
}
.global-nav .nav-contact:hover {
  background-color: var(--color-green-mid);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}
.hamburger:hover { background-color: var(--color-green-light); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-green);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-green);
  padding: 18px 40px;
  border-bottom: 1px solid var(--color-beige-dark);
  width: 100%;
  text-align: center;
  letter-spacing: 0.1em;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background-color: var(--color-green-light); }
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-green);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================================
   HERO
   =============================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a3520 0%, var(--color-green) 45%, #3a6040 70%, #2d5035 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(92,71,61,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(248,246,240,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}
.hero-title .accent {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 2;
  color: rgba(255,255,255,0.8);
  margin-bottom: 44px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===============================================
   INTRO / PHILOSOPHY
   =============================================== */
.intro-section {
  background-color: var(--color-beige);
  padding: 100px 0;
}
.intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.intro-kanji {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--color-green);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 8px;
  opacity: 0.15;
}
.intro-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-green);
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}
.intro-body {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2.2;
}

/* ===============================================
   BUSINESS CARDS
   =============================================== */
.business-section {
  background-color: var(--color-white);
  padding: 100px 0;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-card {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-green), var(--color-green-mid));
}

.card-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-green);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 16px;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--color-green); }

.business-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-green);
}
.business-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-green);
}
.card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.card-link:hover::after { transform: translateX(4px); }

/* ===============================================
   NEWS / BLOG PREVIEW
   =============================================== */
.news-section {
  background-color: var(--color-beige);
  padding: 100px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-beige-dark);
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-beige-dark);
  transition: background-color var(--transition);
}
.news-item:hover { background-color: rgba(43,76,43,0.03); }

.news-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 90px;
}
.news-cat {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: var(--color-green-light);
  color: var(--color-green);
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}
.news-title {
  font-size: 0.95rem;
  color: var(--color-text);
  flex: 1;
  line-height: 1.6;
}
.news-item:hover .news-title { color: var(--color-green); }

.news-footer {
  text-align: center;
  margin-top: 40px;
}

/* ===============================================
   CTA BANNER
   =============================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-green) 0%, #1a3520 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-white);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background-color: #1a2e1a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-ja {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}
.footer-brand .logo-en {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 2;
  margin-bottom: 24px;
}
.footer-contact-info {
  font-size: 0.8rem;
  line-height: 2;
}
.footer-contact-info a { color: rgba(255,255,255,0.6); }
.footer-contact-info a:hover { color: var(--color-white); }

.footer-nav-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav-list a:hover { color: var(--color-white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  transition: background-color var(--transition), color var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background-color: var(--color-green-mid);
  color: var(--color-white);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ===============================================
   PAGE HERO (inner pages)
   =============================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-green) 0%, #1e3d1e 100%);
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .en-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  background-color: var(--color-beige);
  border-bottom: 1px solid var(--color-beige-dark);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--color-beige-dark);
}
.breadcrumb a { color: var(--color-green); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===============================================
   IMAGE PLACEHOLDER (gradient fallback)
   =============================================== */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-mid) 50%, #3a6040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

/* Tablet */
@media (max-width: 900px) {
  .business-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  .section-padding { padding: 60px 0; }
  .container { padding: 0 18px; }

  /* Header */
  .global-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 260px; text-align: center; }

  /* News */
  .news-item { flex-direction: column; gap: 8px; }
  .news-date { min-width: auto; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===============================================
   ANIMATIONS
   =============================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
