/* =========================================================
   Béret Lab — style.css
   ========================================================= */

:root {
  --c-ink: #333f48;        /* ダークグレー */
  --c-ink-soft: #5a6670;
  --c-green: #6b9080;      /* くすんだグリーン */
  --c-green-dark: #557566;
  --c-mint: #eef5f1;       /* ミントの淡い背景 */
  --c-mint-2: #dcebe3;
  --c-white: #ffffff;
  --c-bg: #f8fbf9;
  --c-line: #d9e4de;
  --c-warn-bg: #f7f8f5;

  --radius: 14px;
  --shadow: 0 4px 18px rgba(51, 63, 72, 0.08);
  --container: 1040px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--c-green-dark); }
a:hover { color: var(--c-ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.4; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

.sp-only { display: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand-kana {
  margin-left: 10px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-ink-soft);
}
.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--c-ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav a:hover { color: var(--c-green-dark); }

.hero {
  background: linear-gradient(180deg, var(--c-mint) 0%, var(--c-bg) 100%);
  padding: 36px 0 28px;
}
.hero-title { margin: 0; }
.hero-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--c-white);
}
.hero-catch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--c-green-dark);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--c-mint); }

.section-title {
  font-size: 1.6rem;
  margin-bottom: 28px;
  text-align: center;
}
.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 4px;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

/* ---------- Product ---------- */
.product {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.product-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: start;
}
.product-main-image img {
  border-radius: 10px;
  border: 1px solid var(--c-line);
}

.product-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 12px;
  font-size: 0.8rem;
  color: var(--c-green-dark);
  background: var(--c-mint);
  border-radius: 999px;
}
.product-name { font-size: 1.5rem; }
.product-version {
  display: inline-block;
  margin-left: 8px;
  padding: 0 10px;
  font-size: 0.85rem;
  color: var(--c-white);
  background: var(--c-green);
  border-radius: 6px;
  vertical-align: middle;
}
.product-price {
  margin: 14px 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink);
}
.product-price .yen { font-size: 1.1rem; margin-left: 2px; }
.price-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--c-ink-soft);
}
.product-desc { margin: 16px 0 0; }

.product-facts {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.product-facts > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-mint);
  border-radius: 10px;
}
.product-facts dt { font-weight: 700; color: var(--c-green-dark); }
.product-facts dd { margin: 0; line-height: 1.6; }

/* ---------- Buttons ---------- */
.cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
  border: 2px solid var(--c-ink);
}
.btn-primary:hover { background: #222b32; color: var(--c-white); }
.btn-secondary {
  background: var(--c-white);
  color: var(--c-green-dark);
  border: 2px solid var(--c-green);
}
.btn-secondary:hover { background: var(--c-green); color: var(--c-white); }
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
}
.cta-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}

/* ---------- Details ---------- */
.product-details {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.detail-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--c-green);
}

.check-list,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li,
.service-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  border-bottom: 1px dashed var(--c-line);
}
.check-list li:last-child,
.service-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--c-green);
  border-bottom: 2.5px solid var(--c-green);
  transform: rotate(-45deg);
}
.service-list { counter-reset: svc; }
.service-list li { counter-increment: svc; }
.service-list li::before {
  content: counter(svc);
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.trial-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--c-mint);
  border-radius: 10px;
}
.trial-box h4 {
  border-left: none;
  padding-left: 0;
  margin-bottom: 6px;
  color: var(--c-green-dark);
}
.trial-box p { margin: 0 0 8px; font-size: 0.95rem; }
.text-link { font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { margin-top: 40px; }
.gallery-title {
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--c-green);
}
.gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gallery-list a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  transition: transform .15s, box-shadow .15s;
}
.gallery-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.gallery-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.gallery-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--c-ink-soft);
}

/* ---------- Updates ---------- */
.updates {
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.updates-title {
  font-size: 1rem;
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 4px solid var(--c-green);
}
.updates-item { margin: 0; font-size: 0.95rem; }
.updates-item time {
  margin-right: 10px;
  color: var(--c-green-dark);
  font-weight: 700;
}

/* ---------- Notice ---------- */
.notice-list {
  margin: 0;
  padding: 22px 26px 22px 46px;
  background: var(--c-warn-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.notice-list li { padding: 4px 0; }
.notice-list li::marker { color: var(--c-green); }

/* ---------- Development ---------- */
.prose {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
}
.prose p { margin: 0; }
.prose h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--c-green);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #dfe6e2;
  padding: 40px 0 32px;
}
.footer-inner { text-align: center; }
.footer-brand {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links a { color: #cfe2d8; font-size: 0.9rem; }
.footer-links a:hover { color: var(--c-white); }
.copyright { margin: 0; font-size: 0.8rem; color: #a9b5bd; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-head { grid-template-columns: 1fr; gap: 28px; }
  .product-main-image { max-width: 420px; margin: 0 auto; }
  .product-details { grid-template-columns: 1fr; }
  .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .sp-only { display: inline; }
  .nav { display: none; }
  .hero { padding: 20px 0 18px; }
  .hero-catch { font-size: 0.95rem; letter-spacing: 0.08em; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 22px; }
  .lead { text-align: left; font-size: 1rem; }
  .product { padding: 22px 18px; }
  .product-name { font-size: 1.3rem; }
  .product-price { font-size: 1.75rem; }
  .product-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .cta { flex-direction: column; }
  .btn { width: 100%; }
  .detail-card { padding: 20px 18px; }
  .notice-list { padding: 18px 18px 18px 36px; }
  .prose { padding: 22px 18px; }
}
