:root {
  --bg: #fffaf1;
  --paper: #fffdf8;
  --ink: #2e2a25;
  --muted: #756d62;
  --line: #e9ddcc;
  --green: #6c9b72;
  --green-dark: #42684a;
  --apricot: #f2b37b;
  --rose: #d98275;
  --sky: #dff1f5;
  --shadow: 0 18px 44px rgba(72, 56, 34, .1);
  --container: min(1250px, 95%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 12% 10%, rgba(108, 155, 114, .16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(242, 179, 123, .18), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #fff7eb 52%, #f7f2e9 100%);
}

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

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

input,
textarea,
select,
button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(2.5%, calc((100% - 1250px) / 2));
  background: rgba(255, 250, 241, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 221, 204, .8);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #463a35;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.brand i {
  font-size: .92rem;
}

.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  right: 14px;
  left: 14px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 12px;
  color: var(--muted);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.hero,
.section,
.page,
.bottom-cta {
  width: var(--container);
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: 28px;
  min-height: auto;
  padding: 34px 0 30px;
  align-items: center;
}

.hero h1,
.page h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 7.2vw, 3.45rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--green-dark);
  animation: titleFloat 4.8s ease-in-out infinite;
}

.home-main h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.25rem);
  line-height: 1.25;
}

.hero p {
  color: var(--muted);
  font-size: 1.04rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-actions,
.admin-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button.quiet {
  color: var(--green-dark);
}

.button.small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: .92rem;
}

.button.large {
  width: 100%;
  margin-top: 12px;
}

.hero-visual {
  position: relative;
  min-height: 335px;
  padding: 12px 0 30px;
}

.hero-photo,
.hero-sub-photo,
.section-photo,
.image-band img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo-frame {
  position: relative;
  isolation: isolate;
}

.hero-photo-frame::before {
  position: absolute;
  inset: -12px 18px 22px -12px;
  z-index: -1;
  content: "";
  background: #e6f1df;
  border: 1px solid #c9ddc2;
  border-radius: 8px;
  transform: rotate(-2deg);
}

.hero-photo-frame::after {
  position: absolute;
  top: 22px;
  right: -10px;
  z-index: -1;
  width: 124px;
  height: 124px;
  content: "";
  background: #f7c78e;
  border-radius: 50%;
  opacity: .55;
}

.hero-photo {
  aspect-ratio: 4 / 3;
}

.hero-sub-photo {
  position: absolute;
  right: -2px;
  bottom: -34px;
  width: min(42%, 210px);
  aspect-ratio: 1 / 1;
  border: 6px solid var(--paper);
}

.hero-mini-card {
  position: absolute;
  left: 8px;
  bottom: 4px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(72, 56, 34, .12);
}

.hero-mini-card span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--rose);
  border-radius: 50%;
}

.hero-mini-card p {
  margin: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-note {
  position: absolute;
  right: 14px;
  top: 8px;
  bottom: auto;
  display: flex;
  gap: 10px;
  width: min(260px, 82%);
  padding: 14px;
  align-items: center;
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(72, 56, 34, .12);
}

.hero-note p {
  margin: 0;
  font-size: .94rem;
}

.hero-note i {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.section,
.page {
  padding: 56px 0;
}

.page > .section {
  width: 100%;
}

.section.soft {
  padding: 28px;
  background: #fff4e4;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(72, 56, 34, .06);
}

.section-head {
  margin-bottom: 22px;
}

.section h2,
.form-shell h1,
.article h1,
.admin-card h1 {
  line-height: 1.28;
  letter-spacing: 0;
}

.feature-grid,
.flow-list,
.post-list,
.result-grid,
.stats,
.worry-grid {
  display: grid;
  gap: 14px;
}

.feature-grid article,
.flow-list article,
.worry-grid article,
.post-card,
.form-shell,
.result-grid article,
.admin-card,
.message-list article {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(72, 56, 34, .06);
}

.page > .result-grid {
  width: 100%;
  margin: 20px 0 28px;
}

.feature-grid article i,
.worry-grid article i {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.worry-grid article:nth-child(2) i {
  background: #5c9aad;
}

.worry-grid article:nth-child(3) i {
  background: var(--apricot);
}

.worry-grid article:nth-child(4) i {
  background: var(--rose);
}

.flow-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.flow-section .section-head p:last-child {
  max-width: 720px;
}

.flow-list {
  counter-reset: flow;
}

.flow-list article {
  position: relative;
  padding-top: 22px;
  background: #fffdf8;
}

.flow-list span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: .88rem;
  font-weight: 800;
}

.flow-list h3 {
  margin: 0 0 8px;
}

.feature-grid h3,
.worry-grid h3,
.post-card h3,
.post-card h2 {
  margin: 0 0 8px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

.post-card span,
.note,
.editor-help,
.empty {
  color: var(--muted);
  font-size: .92rem;
}

.post-card h3,
.post-card h2 {
  font-size: 1.05rem;
  line-height: 1.42;
}

.post-card p {
  font-size: .92rem;
}

.split-section,
.image-band {
  display: grid;
  gap: 24px;
  align-items: center;
}

.section-photo {
  aspect-ratio: 4 / 3;
}

.lifestyle-band {
  position: relative;
  gap: 30px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.lifestyle-band::before {
  position: absolute;
  inset: 13% auto 8% 18%;
  z-index: -1;
  width: 62%;
  content: "";
  background: #eef6e8;
  border-radius: 8px;
}

.lifestyle-photo {
  position: relative;
}

.lifestyle-photo::after {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 46%;
  height: 34%;
  content: "";
  background: #f7d3a8;
  border-radius: 8px;
  z-index: -1;
}

.lifestyle-band img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(72, 56, 34, .12);
}

.lifestyle-band > div:last-child {
  padding: 12px 0;
}

.profile-section {
  display: grid;
  gap: 22px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 44px;
}

.profile-section p {
  max-width: 760px;
}

.profile-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-section li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-section i {
  color: var(--green-dark);
}

.column-section {
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid rgba(108, 155, 114, .2);
}

.column-section .post-card {
  background: rgba(255, 253, 248, .84);
  box-shadow: 0 12px 26px rgba(72, 56, 34, .06);
}

.bottom-cta {
  width: 100%;
  margin-top: 54px;
  margin-bottom: 0;
  padding: 44px max(2.5%, calc((100% - 760px) / 2));
  text-align: center;
  background: #edf6e9;
  border-top: 1px solid #cbe2ca;
  border-bottom: 1px solid #cbe2ca;
}

.bottom-cta h2 {
  margin: 0 0 12px;
}

.text-link {
  color: var(--green-dark);
  font-weight: 700;
}

.site-footer {
  padding: 36px 20px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.form-shell {
  width: min(720px, 100%);
  margin-inline: auto;
}

.form-shell.wide {
  width: min(980px, 100%);
}

.stack-form,
.counseling-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #aaa093;
}

select:invalid {
  color: #92877a;
}

select option {
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.notice,
.error {
  padding: 12px 14px;
  border-radius: 8px;
}

.notice {
  background: #edf6e9;
  color: var(--green-dark);
}

.error {
  background: #fff0ed;
  color: #9a3b32;
}

.profile-grid,
.check-section,
.check-grid,
.type-score-grid,
.result-type-list,
.material-pages,
.message-list,
.answer-list {
  display: grid;
  gap: 12px;
}

.check-section {
  margin-top: 20px;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

legend {
  padding: 0 8px;
  font-weight: 700;
}

legend span,
.big-label span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}

.check-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  font-weight: 500;
}

.check-card input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green);
}

.result-hero {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-hero img {
  width: min(230px, 80%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(72, 56, 34, .13);
}

.result-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.type-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.type-score span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

.type-score strong {
  line-height: 1.25;
}

.type-score small {
  color: #5f5950;
}

.type-score b {
  grid-row: span 2;
  font-size: 1.35rem;
  color: var(--ink);
}

.type-score.is-top {
  border-color: currentColor;
  box-shadow: 0 10px 26px rgba(72, 56, 34, .1);
}

.type-green {
  color: #3f7f5c;
  background: #f2faf1;
}

.type-red {
  color: #a9504c;
  background: #fff3f1;
}

.type-yellow {
  color: #917b23;
  background: #fffbe7;
}

.type-peach {
  color: #b96354;
  background: #fff4ec;
}

.type-blue {
  color: #2f6f99;
  background: #eef8ff;
}

.type-aqua {
  color: #347f87;
  background: #effbfa;
}

.type-green span {
  background: #3f7f5c;
}

.type-red span {
  background: #a9504c;
}

.type-yellow span {
  background: #917b23;
}

.type-peach span {
  background: #b96354;
}

.type-blue span {
  color: #fff;
  background: #2f6f99;
}

.type-aqua span {
  color: #fff;
  background: #347f87;
}

.result-type-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.result-type-image {
  width: min(180px, 68%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-inline: auto;
  border: 6px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(72, 56, 34, .12);
}

.result-type-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.25;
}

.result-type-card h3 span {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 9px;
  color: #332b25;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(72, 56, 34, .12);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
}

.result-advice-grid {
  display: grid;
  gap: 10px;
}

.result-advice-grid div {
  padding: 12px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(72, 56, 34, .1);
  border-radius: 8px;
}

.result-advice-grid h4 {
  margin: 0 0 4px;
  color: #332b25;
  font-size: .9rem;
}

.result-advice-grid p {
  margin: 0;
  font-weight: 700;
  line-height: 1.65;
}

.material-pages img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(72, 56, 34, .08);
}

.next-contact {
  display: grid;
  justify-items: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(72, 56, 34, .08);
}

.next-contact i {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 1.4rem;
}

.big-label {
  margin: 0;
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.article {
  width: min(760px, 100%);
  margin-inline: auto;
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 22px;
}

.article-body {
  font-size: 1.04rem;
  line-height: 2;
}

.article-body h2 { margin: 2.3em 0 .8em; color: #334b3b; font-size: 1.65rem; line-height: 1.55; }
.article-body h3 { margin: 1.8em 0 .55em; color: #495c4e; font-size: 1.18rem; line-height: 1.6; }
.article-body p { margin: 0 0 1.35em; }
.article-body img { display: block; width: 100%; height: auto; margin: 34px 0; border-radius: 6px; }
.article-body blockquote { margin: 32px 0; padding: 20px 24px; border-left: 2px solid #78927d; background: #f1f5ef; color: #526056; }

.article-body a,
td a,
.message-list a {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 700;
}

.admin-body {
  background: #f7f2e9;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 12px max(2.5%, calc((100% - 1250px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(72, 56, 34, .06);
}

.admin-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-brand {
  font-weight: 800;
}

.admin-menu-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.admin-top nav {
  display: none;
  gap: 8px;
}

.admin-top nav.is-open {
  display: grid;
}

.admin-top nav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-top nav a:hover,
.admin-top nav a:focus-visible {
  color: var(--green-dark);
  border-color: #c7ddc7;
}

.admin-main {
  width: var(--container);
  margin-inline: auto;
  padding: 22px 0 60px;
}

.admin-hero {
  margin-bottom: 16px;
}

.stats {
  margin-bottom: 16px;
}

.stats a {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.admin-card {
  margin-bottom: 16px;
}

.table-wrap {
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .88rem;
}

.detail-grid {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.detail-grid p,
details {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid strong {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.admin-action-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-action-link.secondary {
  color: var(--green-dark);
  background: #fff;
  border-color: #c7ddc7;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.thumb {
  width: 180px;
  border-radius: 8px;
}

.admin-score-grid {
  margin: 18px 0;
}

.login-panel {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 20px;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js-enabled .reveal.is-visible {
  animation: floatIn .86s ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0);
    color: var(--green-dark);
  }

  50% {
    transform: translateY(-4px);
    color: #d98275;
  }
}

@media (max-width: 719px) {
  .admin-main {
    width: min(100% - 24px, 560px);
    padding-top: 14px;
  }

  .admin-card {
    padding: 18px 14px;
  }

  .admin-card-head {
    align-items: stretch;
  }

  .admin-card-head .button {
    width: 100%;
  }

  .stats {
    gap: 10px;
  }

  .stats a {
    padding: 14px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  td {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
  }

  td[data-label=""] {
    display: block;
    padding-top: 12px;
  }

  td[data-label=""]::before {
    content: none;
  }

  .admin-action-link {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 1.02fr .98fr;
    min-height: auto;
    padding: 28px 0 28px;
  }

  .hero-visual {
    min-height: 455px;
  }

  .feature-grid,
  .flow-list,
  .post-list,
  .result-grid,
  .stats,
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-list {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }

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

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

  .profile-section {
    grid-template-columns: 1.15fr .85fr;
  }

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

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

  .split-section,
  .image-band {
    grid-template-columns: .9fr 1.1fr;
  }

  .result-hero {
    grid-template-columns: 1fr 260px;
    padding: 34px;
  }

  .admin-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-inline: max(2.5%, calc((100% - 1250px) / 2));
  }

  .admin-brand-row {
    display: block;
  }

  .admin-menu-button {
    display: none;
  }

  .admin-top nav,
  .admin-top nav.is-open {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-top nav a {
    border-radius: 999px;
  }
}

@media (min-width: 1020px) {
  .flow-list {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .material-pages {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (max-width: 719px) {
  .section.soft {
    padding: 20px;
  }

  .lifestyle-band {
    padding: 24px 0;
  }

  .hero h1,
  .page h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero h1 span {
    animation: none;
  }
}

/* Final public overrides */
.site-header {
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .32s ease, background-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.site-header.is-header-hidden { opacity: 0; pointer-events: none; transform: translateY(calc(-100% - 20px)); }
.home-page .site-header,
.home-page .site-header .brand,
.home-page .site-header .site-nav a { color: #365443; }
.home-page .site-header {
  position: fixed;
  top: 12px;
  right: auto;
  left: 50%;
  width: min(94%, 1250px);
  padding: 12px 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(57, 74, 62, .08);
  backdrop-filter: blur(18px) saturate(1.08);
  transform: translateX(-50%);
}
.home-page .site-header.is-header-scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 12px 34px rgba(49, 66, 54, .13); }
.home-page .site-header.is-header-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.home-page .menu-button { color: #365443; background: rgba(255, 255, 255, .42); border-color: rgba(54, 84, 67, .28); }
.home-page .home-hero { color: #33453a; background: #f4f6f0; }
.home-page .home-hero-shade { background: rgba(255, 255, 255, .12); }
.home-page .home-hero h1 { color: #30483a; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.home-page .home-hero-visual picture { position: absolute; inset: 0; display: block; }
.home-page .home-hero-media,
.home-page.is-home-ready .home-hero-media {
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.08);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.home-page .home-hero-copy {
  transform: translate3d(0, var(--hero-copy-shift, 0), 0);
  opacity: var(--hero-copy-opacity, 1);
}

.home-page .diagnosis-cta-link,
.home-page .home-diagnosis-cta .diagnosis-cta-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: auto;
  min-width: min(100%, 330px);
  min-height: 62px;
  margin: 0;
  padding: 8px 10px 8px 24px;
  overflow: hidden;
  border: 1px solid #a84f3d;
  border-radius: 2px;
  background: #a84f3d;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .35s ease, border-color .35s ease, transform .35s ease;
}

.home-page .home-hero .diagnosis-cta-link {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 251, 244, .94);
  color: #332b28;
  box-shadow: 0 12px 30px rgba(31, 24, 20, .13);
}

.home-page .diagnosis-cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fffaf1;
  transform: translateX(-102%);
  transition: transform .48s cubic-bezier(.65, 0, .2, 1);
}

.home-page .diagnosis-cta-link i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}

.home-page .diagnosis-cta-link:hover { color: #7a382c; transform: translateY(-3px); }
.home-page .diagnosis-cta-link:hover::before { transform: translateX(0); }
.home-page .diagnosis-cta-link:hover i { transform: translateX(3px) rotate(-35deg); background: #f0d7cc; }

.site-footer {
  padding: 58px max(2.5%, calc((100% - 1250px) / 2)) 24px;
  border: 0;
  background: #302c2a;
  color: #fff;
}

.site-footer .site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1250px;
  margin: 0 auto;
}

.site-footer .footer-brand { align-self: auto; color: #fff; font-size: clamp(28px, 3vw, 42px); }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.site-footer .footer-nav a { color: rgba(255, 255, 255, .78); font-size: 13px; text-decoration: none; }
.site-footer > .footer-copy { max-width: 1250px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .45); font-size: 11px; text-align: right; }

.home-updates .news-list > a {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .17);
  color: inherit;
  text-decoration: none;
}

.archive-news-list > a { display: grid; grid-template-columns: 130px minmax(0, 1fr) 20px; gap: 24px; align-items: center; width: 100%; padding: 24px 0; border-bottom: 1px solid #d9d2c7; color: inherit; text-decoration: none; }
.archive-news-list > .empty { display: block; width: 100%; max-width: none; white-space: normal; }

@media (max-width: 760px) {
  .home-page .home-hero-copy { position: absolute; opacity: 1; }
  .home-page .diagnosis-cta-link { width: 100%; min-width: 100%; min-height: 58px; padding-left: 18px; font-size: 14px; }
  .site-footer { padding: 44px 5% 22px; }
  .site-footer .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 32px; }
  .site-footer .footer-nav { justify-content: flex-start; gap: 14px 22px; }
  .site-footer > .footer-copy { margin-top: 34px; text-align: left; }
  .archive-news-list > a { grid-template-columns: 1fr 18px; gap: 9px; }
  .archive-news-list > a time { grid-column: 1 / -1; }
}

@media (max-width: 719px) {
  .home-page .service-steps::before {
    top: 8px;
    bottom: 8px;
    left: 35px;
  }

  .home-page .service-steps li {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 0;
    align-items: start;
    padding: 17px 0 19px;
  }

  .home-page .service-steps b {
    padding-top: 2px;
    font-size: 1.15rem;
  }

  .home-page .service-steps strong {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .home-page .service-steps small {
    margin-top: 8px;
    font-size: .8rem;
    line-height: 1.85;
  }
}

/* Admin operations UI */
.admin-body { overflow-x: hidden; background: #f3f5f2; }
.admin-body .admin-main { min-width: 0; }
.admin-body .admin-page-head h1,
.admin-body .admin-hero h1,
.admin-body .admin-card h1 { color: #26332b; letter-spacing: 0; }
.admin-body .admin-page-head h1 small,
.admin-body .detail-head h1 small { margin-left: 5px; color: #68736b; font-size: .48em; font-weight: 500; }
.admin-body .admin-card { padding: 26px; }
.admin-body .admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-body .admin-section-heading h2 { margin: 2px 0 0; color: #2c3930; font-size: 20px; }
.admin-body .admin-section-heading > p { max-width: 420px; margin: 0; color: #7a837d; font-size: 12px; }

/* Dashboard */
.admin-body .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-body .stats a { min-width: 0; padding: 18px 20px; color: #556159; font-size: 13px; text-decoration: none; }
.admin-body .stats span { margin-bottom: 4px; font-size: 28px; line-height: 1; }

/* Workflow badges */
.workflow-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.workflow-badge.is-new { border-color: #e8c7bf; background: #fff1ed; color: #a84836; }
.workflow-badge.is-info { border-color: #cbdce9; background: #eff7fc; color: #35637d; }
.workflow-badge.is-progress { border-color: #d8d1ea; background: #f5f1fb; color: #64527f; }
.workflow-badge.is-success { border-color: #bfdbc8; background: #edf8f0; color: #2f6842; }
.workflow-badge.is-warning { border-color: #e5d6ae; background: #fff8e7; color: #806221; }
.workflow-badge.is-muted { border-color: #d9ddda; background: #f2f4f2; color: #69716c; }

/* Counseling list */
.submission-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.submission-controls .admin-tabs { margin: 0; }
.submission-filter { display: flex; align-items: center; gap: 9px; margin: 0; }
.submission-filter label { color: #6d7770; font-size: 12px; font-weight: 700; }
.submission-filter select { width: auto; min-width: 172px; min-height: 40px; padding: 8px 34px 8px 11px; background-color: #fff; font-size: 13px; }
.submission-list { gap: 9px; }
.submission-card { grid-template-columns: minmax(200px, .85fr) minmax(340px, 1.4fr) auto; gap: 28px; padding: 17px 19px; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.submission-card:hover { border-color: #c8d4ca; box-shadow: 0 8px 24px rgba(41, 55, 45, .055); }
.submission-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.submission-card-meta time { color: #838c86; font-size: 11px; }
.submission-card h2 { margin: 0; font-size: 18px; }
.submission-card h2 a { color: #26332b; text-decoration: none; }
.submission-card h2 small { font-size: 12px; }
.submission-type { margin-top: 5px; color: #66736b; font-size: 11px; }
.submission-contact-summary { display: grid !important; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 18px !important; margin: 0; }
.submission-contact-summary div { display: grid !important; grid-template-columns: 62px minmax(0, 1fr); gap: 7px !important; }
.submission-contact-summary div:nth-child(2) { grid-column: 2; grid-row: 1; }
.submission-contact-summary div:nth-child(3) { grid-column: 2; grid-row: 2; }
.submission-contact-summary dt { color: #8a938d; font-size: 10px; }
.submission-contact-summary dd { color: #3c4840; font-size: 12px; }
.submission-card-actions { min-width: 132px; flex-direction: column; align-items: stretch; gap: 7px; }
.submission-card-actions .admin-action-link { min-height: 36px; justify-content: space-between; padding: 0 12px; border-radius: 4px; font-size: 12px; }
.submission-card-actions button { width: 100%; min-height: 30px; }

/* Counseling detail */
.admin-back-link { margin: 0 0 20px; }
.admin-back-link a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.detail-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.detail-title-row h1 { margin-right: 4px; }
.archive-form button { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #d4ddd5; border-radius: 4px; background: #fff; color: #68736b; font: inherit; font-size: 11px; cursor: pointer; }
.admin-save-notice { display: flex; align-items: center; gap: 8px; margin: -10px 0 18px; padding: 10px 13px; border: 1px solid #c7ddce; border-radius: 5px; background: #eef8f1; color: #356344; font-size: 12px; }
.consultation-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 16px; }
.customer-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #e2e7e2; }
.customer-data div { min-width: 0; padding: 15px 2px; border-bottom: 1px solid #e2e7e2; }
.customer-data div:nth-child(odd) { padding-right: 18px; }
.customer-data dt { margin-bottom: 4px; color: #88918b; font-size: 10px; font-weight: 700; }
.customer-data dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #303c34; font-size: 14px; }
.customer-data a { color: #356248; font-weight: 600; text-decoration: none; }
.followup-form { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.followup-form label { padding-top: 11px; color: #69736c; font-size: 11px; font-weight: 700; }
.followup-form select,
.followup-form textarea { font-size: 14px; font-weight: 400; }
.followup-form textarea { min-height: 116px; resize: vertical; }
.compact-save-button { grid-column: 2; justify-self: end; display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid #456b53; border-radius: 4px; background: #456b53; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.diagnosis-summary-panel { margin-top: 16px; }
.diagnosis-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e0e5e0; border-bottom: 1px solid #e0e5e0; }
.diagnosis-primary > div { padding: 16px 18px 16px 0; }
.diagnosis-primary > div + div { padding-left: 20px; border-left: 1px solid #e0e5e0; }
.diagnosis-primary span { display: block; margin-bottom: 5px; color: #879089; font-size: 10px; font-weight: 700; }
.diagnosis-primary strong { color: #34443a; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 21px; font-weight: 500; }
.diagnosis-primary small { margin-left: 10px; color: #7d867f; font-size: 11px; }
.score-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; }
.score-strip div { padding: 3px 12px; border-left: 1px solid #e2e6e2; }
.score-strip div:first-child { border-left: 0; }
.score-strip dt { color: #7c867f; font-size: 10px; }
.score-strip dd { margin: 2px 0 0; color: #4e5a52; font-size: 18px; font-weight: 700; }
.score-strip dd small { margin-left: 2px; font-size: 9px; }
.score-strip .is-top dt,
.score-strip .is-top dd { color: #a84d3b; }
.answer-detail-panel { margin-top: 16px; }
.answer-section + .answer-section { margin-top: 26px; }
.answer-section > h3 { margin: 0 0 10px; color: #56645b; font-size: 14px; }
.answer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.answer-list details { padding: 0; overflow: hidden; border-radius: 5px; background: #fbfcfb; }
.answer-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; font-size: 12px; }
.answer-list summary small { color: #89928c; font-size: 10px; }
.answer-list details ul,
.answer-list details > p { margin: 0; padding: 4px 30px 14px; color: #566159; font-size: 12px; line-height: 1.75; }

/* Contacts */
.contact-admin-list { display: grid; gap: 8px; }
.contact-admin-row { display: grid; grid-template-columns: 120px minmax(170px, .7fr) minmax(260px, 1.2fr) 92px; gap: 20px; align-items: center; padding: 17px 19px; border: 1px solid #dfe5de; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-admin-row:hover { border-color: #c7d4c9; box-shadow: 0 8px 22px rgba(41, 55, 45, .05); }
.contact-admin-row time { color: #838c86; font-size: 11px; }
.contact-admin-row h2 { margin: 0; font-size: 16px; }
.contact-admin-row h2 small { margin-left: 3px; color: #737d76; font-size: 11px; font-weight: 500; }
.contact-admin-row div p,
.contact-admin-excerpt { margin: 4px 0 0; color: #727c75; font-size: 11px; overflow-wrap: anywhere; }
.contact-admin-excerpt { margin: 0; color: #4f5b53; line-height: 1.7; }
.contact-admin-row > span { display: flex; align-items: center; justify-content: space-between; color: #476b54; font-size: 11px; font-weight: 700; }
.contact-detail-layout { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 16px; }
.contact-detail-layout .customer-data { grid-template-columns: 1fr; }
.contact-detail-layout .customer-data div { padding-right: 0; }
.contact-reply-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 0 14px; border-radius: 4px; background: #456b53; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.contact-message-body { padding-top: 18px; border-top: 1px solid #e2e7e2; color: #39453d; font-size: 14px; line-height: 2; overflow-wrap: anywhere; }

/* Content editor */
.content-editor-form { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.editor-content-panel { min-width: 0; }
.editor-publish-panel { position: sticky; top: 24px; }
.editor-publish-panel h2 { margin: 0 0 22px; font-size: 18px; }
.editor-field { display: grid; gap: 8px; }
.editor-field + .editor-field { margin-top: 24px; }
.editor-field > label,
.editor-field-heading label { color: #3b4840; font-size: 12px; font-weight: 700; }
.editor-field > small,
.editor-field-heading small,
.editor-publish-note { margin: 0; color: #818a84; font-size: 10px; line-height: 1.65; }
.editor-field input,
.editor-field textarea,
.editor-field select { font-size: 14px; font-weight: 400; }
.editor-title-field input { min-height: 54px; font-size: 20px; }
.slug-input { display: flex; align-items: stretch; overflow: hidden; border: 1px solid #d8ddd7; border-radius: 5px; background: #f4f6f3; }
.slug-input:focus-within { border-color: #668873; box-shadow: 0 0 0 3px rgba(102, 136, 115, .1); }
.slug-input span { display: flex; align-items: center; padding: 0 10px; border-right: 1px solid #d8ddd7; color: #8a928d; font-size: 10px; white-space: nowrap; }
.slug-input input { min-width: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none !important; }
.editor-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.editor-thumbnail-preview { display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: 14px; object-fit: cover; border-radius: 5px; }
.editor-save-button { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; border: 1px solid #456b53; border-radius: 4px; background: #456b53; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rich-editor-source { position: absolute !important; }
.rich-editor { border-radius: 5px; }
.rich-toolbar { position: sticky; top: 0; z-index: 2; align-items: center; gap: 7px; padding: 7px 9px; background: #f5f7f4; }
.rich-toolbar-group { display: flex; align-items: center; gap: 2px; padding-right: 7px; border-right: 1px solid #dce2dc; }
.rich-toolbar-group:last-of-type { padding-right: 0; border-right: 0; }
.rich-toolbar button { min-height: 34px; padding: 0 9px; border-radius: 3px; font-size: 11px; font-weight: 500; }
.rich-toolbar button i { width: 14px; }
.rich-editor-canvas { min-height: 420px; padding: 24px; background: #fff; color: #303630; font-size: 15px; font-weight: 400; line-height: 1.9; }
.rich-editor-canvas:empty::before { content: attr(data-placeholder); color: #a2aaa4; pointer-events: none; }
.rich-editor-canvas p { margin: 0 0 1em; font-size: 15px; font-weight: 400; }
.rich-editor-canvas h2 { margin: 1.8em 0 .65em; font-size: 22px; font-weight: 700; line-height: 1.5; }
.rich-editor-canvas h3 { margin: 1.55em 0 .55em; font-size: 18px; font-weight: 700; line-height: 1.55; }
.rich-editor-canvas a { color: #356a4b; text-decoration: underline; }
.rich-editor-canvas ul { padding-left: 1.5em; }

@media (max-width: 1100px) {
  .submission-card { grid-template-columns: minmax(180px, .8fr) minmax(270px, 1.1fr); }
  .submission-card-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .submission-card-actions .admin-action-link { width: 150px; }
  .submission-card-actions button { width: auto; }
  .contact-admin-row { grid-template-columns: 108px minmax(180px, .8fr) minmax(0, 1.2fr); }
  .contact-admin-row > span { grid-column: 3; justify-self: end; }
}

@media (max-width: 960px) {
  .admin-body .admin-top { padding-inline: 16px; }
  .admin-body .admin-main { width: min(calc(100% - 32px), 760px); padding: 24px 0 64px; }
  .admin-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consultation-workspace,
  .contact-detail-layout { grid-template-columns: 1fr; }
  .content-editor-form { grid-template-columns: 1fr; }
  .editor-publish-panel { position: static; }
}

@media (max-width: 640px) {
  .admin-body .admin-top { padding: 10px 12px; }
  .admin-body .admin-main { width: calc(100% - 28px); padding-top: 22px; }
  .admin-body .admin-page-head { gap: 9px; margin-bottom: 22px; }
  .admin-body .admin-page-head h1 { margin-top: 2px; font-size: 27px; line-height: 1.35; }
  .admin-body .admin-card { padding: 19px 16px; }
  .admin-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body .stats a { padding: 14px; }
  .submission-controls { align-items: stretch; flex-direction: column; gap: 12px; }
  .submission-filter { justify-content: space-between; }
  .submission-filter select { min-width: 0; flex: 1; }
  .submission-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .submission-contact-summary { grid-template-columns: 1fr !important; padding-top: 12px; border-top: 1px solid #e5e9e5; }
  .submission-contact-summary div,
  .submission-contact-summary div:nth-child(2),
  .submission-contact-summary div:nth-child(3) { grid-column: auto; grid-row: auto; }
  .submission-card-actions { grid-column: auto; justify-content: space-between; }
  .submission-card-actions .admin-action-link { width: auto; flex: 1; }
  .submission-card-actions form { flex: 0 0 auto; }
  .customer-data { grid-template-columns: 1fr; }
  .customer-data div:nth-child(odd) { padding-right: 0; }
  .followup-form { grid-template-columns: 1fr; gap: 7px; }
  .followup-form label { padding-top: 4px; }
  .compact-save-button { grid-column: 1; justify-self: start; }
  .diagnosis-primary { grid-template-columns: 1fr; }
  .diagnosis-primary > div + div { padding-left: 0; border-top: 1px solid #e0e5e0; border-left: 0; }
  .score-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .score-strip div:nth-child(4) { border-left: 0; }
  .answer-list { grid-template-columns: 1fr; }
  .answer-detail-panel .admin-section-heading { flex-direction: column; }
  .contact-admin-row { grid-template-columns: 1fr 22px; gap: 10px 14px; padding: 16px; }
  .contact-admin-row time { grid-column: 1; }
  .contact-admin-row div { grid-column: 1; }
  .contact-admin-excerpt { grid-column: 1; }
  .contact-admin-row > span { grid-column: 2; grid-row: 1 / 4; align-self: center; font-size: 0; }
  .contact-admin-row > span i { font-size: 13px; }
  .editor-field-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .slug-input { display: grid; }
  .slug-input span { min-height: 32px; border-right: 0; border-bottom: 1px solid #d8ddd7; }
  .rich-toolbar { overflow-x: auto; flex-wrap: nowrap; }
  .rich-toolbar-group { flex: 0 0 auto; }
  .rich-toolbar button span { display: inline; }
  .rich-editor-canvas { min-height: 330px; padding: 18px 15px; font-size: 14px; }
  .rich-editor-canvas p { font-size: 14px; }
}

/* Hero: paper opens into the dining scene */
.home-page .home-hero {
  position: relative;
  display: block;
  height: min(850px, 100svh);
  min-height: 640px;
  overflow: hidden;
  background: #e8ede4;
  color: #2e4939;
  isolation: isolate;
}

.home-page .home-hero-paper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8ede4;
  box-shadow: inset 0 -1px rgba(53, 76, 61, .14);
  transform: translate3d(var(--hero-paper-shift, 0), 0, 0);
  will-change: transform;
}

.home-page .home-hero-paper::after {
  content: "FOOD & DAILY LIFE";
  position: absolute;
  bottom: 36px;
  left: max(3.2%, calc((100% - 1250px) / 2));
  color: rgba(46, 73, 57, .5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.home-page .home-hero-visual {
  position: absolute;
  z-index: 1;
  top: var(--hero-window-top, 96px);
  right: 0;
  bottom: 0;
  left: var(--hero-window-left, 52%);
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transform: none;
  transition: clip-path 1.25s cubic-bezier(.22, 1, .36, 1), left .08s linear;
  will-change: left, clip-path;
}

.home-page.is-home-ready .home-hero-visual {
  clip-path: inset(0);
  transform: none;
}

.home-page .home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 1px;
  background: rgba(255, 255, 255, .64);
}

.home-page .home-hero-visual picture {
  position: absolute;
  inset: 0;
  display: block;
}

.home-page .home-hero-visual .home-hero-media,
.home-page.is-home-ready .home-hero-visual .home-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  transform: scale(var(--hero-photo-scale, 1.045));
  animation: none;
  transition: transform .12s linear;
  will-change: transform;
}

.home-page .home-hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: max(5%, calc((100% - 1250px) / 2));
  width: min(43vw, 590px);
  margin: 0;
  color: #2e4939;
  opacity: var(--hero-copy-opacity, 1);
  transform: translate3d(0, calc(-50% + var(--hero-copy-shift, 0px)), 0);
  will-change: opacity, transform;
}

.home-page .home-hero h1 {
  margin: 0 0 42px;
  color: #2d4939;
  font-size: clamp(3rem, 5vw, 5.35rem);
  font-weight: 400;
  line-height: 1.32;
  text-shadow: none;
  letter-spacing: 0;
}

.home-page .home-hero h1 [data-typewriter] {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px);
  clip-path: inset(0 0 100% 0);
}

.home-page.is-home-ready .home-hero h1 [data-typewriter] {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0);
  transition: opacity .7s ease var(--line-delay, 260ms), transform 1s cubic-bezier(.22, 1, .36, 1) var(--line-delay, 260ms), clip-path 1s cubic-bezier(.22, 1, .36, 1) var(--line-delay, 260ms);
}

.home-page .home-hero .diagnosis-cta-link {
  background: #385b47;
  border-color: #385b47;
  box-shadow: 0 14px 32px rgba(46, 73, 57, .15);
}

.home-page .home-scroll {
  z-index: 4;
  color: #2f4d3c;
}

.home-page .home-scroll span { background: #4e705c; }

@media (max-width: 719px) {
  .home-page .home-hero {
    height: min(900px, 100svh);
    min-height: 760px;
  }

  .home-page .home-hero-paper::after {
    top: 112px;
    right: 18px;
    bottom: auto;
    left: auto;
  }

  .home-page .home-hero-visual,
  .home-page.is-home-ready .home-hero-visual {
    top: var(--hero-window-top, 50%);
    right: 0;
    bottom: 0;
    left: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.15s cubic-bezier(.22, 1, .36, 1), top .08s linear;
  }

  .home-page.is-home-ready .home-hero-visual { clip-path: inset(0); }

  .home-page .home-hero-visual .home-hero-media,
  .home-page.is-home-ready .home-hero-visual .home-hero-media {
    object-position: center 55%;
  }

  .home-page .home-hero-copy {
    top: 24%;
    left: 6%;
    width: 88%;
    opacity: var(--hero-copy-opacity, 1);
    transform: translate3d(0, calc(-50% + var(--hero-copy-shift, 0px)), 0);
  }

  .home-page .home-hero h1 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 10.7vw, 2.85rem);
    line-height: 1.32;
  }

  .home-page .home-hero .diagnosis-cta-link {
    min-height: 52px;
    padding: 8px 14px 8px 16px;
    box-shadow: 0 10px 24px rgba(46, 73, 57, .13);
  }

  .home-page .home-scroll {
    bottom: 14px;
    color: #2f4d3c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-visual,
  .home-page .home-hero h1 [data-typewriter] {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: none;
  }
}

/* Hero controls: keep these after the legacy home styles */
.home-page .home-hero-visual .home-hero-media,
.home-page.is-home-ready .home-hero-visual .home-hero-media {
  transform: scale(1.04);
  animation: heroIllustrationDrift 18s ease-in-out infinite alternate;
}

.home-page .home-diagnosis-cta {
  color: #332e2a;
  background: #e5e8df;
  border-top: 1px solid #ccd4c9;
  border-bottom: 1px solid #ccd4c9;
}

.home-page .diagnosis-cta-link,
.home-page .home-diagnosis-cta .diagnosis-cta-link {
  min-width: min(100%, 342px);
  min-height: 60px;
  padding: 10px 20px 10px 22px;
  border: 1px solid #4c6655;
  border-radius: 0;
  background: #4c6655;
  color: #fffdf8;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
}

.home-page .home-hero .diagnosis-cta-link {
  border-color: rgba(255, 253, 248, .72);
  background: rgba(255, 253, 248, .94);
  color: #352e2a;
  box-shadow: none;
}

.home-page .diagnosis-cta-link::before { background: #2f4637; }
.home-page .home-hero .diagnosis-cta-link::before { background: #eee5d7; }

.home-page .diagnosis-cta-link i {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: .88rem;
}

.home-page .diagnosis-cta-link:hover { color: #fffdf8; transform: translateY(-2px); }
.home-page .home-hero .diagnosis-cta-link:hover { color: #352e2a; }
.home-page .diagnosis-cta-link:hover i { background: transparent; transform: translateX(5px); }

@media (max-width: 719px) {
  .home-hero h1 br,
  .hero-sp-break,
  .concern-sp-break br { display: block; }

  .home-hero-copy {
    position: absolute;
    top: 190px;
    bottom: auto;
    width: min(82%, 320px);
  }
  .home-hero h1 { font-size: clamp(2.1rem, 10.6vw, 2.65rem); line-height: 1.34; }
  .home-page .diagnosis-cta-link {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    min-height: 54px;
    padding: 9px 15px 9px 17px;
    font-size: .86rem;
    white-space: nowrap;
  }
  .home-scroll { right: auto; bottom: 16px; left: 50%; width: auto; height: 24px; flex-direction: row; gap: 9px; writing-mode: horizontal-tb; transform: translateX(-50%); }
  .home-scroll span { width: 30px; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-visual .home-hero-media { animation: none; }
}

/* Final admin mobile controls */
@media (max-width: 760px) {
  .submission-card-actions { align-items: stretch; flex-direction: column; }
  .submission-card-actions .admin-action-link { justify-content: center; width: 100%; min-height: 46px; border-radius: 5px; }
  .submission-card-actions form,
  .submission-card-actions button { width: 100%; }
  .submission-card-actions button { min-height: 42px; border-radius: 5px; background: #f0f3ef; }
}

.submission-card .admin-action-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  background: #4f785e;
  box-shadow: none;
  transition: background .2s ease, transform .2s ease;
}

.submission-card .admin-action-link:hover {
  background: #3f684e;
  transform: translateY(-2px);
}

/* Hero and diagnosis CTA */
.home-hero-visual {
  position: absolute;
  inset: -4%;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, var(--hero-shift, 0), 0);
  will-change: transform;
}

.home-page .home-hero-visual .home-hero-media,
.home-page.is-home-ready .home-hero-visual .home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroIllustrationDrift 18s ease-in-out infinite alternate;
}

@keyframes heroIllustrationDrift {
  0% { transform: scale(1.04) translate3d(-.5%, 0, 0); }
  100% { transform: scale(1.09) translate3d(1.3%, -.8%, 0); }
}

.hero-sp-break,
.concern-sp-break br { display: none; }

.home-page .diagnosis-cta-link,
.home-page .home-diagnosis-cta .diagnosis-cta-link {
  min-width: min(100%, 342px);
  min-height: 60px;
  padding: 10px 20px 10px 22px;
  border: 1px solid #536c5b;
  border-radius: 0;
  background: #536c5b;
  color: #fffdf8;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.home-page .home-hero .diagnosis-cta-link {
  border-color: rgba(255, 253, 248, .7);
  background: rgba(255, 253, 248, .94);
  color: #352e2a;
  box-shadow: none;
}

.home-page .diagnosis-cta-link::before { background: #2f4637; }
.home-page .home-hero .diagnosis-cta-link::before { background: #f0e8da; }

.home-page .diagnosis-cta-link i {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding-left: 22px;
  border-left: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: .9rem;
}

.home-page .diagnosis-cta-link:hover { color: #fffdf8; transform: translateY(-2px); }
.home-page .home-hero .diagnosis-cta-link:hover { color: #352e2a; }
.home-page .diagnosis-cta-link:hover i { background: transparent; transform: translateX(5px); }

@media (max-width: 760px) {
  .home-page .home-hero-visual .home-hero-media,
  .home-page.is-home-ready .home-hero-visual .home-hero-media {
    object-position: 58% center;
  }

  .home-hero-copy { bottom: 112px; }
  .home-hero h1 { font-size: clamp(2.15rem, 11vw, 2.75rem); line-height: 1.34; }
  .hero-sp-break,
  .concern-sp-break br { display: initial; }

  .home-page .diagnosis-cta-link {
    min-height: 56px;
    padding: 9px 16px 9px 18px;
    font-size: .9rem;
  }

  .home-scroll {
    right: auto;
    bottom: 18px;
    left: 50%;
    flex-direction: row;
    gap: 9px;
    writing-mode: horizontal-tb;
    transform: translateX(-50%);
  }

  .home-scroll span { width: 30px; height: 1px; }
  .concern-sp-break { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-visual .home-hero-media { animation: none; }
}

/* 2026 public refinements */
.home-hero {
  overflow: hidden;
}

.home-hero-media {
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.08);
  will-change: transform;
}

.home-hero-copy {
  transform: translate3d(0, var(--hero-copy-shift, 0), 0);
  opacity: var(--hero-copy-opacity, 1);
  will-change: transform, opacity;
}

.home-hero h1 [data-typewriter] {
  display: inline-block;
  min-height: 1.15em;
}

.home-hero h1 [data-typewriter].is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .82em;
  margin-left: 5px;
  background: currentColor;
  vertical-align: -.04em;
  animation: typing-caret .7s steps(1) infinite;
}

@keyframes typing-caret { 50% { opacity: 0; } }

.diagnosis-cta-link {
  --cta-ink: #fff;
  --cta-bg: #a84f3d;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: min(100%, 330px);
  min-height: 62px;
  padding: 8px 10px 8px 24px;
  overflow: hidden;
  border: 1px solid var(--cta-bg);
  border-radius: 2px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
  text-decoration: none;
  transition: color .35s ease, border-color .35s ease, transform .35s ease;
}

.diagnosis-cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fffaf1;
  transform: translateX(-102%);
  transition: transform .48s cubic-bezier(.65, 0, .2, 1);
}

.diagnosis-cta-link i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s ease;
}

.diagnosis-cta-link:hover {
  color: #7a382c;
  transform: translateY(-3px);
}

.diagnosis-cta-link:hover::before { transform: translateX(0); }
.diagnosis-cta-link:hover i { transform: translateX(3px) rotate(-35deg); background: #f0d7cc; }

.home-hero .diagnosis-cta-link {
  --cta-ink: #332b28;
  --cta-bg: rgba(255, 251, 244, .94);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 30px rgba(31, 24, 20, .13);
}

.home-diagnosis-cta .diagnosis-cta-link {
  margin: 0;
}

.site-footer {
  padding: 58px max(2.5%, calc((100% - 1250px) / 2)) 24px;
  border: 0;
  background: #302c2a;
  color: #fff;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1250px;
  margin: 0 auto;
}

.site-footer .footer-brand {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 28px;
}

.footer-nav a {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-nav a:hover { color: #fff; }

.site-footer > .footer-copy {
  max-width: 1250px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  text-align: right;
}

.archive-news-list > a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 20px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid #d9d2c7;
  color: inherit;
  text-decoration: none;
}

.archive-news-list > .empty {
  display: block;
  width: 100%;
  max-width: none;
  white-space: normal;
}

.policy-content { max-width: 980px; }
.policy-body { max-width: 780px; margin: 0 auto 90px; color: #4d4743; line-height: 2; }
.policy-body > p:first-child { margin-bottom: 46px; font-size: 17px; }
.policy-body section { padding: 27px 0; border-top: 1px solid #ddd4c9; }
.policy-body h2 { margin: 0 0 12px; color: #332e2a; font-size: 19px; }
.policy-body p { margin: 0; }
.policy-contact { margin-top: 30px; }
.policy-contact a { color: #496f57; }
.policy-contact small { display: block; margin-top: 16px; color: #8a837d; font-size: 12px; }

/* Visual editor */
.rich-editor-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid #d7ddd5;
  border-radius: 6px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rich-editor:focus-within { border-color: #668873; box-shadow: 0 0 0 3px rgba(102, 136, 115, .12); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid #e2e7e1; background: #f6f8f5; }
.rich-toolbar button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; border: 0; border-radius: 4px; background: transparent; color: #3e4941; font: inherit; font-size: 13px; cursor: pointer; }
.rich-toolbar button:hover { background: #e7eee8; }
.rich-editor-canvas { min-height: 380px; padding: 26px; color: #302e2b; line-height: 1.9; outline: 0; }
.rich-editor-canvas h2 { margin: 1.8em 0 .7em; font-size: 25px; }
.rich-editor-canvas p { margin: 0 0 1.25em; }
.rich-editor-canvas img { display: block; max-width: 100%; height: auto; margin: 26px auto; }
.rich-editor.is-uploading { opacity: .58; pointer-events: none; }

/* Admin workspace */
.admin-body { min-height: 100vh; background: #f2f4f0; color: #263029; }
.admin-top { background: #fff; border-color: #dfe5de; }
.admin-brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.admin-brand span { color: #345541; font-family: "Cormorant Garamond", serif; font-size: 27px; font-style: italic; }
.admin-brand small { color: #7b857e; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.admin-top nav a { border-radius: 5px; }
.admin-top nav a.is-active { background: #e8efe9; color: #315d42; }
.admin-nav-divider { display: block; height: 1px; background: #e2e7e1; }
.admin-main { width: 100%; max-width: 1220px; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.admin-page-head h1 { margin: 3px 0 7px; font-size: clamp(28px, 4vw, 40px); letter-spacing: 0; }
.admin-page-head p { margin: 0; color: #727b75; }
.admin-eyebrow { color: #598068 !important; font-size: 11px !important; font-weight: 800; letter-spacing: .12em !important; }
.admin-card { border: 1px solid #dfe5de; border-radius: 7px; box-shadow: 0 8px 26px rgba(41, 55, 45, .05); }
.admin-tabs { display: flex; gap: 7px; margin-bottom: 18px; }
.admin-tabs a { padding: 11px 16px; border: 1px solid #d8dfd8; border-radius: 5px; background: #fff; color: #56625a; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-tabs a.is-active { border-color: #547661; background: #547661; color: #fff; }
.admin-tabs span { display: inline-grid; min-width: 23px; height: 23px; margin-left: 6px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 11px; }
.submission-list { display: grid; gap: 12px; }
.submission-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px; border: 1px solid #dfe5de; border-radius: 7px; background: #fff; box-shadow: 0 7px 22px rgba(41, 55, 45, .04); }
.submission-card-date { padding-right: 20px; border-right: 1px solid #e3e8e2; text-align: center; }
.submission-card-date time, .submission-card-date small { display: block; }
.submission-card-date time { color: #526159; font-weight: 800; }
.submission-card-date small { margin-top: 5px; color: #89918c; }
.submission-type { margin: 0 0 3px; color: #a34f3d; font-size: 12px; font-weight: 800; }
.submission-card h2 { margin: 0 0 12px; font-size: 21px; }
.submission-card h2 small { margin-left: 4px; font-size: 13px; font-weight: 500; }
.submission-card dl { display: flex; flex-wrap: wrap; gap: 7px 24px; margin: 0; }
.submission-card dl div { display: flex; gap: 8px; min-width: 0; }
.submission-card dt { color: #929a95; font-size: 11px; }
.submission-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.submission-card-actions { display: flex; align-items: center; gap: 10px; }
.submission-card-actions form { margin: 0; }
.submission-card-actions button { border: 0; background: transparent; color: #778079; font: inherit; font-size: 12px; cursor: pointer; }
.submission-card-actions button:hover { color: #a34f3d; }
.admin-empty { display: grid; min-height: 240px; place-items: center; align-content: center; gap: 13px; border: 1px dashed #cfd8cf; border-radius: 7px; color: #78817b; text-align: center; }
.admin-empty i { font-size: 28px; }
.admin-back-link a { color: #55705f; text-decoration: none; }
.detail-head form { margin: 0; }

@media (min-width: 961px) {
  .admin-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
  .admin-top { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 28px 18px; border-right: 1px solid #dfe5de; }
  .admin-brand-row { padding: 0 8px 28px; }
  .admin-menu-button { display: none; }
  .admin-top nav { display: flex; flex-direction: column; gap: 5px; }
  .admin-top nav a { display: flex; align-items: center; gap: 12px; padding: 12px; }
  .admin-top nav a i { width: 19px; text-align: center; }
  .admin-nav-divider { margin: 15px 7px; }
  .admin-main { padding: 45px clamp(28px, 4vw, 64px) 80px; }
}

@media (max-width: 760px) {
  .home-hero-copy { opacity: 1; }
  .diagnosis-cta-link { min-width: 100%; min-height: 58px; padding-left: 18px; font-size: 14px; }
  .site-footer { padding: 44px 5% 22px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 32px; }
  .footer-nav { justify-content: flex-start; gap: 14px 22px; }
  .site-footer > .footer-copy { margin-top: 34px; text-align: left; }
  .archive-news-list > a { grid-template-columns: 1fr 18px; gap: 9px; }
  .archive-news-list > a time { grid-column: 1 / -1; }
  .rich-toolbar button span { display: none; }
  .rich-editor-canvas { min-height: 320px; padding: 18px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .submission-card { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
  .submission-card-date { display: flex; gap: 7px; padding: 0; border: 0; text-align: left; }
  .submission-card-date small { margin: 0; }
  .submission-card-actions { justify-content: space-between; padding-top: 14px; border-top: 1px solid #e4e8e3; }
  .submission-card .admin-action-link { flex: 0 1 auto; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs a { white-space: nowrap; }
}

/* Home lower section refinements */
.login-body {
  display: block !important;
  min-height: 100svh;
  background: #edf1eb;
}

.admin-login {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 110px max(6%, calc((100% - 1180px) / 2)) 70px;
  place-items: center end;
  overflow: hidden;
  isolation: isolate;
}

.admin-login::before {
  position: absolute;
  inset: 0 58% 0 0;
  z-index: -1;
  content: "";
  background: #dfe8df;
  border-right: 1px solid #d1dbd1;
}

.admin-login::after {
  position: absolute;
  bottom: -180px;
  left: -170px;
  z-index: -1;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(61, 91, 70, .14);
  border-radius: 50%;
}

.admin-login-brand {
  position: absolute;
  top: 40px;
  left: max(6%, calc((100% - 1180px) / 2));
  color: #31523d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  text-decoration: none;
}

.admin-login-card {
  width: min(100%, 520px);
  padding: 52px 54px 48px;
  background: #fff;
  border: 1px solid #dce3dc;
  border-radius: 7px;
  box-shadow: 0 22px 60px rgba(43, 60, 48, .1);
}

.admin-login-heading > p {
  margin: 0 0 14px;
  color: #60806a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.admin-login-heading h1 {
  margin: 0 0 16px;
  color: #29362d;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: 0;
}

.admin-login-heading > span {
  color: #778078;
  font-size: 13px;
}

.admin-login-form {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.admin-login-form label,
.admin-settings-form label {
  display: grid;
  gap: 9px;
  color: #38443b;
  font-size: 13px;
  font-weight: 700;
}

.admin-login-form input,
.admin-settings-form input {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #d4ddd5;
  border-radius: 5px;
  outline: 0;
  background: #fbfcfa;
  color: #29342d;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.admin-login-form input:focus,
.admin-settings-form input:focus {
  border-color: #5c7d66;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(83, 118, 94, .11);
}

.admin-login-form button,
.admin-save-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1px solid #3f654c;
  border-radius: 5px;
  background: #3f654c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.admin-login-form button {
  justify-content: space-between;
  margin-top: 8px;
}

.admin-login-form button:hover,
.admin-login-form button:focus-visible,
.admin-save-button:hover,
.admin-save-button:focus-visible {
  background: #31543e;
  box-shadow: 0 9px 22px rgba(49, 84, 62, .16);
  transform: translateY(-2px);
}

.admin-login-error,
.admin-settings-error,
.admin-settings-success {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 24px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
}

.admin-login-error,
.admin-settings-error {
  color: #8f4238;
  background: #fff1ee;
  border: 1px solid #edcec7;
}

.admin-settings-success {
  color: #315d42;
  background: #edf5ee;
  border: 1px solid #cfe0d1;
}

.admin-login-note {
  position: absolute;
  right: max(6%, calc((100% - 1180px) / 2));
  bottom: 28px;
  margin: 0;
  color: #838c85;
  font-size: 11px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.admin-settings-card {
  margin: 0;
  padding: 28px;
}

.admin-settings-head {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e7e2;
}

.admin-settings-head > i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e8efe9;
  color: #41624c;
}

.admin-settings-head h2 {
  margin: 0 0 5px;
  font-size: 19px;
}

.admin-settings-head p {
  margin: 0;
  color: #7b847e;
  font-size: 12px;
  line-height: 1.6;
}

.admin-settings-form {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.admin-settings-form label small {
  color: #89918c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.admin-save-button {
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .admin-login {
    display: block;
    padding: 104px 5% 72px;
  }

  .admin-login::before {
    right: 0;
    bottom: 58%;
    border-right: 0;
    border-bottom: 1px solid #d1dbd1;
  }

  .admin-login-brand {
    top: 28px;
    left: 5%;
    font-size: 1.7rem;
  }

  .admin-login-card {
    padding: 36px 24px 32px;
  }

  .admin-login-note {
    position: static;
    margin: 24px 2px 0;
    text-align: center;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-card {
    padding: 21px 17px;
  }

  .admin-save-button {
    width: 100%;
  }
}

.home-concerns .concern-layout {
  display: grid;
  gap: 44px;
}

.home-concerns .home-section-head {
  margin-bottom: 0;
}

.home-concerns .home-section-head > span {
  display: block;
  max-width: 390px;
  margin-top: 24px;
  color: #6c625b;
  font-size: .88rem;
  line-height: 1.9;
}

.home-concerns .home-section-head h2 {
  font-size: clamp(1.75rem, 7.5vw, 2.65rem);
}

.updates-main-head {
  margin-bottom: 58px;
}

.updates-main-head > p {
  margin: 0 0 12px;
  color: var(--home-sage);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.updates-main-head h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.75rem, 7vw, 2.65rem);
  font-weight: 500;
}

.home-updates .updates-grid {
  display: grid;
  gap: 70px;
}

.home-updates .updates-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(53, 46, 42, .28);
}

.home-updates .updates-head h3 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.home-updates .updates-head > a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--home-sage);
  font-size: .75rem;
  font-weight: 700;
}

.home-updates .updates-head > a i {
  font-size: .68rem;
  transition: transform .3s ease;
}

.home-updates .updates-head > a:hover i,
.home-updates .updates-head > a:focus-visible i {
  transform: translateX(4px);
}

.home-updates .news-list,
.home-updates .home-post-list {
  border-top: 0;
}

.home-updates .news-list > p:first-child,
.home-updates .home-post-list > a:first-child {
  padding-top: 0;
}

.site-footer {
  padding-top: 62px;
}

.site-footer .site-footer-inner {
  display: grid;
  gap: 42px;
  align-items: end;
}

.site-footer .footer-brand {
  align-self: start;
}

.site-footer .footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 0 0 16px;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 253, 248, .42);
}

.site-footer .footer-contact small {
  grid-column: 1 / -1;
  color: rgba(255, 253, 248, .5);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: .62rem;
  letter-spacing: .12em;
}

.site-footer .footer-contact span {
  font-size: 1rem;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.site-footer-bottom .footer-copy {
  margin: 0;
  color: rgba(255, 253, 248, .42);
  text-align: left;
}

@media (min-width: 720px) {
  .home-concerns .concern-layout {
    grid-template-columns: minmax(430px, .85fr) minmax(0, 1.15fr);
    gap: 8%;
    align-items: start;
  }

  .home-updates .updates-grid {
    grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
    gap: 8%;
  }

  .home-updates .home-post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .home-updates .home-post-list > a,
  .home-updates .home-post-list > a:first-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
    padding: 0;
    border-bottom: 0;
  }

  .home-updates .home-post-list > a > i {
    display: none;
  }

  .home-updates .home-post-meta {
    gap: 7px;
  }

  .home-updates .home-post-meta b {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
    font-size: .93rem;
    font-weight: 500;
  }

  .site-footer .site-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .55fr);
  }
}

/* 診断結果は、項目を並べるより一枚のノートとして読ませます。 */
.result-notebook-page {
  width: min(760px, 95%);
  margin: 0 auto;
  padding: 42px 0 28px;
}

.result-notebook-hero {
  position: relative;
  display: grid;
  min-height: 332px;
  padding: 30px 22px 38px;
  overflow: hidden;
  background: #fbf8f1;
  border-bottom: 1px solid #d9cec0;
}

.result-notebook-hero::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 1px;
  content: "";
  background: #55403a;
}

.notebook-kicker,
.notebook-label {
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: .08em;
}

.notebook-kicker {
  display: inline-block;
  margin-top: 15px;
  padding-bottom: 4px;
  color: #8f5145;
  border-bottom: 2px solid #c96b57;
  font-size: 1rem;
}

.notebook-label {
  margin-top: 28px;
  font-size: .72rem;
}

.result-notebook-hero h1,
.result-notebook-sheet h2,
.result-note-section h3,
.result-mail-note h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-weight: 500;
}

.result-notebook-hero h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 14px;
  color: #49332e;
  font-size: clamp(2.25rem, 12vw, 3.8rem);
  letter-spacing: .04em;
  line-height: 1.18;
}

.result-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 22em;
  margin: 0;
  color: #a95846;
  font-weight: 700;
  line-height: 1.9;
}

.result-notebook-hero img {
  position: absolute;
  right: -14px;
  bottom: 8px;
  width: min(46vw, 260px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid rgba(255, 255, 255, .9);
  border-radius: 46% 54% 51% 49% / 51% 47% 53% 49%;
  box-shadow: 0 14px 26px rgba(72, 56, 34, .12);
  transform: rotate(3deg);
}

.result-score-section {
  padding: 30px 0 25px;
}

.result-score-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.result-score-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 8px;
}

.result-score-item {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 2px 7px;
  align-items: center;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
}

.result-score-item > span {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.result-score-item strong {
  font-size: .82rem;
  line-height: 1.2;
}

.result-score-item b {
  font-size: 1.28rem;
  line-height: 1;
}

.result-score-item.is-top {
  color: #ae5d4d;
}

.result-notebook-sheet {
  padding: 28px 22px 8px;
  background-color: #fdfbf5;
  border-top: 1px solid #e2d7ca;
  border-bottom: 1px solid #e2d7ca;
}

.result-note {
  padding: 0 0 26px;
  color: #453a34;
}

.result-note + .result-note {
  padding-top: 28px;
  border-top: 1px dashed #cdb9a9;
}

.result-note .notebook-label {
  margin: 0 0 5px;
  color: #a65b4b;
}

.result-note h2 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.35;
}

.result-note p {
  margin: 0;
  line-height: 2;
}

.result-note .result-condition {
  margin-bottom: 12px;
  color: #76554d;
  font-weight: 700;
}

.result-note-section {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px dashed #cdb9a9;
}

.result-note-section h3 {
  margin: 0 0 8px;
  color: #a65b4b;
  font-size: 1.25rem;
}

.result-mail-note {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 27px 22px;
  background: #edf3e9;
  border-top: 1px solid #b9c8b3;
  border-bottom: 1px solid #b9c8b3;
}

.result-mail-note > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.result-mail-note .notebook-label {
  margin: 0 0 4px;
  color: #4f714f;
}

.result-mail-note h2 {
  margin: 0 0 7px;
  font-size: 1.35rem;
  line-height: 1.45;
}

.result-mail-note p:last-child {
  margin: 0;
  color: #596252;
  font-size: .9rem;
}

.result-organ-note {
  padding: 27px 0 8px;
}

.result-organ-note .notebook-label {
  margin: 0 0 2px;
}

.result-organ-note .big-label {
  margin: 0;
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 800;
}

.result-organ-note .big-label span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
}

.result-disclaimer {
  padding: 27px 0 8px;
}

.result-disclaimer .note {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.8;
}

.result-disclaimer a {
  color: var(--green-dark);
  border-bottom: 1px solid currentColor;
  font-size: .9rem;
}

@media (min-width: 720px) {
  .result-notebook-page {
    padding-top: 56px;
  }

  .result-notebook-hero {
    min-height: 390px;
    padding: 48px;
  }

  .result-notebook-hero img {
    right: 35px;
    bottom: 22px;
    width: 230px;
  }

  .result-notebook-sheet {
    padding: 42px 48px 10px;
  }

  .result-mail-note {
    padding: 32px 48px;
  }
}

/* 結果画面はフォーム側の共通レイアウトから切り離します。 */
body.counseling-page.has-result {
  background: #faf7f0;
}

body.counseling-page.has-result::before {
  content: none;
}

.counseling-page.has-result .page {
  width: 100%;
  padding: 0;
}

.counseling-page.has-result .result-notebook-page {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.counseling-page.has-result .result-notebook-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 26px 20px 24px;
  overflow: visible;
  background: transparent;
  border-bottom: 1px solid #d9cec0;
}

.counseling-page.has-result .result-notebook-hero::before {
  right: 0;
  left: 0;
}

.counseling-page.has-result .notebook-kicker {
  align-self: flex-start;
  margin-top: 10px;
}

.counseling-page.has-result .result-notebook-hero .notebook-label {
  margin-top: 24px;
}

.counseling-page.has-result .result-notebook-hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(2.35rem, 12vw, 3.35rem);
  line-height: 1.15;
}

.counseling-page.has-result .result-hero-copy {
  max-width: none;
  font-size: .98rem;
  line-height: 1.85;
}

.counseling-page.has-result .result-notebook-hero img {
  position: static;
  align-self: center;
  width: min(190px, 62vw);
  height: min(240px, 64vw);
  margin: 22px 0 0;
  object-fit: contain;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.counseling-page.has-result .result-score-section {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 20px 24px;
}

.counseling-page.has-result .result-score-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
}

.counseling-page.has-result .result-score-item {
  min-width: 0;
  color: #776f65;
  background: transparent;
}

.counseling-page.has-result .result-score-item > span {
  color: inherit;
  background: currentColor;
}

.counseling-page.has-result .result-score-item strong {
  overflow-wrap: anywhere;
}

.counseling-page.has-result .result-score-item.score-green {
  color: #64816a;
}

.counseling-page.has-result .result-score-item.score-red {
  color: #a86259;
}

.counseling-page.has-result .result-score-item.score-yellow {
  color: #958044;
}

.counseling-page.has-result .result-score-item.score-peach {
  color: #bb6858;
}

.counseling-page.has-result .result-score-item.score-blue {
  color: #627f95;
}

.counseling-page.has-result .result-score-item.score-aqua {
  color: #56878a;
}

.counseling-page.has-result .result-score-item.is-top {
  color: #b85f4d;
}

.counseling-page.has-result .result-notebook-sheet {
  padding: 30px 20px 8px;
  background: #fdfbf6;
}

.counseling-page.has-result .result-note {
  padding: 0 0 28px;
  color: #453a34;
  background: transparent;
}

.counseling-page.has-result .result-note + .result-note {
  padding-top: 46px;
}

.counseling-page.has-result .result-note h2 {
  font-size: 1.65rem;
}

.counseling-page.has-result .result-note p {
  line-height: 1.95;
}

.counseling-page.has-result .result-mail-note {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  padding: 26px 20px;
}

.counseling-page.has-result .result-mail-note > i {
  width: 40px;
  height: 40px;
}

.counseling-page.has-result .result-mail-note h2 {
  font-size: 1.25rem;
}

.counseling-page.has-result .result-organ-note,
.counseling-page.has-result .result-disclaimer {
  padding-right: 2px;
  padding-left: 2px;
}

.counseling-page.has-result .site-footer {
  margin-top: 0;
  background: #302c2a;
}

@media (min-width: 720px) {
  .counseling-page.has-result .result-notebook-page {
    padding-top: 50px;
  }

  .counseling-page.has-result .result-notebook-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 46px;
    align-items: center;
    padding: 42px 48px 38px;
  }

  .counseling-page.has-result .result-notebook-hero img {
    width: 220px;
    height: 270px;
    margin: 0;
  }

  .counseling-page.has-result .result-score-section {
    padding: 30px 48px 28px;
  }

  .counseling-page.has-result .result-score-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .counseling-page.has-result .result-notebook-sheet {
    padding: 42px 48px 10px;
  }

  .counseling-page.has-result .result-mail-note {
    padding: 30px 48px;
  }

  .counseling-page.has-result .result-organ-note,
  .counseling-page.has-result .result-disclaimer {
    padding-right: 48px;
    padding-left: 48px;
  }
}

/* カウンセリングフォーム */
body.counseling-page:not(.has-result) {
  background: #faf7f0;
}

body.counseling-page:not(.has-result)::before {
  content: none;
}

.counseling-page:not(.has-result) .page {
  width: min(940px, calc(100% - 36px));
  padding: 42px 0 64px;
}

.counseling-page:not(.has-result) .form-shell.wide {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.counseling-intro {
  max-width: none;
  margin-bottom: 42px;
}

.counseling-intro > p:first-child {
  margin: 0 0 9px;
  color: #63806a;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.counseling-intro h1 {
  margin: 0 0 16px;
  color: #40342f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.32;
}

.counseling-intro > p:last-child {
  margin: 0;
  color: #6f675e;
  line-height: 1.9;
}

.counseling-page:not(.has-result) .counseling-form {
  gap: 0;
  margin-top: 0;
}

.profile-section-form {
  padding: 26px 20px 30px;
  background: #f1f3eb;
  border-top: 1px solid #cad3c4;
  border-bottom: 1px solid #cad3c4;
}

.form-section-title {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}

.form-section-title > span {
  padding-top: 2px;
  color: #a85d4c;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.form-section-title h2 {
  margin: 0;
  color: #40342f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.35;
}

.form-section-title p {
  margin: 5px 0 0;
  color: #7a7167;
  font-size: .86rem;
}

.counseling-page:not(.has-result) .profile-grid {
  gap: 17px;
}

.counseling-page:not(.has-result) label {
  color: #554b45;
  font-size: .9rem;
}

.form-required {
  margin-left: 4px;
  color: #bd4737;
  font-size: 1em;
  font-weight: 800;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
}

.counseling-page:not(.has-result) input,
.counseling-page:not(.has-result) select {
  min-height: 48px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .78);
  border: 0;
  border-bottom: 1px solid #bfc8b9;
  border-radius: 0;
  outline: none;
}

.counseling-page:not(.has-result) input:focus,
.counseling-page:not(.has-result) select:focus {
  border-bottom-color: #55755d;
  box-shadow: 0 2px 0 #55755d;
}

.counseling-page:not(.has-result) .check-section {
  gap: 0;
  margin-top: 56px;
}

.counseling-page:not(.has-result) .check-section > .form-section-title {
  padding-bottom: 18px;
  border-bottom: 1px solid #d8cec0;
}

.counseling-page:not(.has-result) fieldset {
  padding: 34px 0 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e1d8cc;
  border-radius: 0;
}

.counseling-page:not(.has-result) fieldset + fieldset {
  margin-top: 24px;
}

.counseling-page:not(.has-result) legend {
  width: 100%;
  padding: 0 0 7px;
  color: #463a35;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.counseling-page:not(.has-result) legend span {
  margin-top: 2px;
  color: #8a7e72;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: .78rem;
}

.counseling-page:not(.has-result) .check-grid {
  grid-template-columns: 1fr;
  gap: 0 18px;
  margin-top: -18px;
}

.counseling-page:not(.has-result) .check-card {
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 46px;
  padding: 11px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eee7de;
  border-radius: 0;
  color: #544a44;
  cursor: pointer;
  line-height: 1.65;
}

.counseling-page:not(.has-result) .check-card:has(input:checked) {
  color: #45634b;
  background: #eef3e9;
}

.counseling-page:not(.has-result) .check-card:last-child {
  border-bottom: 0;
}

.counseling-page:not(.has-result) .check-card input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  background: #fff;
  border: 1px solid #b9b0a5;
  border-radius: 3px;
  box-shadow: none;
}

.button.large.counseling-submit {
  width: min(360px, 100%);
  min-height: 54px;
  margin: 72px auto 0;
  border-radius: 4px;
}

/* 診断結果の仕上げ */
.counseling-page.has-result .result-notebook-hero::before {
  content: none;
}

.counseling-page.has-result .result-notebook-hero .notebook-label {
  margin-top: 0;
}

.counseling-page.has-result .result-notebook-hero img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.result-followup {
  margin-top: 42px;
  padding: 28px 22px;
  background: #edf2e9;
}

.result-followup h2 {
  margin: 3px 0 9px;
  color: #3f493f;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.result-followup p {
  margin: 0;
  color: #5f665d;
  font-size: .9rem;
  line-height: 1.9;
}

.result-followup .result-followup-label {
  color: #62806a;
  font-size: .75rem;
  font-weight: 700;
}

.counseling-page.has-result .result-notebook-hero .notebook-label {
  color: #55745d;
  font-size: 1.05rem;
  font-weight: 700;
}

.counseling-page.has-result ruby {
  ruby-position: over;
}

.counseling-page.has-result rt {
  color: #877c72;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: .38em;
  font-weight: 600;
  letter-spacing: .08em;
}

.counseling-page.has-result .result-notebook-hero h1 rt {
  font-size: .24em;
}

.counseling-page.has-result .result-score-item rt {
  font-size: .58em;
}

.counseling-page.has-result .result-disclaimer {
  max-width: 620px;
  margin: 10px 0 0 auto;
  padding: 0 2px;
  color: #9a938b;
  font-size: .7rem;
  line-height: 1.75;
  text-align: right;
}

.result-back {
  margin: 18px 2px 0;
  text-align: right;
}

.result-back a {
  display: inline-block;
  padding: 5px 0;
  color: #6a7d6d;
  font-size: .78rem;
  text-decoration: none;
}

@media (min-width: 720px) {
  .counseling-page:not(.has-result) .page {
    padding-top: 64px;
  }

  .profile-section-form {
    padding: 34px 38px 38px;
  }

  .counseling-page:not(.has-result) .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }

  .counseling-page:not(.has-result) .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counseling-page:not(.has-result) .check-card:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }

  .result-followup {
    padding: 34px 48px 36px;
  }
}

@media (min-width: 960px) {
  .counseling-intro > p:last-child {
    white-space: nowrap;
  }
}

/* めぐる養生室のロゴ */
.brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.footer-brand img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 719px) {
  .brand img {
    height: 34px;
  }

  .footer-brand img {
    height: 42px;
  }
}

/* Editorial home */
body::before {
  background: #f7f2e8;
}

.home-page {
  --home-paper: #f7f2e8;
  --home-ink: #352e2a;
  --home-sage: #536a58;
  --home-persimmon: #b95743;
  --home-celery: #dde5d8;
  --home-chalk: #fffdf8;
  color: var(--home-ink);
  background: var(--home-paper);
}

.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.home-page .brand,
.home-page .site-nav a {
  color: #fff;
}

.home-page .menu-button {
  color: #fff;
  background: rgba(25, 22, 19, .18);
  border-color: rgba(255, 255, 255, .56);
}

.home-editorial {
  overflow: hidden;
  background: var(--home-paper);
}

.home-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: calc(100svh - 56px);
  min-height: 510px;
  max-height: 850px;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.home-hero-media,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-media {
  z-index: -2;
  object-fit: cover;
  object-position: 64% center;
}

.home-hero-shade {
  z-index: -1;
  background: rgba(25, 22, 19, .38);
}

.home-hero-copy {
  width: min(650px, calc(100% - 40px));
  margin: 0 20px clamp(50px, 9vh, 90px);
}

.home-kicker,
.home-section-head > p,
.home-diagnosis-cta > div > p,
.profile-label,
.updates-head span,
.archive-head > p {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-hero h1 {
  margin: 0 0 20px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(2.05rem, 9.4vw, 4rem);
  font-weight: 500;
  line-height: 1.34;
}

.home-hero-copy > p:not(.home-kicker) {
  max-width: 540px;
  margin: 0 0 24px;
  font-size: .92rem;
  line-height: 1.9;
}

.home-primary-link,
.home-diagnosis-cta > a {
  display: inline-flex;
  width: min(100%, 310px);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  color: var(--home-sage);
  background: var(--home-chalk);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 2px;
  font-weight: 700;
}

.home-primary-link i,
.home-diagnosis-cta > a i,
.more-link i,
.home-post-list > a > i,
.archive-post-list > a > i {
  transition: transform .35s ease;
}

.home-primary-link:hover i,
.home-primary-link:focus-visible i,
.home-diagnosis-cta > a:hover i,
.home-diagnosis-cta > a:focus-visible i,
.more-link:hover i,
.more-link:focus-visible i,
.home-post-list > a:hover > i,
.archive-post-list > a:hover > i {
  transform: translateX(5px);
}

.home-hero-copy small {
  display: block;
  margin-top: 10px;
  font-size: .68rem;
}

.home-scroll {
  position: absolute;
  right: 16px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .58rem;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.home-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, .7);
  transform-origin: top;
}

.home-band {
  padding: 80px 0;
}

.home-inner {
  width: min(1250px, calc(100% - 40px));
  margin-inline: auto;
}

.home-section-head {
  margin-bottom: 40px;
}

.home-section-head > p,
.profile-label,
.updates-head span,
.archive-head > p {
  color: var(--home-sage);
}

.home-section-head h2,
.home-diagnosis-cta h2,
.profile-copy h2,
.profile-copy h3,
.updates-head h2,
.archive-head h1 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-weight: 500;
  line-height: 1.45;
}

.home-section-head h2 {
  font-size: clamp(1.75rem, 7.5vw, 3rem);
}

.concern-layout {
  display: grid;
  gap: 38px;
}

.concern-list {
  border-top: 1px solid rgba(53, 46, 42, .3);
}

.concern-list p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .2);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.04rem;
}

.concern-list span {
  color: var(--home-sage);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.concern-note {
  margin: 0;
  color: #6c625b;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.15rem;
  line-height: 1.9;
}

.home-service {
  background: var(--home-chalk);
}

.service-layout,
.profile-layout,
.updates-grid {
  display: grid;
  gap: 46px;
}

.service-photo,
.profile-photo {
  overflow: hidden;
}

.service-photo img,
.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-copy .home-section-head span {
  display: block;
  margin-top: 20px;
  color: #6c625b;
  font-size: .9rem;
}

.service-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-steps::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  content: "";
  background: rgba(83, 106, 88, .4);
}

.service-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(53, 46, 42, .16);
}

.service-steps b {
  z-index: 1;
  color: var(--home-sage);
  background: var(--home-chalk);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.service-steps span {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

.service-steps strong,
.service-steps small {
  display: block;
}

.service-steps strong {
  font-size: 1rem;
  font-weight: 500;
}

.service-steps small {
  margin-top: 5px;
  color: #776e67;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: .76rem;
  line-height: 1.7;
}

/* 料金は比較しやすい三列の紙面にまとめる */
.home-pricing {
  background: #f1f3ed;
  border-top: 1px solid rgba(53, 77, 61, .12);
  border-bottom: 1px solid rgba(53, 77, 61, .12);
}

.pricing-heading {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(340px, 1.3fr);
  column-gap: 8%;
  align-items: end;
}

.pricing-heading > p {
  grid-column: 1;
}

.pricing-heading h2 {
  grid-column: 1;
}

.pricing-heading > span {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  padding-bottom: 8px;
  color: #6a645d;
  font-size: .9rem;
  line-height: 2;
}

.pricing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid rgba(53, 77, 61, .3);
  border-bottom: 1px solid rgba(53, 77, 61, .3);
}

.pricing-plan {
  display: flex;
  min-width: 0;
  padding: 42px clamp(24px, 3vw, 42px) 38px;
  flex-direction: column;
}

.pricing-plan + .pricing-plan {
  border-left: 1px solid rgba(53, 77, 61, .22);
}

.pricing-plan.is-recommended {
  background: rgba(255, 253, 248, .72);
}

.pricing-plan-head > p {
  min-height: 1.7em;
  margin: 0 0 10px;
  color: #627064;
  font-size: .7rem;
  font-weight: 700;
}

.pricing-plan h3 {
  margin: 0;
  color: #344b3b;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.5;
}

.pricing-amount {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 20px 0 22px;
  color: #344b3b;
}

.pricing-amount b {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(2.25rem, 3.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-amount span {
  font-size: .76rem;
}

.pricing-benefit {
  min-height: 66px;
  margin: 0 0 5px;
  padding: 10px 0;
  color: #5b625c;
  background: transparent;
  border-top: 1px solid rgba(75, 103, 84, .22);
  border-bottom: 1px solid rgba(75, 103, 84, .22);
  font-size: .74rem;
  line-height: 1.7;
}

.pricing-benefit.is-empty {
  visibility: hidden;
}

.pricing-benefit span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  color: #fff;
  background: #54705b;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.pricing-benefit strong {
  color: #9d4e3e;
  font-size: .9rem;
}

.pricing-plan ul {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-plan li {
  position: relative;
  padding: 11px 0 11px 19px;
  border-bottom: 1px solid rgba(53, 77, 61, .12);
  color: #47433e;
  font-size: .8rem;
  line-height: 1.6;
}

.pricing-plan li::before {
  position: absolute;
  top: 19px;
  left: 1px;
  width: 5px;
  height: 5px;
  content: "";
  background: #76907a;
  border-radius: 50%;
}

.pricing-note {
  margin: 22px 0 0;
  color: #777067;
  font-size: .7rem;
  line-height: 1.8;
}

.pricing-caption {
  margin: 24px 0 0;
  color: #777067;
  font-size: .68rem;
  text-align: right;
}

@media (max-width: 900px) {
  .pricing-heading {
    display: block;
  }

  .pricing-heading > span {
    display: block;
    margin-top: 20px;
  }

  .pricing-list {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .pricing-plan {
    padding: 34px 5px 32px;
  }

  .pricing-plan + .pricing-plan {
    border-top: 1px solid rgba(53, 77, 61, .22);
    border-left: 0;
  }

  .pricing-plan.is-recommended {
    margin-inline: -20px;
    padding-inline: 25px;
  }

  .pricing-plan-head > p,
  .pricing-benefit {
    min-height: 0;
  }

  .pricing-benefit.is-empty {
    display: none;
  }

  .pricing-caption {
    text-align: left;
  }
}

.home-diagnosis-cta {
  display: grid;
  gap: 30px;
  padding: 62px max(20px, calc((100% - 1050px) / 2));
  color: var(--home-chalk);
  background: var(--home-sage);
}

.home-diagnosis-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 6.5vw, 2.45rem);
}

.home-diagnosis-cta span {
  font-size: .88rem;
}

.home-diagnosis-cta > a {
  color: var(--home-sage);
  align-self: center;
}

.profile-copy h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 3rem;
  font-style: italic;
}

.profile-copy h3 {
  margin: 18px 0 14px;
  font-size: 1.4rem;
}

.profile-copy > p:not(.profile-label) {
  margin: 0 0 20px;
  color: #625953;
  font-size: .92rem;
}

.profile-copy small {
  display: block;
  padding-top: 16px;
  border-top: 1px solid rgba(53, 46, 42, .22);
  color: #6c625b;
  font-size: .75rem;
}

.home-updates {
  background: var(--home-chalk);
}

.updates-grid {
  gap: 78px;
}

.updates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.updates-head h2 {
  font-size: 1.8rem;
}

.news-list,
.home-post-list {
  border-top: 1px solid rgba(53, 46, 42, .28);
}

.news-list > p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .18);
}

.news-list time,
.home-post-meta time,
.archive-post-copy time,
.archive-news-list time {
  color: #7a7068;
  font-family: "Cormorant Garamond", serif;
  font-size: .88rem;
  letter-spacing: .04em;
}

.news-list span {
  font-size: .9rem;
}

.home-post-list > a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 18px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .18);
}

.home-post-thumb,
.archive-post-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--home-celery);
}

.home-post-thumb img,
.archive-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.home-post-list > a:hover img,
.archive-post-list > a:hover img {
  transform: scale(1.04);
}

.home-post-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-post-meta b {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.55;
}

.more-link {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--home-sage);
  font-size: .82rem;
  font-weight: 700;
}

.updates-empty {
  color: #7a7068;
  font-size: .85rem;
}

.site-footer {
  padding: 52px max(20px, calc((100% - 1250px) / 2)) 24px;
  color: rgba(255, 253, 248, .72);
  text-align: left;
  background: #352e2a;
  border: 0;
}

.site-footer-inner {
  display: grid;
  gap: 30px;
}

.footer-brand {
  color: var(--home-chalk, #fffdf8);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}

.site-footer-inner p {
  margin: 12px 0 0;
  font-size: .75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .78rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 0;
  color: var(--home-chalk, #fffdf8);
  border-top: 1px solid rgba(255, 253, 248, .35);
  border-bottom: 1px solid rgba(255, 253, 248, .35);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
}

.footer-copy {
  margin: 36px 0 0;
  font-size: .68rem;
  text-align: center;
}

/* News and journal archives */
.editorial-archive {
  width: min(1050px, calc(100% - 40px));
  min-height: 62svh;
  padding-top: 72px;
}

.archive-head {
  margin-bottom: 48px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(53, 46, 42, .25);
}

.archive-head h1 {
  font-size: clamp(2rem, 8vw, 3.6rem);
}

.archive-head > span {
  display: block;
  margin-top: 14px;
  color: #6c625b;
  font-size: .88rem;
}

.archive-news-list > p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .18);
}

.archive-post-list {
  display: grid;
  gap: 0;
}

.archive-post-list > a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 18px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(53, 46, 42, .18);
}

.archive-post-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.archive-post-copy b {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: .95rem;
  font-weight: 500;
}

.archive-post-copy small {
  display: none;
  color: #726861;
}

/* Motion */
.js-enabled [data-reveal="rise"],
.js-enabled [data-reveal="wash"],
.js-enabled [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
}

.js-enabled [data-reveal="clip"] {
  opacity: 0;
  clip-path: inset(0 0 14% 0);
  transform: translateY(18px);
}

[data-reveal="rise"].is-revealed,
[data-reveal="wash"].is-revealed,
[data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal="clip"].is-revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition: opacity .65s ease, clip-path 1.15s cubic-bezier(.77, 0, .18, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal-group].is-revealed > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-group].is-revealed > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-group].is-revealed > *:nth-child(4) { transition-delay: 270ms; }

.js-enabled .home-hero-media {
  transform: scale(1.045);
}

.js-enabled .home-hero-copy > *,
.js-enabled .home-scroll {
  opacity: 0;
  transform: translateY(18px);
}

.is-home-ready .home-hero-media {
  transform: scale(1);
  transition: transform 2s cubic-bezier(.22, 1, .36, 1);
}

.is-home-ready .home-hero-copy > *,
.is-home-ready .home-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.is-home-ready .home-hero-copy > *:nth-child(2) { transition-delay: 120ms; }
.is-home-ready .home-hero-copy > *:nth-child(3) { transition-delay: 220ms; }
.is-home-ready .home-hero-copy > *:nth-child(4) { transition-delay: 320ms; }
.is-home-ready .home-hero-copy > *:nth-child(5) { transition-delay: 400ms; }
.is-home-ready .home-scroll { transition-delay: 520ms; }

.is-home-ready .home-scroll span {
  animation: scrollLine 2.1s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(.35); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Diagnosis intro */
.result-intro-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #4b554b;
  background: #f8f4eb;
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}

.is-result-loading .result-intro-loader {
  opacity: 1;
  pointer-events: auto;
}

.result-intro-loader > div {
  width: min(310px, 100%);
  text-align: center;
}

.result-loader-mark {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 22px;
  border: 1px solid #9aae9d;
  border-radius: 50%;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.result-intro-loader p {
  margin: 0 0 6px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: 1.2rem;
}

.result-intro-loader small {
  color: #8a887f;
  font-size: .72rem;
}

.result-intro-loader i {
  position: relative;
  display: block;
  height: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: #ddd7ca;
}

.result-intro-loader i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #6e8a73;
  transform: scaleX(0);
  transform-origin: left;
  animation: resultProgress 3s linear forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(.9); box-shadow: inset 0 0 0 11px #f8f4eb; background: #87a08b; }
  50% { transform: scale(1.08); box-shadow: inset 0 0 0 5px #f8f4eb; background: #87a08b; }
}

@keyframes resultProgress { to { transform: scaleX(1); } }

.js-enabled.has-result:not(.result-ready) .result-notebook-page {
  opacity: 0;
}

.js-enabled.has-result.result-ready .result-notebook-page {
  opacity: 1;
  transition: opacity .5s ease;
}

.js-enabled.has-result .result-notebook-hero .notebook-label,
.js-enabled.has-result .result-notebook-hero h1,
.js-enabled.has-result .result-notebook-hero .result-hero-copy,
.js-enabled.has-result .result-notebook-hero img,
.js-enabled.has-result .result-scroll-cue {
  opacity: 0;
}

.js-enabled.has-result .result-notebook-hero h1,
.js-enabled.has-result .result-notebook-hero .notebook-label,
.js-enabled.has-result .result-notebook-hero .result-hero-copy {
  transform: translateY(15px);
}

.js-enabled.has-result .result-notebook-hero img {
  transform: translateY(18px) rotate(5deg) scale(.84);
}

.js-enabled.has-result.result-ready .result-notebook-hero .notebook-label,
.js-enabled.has-result.result-ready .result-notebook-hero h1,
.js-enabled.has-result.result-ready .result-notebook-hero .result-hero-copy,
.js-enabled.has-result.result-ready .result-notebook-hero img,
.js-enabled.has-result.result-ready .result-scroll-cue {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

.js-enabled.has-result.result-ready .result-notebook-hero h1 { transition-delay: 120ms; }
.js-enabled.has-result.result-ready .result-notebook-hero .result-hero-copy { transition-delay: 230ms; }
.js-enabled.has-result.result-ready .result-notebook-hero img { transition-delay: 360ms; }
.js-enabled.has-result.result-ready .result-scroll-cue { transition-delay: 650ms; }

.result-scroll-cue {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: #6e7d70;
  font-size: .72rem;
}

.result-scroll-cue span {
  position: relative;
  width: 34px;
  height: 1px;
  background: #9eaa9f;
}

.result-scroll-cue span::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 1px;
  content: "";
  background: inherit;
  transform: rotate(38deg);
  transform-origin: right;
}

#result-detail {
  scroll-margin-top: 90px;
}

@media (min-width: 720px) {
  .home-page .site-header {
    padding-top: 22px;
  }

  .home-hero-copy {
    width: min(760px, calc(100% - 40px));
    margin-left: max(5%, calc((100% - 1250px) / 2));
  }

  .home-hero h1 {
    font-size: clamp(3rem, 4vw, 3.5rem);
  }

  .home-hero-media {
    object-position: center;
  }

  .home-hero-shade {
    background: rgba(25, 22, 19, .3);
  }

  .home-band {
    padding: 118px 0;
  }

  .concern-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 10%;
    align-items: end;
  }

  .service-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 8%;
    align-items: center;
  }

  .service-photo img {
    aspect-ratio: 4 / 5;
  }

  .home-diagnosis-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .profile-layout {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    gap: 8%;
    align-items: center;
  }

  .profile-photo {
    order: 2;
  }

  .updates-grid {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 9%;
    align-items: start;
  }

  .site-footer-inner {
    grid-template-columns: 1fr auto minmax(260px, .7fr);
    align-items: start;
  }

  .archive-news-list > p {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .archive-post-list > a {
    grid-template-columns: 210px minmax(0, 1fr) 24px;
    gap: 30px;
    padding: 26px 0;
  }

  .archive-post-copy b {
    font-size: 1.3rem;
  }

  .archive-post-copy small {
    display: block;
  }

  .result-scroll-cue {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  .home-page .site-nav {
    top: 68px;
    color: var(--home-ink);
    background: var(--home-chalk);
    border: 0;
    border-radius: 2px;
  }

  .home-page .site-nav a {
    color: var(--home-ink);
  }

  .home-hero h1 br {
    display: none;
  }

  .home-post-list > a > i,
  .archive-post-list > a > i {
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > *,
  .home-hero-media,
  .home-hero-copy > *,
  .home-scroll,
  .result-notebook-page,
  .result-notebook-hero * {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Final public overrides */
.site-header { transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .32s ease, background-color .3s ease, box-shadow .3s ease; will-change: transform; }
.site-header.is-header-hidden { opacity: 0; pointer-events: none; transform: translateY(calc(-100% - 20px)); }
.home-page .site-header {
  position: fixed;
  inset: 12px auto auto 50%;
  width: min(94%, 1250px);
  padding: 12px 18px;
  color: #365443;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(57, 74, 62, .08);
  backdrop-filter: blur(18px) saturate(1.08);
  transform: translateX(-50%);
}
.home-page .site-header.is-header-scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 12px 34px rgba(49, 66, 54, .13); }
.home-page .site-header.is-header-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.home-page .menu-button { color: #365443; background: rgba(255, 255, 255, .42); border-color: rgba(54, 84, 67, .28); }
.home-page .home-hero-media,
.home-page.is-home-ready .home-hero-media { transform: scale(1.04); animation: heroIllustrationDrift 18s ease-in-out infinite alternate; }
.home-page .home-hero-copy { transform: translate3d(0, var(--hero-copy-shift, 0), 0); opacity: var(--hero-copy-opacity, 1); }
.home-page .home-hero-visual { transform: translate3d(0, var(--hero-shift, 0), 0); }
.home-page .home-diagnosis-cta {
  position: relative;
  padding-right: max(5%, calc((100% - 1250px) / 2));
  padding-left: max(5%, calc((100% - 1250px) / 2));
  color: #fffdf8;
  background: #3f5c49;
  border-top: 0;
  border-bottom: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), inset 0 -1px rgba(27, 48, 35, .24);
}
.home-page .home-diagnosis-cta > div > p { color: rgba(255, 255, 255, .64); }
.home-page .home-diagnosis-cta > div > span { color: rgba(255, 255, 255, .78); }
.home-page .diagnosis-cta-link,
.home-page .home-diagnosis-cta .diagnosis-cta-link { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; width: auto; min-width: min(100%, 342px); min-height: 60px; margin: 0; padding: 10px 20px 10px 22px; overflow: hidden; border: 1px solid #4c6655; border-radius: 0; background: #4c6655; color: #fffdf8; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif; font-size: 1rem; font-weight: 500; text-decoration: none; box-shadow: none; transition: color .35s ease, transform .35s ease; }
.home-page .home-diagnosis-cta .diagnosis-cta-link {
  color: #34503e;
  background: #fffdf8;
  border-color: rgba(255, 255, 255, .72);
}
.home-page .home-diagnosis-cta .diagnosis-cta-link::before { background: #dce6dc; }
.home-page .home-diagnosis-cta .diagnosis-cta-link:hover,
.home-page .home-diagnosis-cta .diagnosis-cta-link:focus-visible { color: #294434; }

/* 公開ページの文字ロゴ */
.site-header .brand {
  color: #31543e;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
}

.home-page .site-header .brand,
.home-page .site-header.is-header-scrolled .brand {
  color: #31543e;
}

.site-footer .footer-brand {
  color: #f3f6f1;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
}
.home-page .home-hero .diagnosis-cta-link { border-color: #486653; background: rgba(72, 102, 83, .96); color: #fff; box-shadow: 0 10px 28px rgba(61, 82, 68, .12); }
.home-page .diagnosis-cta-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #2f4637; transform: translateX(-102%); transition: transform .48s cubic-bezier(.65, 0, .2, 1); }
.home-page .home-hero .diagnosis-cta-link::before { background: #304c3b; }
.home-page .diagnosis-cta-link i { display: block; flex: 0 0 auto; width: auto; height: auto; margin: 0; padding: 2px 0 2px 22px; border-left: 1px solid currentColor; border-radius: 0; background: transparent; font-size: .88rem; transition: transform .35s ease; }
.home-page .diagnosis-cta-link:hover { color: #fffdf8; transform: translateY(-2px); }
.home-page .home-hero .diagnosis-cta-link:hover { color: #fff; }
.home-page .diagnosis-cta-link:hover::before { transform: translateX(0); }
.home-page .diagnosis-cta-link:hover i { transform: translateX(5px); background: transparent; }
.site-footer { padding: 58px max(2.5%, calc((100% - 1250px) / 2)) 24px; border: 0; background: #302c2a; color: #fff; }
.site-footer .site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; max-width: 1250px; margin: 0 auto; }
.site-footer .footer-brand { align-self: auto; color: #fff; font-size: clamp(28px, 3vw, 42px); }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.site-footer .footer-nav a { color: rgba(255, 255, 255, .78); font-size: 13px; text-decoration: none; }
.site-footer > .footer-copy { max-width: 1250px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .45); font-size: 11px; text-align: right; }
.home-updates .news-list > a { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 22px; padding: 19px 0; border-bottom: 1px solid rgba(53, 46, 42, .17); color: inherit; text-decoration: none; }
.archive-news-list > a { display: grid; grid-template-columns: 130px minmax(0, 1fr) 20px; gap: 24px; align-items: center; width: 100%; padding: 24px 0; border-bottom: 1px solid #d9d2c7; color: inherit; text-decoration: none; }
.archive-news-list > .empty { display: block; width: 100%; max-width: none; white-space: normal; }

@media (max-width: 760px) {
  .home-page .home-hero-copy { position: absolute; opacity: 1; }
  .home-hero h1 br,
  .hero-sp-break,
  .concern-sp-break br { display: block; }
  .home-hero-copy {
    top: 190px;
    bottom: auto;
    width: min(82%, 320px);
  }
  .home-hero h1 { font-size: clamp(2.1rem, 10.6vw, 2.65rem); line-height: 1.34; }
  .home-page .diagnosis-cta-link {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    min-height: 54px;
    padding: 9px 15px 9px 17px;
    font-size: .86rem;
    white-space: nowrap;
  }
  .home-scroll { right: auto; bottom: 16px; left: 50%; width: auto; height: 24px; flex-direction: row; gap: 9px; writing-mode: horizontal-tb; transform: translateX(-50%); }
  .home-scroll span { width: 30px; height: 1px; }
  .home-page .home-scroll { color: #365443; }
  .home-page .home-scroll span { background: #557460; }
  .home-page .home-hero-shade { background: rgba(255, 255, 255, .08); }
  .home-page .site-header { inset: 8px auto auto 50%; width: calc(100% - 16px); padding: 9px 12px; }
  .home-page .site-nav { top: calc(100% + 8px); right: 0; left: 0; background: rgba(255, 255, 255, .94); border: 1px solid rgba(54, 84, 67, .12); box-shadow: 0 16px 34px rgba(42, 58, 47, .12); backdrop-filter: blur(18px); }
  .home-page .site-header { top: 8px; width: calc(100% - 16px); padding: 9px 12px; }
  .home-page .site-nav { top: calc(100% + 8px); right: 0; left: 0; background: rgba(255, 255, 255, .94); border: 1px solid rgba(54, 84, 67, .12); box-shadow: 0 16px 34px rgba(42, 58, 47, .12); backdrop-filter: blur(18px); }
  .site-footer { padding: 44px 5% 22px; }
  .site-footer .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 32px; }
  .site-footer .footer-nav { justify-content: flex-start; gap: 14px 22px; }
  .site-footer > .footer-copy { margin-top: 34px; text-align: left; }
  .archive-news-list > a { grid-template-columns: 1fr 18px; gap: 9px; }
  .archive-news-list > a time { grid-column: 1 / -1; }
}
