/* Atelier Eureka — site styles
   Palette: warm white ground, ink text, 臙脂 accent. Dr.キャビネット's navy is not used for the brand itself
   (the app icon and screenshots keep their own colours because they are the product's face). */

:root {
  --bg: #FAF8F4;
  --bg-2: #F2EEE6;
  --card: #FFFDFA;
  --text: #1C1A17;
  --text-2: #45403A;
  --muted: #6A625A;
  --faint: #9B9188;
  --line: #DCD5C8;
  --line-2: #E8E2D7;
  --accent: #7A3B2E;
  --accent-2: #56281E;
  --accent-line: #D8BDB3;
  --card-pad: clamp(22px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: clamp(20px, 6vw, 80px);
  padding-right: clamp(20px, 6vw, 80px);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  min-height: 76px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.brand:hover { color: var(--accent); }
.nav { display: flex; gap: 26px; font-size: 13.5px; letter-spacing: 0.06em; white-space: nowrap; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 56px); }
.hero .wrap::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 22em;
  word-break: auto-phrase;
  text-wrap: balance;
}
.hero p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.95;
  max-width: 44em;
  color: var(--text-2);
}

/* Sections: label column + content column */
.section { padding-bottom: clamp(56px, 7vw, 88px); }
.section-inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px 56px;
}
.section h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.7;
  padding-top: 4px;
}
.section h1 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.section-first { padding-top: clamp(40px, 5vw, 64px); }
.section-first .section-inner { border-top: 0; padding-top: 0; }
.section-body { max-width: 680px; min-width: 0; }
.section-body > p { font-size: 15.5px; line-height: 2; color: var(--text-2); word-break: auto-phrase; }
.section-body > p a, .table a { border-bottom: 1px solid var(--accent-line); padding-bottom: 1px; }
.section-body > p a:hover, .table a:hover { border-bottom-color: var(--accent); }

/* Product card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--card-pad);
}
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head img { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.card-name { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; }
.card-en { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.card > p { margin-top: 24px; font-size: 15.5px; line-height: 2; color: var(--text-2); word-break: auto-phrase; }

/* Screenshots: three phones in a row on wide screens, a swipe row on phones */
.shots {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.shot { min-width: 0; }
.phone {
  background: #10161A;
  padding: 5px;
  border-radius: 30px;
  box-shadow: 0 12px 28px rgba(28, 26, 23, 0.10);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1174;
  border-radius: 25px;
}
.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.card-more { margin-top: 22px; font-size: 14px; line-height: 1.9; letter-spacing: 0.04em; }
.card-more a {
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.card-more a:hover { text-decoration-color: var(--accent); }

/* Key-value table (事業概要) */
.table > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.table > div:first-child { padding-top: 4px; }
.table dt { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; padding-top: 3px; }
.table dd { word-break: auto-phrase; }
.table .sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.table ol { padding-left: 1.5em; }
.table ol li + li { margin-top: 2px; }
.table ol li::marker { color: var(--muted); font-size: 14px; }
.nowrap { white-space: nowrap; }

/* English block */
.en p { font-size: 15.5px; line-height: 1.85; color: var(--text-2); }
.en p + p { margin-top: 12px; }

/* Footer */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--bg-2); border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}
.site-footer .brand { font-size: 15px; }
.foot-right { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.foot-right a { color: var(--muted); border-bottom: 1px solid #D5CEC2; padding-bottom: 1px; }
.foot-right a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.copy { font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }

/* Tablet and below: label above content */
@media (max-width: 900px) {
  .section-inner { grid-template-columns: 1fr; gap: 16px; }
  .section h2 { padding-top: 0; }
}

/* Mobile */
@media (max-width: 720px) {
  .site-header .wrap { min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 16px; letter-spacing: 0.08em; }
  .nav { gap: 18px; font-size: 13px; }
  .hero .wrap::before { margin-bottom: 18px; }
  .hero h1 { font-size: 24px; line-height: 1.55; }
  .hero p { margin-top: 16px; font-size: 15px; line-height: 1.9; }
  .site-footer .wrap { padding-top: 32px; padding-bottom: 36px; }
}
@media (max-width: 600px) {
  .shots {
    display: flex;
    gap: 14px;
    margin-left: calc(-1 * var(--card-pad));
    margin-right: calc(-1 * var(--card-pad));
    padding: 0 var(--card-pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 64%; scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .table > div { grid-template-columns: 1fr; gap: 2px; }
  .table dt { padding-top: 0; }
  .card-name { font-size: 22px; }
}
