/* =============================================
   Pine Mobility — style.css
   ============================================= */

:root {
  --pine: #2d5a3d;
  --pine-deep: #1e3f2b;
  --pine-light: #3a7a52;
  --pine-pale: #e8f0eb;
  --cream: #f9f7f2;
  --cream-dark: #f0ece3;
  --bark: #5c4a3a;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #8a8580;
  --white: #ffffff;
  --border: #e2ddd4;
  --line-green: #06C755;
  --font-en: 'Outfit', sans-serif;
  --font-en-accent: 'Playfair Display', serif;
  --font-heading: 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --side: clamp(20px, 5vw, 80px);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--cream);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: all 0.4s;
}
header.scrolled {
  background: rgba(249,247,242,0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

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

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-pine { width: 36px; height: 36px; }
.logo-pine svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-en);
  font-size: 20px; font-weight: 800;
  color: var(--pine-deep); letter-spacing: 0.5px;
}
.logo-text span { color: var(--pine-light); }

nav { display: flex; gap: 28px; align-items: center; }
nav a {
  color: var(--text-mid); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color 0.3s;
}
nav a:hover { color: var(--pine); }

.nav-contact {
  background: var(--pine) !important; color: #fff !important;
  padding: 10px 22px; border-radius: 8px;
  font-weight: 700 !important; transition: background 0.3s;
}
.nav-contact:hover { background: var(--pine-deep) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--text);
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: currentColor; margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: var(--pine-deep); overflow: hidden;
}
.hero-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background: linear-gradient(135deg, #3a5a42 0%, #1e3328 50%, #2a4a38 100%);
}
/* When hero photo is set, use this class instead */
.hero-bg-image.has-photo {
  background: none;
}
.hero-bg-image.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-noise {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(30,63,43,0.3) 0%,
    rgba(30,63,43,0.1) 40%,
    rgba(30,63,43,0.6) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1300px; margin: 0 auto;
  padding: 140px var(--side) 100px; width: 100%;
}

.hero-catch { color: #fff; animation: heroFade 1s ease-out; }

.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en-accent);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 28px; font-style: italic;
}
.hero-label::before {
  content: ''; width: 32px; height: 1px;
  background: rgba(255,255,255,0.4);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 28px; letter-spacing: -0.02em;
  animation: heroFade 1s ease-out 0.15s both;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.75);
  max-width: 480px; line-height: 2;
  margin-bottom: 40px;
  animation: heroFade 1s ease-out 0.3s both;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: heroFade 1s ease-out 0.45s both;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
  border: 2px solid transparent;
}
.btn-white {
  background: #fff; color: var(--pine-deep); border-color: #fff;
}
.btn-white:hover {
  background: var(--cream); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 2px;
  animation: heroFade 1s ease-out 0.8s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== INTRO STRIP ===== */
.intro-strip {
  background: var(--pine);
  padding: 28px var(--side);
  display: flex; justify-content: center;
  gap: clamp(24px, 5vw, 80px); flex-wrap: wrap;
}
.intro-stat { text-align: center; color: #fff; }
.intro-stat-num {
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; line-height: 1;
}
.intro-stat-label {
  font-size: 12px; color: rgba(255,255,255,0.65);
  margin-top: 6px; letter-spacing: 0.5px;
}

/* ===== SECTION COMMON ===== */
section { padding: clamp(80px, 10vw, 120px) var(--side); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.sec-header { margin-bottom: 48px; }
.sec-en {
  font-family: var(--font-en-accent);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600; color: var(--pine);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 8px; font-style: italic;
}
.sec-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900; line-height: 1.4; letter-spacing: -0.01em;
}
.sec-title .em { color: var(--pine); }
.sec-line {
  width: 40px; height: 3px; background: var(--pine);
  margin-top: 16px; border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-section { background: var(--cream); }

.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.about-photo-wrap { position: relative; }
.about-photo {
  aspect-ratio: 4/5; border-radius: 16px;
  background: var(--cream-dark); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-photo .ph-icon { font-size: 48px; opacity: 0.25; }
.about-photo .ph-text { font-size: 12px; color: var(--text-light); }

.about-badge {
  position: absolute; bottom: -12px; left: -12px;
  background: var(--pine); color: #fff;
  padding: 14px 20px; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(45,90,61,0.3);
}
.about-badge-role { font-size: 10px; letter-spacing: 1px; opacity: 0.7; }
.about-badge-name { font-size: 18px; font-weight: 900; }

.about-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900; line-height: 1.5;
  margin-bottom: 24px; letter-spacing: -0.01em;
}
.about-text p {
  font-size: 15px; color: var(--text-mid);
  margin-bottom: 18px; line-height: 2;
}
.about-text p.signature {
  font-weight: 700; color: var(--text);
  margin-top: 20px; font-size: 14px;
}

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  background: var(--pine-pale); color: var(--pine-deep);
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
}

/* ===== SERVICE ===== */
.service-section { background: var(--white); }

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

.service-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s; cursor: default; background: var(--cream);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(45,90,61,0.08);
  border-color: var(--pine-light);
}

.service-thumb {
  height: 160px; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.service-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-thumb::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--pine);
  transform: scaleX(0); transition: transform 0.4s; transform-origin: left;
}
.service-card:hover .service-thumb::after { transform: scaleX(1); }

.service-body { padding: 24px; }
.service-num {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 700;
  color: var(--pine); letter-spacing: 2px; margin-bottom: 4px;
}
.service-body h3 {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 900; margin-bottom: 10px;
}
.service-body p { font-size: 13px; color: var(--text-light); line-height: 1.9; }
.service-price {
  margin-top: 14px; font-size: 14px;
  font-weight: 700; color: var(--pine);
  font-family: var(--font-en);
}

/* ===== PRICE ===== */
.price-section { background: var(--cream); }

.price-wrap {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead { background: var(--pine-deep); }
.price-table th {
  padding: 14px 24px; text-align: left;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px; font-family: var(--font-en);
}
.price-table td {
  padding: 16px 24px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--pine-pale); }
.price-val {
  font-family: var(--font-en);
  font-size: 17px; font-weight: 700; color: var(--pine);
}
.price-note-bar {
  padding: 14px 24px; font-size: 12px;
  color: var(--text-light);
  background: var(--cream); border-top: 1px solid var(--border);
}

/* ===== NEWS ===== */
.news-section { background: var(--white); }

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s; text-decoration: none; color: inherit;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover { padding-left: 12px; }

.news-date {
  font-family: var(--font-en);
  font-size: 13px; color: var(--text-light);
  min-width: 100px; font-weight: 500;
}
.news-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 100px; white-space: nowrap;
}
.news-tag.info { background: var(--pine-pale); color: var(--pine); }
.news-tag.campaign { background: #fef3e2; color: #b87a1e; }
.news-tag.closed { background: #fce4e4; color: #b83030; }
.news-title { font-size: 14px; font-weight: 500; }

/* Loading / empty state */
.news-loading, .news-empty {
  padding: 40px 0; text-align: center;
  font-size: 14px; color: var(--text-light);
}

/* ===== ACCESS ===== */
.access-section { background: var(--cream); }

.access-layout {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: start;
}

.map-area {
  aspect-ratio: 16/10; border-radius: 16px;
  background: var(--cream-dark); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px;
  overflow: hidden;
}
.map-area iframe {
  width: 100%; height: 100%; border: 0; border-radius: 16px;
}

.access-info { display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 16px; }
.info-label {
  font-size: 12px; color: var(--text-light);
  font-weight: 700; min-width: 72px; padding-top: 3px;
}
.info-val { font-size: 15px; }

.hours-box {
  background: var(--pine-deep); color: #fff;
  border-radius: 14px; padding: 24px; margin-top: 4px;
}
.hours-heading {
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700;
  letter-spacing: 3px; color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.h-row {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 5px 0;
}
.h-row .off { color: rgba(255,255,255,0.35); }

/* ===== CTA ===== */
.cta-section {
  background: var(--pine-deep); color: #fff;
  padding: clamp(60px, 8vw, 100px) var(--side);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(58,122,82,0.25) 0%, transparent 60%);
}
.cta-inner {
  position: relative; max-width: 700px;
  margin: 0 auto; text-align: center;
}
.cta-pine-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.2; }
.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900; margin-bottom: 12px; line-height: 1.4;
}
.cta-desc {
  font-size: 14px; color: rgba(255,255,255,0.6);
  margin-bottom: 36px; line-height: 1.9;
}

.cta-btns {
  display: flex; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

.btn-tel-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--pine-deep);
  padding: 18px 40px; border-radius: 10px;
  font-family: var(--font-en);
  font-size: 20px; font-weight: 800; letter-spacing: 1px;
  text-decoration: none; transition: all 0.3s;
}
.btn-tel-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-line-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--line-green); color: #fff;
  padding: 18px 40px; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
}
.btn-line-cta:hover {
  background: #05a94a; transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
  background: var(--pine-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px var(--side) 28px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
}
.footer-brand-name {
  font-family: var(--font-en);
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.footer-addr {
  font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.9;
}
.footer-nav-grid {
  display: flex; gap: 24px; flex-wrap: wrap; padding-top: 4px;
}
.footer-nav-grid a {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.3s;
}
.footer-nav-grid a:hover { color: #fff; }
.footer-copy {
  grid-column: 1 / -1; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.2);
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== NEWS MODAL ===== */
.news-item { cursor: pointer; }

.news-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.news-modal-overlay.active {
  opacity: 1; visibility: visible;
}

.news-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 680px; width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
}
.news-modal-overlay.active .news-modal {
  transform: translateY(0);
}

.news-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}

.news-modal-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}

.news-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900; line-height: 1.4;
}

.news-modal-close {
  background: var(--cream); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--text-light);
  transition: all 0.2s; flex-shrink: 0;
}
.news-modal-close:hover {
  background: var(--pine-pale); color: var(--pine);
  border-color: var(--pine-light);
}

.news-modal-body {
  padding: 28px 32px 32px;
  font-size: 15px; line-height: 2;
  color: var(--text-mid);
}
.news-modal-body p { margin-bottom: 16px; }
.news-modal-body h2,
.news-modal-body h3 {
  font-family: var(--font-heading);
  font-weight: 700; margin: 24px 0 12px;
  color: var(--text);
}
.news-modal-body h2 { font-size: 20px; }
.news-modal-body h3 { font-size: 17px; }
.news-modal-body ul,
.news-modal-body ol {
  padding-left: 24px; margin-bottom: 16px;
}
.news-modal-body li { margin-bottom: 6px; }
.news-modal-body img {
  max-width: 100%; height: auto;
  border-radius: 8px; margin: 16px 0;
}
.news-modal-body a {
  color: var(--pine); text-decoration: underline;
}

.news-modal-empty {
  padding: 40px 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.news-modal-loading {
  padding: 40px 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Body scroll lock when modal is open */
body.modal-open { overflow: hidden; }

/* ===== ANIMATIONS ===== */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { display: none; }
  .menu-toggle { display: block; }

  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 1/1; }
  .about-badge { left: auto; right: -8px; bottom: -8px; }

  .service-grid { grid-template-columns: 1fr; }
  .access-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav-grid { justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .intro-strip { gap: 20px; }

  .news-item { flex-wrap: wrap; gap: 8px; }
  .news-modal-header { padding: 20px; }
  .news-modal-body { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
