:root {
  --green: #77b943;
  --deep: #4f9427;
  --pale: #f3faee;
  --orange: #f28a22;
  --orange2: #ff9b39;
  --ink: #243026;
  --muted: #6e776f;
  --line: #dcebd2;
  --cream: #fffaf2;
  --shadow: 0 18px 45px rgba(75, 122, 49, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background: linear-gradient(180deg, #fff 0%, #fbfff8 42%, #fff 100%);
  line-height: 1.85;
  font-size: 16px;

  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e7efdf;
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark img {
  width: 50px;
}
.brand-en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #75b843;
  font-weight: 800;
}
.brand-ja {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.header-info {
  text-align: right;
}
.header-address {
  font-size: 12px;
  margin: 0 0 2px;
}
.header-tel {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.header-tel:before {
  content: "☎";
  font-size: 18px;
  color: var(--green);
  margin-right: 8px;
}
.header-cta {
  display: flex;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.03em;
}
.btn-green {
  background: linear-gradient(135deg, var(--green), #56a72e);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange2), #f07813);
}
.btn.large {
  min-height: 54px;
  padding: 0 30px;
}
.header-cta .btn {
  height: 42px;
  padding: 0 18px;
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--green);
  margin: 8px 0;
}
.sp-drawer {
  display: none;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #fff 0%, #fff 45%, #f4fbef 100%);
  border-bottom: 1px solid #edf4e7;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 4% 10%,
      rgba(119, 185, 67, 0.16),
      transparent 22%
    ),
    radial-gradient(circle at 82% 12%, rgba(242, 138, 34, 0.1), transparent 18%);
  pointer-events: none;
}
.hero-bg-leaves {
  position: absolute;
  inset: 0;
  background: url("../img/leaf-pattern.svg") left top/420px auto no-repeat;
  opacity: 0.42;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  padding: 58px 22px 28px;
}
.hero-copy {
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--green), #65ad35);
  color: #fff;
  font-weight: 900;
  padding: 10px 24px;
  margin: 0 0 28px;
  clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.34;
  letter-spacing: 0.08em;
  margin: 0;
  color: #263a29;
  font-weight: 700;
}
.hero h1 span {
  color: var(--orange);
  font-size: 0.96em;
}
.hero-sub {
  font-size: 29px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 18px 0 26px;
}
.hero-points {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(91, 141, 55, 0.08);
}
.hero-points li:before {
  content: "◎";
  color: var(--orange);
}
.hero-points b {
  display: block;
  color: var(--deep);
}
.hero-points span {
  font-size: 13px;
  color: var(--muted);
}
.hero-photo {
  height: 500px;
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    url("../img/mainv_rami.png") center bottom/contain no-repeat;
}
.hero-cases {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: -24px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 22px;
}
.mini-case {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid #edf2e8;
}
.mini-case span {
  display: block;
  font-size: 11px;
  color: #fff;
  background: var(--green);
  padding: 2px 8px;
  border-radius: 3px;
  width: max-content;
  margin-bottom: 5px;
}
.mini-beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.hero-contact {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 14px auto 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #cfe5bd;
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow: var(--shadow);
}
.hero-contact p {
  margin: 0;
}
.hero-contact strong {
  color: var(--green);
}
.hero-phone {
  font-size: 31px;
  color: var(--green);
  font-weight: 900;
  text-align: right;
}
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 22px;
}
.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.section-head p {
  margin: 0 0 6px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 13px;
}
.section-head h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 34px;
  line-height: 1.45;
  color: var(--deep);
  margin: 0;
}
.section-head span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.align-left {
  text-align: left;
}
.worries {
  padding-top: 58px;
}
.worry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.worry-card,
.reason-card {
  background: #fff;
  border: 1px solid #f1d9bf;
  border-radius: 12px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(242, 138, 34, 0.07);
}
.worry-card img,
.reason-card img {
  height: 54px;
}
.worry-card p,
.reason-card p {
  font-weight: 800;
  font-size: 14px;
  margin: 10px 0 0;
}
.about {
  background: linear-gradient(180deg, #fff 0%, var(--pale) 100%);
  max-width: none;
}
.about > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.compare-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-box {
  padding: 26px;
  border-radius: 18px;
  text-align: center;
}
.compare-box.gray {
  background: #f6f6f6;
}
.compare-box.green {
  background: #edf8e7;
}
.compare-box h3 {
  margin: 0 0 18px;
  color: var(--deep);
}
.compare-box ul {
  text-align: left;
  display: inline-block;
  margin: 10px auto 0;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid #e3efd9;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.case-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: center;
}
.before-after img {
  border-radius: 6px;
}
.case-body h3 {
  color: var(--deep);
  margin: 0 0 8px;
}
.case-body p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.center {
  text-align: center;
}
.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  border: 1px solid var(--green);
  color: var(--deep);
  min-width: 260px;
  height: 46px;
  border-radius: 999px;
  font-weight: 800;
  background: #fff;
}
.preservation {
  max-width: none;
  background: #fff;
}
.preservation .image-text {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(90deg, #fff, #f3faee);
  padding: 42px;
  border-radius: 20px;
}
.text-block p {
  font-size: 17px;
}
.risk-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 25px;
}
.risk-icons span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  padding: 14px 8px;
  font-weight: 800;
  color: var(--deep);
}
.preservation-photo {
  height: 300px;
  background: url("../img/miurad.png") center/contain no-repeat;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 14px;
  overflow: hidden;
}
.compare-table th {
  background: #eaf6e2;
  color: var(--deep);
}
.compare-table th,
.compare-table td {
  padding: 16px;
  border: 1px solid #dfead7;
  text-align: center;
}
.compare-table td:first-child {
  font-weight: 900;
  background: #fbfdf8;
}
.suitability {
  padding-top: 30px;
}
.suit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.suit-box {
  border-radius: 16px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e4efd9;
}
.suit-box.ok {
  background: #f3faee;
}
.suit-box.ng {
  background: #fff7f2;
}
.suit-box h2 {
  font-size: 22px;
  color: var(--deep);
  margin: 0 0 18px;
}
.suit-box li {
  margin: 8px 0;
}
.reason {
  background: linear-gradient(180deg, #fff, #fbfff8);
  max-width: none;
}
.reason > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.reason-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.reason-card {
  border-color: #e4efd9;
  padding: 18px 8px;
}
.reason-card img {
  height: 40px;
}
.reason-card p {
  font-size: 12px;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.staff-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid #e3efd9;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.doctor-photo,
.tech-photo {
  /*height: 210px;*/
  border-radius: 14px;
  /*background: #f3f6f0 center/cover no-repeat;*/
}

.tech-photo {
  background-image: url("../img/technician.svg");
}
.role {
  color: var(--orange);
  font-weight: 900;
  margin: 0;
}
.staff-card h2 {
  font-size: 22px;
  color: var(--deep);
  margin: 4px 0 8px;
}
.staff-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.equipment {
  background: #fbfff8;
  max-width: none;
}
.equipment > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.equipment-grid div {
  background: #fff;
  border: 1px solid #e3efd9;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.equipment-grid img {
  border-radius: 8px;
}
.equipment-grid h3 {
  color: var(--deep);
  margin: 10px 0 4px;
}
.equipment-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid #e4efd9;
  border-radius: 10px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--deep);
  padding: 15px 0;
  list-style: none;
}
.faq summary:after {
  content: "+";
  float: right;
  color: var(--orange);
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
}
.price {
  background: #fffaf2;
  max-width: none;
}
.price > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.price-grid div {
  background: #fff;
  border: 1px solid #f4d8b8;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}
.price-grid p {
  color: var(--deep);
  font-weight: 900;
  margin: 0 0 10px;
}
.price-grid strong {
  display: block;
  color: var(--orange);
  font-size: 32px;
}
.price-grid span {
  font-size: 12px;
  color: var(--muted);
}
.access-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.access-tel {
  font-size: 34px;
  color: var(--orange);
  font-weight: 900;
}
.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 16px;
}
.site-footer {
  background: #f8fff4;
  border-top: 1px solid #dfead7;
  padding: 36px 22px 90px;
}
.footer-cta {
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fff;
  border: 1px solid #dfead7;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}
.footer-lead {
  color: var(--green);
  font-weight: 900;
  margin: 0;
}
.footer-cta h2 {
  font-family: "Noto Serif JP", serif;
  color: var(--deep);
  margin: 2px 0 0;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-tel {
  font-size: 30px;
  color: var(--orange);
  font-weight: 900;
}
.footer-bottom {
  max-width: 1120px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 48px;
}
.footer-brand p {
  margin: 0;
}
.footer-brand span {
  font-weight: 900;
  color: var(--ink);
}
.fixed-cta {
  display: none;
}
@media (max-width: 900px) {
  body {
    font-size: 15px;
  }
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }
  .brand-mark img {
    width: 38px;
  }
  .brand-en {
    font-size: 8px;
  }
  .brand-ja {
    font-size: 14px;
  }
  .header-info,
  .header-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .menu-btn.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .menu-btn span {
    transition: 0.25s;
  }
  .sp-drawer {
    display: block;
    position: fixed;
    top: 66px;
    right: 0;

    width: min(82vw, 330px);
    height: calc(100dvh - 66px);

    overflow-y: auto;
    overflow-x: hidden;

    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);

    transform: translate3d(110%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;

    padding: 22px;
    z-index: 9999;
  }

  .sp-drawer.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .sp-drawer a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid #edf2e8;
    font-weight: 800;
  }
  .hero-inner {
    display: block;
    min-height: 0;
    padding: 28px 18px 0;
  }
  .hero-copy {
    position: relative;
    z-index: 3;
  }
  .hero-badge {
    font-size: 12px;
    padding: 8px 14px;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 37px;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }
  .hero-sub {
    font-size: 18px;
    margin: 8px 0 16px;
  }
  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 54%;
    min-width: 170px;
  }
  .hero-points li {
    padding: 8px 10px;
  }
  .hero-photo {
    height: 280px;
    min-height: 0;
    margin-top: -220px;
    margin-left: 34%;
    background-position: right bottom;
    background-size: contain;
  }
  .hero-cases {
    grid-template-columns: repeat(5, 120px);
    overflow-x: auto;
    margin: 0;
    padding: 8px 16px 0;
  }
  .hero-contact {
    grid-template-columns: 1fr;
    margin: 14px 16px 30px;
    padding: 14px;
    text-align: center;
    gap: 12px;
  }
  .hero-phone {
    text-align: center;
    font-size: 26px;
  }
  .section {
    padding: 50px 16px;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .worry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .worry-card {
    padding: 16px 10px;
  }
  .compare-visual,
  .case-grid,
  .preservation .image-text,
  .suit-grid,
  .staff-grid,
  .equipment-grid,
  .faq-grid,
  .price-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }
  .case-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .preservation .image-text {
    padding: 26px 18px;
    border-radius: 14px;
  }
  .risk-icons {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-table {
    font-size: 13px;
  }
  .compare-table th,
  .compare-table td {
    padding: 11px 6px;
  }
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .staff-card {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    order: 1;
  }

  .doctor-content {
    order: 2;
  }
  .doctor-photo,
  .tech-photo {
    height: 230px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .equipment-grid {
    gap: 12px;
  }
  .footer-cta {
    display: block;
    padding: 24px 18px;
  }
  .footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .footer-tel {
    text-align: center;
  }
  .footer-bottom {
    display: block;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
    margin-bottom: 15px;
  }
  .fixed-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 80;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
  }
  .fixed-cta a {
    height: 54px;
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
  }
  .fixed-web {
    background: var(--orange);
  }
  .fixed-line {
    background: var(--green);
  }
  .fixed-tel {
    background: #5aa832;
  }
  .site-footer {
    padding-bottom: 76px;
  }
}


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

.career-list{
  margin:12px 0 20px;
  padding-left:20px;
}

.career-list li{
  margin-bottom:8px;
  line-height:1.8;
}

.staff-card h3{
  margin-top:20px;
  margin-bottom:10px;
  color:var(--green);
  font-size:18px;
  font-weight:700;
}



.doctor-photo{
  border-radius:14px;
  overflow:hidden;
}

.doctor-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.doctor-profile {
  text-align: center;
}

.doctor-photo {
  border-radius: 14px;
  overflow: hidden;
  /*background: #f3f6f0;*/
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.doctor-position {
  margin: 16px 0 4px;
  color: var(--orange);
  font-weight: 900;
}

.doctor-name {
  margin: 0;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.4;
}

.doctor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 24px;
  background: #fff;
}

.doctor-table th,
.doctor-table td {
  border: 1px solid #dfead7;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.doctor-table th {
  width: 110px;
  background: #f3faee;
  color: var(--deep);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .doctor-profile {
    order: 1;
  }

  .doctor-content {
    order: 2;
  }

  .doctor-photo img {
    width: 100%;
  }

  .doctor-table th,
  .doctor-table td {
    display: block;
    width: 100%;
  }

  .doctor-table th {
    border-bottom: 0;
  }
}


.medical-deduction {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.medical-deduction-text,
.medical-simulator {
  background: #fff;
  border: 1px solid #f4d8b8;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.medical-deduction h3,
.medical-simulator h3 {
  margin: 0 0 16px;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.5;
}

.medical-deduction-text p {
  margin: 0 0 14px;
  line-height: 1.9;
}

.medical-note,
.sim-attention {
  color: var(--muted);
  font-size: 13px;
}

.medical-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  margin-top: 10px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
}

.sim-form {
  display: grid;
  gap: 12px;
}

.sim-form label {
  color: var(--deep);
  font-weight: 900;
}

.sim-form select,
.sim-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #dfead7;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 16px;
}

.yen-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.yen-input span {
  font-weight: 900;
  color: var(--deep);
}

#calcMedicalDeduction {
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange2), #f07813);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.sim-result {
  margin-top: 18px;
  padding: 18px;
  background: #f3faee;
  border: 1px solid #dcebd2;
  border-radius: 12px;
}

.sim-result p {
  margin: 0;
}

.sim-result strong {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: 30px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .medical-deduction {
    grid-template-columns: 1fr;
  }

  .medical-deduction-text,
  .medical-simulator {
    padding: 22px 18px;
  }

  .medical-deduction h3,
  .medical-simulator h3 {
    font-size: 20px;
  }

  .sim-result strong {
    font-size: 26px;
  }
}


.flow-list {
  max-width: 980px;
  margin: 0 auto;
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 32px 0;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 89px;
  top: 90px;
  width: 2px;
  bottom: -20px;
  background: #dfead7;
}

.flow-step {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--green),
    #5fa733
  );
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.flow-content {
  background: #fff;
  border: 1px solid #e3efd9;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.flow-content h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 24px;
}

.flow-content p {
  margin: 0;
  line-height: 1.9;
}

@media (max-width: 900px) {

  .flow-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .flow-item::after {
    display: none;
  }

  .flow-step {
    height: 60px;
    font-size: 15px;
  }

  .flow-content {
    padding: 20px;
  }

  .flow-content h3 {
    font-size: 20px;
  }
}


/* =========================
   Scroll Fade Animation
========================= */

.fade-up {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.is-show {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 {
  transition-delay: 0.1s;
}

.fade-delay-2 {
  transition-delay: 0.2s;
}

.fade-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}