:root {
  --cream: #f8f4e9;
  --paper: #efe8d6;
  --ink: #232323;
  --ink-soft: #5d584f;
  --red: #e8452c;
  --red-dark: #c4321b;
  --yellow: #fbc600;
  --blue: #1e8fdc;
  --green: #35a047;
  --black: #232323;
  --line: #e1d9c6;
  --radius: 6px;
  --font-round: "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Poppins", sans-serif;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-round);
  margin: 0;
  line-height: 1.4;
}

.pc-only {
  display: none;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 244, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  width: auto;
  height: 40px;
}

.nav {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__login {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ファーストビュー */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 16px 150px;
  text-align: center;
}

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
}

.shape--1 { top: 0; left: 0; width: 22vw; height: 22vw; background: var(--red); }
.shape--2 { top: 0; left: 22vw; width: 12vw; height: 12vw; background: var(--black); }
.shape--3 { top: 0; right: 18vw; width: 20vw; height: 20vw; background: var(--yellow); border-radius: 0 0 0 100%; }
.shape--4 { top: 0; right: 0; width: 18vw; height: 30vw; background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.shape--5 { bottom: 0; left: 0; width: 30vw; height: 18vw; background: var(--blue); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.shape--6 { bottom: 0; left: 30vw; width: 12vw; height: 12vw; background: var(--red); clip-path: polygon(0 100%, 100% 100%, 0 0); }
.shape--7 { bottom: 0; right: 22vw; width: 18vw; height: 18vw; background: var(--green); border-radius: 100% 0 0 0; }
.shape--8 { bottom: 0; right: 0; width: 22vw; height: 14vw; background: var(--yellow); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.shape--9 { display: none; }

.hero__cutline {
  display: none;
}

.hero__scissors {
  display: none;
}

.hero__text {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__title {
  margin: 0;
  font-family: var(--font-round);
  line-height: 1.4;
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero__lead {
  margin: 16px 0 24px;
  color: var(--ink-soft);
}

.search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  padding: 5px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.search button {
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.hero__tags {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero__tags a:hover {
  color: var(--red);
}

/* 紹介（写真と4つの機能） */
.intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 16px 0;
  display: grid;
  gap: 40px;
  align-items: center;
}

.intro__photo {
  position: relative;
  margin: 0 14px 14px 0;
}

.intro__photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--yellow);
  border-radius: var(--radius);
}

.intro__photo img {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.intro__title {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.5;
}

.intro__text {
  margin: 12px 0 24px;
  color: var(--ink-soft);
}

/* 4つの機能 */
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.steps__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--step-color);
  border-radius: var(--radius);
}

.steps__list li:nth-child(1) { --step-color: var(--red); }
.steps__list li:nth-child(2) { --step-color: var(--yellow); }
.steps__list li:nth-child(3) { --step-color: var(--blue); }
.steps__list li:nth-child(4) { --step-color: var(--green); }

.steps__num {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--step-color);
  font-size: 0.9rem;
}

.steps__list strong {
  font-family: var(--font-round);
  font-size: 1.15rem;
}

.steps__list span:last-child {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* セクション共通 */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 16px;
}

.section[id] {
  scroll-margin-top: 64px;
}

.section--tint {
  max-width: none;
  background: var(--paper);
}

.section--tint > * {
  max-width: 1128px;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.section__en {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section__en span:nth-child(4n + 1) { color: var(--red); }
.section__en span:nth-child(4n + 2) { color: var(--blue); }
.section__en span:nth-child(4n + 3) { color: var(--green); }
.section__en span:nth-child(4n) { color: var(--ink); }

.section__title {
  margin-top: 6px;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 900;
}

.section__head::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 14px);
}

.section__desc {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* カテゴリー */
.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(35, 35, 35, 0.4);
}

.cat img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.cat__body {
  padding: 14px 16px 18px;
  border-top: 5px solid var(--accent);
}

.cat h3 {
  font-size: 1.05rem;
}

.cat p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cat--red { --accent: var(--red); }
.cat--green { --accent: var(--green); }
.cat--black { --accent: var(--black); }
.cat--yellow { --accent: var(--yellow); }
.cat--blue { --accent: var(--blue); }

/* プリント教材 */
.pgroups {
  display: grid;
  gap: 16px;
}

.pgroup {
  --accent: var(--red);
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
}

.pgroup__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pgroup__head h3 {
  font-size: 1.15rem;
}

.pgroup__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--accent);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pgroup--red { --accent: var(--red); }
.pgroup--black { --accent: var(--black); }
.pgroup--blue { --accent: var(--blue); }
.pgroup--green { --accent: var(--green); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}

.chips a:hover {
  border-color: var(--accent, var(--red));
  color: var(--red-dark);
}

.more {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.more__row h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.more .chips a {
  background: #fff;
}

/* レシピ */
.recipes {
  display: grid;
  gap: 24px;
}

.recipe {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--card-color, var(--red));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.recipe:nth-child(3n + 2) { --card-color: var(--blue); }
.recipe:nth-child(3n) { --card-color: var(--green); }

.recipe:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(35, 35, 35, 0.4);
}

.recipe__img img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.recipe__body {
  padding: 18px 20px 22px;
}

.recipe__cat {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.recipe h3 {
  font-size: 1.15rem;
}

.recipe__meta {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe__meta li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.recipe__review {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.rating-stars {
  margin-right: 8px;
  color: var(--yellow);
  font-weight: 700;
}

.ages {
  margin-top: 56px;
  text-align: center;
}

.ages__title {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.ages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ages__list a {
  display: block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  font-family: var(--font-round);
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.ages__list a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* 締め */
.closing {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  padding: 80px 16px 96px;
  border-top: 2px solid var(--ink);
}

.closing__text {
  font-family: var(--font-round);
  font-size: clamp(1.25rem, 4.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 32px;
}

.closing__tag {
  margin: -16px 0 28px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.closing__text strong {
  font-weight: 900;
}

/* フッター */
.footer {
  position: relative;
  background: var(--blue);
  color: #fff;
  padding: 72px 16px 32px;
  border-top: 2px solid var(--ink);
}

.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='34'%3E%3Cpath d='M0 2h160' stroke='%23232323' stroke-width='2'/%3E%3Cpath d='M4 2h32L20 30z' fill='%23e8452c'/%3E%3Cpath d='M44 2h32L60 30z' fill='%23fbc600'/%3E%3Cpath d='M84 2h32L100 30z' fill='%23f8f4e9'/%3E%3Cpath d='M124 2h32L140 30z' fill='%2335a047'/%3E%3C/svg%3E") repeat-x top left / 160px 34px;
}

.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.logo--footer {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}

.footer__concept {
  margin: 4px 0 24px;
  font-size: 0.85rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.85rem;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  margin: 28px 0 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* つくって詳細 */
.idea {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 72px;
}

.crumbs ol {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 4px;
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.idea__title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 900;
}

.idea__lead {
  margin: 10px 0 12px;
  color: var(--ink-soft);
}

.idea__rating {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}


.idea__stars {
  color: var(--yellow);
  letter-spacing: 0.05em;
}

.idea__layout {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.idea__photo {
  width: 100%;
  border-radius: var(--radius);
}

.idea__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 0;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.idea__facts div {
  padding: 14px 8px;
}

.idea__facts div + div {
  border-left: 1px solid var(--line);
}

.idea__facts dt {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.idea__facts dd {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 700;
}

.idea__block {
  margin-top: 40px;
}

.idea__block h2 {
  font-size: 1.35rem;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.idea__block h3 {
  font-size: 1rem;
  margin: 20px 0 4px;
}

.idea__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.idea__list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.idea__tools {
  margin: 0;
  color: var(--ink-soft);
}

.idea__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.idea__steps li {
  position: relative;
  padding: 0 0 20px 48px;
  counter-increment: step;
}

.idea__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 900;
  display: grid;
  place-items: center;
}

.idea__steps strong {
  display: block;
  font-family: var(--font-round);
}

.idea__steps em {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
}

.idea__note {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
}

.idea__note h2 {
  border: none;
  padding: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.idea__note p {
  margin: 0;
  font-size: 0.9rem;
}

.idea__side {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -16px;
  padding: 12px 16px;
  background: rgba(248, 244, 233, 0.95);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.idea__side p {
  display: none;
}

.idea__cta {
  display: block;
}

.idea__facts--4 {
  grid-template-columns: repeat(4, 1fr);
}

.sheet {
  margin: 0;
  padding: 28px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px -16px rgba(35, 35, 35, 0.45);
  text-align: center;
}

.sheet__title {
  margin: 0 0 16px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.3rem;
}

.sheet__grid {
  margin: 0 auto;
  border-collapse: collapse;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(1rem, 4.5vw, 1.5rem);
}

.sheet__grid td {
  width: 1.9em;
  height: 1.9em;
  border: 1px solid var(--line);
  text-align: center;
}

.sheet__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 18px;
  font-family: var(--font-round);
  font-weight: 700;
}

.sheet__words span::before {
  content: "□ ";
  color: var(--ink-soft);
}

/* シェア・レビュー誘導 */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.share__label {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.share__btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.share__btn:hover {
  border-color: var(--ink-soft);
}

.made {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px dashed var(--red);
  text-align: center;
}

.made h2 {
  border: none;
  padding: 0;
  margin-bottom: 8px;
  color: var(--red-dark);
}

.made p {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.sheet__footer {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: right;
}

.review-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-form__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--red-dark);
}

.reviews__empty {
  margin: 20px 0 0;
  padding: 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
}

.review-done {
  margin-top: 32px;
  padding: 24px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 4px 4px 0 var(--green);
  text-align: center;
}

.review-done__title {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.25rem;
}

.review-done p {
  margin: 0;
}

.review-done .share {
  justify-content: center;
}

.review-form__note {
  margin: -8px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.download-done {
  max-width: 360px;
  width: calc(100% - 32px);
  padding: 28px 24px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

.download-done::backdrop {
  background: rgba(35, 35, 35, 0.45);
}

.download-done p {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.download-done__title {
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.25rem !important;
}

.download-done .btn {
  display: block;
}

.download-done__tag {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
  color: var(--ink-soft);
}

.download-done__close {
  border: none;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* つくれた！レビュー */
.reviews {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--line);
}

.reviews__title {
  font-size: 1.5rem;
  font-weight: 900;
}

.reviews__title span {
  margin-left: 8px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.reviews__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 20px 0 32px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.reviews__score strong {
  font-family: var(--font-round);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--ink);
}

.reviews__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}

.reviews__bars li {
  display: grid;
  grid-template-columns: 2.5em 1fr 2.5em;
  gap: 8px;
  align-items: center;
}

.reviews__bars li span:last-child {
  text-align: right;
  color: var(--ink-soft);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.review {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.review img {
  order: 1;
  width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.review__body p {
  margin: 0;
  font-size: 0.9rem;
}

.review__meta {
  margin-bottom: 4px !important;
  color: var(--ink-soft);
  font-size: 0.8rem !important;
}

.review__meta .idea__stars {
  margin-right: 8px;
}

.review__off {
  color: var(--line);
}

.review__date {
  margin-top: 6px !important;
  font-size: 0.75rem !important;
  color: var(--ink-soft);
}

.review-form {
  margin-top: 32px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  display: grid;
  gap: 16px;
}

.review-form h3 {
  font-size: 1.2rem;
}

.review-form__stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.review-form__stars legend,
.review-form__field > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.review-form__stars label {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  cursor: pointer;
}

.review-form__stars input {
  margin: 0 4px 0 0;
}

.review-form__field input[type="text"],
.review-form__field input[type="email"],
.review-form__field input[type="password"],
.review-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.review-form .btn {
  justify-self: start;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* 投稿者 */
.author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  margin-top: 48px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.author:hover {
  border-color: var(--red);
}

.author__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.4rem;
}

.author__icon--official {
  padding: 6px;
  background: #fff;
  border: 2px solid var(--ink);
  object-fit: contain;
}

.author__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.author__body {
  display: flex;
  flex-direction: column;
}

.author__label,
.author__stats {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.author__name {
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.1rem;
}

.author__more {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-dark);
}

.author__more::after {
  content: " ›";
}

/* ユーザーページ */
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.profile__icon {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
}

.profile__name {
  font-size: 1.6rem;
  font-weight: 900;
}

.profile__bio {
  margin: 4px 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.profile__stats {
  margin-top: 24px;
}

.recipe__img--sheet {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    #fff;
}

.recipe__img--sheet span {
  padding: 8px 16px;
  background: #fff;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.5;
}

/* 登録・ログイン */
.auth {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.auth__title {
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
}

.auth__lead {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.auth__form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth__form .btn {
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.auth__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.auth__note a,
.auth__switch a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth__switch {
  margin-top: 32px;
  font-size: 0.9rem;
  text-align: center;
}

/* 利用規約・プライバシーポリシー */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  font-size: 0.95rem;
}

.legal h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

.legal ol,
.legal ul {
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__table {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 6px 12px;
}

.legal__table dt {
  font-weight: 700;
}

.legal__table dd {
  margin: 0;
}

.legal__scroll {
  overflow-x: auto;
}

.legal__grid {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal__grid th,
.legal__grid td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__grid th {
  background: var(--paper);
}

.legal__date,
.legal__company {
  margin: 0;
  text-align: right;
}

.legal__date {
  margin-top: 40px;
}

/* カテゴリー・検索 */
.category__head {
  margin-bottom: 32px;
}

.category__groups {
  margin-bottom: 16px;
}

.category__groups .pgroup__head h2 {
  font-size: 1.15rem;
}

.chips__current {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.search--page {
  margin: 20px 0 0;
}

.reviews__empty a {
  color: var(--red-dark);
  text-decoration: underline;
}

/* 運営用の確認画面 */
.admin__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.admin__tabs button {
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin__tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.admin__check {
  margin-bottom: 24px;
}

.admin__check h2 {
  margin-top: 0;
}

.admin__check ul {
  margin: 0 0 8px;
}

.admin h1 {
  margin-top: 0;
}

.admin__ideas {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.admin__idea {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin__idea strong {
  display: block;
}

.admin__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.admin__badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.admin__badge--published { background: var(--green); }
.admin__badge--draft { background: var(--ink-soft); }
.admin__badge--pending { background: var(--yellow); color: var(--ink); }

.admin__editor {
  margin-top: 0;
}

.admin__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.admin__editor input[type="text"],
.admin__editor input:not([type]),
.admin__editor select,
.admin__editor textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
}

.admin__group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9rem;
}

.admin__group legend {
  font-weight: 700;
  font-size: 0.85rem;
}

.admin__steps {
  margin: 0 0 10px;
  padding-left: 1.4em;
  display: grid;
  gap: 12px;
}

.admin__step {
  display: grid;
  gap: 6px;
}

.admin__check-label {
  font-size: 0.85rem;
}

.admin__cover {
  max-width: 320px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin__pdf {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red-dark);
  text-decoration: underline;
}

.admin__subtabs {
  margin-top: 8px;
}

.admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.admin__actions .btn {
  white-space: nowrap;
}

.admin__actions .btn {
  cursor: pointer;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 28px;
    font-family: var(--font-round);
    font-weight: 700;
    font-size: 0.95rem;
  }

  .nav a:hover {
    color: var(--red);
  }


  .cats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 600px;
    padding: 160px 16px;
  }

  .shape--1 { top: 40px; left: 0; width: 120px; height: 120px; }
  .shape--2 { top: 0; left: 150px; width: 70px; height: 70px; }
  .shape--3 { top: 0; left: auto; right: 260px; width: 110px; height: 110px; border-radius: 0 0 0 100%; }
  .shape--4 { top: 0; right: 0; width: 200px; height: 300px; }
  .shape--5 { bottom: 0; left: 0; width: 260px; height: 160px; }
  .shape--6 { bottom: 0; left: 280px; width: 90px; height: 90px; }
  .shape--7 { bottom: 0; right: 230px; width: 140px; height: 140px; }
  .shape--8 { bottom: 0; right: 0; width: 200px; height: 130px; }
  .shape--9 { display: block; top: 150px; left: 9%; width: 70px; height: 70px; background: var(--green); border-radius: 0 100% 0 0; }

  .hero__cutline {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 0 16;
  }

  .hero__cutline path {
    vector-effect: non-scaling-stroke;
  }

  .hero__scissors {
    display: block;
    position: absolute;
    top: 20px;
    right: 26px;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(200deg);
  }

  .steps__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pgroups {
    grid-template-columns: repeat(2, 1fr);
  }

  .idea__layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }

  .idea__side {
    top: 88px;
    bottom: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }

  .idea__side p {
    display: block;
  }

  .review:has(> img) {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }

  .review img {
    order: 0;
    width: 100%;
  }

  .author {
    grid-template-columns: auto 1fr auto;
  }

  .author__more {
    grid-column: auto;
  }

  .recipes {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* PC */
@media (min-width: 1024px) {
  .pc-only {
    display: inline;
  }

  .hero {
    padding: 150px 16px 170px;
  }

  .intro {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
