/* Japan Sakura Co., Ltd. — public site styles */

:root {
  --navy: #10243d;
  --navy-dark: #0a1a2e;
  --accent: #e2557b;
  --accent-dark: #c73e65;
  --text: #263445;
  --muted: #6b7a8c;
  --soft: #f4f8fb;
  --line: #e3eaf2;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(16, 36, 61, 0.08);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; }
.logo-text {
  font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.15;
  display: flex; flex-direction: column;
}
.logo-text em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding: 6px 2px; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.25s;
}
.main-nav a:hover::after, .main-nav .active a::after { transform: scaleX(1); }
.main-nav .active a { color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

main { padding-top: var(--header-h); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 34px; border-radius: 30px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-line { border-color: #fff; color: #fff; background: transparent; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); }

/* Hero */
.hero {
  position: relative; height: calc(82vh - var(--header-h)); min-height: 460px;
  overflow: hidden; background: var(--navy-dark);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 46, 0.72) 0%, rgba(10, 26, 46, 0.25) 70%);
}
.hero-text { position: relative; color: #fff; }
.hero-text h2 {
  font-size: clamp(30px, 5vw, 54px); font-weight: 800; letter-spacing: 1px;
  animation: fadeDown 0.9s both;
}
.hero-text h3 {
  font-size: clamp(15px, 2.2vw, 22px); font-weight: 400; margin: 18px 0 30px;
  max-width: 640px; animation: fadeUp 1s 0.15s both;
}
.hero-text .btn { animation: fadeUp 1s 0.3s both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section-title {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--navy);
  position: relative; padding-bottom: 16px; margin-bottom: 26px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--accent);
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-title.light { color: #fff; }
.section-title.light::after { background: var(--accent); }
.section-sub { color: var(--muted); margin-bottom: 34px; }
.section-sub.center { text-align: center; }
.section-sub.light { color: rgba(255, 255, 255, 0.82); }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
}
.about-img img {
  border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 36, 61, 0.18);
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 10px; color: var(--navy); border-color: var(--navy); }
.about-text .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.stats-band { background: var(--navy); margin-top: 84px; padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat .label { color: rgba(255, 255, 255, 0.78); letter-spacing: 1px; margin-top: 6px; }

/* Products */
.pro-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 38px;
}
.pro-tab {
  padding: 10px 26px; border-radius: 26px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.22s;
}
.pro-tab:hover { border-color: var(--accent); color: var(--accent); }
.pro-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pro-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.pro-grid.active { display: grid; }
.pro-card {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 26px rgba(16, 36, 61, 0.09);
  transition: transform 0.28s, box-shadow 0.28s;
}
.pro-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(16, 36, 61, 0.16); }
.pro-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.pro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.pro-card:hover .pro-img img { transform: scale(1.08); }
.pro-name {
  padding: 16px 18px; border-top: 2px solid transparent; transition: border-color 0.25s;
}
.pro-card:hover .pro-name { border-top-color: var(--accent); }
.pro-name h3 {
  font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Contact */
.contact-section {
  background-size: cover; background-position: center; position: relative;
  padding: 84px 0;
}
.contact-section::before {
  content: ""; position: absolute; inset: 0; background: rgba(10, 26, 46, 0.82);
}
.contact-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.contact-info ul li { color: rgba(255, 255, 255, 0.86); margin-bottom: 12px; }
.contact-info a { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 15px; font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }

.contact-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.c-card {
  background: var(--soft); border-left: 4px solid var(--accent);
  padding: 22px 26px; border-radius: 8px;
}
.c-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 17px; }
.c-card a { color: var(--accent); }
.contact-form.standalone input, .contact-form.standalone textarea {
  background: #fff; border: 1px solid var(--line); color: var(--text);
}
.contact-form.standalone input::placeholder, .contact-form.standalone textarea::placeholder { color: var(--muted); }

/* Page hero (sub pages) */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #1c3a5f);
  padding: 74px 0; color: #fff;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 1px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; }

/* Product detail */
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.main-img {
  border-radius: 12px; overflow: hidden; background: var(--soft);
  box-shadow: 0 14px 34px rgba(16, 36, 61, 0.12);
}
.main-img img { width: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumbs li {
  width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--soft);
}
.thumbs li.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pro-badge {
  display: inline-block; background: var(--soft); color: var(--accent);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.detail-info h1 { font-size: clamp(22px, 2.8vw, 32px); color: var(--navy); line-height: 1.4; }
.detail-desc { margin: 22px 0 30px; }
.detail-desc p { color: var(--muted); margin-bottom: 14px; }
.detail-section .pro-grid { margin-top: 26px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: #fff; border-radius: 12px; padding: 34px 30px;
  box-shadow: 0 10px 26px rgba(16, 36, 61, 0.08);
  border-top: 4px solid var(--accent);
}
.feature h3 { color: var(--navy); margin-bottom: 12px; font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }

.center-block { text-align: center; padding: 120px 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.72); margin-top: 0; }
.footer-top {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.6fr; gap: 34px; padding: 62px 0 46px;
}
.f-col h4, .f-contact h4 {
  color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 1px;
}
.f-col li { margin-bottom: 10px; font-size: 14px; }
.f-col a:hover { color: var(--accent); }
.f-contact p { font-size: 14px; margin-bottom: 12px; }
.f-contact a { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 13px; }

/* Mobile bottom bar */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .pro-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; transform: translateY(-130%); transition: transform 0.3s;
    box-shadow: 0 12px 24px rgba(16, 36, 61, 0.12);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { display: block; padding: 14px 6vw; }
  .nav-toggle { display: block; }
  .hero { height: 62vh; }
  .about-grid, .contact-grid, .contact-page, .detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .stats-band { margin-top: 56px; padding: 38px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; padding: 42px 0 30px; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mobile-bar a {
    flex: 1; text-align: center; color: rgba(255, 255, 255, 0.85);
    padding: 9px 0 8px; font-size: 11px;
  }
  .mobile-bar i { display: block; width: 20px; height: 20px; margin: 0 auto 3px; position: relative; }
  .mb-home::before {
    content: ""; position: absolute; inset: 4px 2px 2px; border-radius: 2px;
    border: 2px solid currentColor; border-top: 0;
  }
  .mb-home::after {
    content: ""; position: absolute; top: 1px; left: 3px; width: 12px; height: 12px;
    border-top: 2px solid currentColor; border-left: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .mb-mail::before {
    content: ""; position: absolute; inset: 3px 1px; border: 2px solid currentColor; border-radius: 3px;
  }
  .mb-mail::after {
    content: ""; position: absolute; top: 5px; left: 3px; width: 12px; height: 8px;
    border-bottom: 2px solid currentColor; transform: rotate(-28deg);
  }
  .mb-msg::before {
    content: ""; position: absolute; inset: 2px; border: 2px solid currentColor; border-radius: 4px;
  }
  .mb-top::before {
    content: ""; position: absolute; top: 3px; left: 5px; width: 9px; height: 9px;
    border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg);
  }
  .mb-top::after {
    content: ""; position: absolute; left: 9px; top: 8px; width: 2px; height: 10px; background: currentColor;
  }
  body { padding-bottom: 52px; }
}
