:root {
  --article-wine: #8d3f58;
  --article-pink: #f6ecef;
  --article-cream: #fbf7f0;
  --article-brown: #513631;
  --article-muted: #7b6c68;
  --article-line: rgba(81, 54, 49, .14);
  --article-green: #788d62;
}

.article-page {
  color: var(--article-brown);
  background: #fffdf9;
}

.article-shell {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 34px 0 96px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 58px;
  color: #9a8c88;
  font-size: 11px;
  letter-spacing: .03em;
}
.breadcrumb a { color: inherit; text-decoration: none; }

.article-header {
  width: min(100%, 900px);
  margin: 0 auto 52px;
  text-align: center;
}
.article-header .eyebrow { margin-bottom: 18px; }
.article-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.article-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--article-pink);
  color: var(--article-wine);
  font-size: 11px;
  font-weight: 600;
}
.article-header h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(34px, 5.3vw, 58px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: .025em;
}
.article-header h1 em {
  color: var(--article-wine);
  font-style: normal;
}
.article-lead {
  width: min(100%, 720px);
  margin: 28px auto 0;
  font-size: 14px;
  line-height: 2.1;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  color: #968783;
  font-size: 10px;
}

.answer-card {
  width: min(100%, 900px);
  margin: 0 auto 74px;
  padding: 38px 46px 42px;
  border: 1px solid rgba(141,63,88,.16);
  background: linear-gradient(145deg, #fff, #fbf3f5);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(81,54,49,.06);
}
.answer-card__label {
  margin: 0 0 8px;
  color: var(--article-wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.answer-card h2 {
  margin: 0 0 28px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
}
.answer-card h2 strong { color: var(--article-wine); }
.calorie-compare {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 10px;
}
.calorie-box {
  padding: 22px;
  text-align: center;
  border-radius: 16px;
}
.calorie-box--steam { background: #f2f5ed; }
.calorie-box--bake { background: #f7ecef; }
.calorie-box span { display: block; font-size: 12px; }
.calorie-box strong {
  display: block;
  margin: 6px 0 2px;
  font-family: "Noto Serif JP", serif;
  font-size: 40px;
  font-weight: 500;
}
.calorie-box small { font-size: 14px; }
.calorie-box p { margin: 0; color: var(--article-muted); font-size: 10px; }
.compare-arrow { text-align: center; color: #b4a6a1; font-size: 22px; }
.answer-note { margin: 24px 0 0; font-size: 12px; line-height: 2; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 72px;
  align-items: start;
  justify-content: center;
}
.article-body { min-width: 0; }
.article-section {
  padding: 0 0 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--article-line);
}
.section-no {
  margin: 0 0 10px;
  color: var(--article-wine);
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  letter-spacing: .15em;
}
.article-section h2 {
  margin: 0 0 26px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.6;
}
.article-section p {
  margin: 0;
  font-size: 14px;
  line-height: 2.2;
}
.article-section p + p { margin-top: 20px; }

.water-visual {
  display: grid;
  gap: 18px;
  margin: 34px 0;
  padding: 26px;
  background: var(--article-cream);
  border-radius: 18px;
}
.water-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.water-bar {
  height: 12px;
  overflow: hidden;
  background: #e8e1d8;
  border-radius: 999px;
}
.water-bar i {
  display: block;
  height: 100%;
  background: #b8c6a8;
  border-radius: inherit;
}
.point-box {
  margin-top: 30px;
  padding: 24px 26px;
  border-left: 3px solid var(--article-wine);
  background: #fbf5f6;
}
.point-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--article-wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.point-box p { font-size: 12px; }

.portion-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--article-line);
  border-radius: 16px;
}
.portion-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 12px;
}
.portion-table th,
.portion-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--article-line);
  text-align: center;
}
.portion-table thead th {
  background: var(--article-cream);
  font-weight: 600;
}
.portion-table tbody th { font-weight: 600; }
.portion-table tr:last-child th,
.portion-table tr:last-child td { border-bottom: 0; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.choice-card {
  padding: 28px;
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: #fff;
}
.choice-card__label {
  color: var(--article-wine);
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .13em;
}
.choice-card h3 {
  margin: 8px 0 18px;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
}
.choice-card ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 12px;
  line-height: 2;
}
.caution {
  padding: 18px 20px;
  background: #f7f4ef;
  color: #766965;
  font-size: 11px !important;
}
.summary-box {
  padding: 28px 30px;
  background: var(--article-cream);
  border-radius: 18px;
}
.summary-box p { font-size: 13px; }
.summary-box p + p { margin-top: 10px; }

.source-section {
  padding: 28px 0 0;
}
.source-section h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
}
.source-section p {
  margin: 0;
  color: #766965;
  font-size: 11px;
  line-height: 2;
}
.source-note { margin-top: 8px !important; }

.article-aside { position: sticky; top: 110px; }
.toc {
  padding: 24px 22px;
  border-top: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
}
.toc .eyebrow { margin: 0 0 5px; }
.toc-title {
  margin: 0 0 18px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
}
.toc a {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  color: var(--article-brown);
  border-top: 1px solid rgba(81,54,49,.08);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.6;
}
.toc a span { color: var(--article-wine); font-size: 9px; }


@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-aside { display: none; }
}

/*
 * Mobile first-tuning for modern iPhones (including iPhone 17 class displays).
 * Target range: roughly 390–430 CSS px wide, while remaining usable on smaller phones.
 */
@media (max-width: 700px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 84px;
  }

  body.article-page {
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* Header: keep the existing MOTTO OIMO look, but make every target thumb-friendly. */
  .header__inner {
    width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-sizing: border-box;
    gap: 8px 14px;
  }

  .logo,
  .logo img {
    max-width: 146px;
  }

  .nav {
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .article-shell {
    width: auto;
    margin: 0;
    padding: 18px 18px calc(72px + env(safe-area-inset-bottom));
  }

  .breadcrumb {
    gap: 5px;
    margin-bottom: 30px;
    font-size: 10px;
    line-height: 1.6;
  }

  .article-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .article-header .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .article-tags {
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .article-tags::-webkit-scrollbar { display: none; }
  .article-tags span {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 10px;
  }

  .article-header h1 {
    font-size: clamp(28px, 7.4vw, 32px);
    line-height: 1.52;
    letter-spacing: .012em;
    word-break: auto-phrase;
  }
  .article-header h1 br:nth-of-type(1) { display: none; }

  .article-lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.95;
  }

  .article-meta {
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
    font-size: 10px;
    line-height: 1.65;
  }

  /* The answer should be visible quickly on a phone. */
  .answer-card {
    width: auto;
    margin: 0 0 48px;
    padding: 24px 18px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(81,54,49,.055);
  }
  .answer-card__label {
    margin-bottom: 7px;
    font-size: 10px;
  }
  .answer-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.65;
  }

  .calorie-compare {
    grid-template-columns: 1fr 28px 1fr;
    gap: 5px;
  }
  .calorie-box {
    min-width: 0;
    padding: 17px 7px 15px;
    border-radius: 14px;
  }
  .calorie-box span {
    min-height: 34px;
    font-size: 10px;
    line-height: 1.55;
  }
  .calorie-box strong {
    margin: 2px 0 0;
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.2;
  }
  .calorie-box small { font-size: 10px; }
  .calorie-box p { margin-top: 4px; font-size: 9px; }
  .compare-arrow {
    transform: none;
    font-size: 18px;
  }
  .answer-note {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  .article-section {
    scroll-margin-top: 84px;
    padding-bottom: 44px;
    margin-bottom: 44px;
  }
  .section-no {
    margin-bottom: 7px;
    font-size: 11px;
  }
  .article-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.62;
    letter-spacing: .005em;
  }
  .article-section p {
    font-size: 15px;
    line-height: 2;
  }
  .article-section p + p { margin-top: 18px; }

  .water-visual {
    gap: 17px;
    margin: 27px 0;
    padding: 20px 17px;
    border-radius: 15px;
  }
  .water-label {
    gap: 12px;
    margin-bottom: 8px;
    font-size: 11px;
  }
  .water-bar { height: 10px; }

  .point-box {
    margin-top: 26px;
    padding: 19px 17px 19px 19px;
    border-left-width: 3px;
  }
  .point-box span { font-size: 9px; }
  .point-box p { font-size: 13px; line-height: 1.95; }

  /* No sideways scrolling on the calorie table on iPhone-sized screens. */
  .portion-table-wrap {
    margin: 26px 0;
    overflow: hidden;
    border-radius: 14px;
  }
  .portion-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 10px;
  }
  .portion-table th,
  .portion-table td {
    padding: 13px 4px;
    line-height: 1.45;
    white-space: normal;
  }
  .portion-table th:first-child { width: 20%; }
  .portion-table th:nth-child(2),
  .portion-table th:nth-child(3) { width: 29%; }
  .portion-table th:nth-child(4) { width: 22%; }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .choice-card {
    padding: 22px 19px;
    border-radius: 16px;
  }
  .choice-card h3 {
    margin-bottom: 14px;
    font-size: 20px;
  }
  .choice-card ul {
    padding-left: 1.15em;
    font-size: 13px;
    line-height: 1.9;
  }

  .caution {
    padding: 16px;
    font-size: 11px !important;
    line-height: 1.8 !important;
    border-radius: 10px;
  }

  .summary-box {
    padding: 22px 18px;
    border-radius: 15px;
  }
  .summary-box p { font-size: 13px; line-height: 1.85; }

  .source-section { padding-top: 18px; }
  .source-section h2 { font-size: 18px; }
  .source-section p { font-size: 11px; line-height: 1.85; }

  .related-section {
    margin-top: 56px;
    padding: 26px 18px;
    border-radius: 18px;
  }
  .related-section h2 {
    margin-bottom: 18px;
    font-size: 23px;
    line-height: 1.55;
  }
  .related-placeholder {
    display: grid;
    gap: 9px;
  }
  .related-placeholder p { margin-bottom: 2px; }
  .related-placeholder span {
    display: block;
    padding: 12px 13px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.55;
  }

  .footer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Prevent long Japanese / English strings from breaking the viewport. */
  .article-page,
  .article-page * {
    box-sizing: border-box;
  }
  .article-page p,
  .article-page h1,
  .article-page h2,
  .article-page h3,
  .article-page li,
  .article-page a {
    overflow-wrap: anywhere;
  }
}

/* Extra polish for 390–430px iPhone widths. */
@media (min-width: 380px) and (max-width: 430px) {
  .article-shell { padding-left: 20px; padding-right: 20px; }
  .article-header h1 { font-size: 30px; }
  .answer-card { padding-left: 20px; padding-right: 20px; }
  .article-section h2 { font-size: 25px; }
}

/* Keep very small phones readable too. */
@media (max-width: 360px) {
  .article-shell { padding-left: 14px; padding-right: 14px; }
  .article-header h1 { font-size: 27px; }
  .calorie-compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .calorie-box span { min-height: 0; }
}
