:root {
  --ink: #493628;
  --muted: #746553;
  --paper: #fffaf0;
  --cream: #fbf4e7;
  --line: #eadfcb;
  --green: #4f7d38;
  --green-dark: #3d622b;
  --pink: #f8d9dd;
  --blue: #d9e9ed;
  --gold: #cf9d45;
  --shadow: 0 12px 30px rgba(73, 54, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px max(7vw, calc((100% - 1160px) / 2)) 14px;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  line-height: 1.1;
}

.brand-mark {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  white-space: nowrap;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-copy {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav a {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
}

.header-cta {
  padding: 0 18px;
}

.nav-cta {
  display: none;
}

.button {
  padding: 0 22px;
}

.button.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 5px 0 #e5d8c0;
}

.mail-icon,
.doc-icon {
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.mail-icon::after {
  content: "";
  position: absolute;
  inset: 1px 2px auto;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.doc-icon {
  height: 19px;
  border-radius: 2px;
}

.doc-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  border-top: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 24px;
  padding: 36px max(7vw, calc((100% - 1160px) / 2)) 28px;
  overflow: hidden;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.26;
  font-weight: 900;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy p {
  margin: 0 0 26px;
  font-size: 18px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(73, 54, 40, 0.08));
}

.ear,
.face,
.patch,
.eye,
.nose,
.cap,
.body,
.tie {
  position: absolute;
  display: block;
}

.ear {
  top: 8px;
  width: 55px;
  height: 55px;
  background: #fff7e7;
  border: 7px solid #493628;
  border-radius: 50%;
}

.ear.left { left: 16px; }
.ear.right { right: 18px; }

.face {
  left: 16px;
  top: 24px;
  width: 176px;
  height: 162px;
  border: 7px solid #493628;
  border-radius: 48% 48% 44% 44%;
  background: #fff7e7;
  z-index: 2;
}

.patch {
  top: 72px;
  width: 56px;
  height: 66px;
  background: #7a5940;
  border-radius: 52% 48% 55% 45%;
  z-index: 3;
}

.patch.left { left: 44px; transform: rotate(18deg); }
.patch.right { right: 42px; transform: rotate(-18deg); }

.eye {
  top: 94px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #231914;
  z-index: 4;
}

.eye.left { left: 66px; }
.eye.right { right: 65px; }

.nose {
  left: 96px;
  top: 118px;
  width: 18px;
  height: 13px;
  background: #493628;
  border-radius: 50%;
  z-index: 5;
}

.cap {
  right: 18px;
  top: 2px;
  width: 94px;
  height: 58px;
  background: #dac59d;
  border: 5px solid #493628;
  border-radius: 70% 30% 60% 40%;
  transform: rotate(18deg);
  z-index: 6;
}

.cap::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -16px;
  width: 22px;
  height: 22px;
  border-top: 4px solid #493628;
  border-radius: 50%;
}

.body {
  left: 58px;
  bottom: 0;
  width: 96px;
  height: 100px;
  background: var(--green);
  border: 6px solid #493628;
  border-radius: 34px 34px 24px 24px;
  z-index: 1;
}

.tie {
  left: 96px;
  top: 176px;
  width: 20px;
  height: 52px;
  background: #f3d45e;
  border: 4px solid #493628;
  border-radius: 12px;
  z-index: 4;
}

.section {
  padding: 64px 7vw;
  border-top: 1px solid rgba(234, 223, 203, 0.8);
}

.section:nth-of-type(even) {
  background: #fffdf7;
}

.section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  font-weight: 900;
}

h3 {
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
}

p {
  margin: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(380px, 1.08fr);
  gap: 42px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.intro-text p + p {
  margin-top: 14px;
}

.mind-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}

.mini-scene {
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.mini-scene img {
  width: 92px;
  height: auto;
  display: block;
}

.mini-scene.blue { background: var(--blue); }
.mini-scene.green { background: #dbe9d1; }
.mini-scene.pink { background: var(--pink); }

.mini-mascot {
  display: inline-block;
  width: 86px;
  height: 86px;
  border: 4px solid var(--ink);
  border-radius: 47% 47% 44% 44%;
  background:
    radial-gradient(circle at 34% 48%, #6f5038 0 12px, transparent 13px),
    radial-gradient(circle at 66% 48%, #6f5038 0 12px, transparent 13px),
    radial-gradient(circle at 42% 48%, #19120e 0 3px, transparent 4px),
    radial-gradient(circle at 58% 48%, #19120e 0 3px, transparent 4px),
    radial-gradient(circle at 50% 62%, #493628 0 5px, transparent 6px),
    #fff7e7;
  position: relative;
}

.mini-mascot::before,
.mini-mascot::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 28px;
  height: 28px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #fff7e7;
  z-index: -1;
}

.mini-mascot::before { left: 5px; }
.mini-mascot::after { right: 5px; }

/* 抽出画像用マスコット */
.mini-mascot-img {
  display: inline-block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.service-list .mini-mascot-img {
  width: 78px;
  height: 78px;
}

.cta-mascot .mini-mascot-img {
  width: 150px;
  height: auto;
}

.flow-list .mini-mascot-img {
  margin-top: 18px;
  width: 92px;
  height: 92px;
}

.laptop-mini {
  filter: drop-shadow(8px 8px 0 rgba(73, 54, 40, 0.14));
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  gap: 18px;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}

.compare-card {
  padding: 26px 26px 22px;
  border-radius: 8px;
}

.before {
  background: #fbf8e8;
}

.after {
  background: #fff0f2;
}

.label {
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}

ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

li + li {
  margin-top: 8px;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
}

.after li::before {
  background: #df8390;
}

.arrow {
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
}

.change-center {
  display: grid;
  place-items: center;
}

.center-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-list article,
.case-list article {
  min-width: 0;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.service-list .mini-mascot {
  width: 70px;
  height: 70px;
}

.service-list p,
.reason-list p,
.case-list p,
.flow-list p,
.section-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.reason-icon {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.reason-icon--expanded {
  transform: scale(1.35);
}

.icon {
  display: inline-block;
  width: 56px;
  height: 56px;
  position: relative;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  border-color: var(--green);
}

.search::before {
  width: 30px;
  height: 30px;
  border: 5px solid var(--green);
  border-radius: 50%;
  left: 4px;
  top: 4px;
}

.search::after {
  width: 22px;
  border-top: 5px solid var(--green);
  transform: rotate(45deg);
  right: 5px;
  bottom: 10px;
}

.code::before {
  inset: 9px 3px;
  border: 5px solid var(--green);
  border-radius: 4px;
}

.code::after {
  content: "</>";
  inset: 13px 0 0;
  color: var(--green);
  font-weight: 900;
  font-size: 16px;
}

.shield::before {
  left: 9px;
  top: 2px;
  width: 38px;
  height: 48px;
  border: 5px solid var(--green);
  border-radius: 20px 20px 24px 24px;
}

.shield::after {
  left: 23px;
  top: 20px;
  width: 11px;
  height: 20px;
  border-right: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
  transform: rotate(40deg);
}

.hand::before {
  left: 5px;
  top: 22px;
  width: 46px;
  height: 18px;
  border: 5px solid var(--green);
  border-radius: 20px;
}

.hand::after {
  left: 28px;
  top: 7px;
  width: 18px;
  height: 28px;
  border: 5px solid var(--green);
  border-radius: 20px;
}

.chart::before {
  inset: 9px 4px 10px;
  border-left: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
}

.chart::after {
  left: 14px;
  top: 16px;
  width: 32px;
  height: 22px;
  border-top: 5px solid var(--green);
  border-right: 5px solid var(--green);
  transform: skewY(-20deg);
}

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

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 20px;
  color: white !important;
  background: var(--green);
  font-size: 12px !important;
}

.case-list a,
.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.more {
  display: table;
  margin: 28px auto 0;
  padding: 8px 40px;
  border-radius: 6px;
  background: #fffaf0;
  border: 1px solid var(--line);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.flow-list article {
  position: relative;
  min-height: 230px;
  padding: 4px 10px 0;
  text-align: center;
}

.flow-list b {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 18px;
}

.flow-list .mini-mascot {
  margin-top: 18px;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  margin: 44px 7vw;
  padding: 38px 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f8e8, #fff6e4);
  overflow: hidden;
}

.final-cta h2 {
  text-align: left;
}

.final-cta p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.cta-mascot .mini-mascot {
  width: 128px;
  height: 128px;
}

.cta-mascot img {
  width: 150px;
  height: auto;
  display: block;
}

.cta-actions {
  display: grid;
  gap: 14px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 40px;
  padding: 40px 7vw;
  color: #fff7e7;
  background: #483524;
}

.footer strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.footer-logo {
  display: block;
  color: #fff7e7;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.footer p,
.footer small {
  color: #dccab1;
  font-size: 12px;
}

.footer-sns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 247, 231, 0.35);
  border-radius: 999px;
  color: #fff7e7;
  font-size: 12px;
  font-weight: 700;
}

.footer-sns svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-sns a:hover {
  background: rgba(255, 247, 231, 0.12);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-contact {
  align-self: start;
  padding: 16px 20px;
  border: 1px solid rgba(255, 247, 231, 0.3);
  border-radius: 6px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .hamburger {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 7vw 16px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(73, 54, 40, 0.12);
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav .nav-cta {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    margin-top: 12px;
    padding: 0 18px;
    border-bottom: 0;
    font-size: 13px;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header > .header-cta {
    display: none;
  }

  .hero,
  .intro-grid,
  .final-cta,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

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

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

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

  .compare {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 18px 8px;
  }

  .brand-mark {
    font-size: 22px;
  }

  .brand-logo {
    height: auto;
    font-size: 17px;
  }

  .brand-copy {
    font-size: 7px;
  }

  .header-cta {
    width: 38px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: 180px 1fr;
    min-height: auto;
    gap: 4px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .hero-copy h1 {
    margin-bottom: 12px;
    font-size: 27px;
    line-height: 1.33;
    white-space: nowrap;
  }

  .hero-copy p {
    margin-bottom: 14px;
    font-size: 11px;
    line-height: 1.7;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 9px;
  }

  .button {
    min-height: 35px;
    padding: 0 10px;
    font-size: 10px;
  }

  .mail-icon,
  .doc-icon {
    width: 14px;
    height: 11px;
  }

  .doc-icon {
    height: 15px;
  }

  .hero-visual {
    min-height: 230px;
    align-items: flex-start;
  }

  .hero-visual img {
    width: 245px;
    max-width: none;
    margin-top: 18px;
    margin-left: -22px;
  }

  .mind-steps,
  .service-list,
  .case-list,
  .reason-list,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mind-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .mind-steps article {
    width: 100%;
  }

  .mind-steps article:nth-child(1) {
    order: 1;
  }
  .mind-steps article:nth-child(3) {
    order: 2;
  }
  .mind-steps article:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
  }

  .mind-steps article:nth-child(2) .mini-scene {
    aspect-ratio: 1;
    border-radius: 50%;
    width: 100%;
    height: auto;
  }

  .final-cta {
    margin: 28px 20px;
    padding: 28px 20px;
    text-align: center;
  }

  .final-cta h2 {
    text-align: center;
  }

  .cta-mascot {
    display: flex;
    justify-content: center;
  }

  .footer {
    padding: 34px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ---- sub pages ---- */
.page-head { padding-top: 40px; }
.page-head h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); line-height: 1.4; }
.breadcrumb { max-width: 1160px; margin: 0 auto 24px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breadcrumb a { text-decoration: underline; }
.page-head .service-list { max-width: 1160px; margin: 0 auto; }
.page-head .service-list article a.more { display: inline; margin-top: 10px; padding: 0; border: 0; background: none; box-shadow: none; text-decoration: underline; white-space: nowrap; }
.detail-head { max-width: 860px; margin: 0 auto 28px; display: flex; align-items: center; gap: 24px; }
.detail-head .mini-mascot-img { width: 120px; height: auto; flex: none; }
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin: 36px 0 12px; font-size: 20px; text-align: left; }
.prose p, .prose li { font-size: 15px; }
.prose ul + p { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.related-links { max-width: 860px; margin: 56px auto 0; }
.related-links h2 { margin: 0 0 14px; font-size: 18px; text-align: left; }
.related-links a { display: inline-block; margin: 0 8px 10px 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.related-links a:hover { border-color: var(--green); color: var(--green); }
.info-table { margin: 0; border-top: 1px solid var(--line); }
.info-table div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.info-table dt { font-weight: 800; }
.info-table dd { margin: 0; }
.contact-form { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400;
  font-size: 16px; /* 16px 未満だと iOS Safari がフォーカス時に自動ズームする */
}
.contact-form .req { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--green); color: #fff; font-size: 11px; }
.contact-form .consent { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.contact-form .consent a { text-decoration: underline; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.contact-form .step-input, .contact-form .step-confirm { display: grid; gap: 20px; }
.contact-form [hidden] { display: none !important; }
.contact-form .confirm-lead { margin: 0; }
.contact-form .confirm-list { margin: 0; border-top: 1px solid var(--line); }
.contact-form .confirm-list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.contact-form .confirm-list dt { font-weight: 800; font-size: 14px; }
.contact-form .confirm-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-form .confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-form .confirm-actions button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .contact-form .confirm-list div { grid-template-columns: 1fr; gap: 4px; } }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .info-table div { grid-template-columns: 1fr; gap: 4px; }
  .detail-head { flex-direction: column; align-items: flex-start; }
}

/* ---- contents ---- */
.content-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.content-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.content-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content-card .card-body { display: grid; gap: 4px; padding: 16px 18px; }
.content-card b { font-size: 15px; line-height: 1.5; }
.content-card small { color: var(--muted); font-size: 12px; }
.content-card.category .card-body { padding: 24px 22px; }
.article { max-width: 780px; margin: 0 auto; }
.article h1 { text-align: left; }
.article .eyebrow { margin: 0; }
.article-meta { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.article-body h2 { margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 22px; text-align: left; }
.article-body h3 { margin: 28px 0 8px; font-size: 18px; }
.article-body p, .article-body li { font-size: 16px; line-height: 1.95; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li::before { content: none; }
.article-body li { padding-left: 0; }
.article-body figure { margin: 28px 0; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.article-body figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: center; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--cream); }
.video-wrap { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 24px; border: 0; border-radius: 8px; background: #000; }
.next-article { display: block; margin: 40px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); font-weight: 800; }
.draft-note { margin: 0 0 20px; padding: 10px 14px; border-radius: 6px; background: #fff0c9; color: #7a5200; font-size: 13px; font-weight: 800; }
.route { margin-top: 48px; }
.route li::before { content: none; }
.video-wrap iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* ---- contents: decoration ---- */
.contents-hero { max-width: 1160px; margin: 0 auto 36px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 20px; background: linear-gradient(135deg, #eaf5e4 0%, #fff3d6 100%); }
.contents-hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.4; text-align: left; }
.contents-hero p { margin: 0; }
.contents-hero .eyebrow { margin-bottom: 6px; }
.contents-hero img { width: 200px; height: auto; flex: none; }
.contents-h2 { max-width: 1160px; margin: 44px auto 18px; padding-left: 14px; border-left: 6px solid var(--green); font-size: 22px; text-align: left; }
.content-card { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74, 52, 36, .16); }
.content-card .thumb { position: relative; display: block; }
.content-card .chip { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent, var(--green)); color: #fff; font-size: 11px; font-weight: 800; }
.content-card.category { border-top: 5px solid var(--accent); }
.content-card.category .cat-visual { display: grid; place-items: center; height: 150px; background: var(--tint); }
.content-card.category .cat-visual img { height: 124px; width: auto; aspect-ratio: auto; object-fit: contain; }
.content-card.category .card-body { padding: 16px 20px; }
.content-card.category b { color: var(--accent); font-size: 16px; }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-hero { max-width: 1160px; margin: 0 auto 32px; padding: 24px 36px; display: flex; align-items: center; gap: 28px; border-radius: 20px; border-left: 8px solid var(--accent); background: var(--tint); }
.cat-hero img { width: 150px; height: auto; flex: none; }
.cat-hero h1 { margin: 0 0 6px; text-align: left; font-size: clamp(24px, 3.6vw, 34px); color: var(--accent); }
.cat-hero p { margin: 0; }
.cat-hero .eyebrow { margin: 0 0 4px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 800; }
.cat-chip img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; background: #fff; }
@media (max-width: 640px) {
  .contents-hero { flex-direction: column-reverse; align-items: flex-start; padding: 24px; }
  .contents-hero img { width: 140px; align-self: center; }
  .cat-hero { flex-direction: column; text-align: center; padding: 20px; }
  .cat-hero img { width: 120px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .content-card.category .cat-visual { height: 110px; }
  .content-card.category .cat-visual img { height: 90px; }
}

/* faq */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 32px auto 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 22px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.9;
}

.faq-item p a {
  color: var(--green-dark);
  text-decoration: underline;
}

.gloss-toc{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
.gloss-toc a{padding:6px 12px;border:1px solid #d9d2c3;border-radius:999px;font-size:.9rem;text-decoration:none;color:inherit;background:#fff}
.gloss-list{display:grid;gap:14px}
.gloss-item{background:#fff;border:1px solid #e6dfd0;border-radius:12px;padding:16px 18px;scroll-margin-top:90px}
.gloss-item h3{margin:0 0 6px;font-size:1.15rem}
.gloss-item h3 small{display:block;font-size:.8rem;font-weight:400;opacity:.7;margin-top:2px}
.gloss-item p{margin:6px 0}
.gloss-short{font-weight:600}
.gloss-tip{background:#fdf1d6;border-radius:8px;padding:8px 10px}
.gloss-src{margin:6px 0;padding-left:1.2em;font-size:.9rem}
.gloss-meta{font-size:.8rem;opacity:.65}
.gloss-field{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#e8f5ec;color:#3f8f5a;font-size:.72rem;font-weight:600;vertical-align:middle}
.gloss-fields{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.gloss-fields button{padding:6px 14px;border:1px solid #d9d2c3;border-radius:999px;background:#fff;font:inherit;font-size:.9rem;cursor:pointer}
.gloss-fields button.on{background:#3f8f5a;border-color:#3f8f5a;color:#fff}
.gloss-item[hidden]{display:none}


/* ヘッダーの固定は JS で切り替える(JS が無ければ従来どおり常に sticky) */
.site-header.is-static { position: relative; }
.site-header.is-floating {
  box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(73, 54, 40, 0.08);
  animation: header-in .25s ease-out;
}
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-floating { animation: none; } }
