/* GROP VIETNAM — modern full-width prototype (2026-10). Reference: DYM Medical Center page rhythm
   (16px body, generous letter-spacing, light headings with English kickers, pill buttons, rounded panels). */
:root {
  --navy: #14285a;
  --navy-2: #1f3c78;
  --green: #3aa64a;
  --green-dark: #2f8f45;
  --pale: #eef6ef;
  --gray-bg: #f5f6f4;
  --rule: #dbe5dc;
  --text: #1f2633;
  --muted: #5b6573;
  --radius: 16px;
  --wide: 1200px;
  --narrow: 860px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wide), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(var(--narrow), 100% - 48px); margin-inline: auto; }
.mincho { font-family: "Shippori Mincho B1", serif; }
.sp { display: none; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid #eef0f2; }
.header__inner { display: flex; align-items: center; gap: 32px; height: 84px; width: min(1360px, 100% - 48px); margin-inline: auto; }
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; letter-spacing: .12em; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }
.header__tel { text-align: right; line-height: 1.35; padding-left: 28px; border-left: 1px solid #e3e6ea; }
.header__tel strong { display: block; color: var(--navy); font-size: 19px; letter-spacing: .06em; font-weight: 700; }
.header__tel span { font-size: 12px; color: var(--muted); }
.header__cta { flex-shrink: 0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 240px;
  padding: 14px 26px; border-radius: 999px; background: var(--navy-2); color: #fff; text-decoration: none;
  font-size: 15px; letter-spacing: .08em; transition: background .2s, transform .2s; }
.btn::after { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover { background: var(--navy); transform: translateY(-1px); }
.btn--green { background: var(--green); }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--navy-2); }
.btn--ghost:hover { background: var(--pale); }
.btn--small { min-width: 0; padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__slides { position: relative; height: clamp(420px, 56vw, 680px); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 26, 60, .62) 0%, rgba(12, 26, 60, .28) 38%, rgba(12, 26, 60, 0) 62%); }
.hero__slide figcaption { position: absolute; z-index: 1; left: max(32px, calc((100% - 1200px) / 2)); top: 50%; transform: translateY(-80%);
  max-width: 460px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero__slide figcaption b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.hero__slide figcaption b::after { content: ""; display: block; width: 48px; height: 3px; background: var(--green); margin: 16px 0 14px; }
.hero__slide figcaption span { display: block; font-size: clamp(.95rem, 1.3vw, 1.1rem); letter-spacing: .08em; line-height: 1.8; opacity: .95; }
/* office slide: caption lower, below the glass-door logo */
.hero__slide--hero-office figcaption { top: auto; bottom: 150px; transform: none; max-width: 680px; }
.hero__title { position: relative; z-index: 2; margin: -96px auto 0; width: min(880px, 100% - 48px);
  background: #fff; border: 2px solid var(--navy-2); border-radius: 999px; padding: 26px 40px 22px; text-align: center; }
.hero__title h1 { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: .12em; line-height: 1.35; }
.hero__title h1 em { font-style: normal; color: var(--green-dark); }
.hero__title p { margin: 6px 0 0; font-size: clamp(.8rem, 1.4vw, 1.05rem); letter-spacing: .32em; color: var(--navy-2); }
.hero__lead { text-align: center; margin: 28px auto 0; color: var(--muted); font-size: 16px; }
.hero__actions { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 30px auto 0; }
.hero__dots { position: absolute; right: max(24px, calc((100% - 1360px) / 2)); bottom: 120px; display: flex; gap: 8px; z-index: 3; }
.hero__dots button { width: 34px; height: 4px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: #fff; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section--pale { background: var(--pale); }
.section--gray { background: var(--gray-bg); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .en { display: block; font-size: 12px; letter-spacing: .38em; color: var(--green-dark); margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: .12em; line-height: 1.5; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--green); margin: 22px auto 0; }
.sec-head p { margin: 22px auto 0; color: var(--muted); max-width: 720px; }
.h3-bar { font-size: 22px; font-weight: 500; color: var(--navy); letter-spacing: .08em; padding-left: 16px; border-left: 6px solid var(--navy-2); margin: 0 0 24px; line-height: 1.5; }

/* numbered panel (DYM "01 02 03") */
.num-panel { list-style: none; margin: 0; padding: 18px 40px; background: #fff; border-radius: var(--radius); counter-reset: n; }
.num-panel li { counter-increment: n; display: flex; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #eceef0; font-size: 18px; color: var(--navy); }
.num-panel li:last-child { border-bottom: 0; }
.num-panel li::before { content: counter(n, decimal-leading-zero); font-size: 22px; font-weight: 700; color: var(--green-dark); letter-spacing: .04em; min-width: 32px; }

/* intro (education consulting) */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro__text p { margin: 0 0 1.4em; }
.intro__img img { border-radius: var(--radius); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(20,40,90,.07); display: flex; flex-direction: column; }
.card img { aspect-ratio: 1477 / 702; object-fit: cover; }
.card__body { padding: 26px 28px 30px; }
.card h3 { margin: 0 0 12px; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy); font-size: 21px; letter-spacing: .1em; }
.card p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }

/* split (CAD) — image bleeds to the page edge */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; }
.split__img { height: 100%; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 80px max(48px, calc((100vw - var(--wide)) / 2)) 80px 72px; }
.split__body .en { display: block; font-size: 12px; letter-spacing: .38em; color: var(--green-dark); margin-bottom: 10px; }
.split__body h2 { margin: 0 0 8px; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy); font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: .1em; }
.split__body .catch { font-size: 19px; color: var(--green-dark); margin: 0 0 22px; letter-spacing: .1em; }
.split__body p { margin: 0 0 1.2em; }

/* news */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news li { border-bottom: 1px solid var(--rule); }
.news a { display: grid; grid-template-columns: 140px 90px 1fr 20px; gap: 20px; align-items: center; padding: 26px 8px; text-decoration: none; }
.news a:hover { background: var(--pale); }
.news time { color: var(--muted); font-size: 15px; letter-spacing: .08em; }
.news .cat { font-size: 12px; text-align: center; border: 1px solid var(--green); color: var(--green-dark); border-radius: 999px; padding: 2px 10px; }
.news .ttl { font-size: 16px; color: var(--navy); }
.news a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--navy-2); border-right: 2px solid var(--navy-2); transform: rotate(45deg); }
.news-more { text-align: center; margin-top: 40px; }

/* related companies */
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 32px; }
.related a { display: block; background: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none; text-align: center; box-shadow: 0 6px 20px rgba(20,40,90,.06); }
.related span { display: block; margin-top: 10px; font-size: 14px; color: var(--navy); letter-spacing: .08em; }

/* contact band */
.contact-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #2c6a63 100%); color: #fff; text-align: center; padding: 90px 0; }
.contact-band .en { font-size: 12px; letter-spacing: .38em; color: #bfe3c4; }
.contact-band h2 { margin: 8px 0 18px; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: .12em; }
.contact-band .tel { display: inline-block; white-space: nowrap; font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 700; letter-spacing: .08em; color: #fff; text-decoration: none; margin: 8px 0 4px; }
.contact-band small { display: block; opacity: .85; letter-spacing: .1em; }

/* access + company */
.access { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.company-dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--rule); }
.company-dl dt, .company-dl dd { margin: 0; padding: 16px 4px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.company-dl dt { color: var(--navy); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* footer */
.footer { background: #0f1f45; color: #cfd6e4; padding: 64px 0 28px; font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__logo { display: inline-block; }
.footer__logo img { height: 46px; width: auto; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: #fff; letter-spacing: .1em; }
.footer__copy { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header__tel { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: block; }
  .header.is-open .nav { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 20px; border-bottom: 1px solid #eef0f2; }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid #eef0f2; }
  .header__inner { height: 68px; }
  .header__logo img { height: 42px; }
  .section { padding: 72px 0; }
  .intro, .access, .split { grid-template-columns: 1fr; gap: 32px; }
  .split__img { height: 300px; }
  .split__body { padding: 40px 24px 56px; }
  .cards { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .hero__title { margin-top: -56px; border-radius: 28px; padding: 20px 18px 16px; }
  .hero__slide::after { background: linear-gradient(180deg, rgba(12, 26, 60, .6) 0%, rgba(12, 26, 60, 0) 55%); }
  .hero__slide figcaption { top: 24px; left: 20px; right: 20px; transform: none; max-width: none; }
  .hero__slide figcaption b::after { margin: 10px 0 8px; }
  .hero__slide--hero-office figcaption { top: 24px; bottom: auto; max-width: none; }
  .hero__dots { bottom: 74px; }
  .sp { display: inline; }
  .sec-head h2 { font-size: 1.45rem; letter-spacing: .08em; }
  .hero__lead { padding: 0 24px; font-size: 15px; }
  .hero__title h1 { letter-spacing: .08em; }
  .num-panel { padding: 6px 20px; }
  .num-panel li { font-size: 16px; gap: 14px; }
  .news a { grid-template-columns: 1fr 20px; gap: 6px 12px; }
  .news time, .news .cat { grid-column: 1; justify-self: start; }
  .news .ttl { grid-column: 1; }
  .news a::after { grid-column: 2; grid-row: 1 / span 3; }
  .related { grid-template-columns: 1fr; }
  .company-dl { grid-template-columns: 100px 1fr; }
}

/* ---------- sub pages ---------- */
.page-hero { background: linear-gradient(120deg, #eef6ef 0%, #e6eef8 100%); padding: 34px 0 64px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 40px; letter-spacing: .06em; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span + span::before { content: "/"; margin: 0 10px; color: #b7bfc8; }
.page-hero .en { display: block; text-align: center; font-size: 12px; letter-spacing: .38em; color: var(--green-dark); margin-bottom: 14px; }
.page-hero h1 { margin: 0 auto; width: fit-content; max-width: 100%; background: #fff; border: 2px solid var(--navy-2); border-radius: 999px;
  padding: 18px 56px; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: .14em; line-height: 1.4; text-align: center; }
.content { padding: 90px 0 110px; }
.content p { margin: 0 0 1.5em; }
.content .lead { font-size: 19px; color: var(--navy); letter-spacing: .06em; }
.h2-line { margin: 0 0 28px; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: .1em; line-height: 1.5; padding-bottom: 14px;
  background: linear-gradient(var(--green), var(--green)) left bottom / 56px 3px no-repeat, linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat; }
.block { margin-top: 88px; }
.block:first-child { margin-top: 0; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.areas li { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(20,40,90,.07); text-align: center; }
.areas img { width: 100%; aspect-ratio: 292 / 165; object-fit: cover; }
.areas span { display: block; padding: 18px 12px 20px; font-weight: 500; color: var(--navy); letter-spacing: .04em; }
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-in img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split-in .catch { font-size: 19px; color: var(--green-dark); letter-spacing: .1em; margin: 0 0 18px; }
.center { text-align: center; }
.dl-table { margin: 0; display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--rule); }
.dl-table dt, .dl-table dd { margin: 0; padding: 20px 16px; border-bottom: 1px solid var(--rule); }
.dl-table dt { background: var(--pale); color: var(--navy); font-weight: 500; }
.message h3 { font-size: 20px; color: var(--navy); letter-spacing: .08em; margin: 0 0 20px; font-weight: 500; }
.tel-card { background: var(--pale); border-radius: var(--radius); padding: 48px 32px; text-align: center; }
.tel-card .tel { display: inline-block; white-space: nowrap; font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: .08em; }
.tel-card small { display: block; color: var(--muted); margin-top: 6px; letter-spacing: .08em; }
.post-meta { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 18px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.post-meta .cat { font-size: 12px; border: 1px solid var(--green); color: var(--green-dark); border-radius: 999px; padding: 1px 12px; }
.post-figure { max-width: 320px; margin: 0 auto 40px; }
.back-link { margin-top: 56px; text-align: center; }
.notfound { text-align: center; padding: 120px 0; }
@media (max-width: 860px) {
  .areas { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .areas span { padding: 12px 8px 14px; font-size: 14px; }
  .split-in { grid-template-columns: 1fr; gap: 24px; }
  .dl-table { grid-template-columns: 1fr; }
  .dl-table dt { border-bottom: 0; padding-bottom: 8px; }
  .dl-table dd { padding-top: 8px; }
  .page-hero h1 { padding: 14px 26px; border-radius: 28px; }
  .content { padding: 56px 0 80px; }
  .h2-line { font-size: 1.3rem; letter-spacing: .06em; }
  .block { margin-top: 64px; }
}

/* ---------- inquiry form (Web3Forms) ---------- */
.form { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 36px 40px; }
.form__row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid #eef1ee; }
.form__row label { padding-top: 10px; font-weight: 500; color: var(--navy); font-size: 15px; }
.form input:not([type="hidden"]):not(.hp), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #cfd8d1; border-radius: 10px; background: #fbfcfb; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(58,166,74,.15); background: #fff; }
.req { display: inline-block; margin-left: 6px; font-size: 11px; color: #fff; background: #d9534f; border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.hp { position: absolute; left: -9999px; }
.form__submit { text-align: center; padding-top: 28px; }
.form__submit .btn { min-width: 280px; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.form__submit .btn[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form__status.is-error { color: #c0392b; }
@media (max-width: 860px) {
  .form { padding: 20px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; }
  .form__row label { padding-top: 0; }
  .form__submit .btn { min-width: 0; width: 100%; }
}
.company-photo { margin: 0 0 36px; }
.company-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.company-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; letter-spacing: .06em; }
