:root {
  color: #18333d;
  background: #fbfdfd;
  font-family: Inter, "Segoe UI", sans-serif;
  --ink: #18333d;
  --muted: #405d66;
  --line: #cfdddf;
  --mint: #e8f4f2;
  --teal: #0b716d;
  --button-green: #247447;
  --button-hover: #195b36;
  --button-tint: #eef7ee;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; }
svg { display: block; width: 1.5rem; height: 1.5rem; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid #10837c; outline-offset: 4px; }
.shell { width: min(calc(100% - 64px), 1272px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 3; padding: 8px 14px; background: white; }

.site-header { position: relative; z-index: 1; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 72px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { color: var(--teal); width: 30px; height: 30px; }
.navigation { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.navigation a, .footer-inner a { text-decoration: none; }
.navigation a:hover, .footer-inner a:hover { color: var(--teal); text-decoration: underline; }
.search {
  order: 1;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
.search-panel { order: 1; }
.search-panel summary { list-style: none; }
.search-panel summary::-webkit-details-marker { display: none; }
.search-panel[open] > summary, .search-panel > summary:hover { color: var(--teal); }
.pc-home-search {
  position: absolute;
  top: calc(100% - 5px);
  right: max(32px, calc((100% - 1272px) / 2));
  width: min(470px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px #18333d18;
}
.pc-home-search label { display: block; margin-bottom: 8px; }
.pc-home-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #94b2b5;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.search-dropdown { display: none; max-height: min(46vh, 320px); overflow-y: auto; margin-top: 8px; }
.search-dropdown .sd-item { display: flex; gap: 9px; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.search-dropdown .sd-item:hover, .search-dropdown .sd-active { background: var(--mint); }
.search-dropdown .sd-empty { padding: 8px; color: var(--muted); }
summary { cursor: pointer; }
.sections-menu > summary { list-style: none; }
.sections-menu > summary::-webkit-details-marker,
.more > summary::-webkit-details-marker { display: none; }
.sections-menu > summary { display: flex; align-items: center; min-height: 44px; }
.menu-links {
  position: absolute;
  right: max(32px, calc((100% - 1272px) / 2));
  top: calc(100% - 5px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(470px, calc(100% - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 34px #18333d18;
}
.menu-links a { padding: 10px; }
.compact-nav { display: none; }

.hero {
  display: grid;
  grid-template-columns: 47% 53%;
  border-radius: 23px;
  background: var(--mint);
}
.hero-content { align-self: center; padding: clamp(28px, 4vw, 58px); }
h1, h2, h3 { color: var(--ink); line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 4.5vw, 4.25rem); letter-spacing: -.057em; font-weight: 850; }
.hero-content p { margin: 17px 0 25px; font-size: clamp(1rem, 1.7vw, 1.32rem); }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 30px;
  border-radius: 10px;
  background: var(--button-green);
  color: white;
  font-size: 1.16rem;
  font-weight: 750;
  text-decoration: none;
}
.primary:hover { background: var(--button-hover); }
.hero-photo { position: relative; min-height: 390px; }
.hero-photo img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 37%;
  border-radius: 0 23px 23px 0;
}

.block { margin-top: 42px; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.5rem); letter-spacing: -.041em; font-weight: 800; }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
.section-intro { margin: 8px 0 17px; color: var(--muted); }
.directions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.directions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.directions a:hover { background: var(--mint); border-color: #95bfbc; }
.directions svg { flex: 0 0 27px; width: 27px; height: 27px; color: var(--teal); }
.directions strong, .directions small { display: block; }
.directions small { color: var(--muted); }

.comparison {
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--line);
  border-spacing: 0;
  border-radius: 17px;
  background: var(--white);
  text-align: left;
}
.comparison th, .comparison td { padding: 17px clamp(12px, 1.6vw, 24px); overflow-wrap: anywhere; }
.comparison thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #20434b;
  color: white;
  font-size: .9rem;
}
.comparison thead th:first-child { width: 29%; border-top-left-radius: 16px; }
.comparison thead th:nth-child(2) { width: 18%; }
.comparison thead th:nth-child(3) { width: 30%; }
.comparison thead th:last-child { width: 23%; border-top-right-radius: 16px; }
.comparison tbody > tr > * { vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison tbody:last-child .course-row:last-child > * { border-bottom: 0; }
.comparison tbody:last-child .course-row:last-child > :last-child { border-bottom-right-radius: 16px; }
.comparison tbody[id] { scroll-margin-top: 65px; }
.comparison .course-group th { padding-block: 8px; background: var(--mint); color: #225e5d; font-size: .86rem; }
.comparison tbody:target .course-group th { background: #ccece6; color: #154643; }
.course-row:hover .course-name { background: #f5faf9; }
.comparison tbody strong, .comparison tbody small { display: block; }
.comparison tbody th strong { margin-top: 3px; font-size: 1.14rem; line-height: 1.25; }
.comparison small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.course-audience { display: block; margin-top: 7px; color: var(--muted); font-size: .9rem; font-weight: 400; }
.course-price { background: #f3f9f8; }
.course-price strong { color: #125953; font-size: clamp(1.05rem, 1.6vw, 1.38rem); line-height: 1.2; }
.course-price small, .course-schedule small { margin-top: 4px; }
.course-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 5px 10px;
  margin-top: 9px;
  border: 1px solid var(--button-green);
  border-radius: 8px;
  background: var(--button-green);
  color: white;
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none;
}
.course-link:hover { background: var(--button-hover); border-color: var(--button-hover); }
.course-extra { margin-top: 7px; }
.course-extra summary { width: fit-content; min-height: 32px; padding-block: 4px; color: var(--teal); font-size: .85rem; font-weight: 700; }
.course-extra p { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.course-extra b { color: var(--ink); }
.free a { display: inline-block; margin-top: 6px; color: var(--teal); font-weight: 700; text-underline-offset: 3px; }
.free a:hover { color: #085550; }
.mobile-label { display: none; }
.related-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 700;
  text-underline-offset: 3px;
}
.free .free-guide { margin-top: 0; margin-bottom: 22px; }

.subpage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  border-radius: 20px;
  background: var(--mint);
}
.subpage-copy {
  container-type: inline-size;
  padding: clamp(22px, 4.3vw, 58px);
}
.subpage-intro h1 { font-size: clamp(1.5rem, 9.8cqi, 3.85rem); text-wrap: balance; }
.subpage-intro p { max-width: 62ch; margin-top: 14px; color: var(--muted); }
.subpage-intro .primary { width: auto; margin-top: 20px; }
.subpage-visual { position: relative; align-self: stretch; min-height: 310px; }
.subpage-visual img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; border-radius: 0 20px 20px 0; }
.subpage-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 15px; }
.subpage-links a { padding: 7px 12px; border: 1px solid #c6deca; border-radius: 9px; background: var(--button-tint); color: var(--button-hover); font-weight: 650; text-underline-offset: 3px; }
.subpage-links a:hover { border-color: var(--button-green); }
.breadcrumbs { margin: 2px 0 14px; font-size: .92rem; color: var(--muted); }
.breadcrumbs a, .guide-section a { color: var(--teal); text-underline-offset: 3px; }
.guide-section { max-width: 75ch; }
.guide-section h3 { margin-top: 19px; }
.guide-section p, .guide-section li { margin-top: 8px; }
.guide-section ol, .guide-section ul { padding-left: 24px; }
.guide-section pre {
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  overflow: auto;
  background: #eff7f6;
  font-size: .92rem;
}
.guide-section .related-link { margin-right: 16px; }
.guide-layout { display: grid; gap: 22px; align-items: start; }
.guide-layout > .guide-section,
.guide-layout .guide-aside > .guide-section { min-width: 0; max-width: none; margin-top: 0; }
.guide-layout .guide-section > h2 { text-wrap: balance; }
.guide-layout--feature > #portfolio,
.guide-layout--steps > .guide-section,
.guide-layout--workshop > #report,
.guide-aside > #troubleshooting {
  padding: clamp(16px, 2.1vw, 29px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.guide-aside { display: grid; min-width: 0; gap: 22px; }
.guide-wide { max-width: none; }
.guide-wide h2 { max-width: 34ch; }
.decision-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.decision-grid > div { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.decision-grid p { margin-top: 8px; color: var(--muted); }
.takeaway { padding: clamp(18px, 3vw, 32px); border-radius: 15px; background: var(--mint); }
.takeaway p { margin-top: 8px; color: var(--muted); }
.faq { margin-top: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 13px 0; color: var(--ink); font-weight: 750; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.faq--columns { display: grid; gap: 10px; align-items: start; }
.faq--columns details { padding-inline: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.result-table { width: min(100%, 420px); margin-top: 10px; border-collapse: collapse; text-align: left; }
.result-table caption { text-align: left; font-weight: 750; color: var(--ink); }
.result-table td, .result-table th { padding: 7px 11px; border: 1px solid var(--line); }
.result-table th { background: var(--mint); }
.result-table td { background: white; }
.step-feedback { padding: 12px 15px; border-left: 3px solid #2b8f86; background: #edf7f5; }
.query-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.copy-query {
  min-height: 40px;
  padding: 5px 11px;
  border: 1px solid var(--button-green);
  border-radius: 8px;
  color: white;
  background: var(--button-green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.copy-query:hover { border-color: var(--button-hover); background: var(--button-hover); }
.copy-status { color: var(--muted); font-size: .9rem; }

@media (min-width: 900px) {
  .guide-layout { gap: 26px; }
  .guide-layout--steps, .faq--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout--steps { align-items: stretch; }
  .guide-layout--feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; }
  .guide-layout--workshop { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.price-note { margin-top: 10px; font-size: .875rem; color: var(--muted); }

.help-grid, .free-grid { display: grid; gap: 24px; }
.help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.help-grid p, .free-grid p { margin-top: 8px; color: var(--muted); }
.free { padding: clamp(20px, 3.4vw, 42px); border-radius: 18px; background: var(--mint); }
.free-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.free-grid > div + div { padding-left: 22px; border-left: 1px solid #aacbc8; }
.articles { list-style: none; padding: 0; margin: 13px 0 0; }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; padding: 10px 4px; }
.articles a:hover strong { color: var(--teal); text-decoration: underline; }
.articles small { display: block; color: var(--muted); }
.articles [aria-hidden] { color: var(--teal); font-size: 1.22rem; }
.more > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; min-height: 44px; color: var(--teal); font-weight: 700; margin-top: 5px; }
.more[open] > summary span { rotate: 180deg; }
.more .articles { margin-top: 0; }
.site-footer { margin-top: 48px; padding-block: 25px; border-top: 1px solid var(--line); background: #f3f8f8; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .94rem; }

@media (max-width: 1050px) {
  .directions a { align-items: start; flex-direction: column; gap: 8px; }
  .hero-photo { min-height: 350px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 60px; }
  .navigation { gap: 6px; }
  .brand { font-size: 1.42rem; }
  .brand svg { width: 26px; height: 26px; }
  .search-panel { order: 0; }
  .pc-home-search { right: 16px; }
  .wide-nav { display: none; }
  .compact-nav { display: block; }
  .sections-menu > summary { justify-content: center; width: 44px; }
  .menu-links { right: 16px; }
  .hamburger {
    display: block;
    width: 21px;
    height: 15px;
    border-block: 2px solid currentColor;
    position: relative;
  }
  .hamburger::after { content: ""; position: absolute; top: 5px; inset-inline: 0; border-top: 2px solid currentColor; }
  .hero { display: block; border-radius: 17px; }
  .hero-content { padding: 20px 16px 17px; }
  h1 { font-size: clamp(2.15rem, 8.5vw, 3.7rem); }
  .hero-content p { margin: 10px 0 15px; }
  .primary { min-height: 50px; width: 100%; }
  .hero-photo { min-height: 0; aspect-ratio: 1.75; }
  .hero-photo img { border-radius: 14px 14px 17px 17px; object-position: 58% 38%; }
  .block { margin-top: 28px; }
  .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
  .directions a { padding: 11px 10px; font-size: .93rem; }
  .directions small { display: none; }
  .directions svg { flex-basis: 22px; width: 22px; height: 22px; }
  .comparison { display: block; border: 0; background: transparent; }
  .comparison thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .comparison tbody { display: grid; gap: 10px; }
  .comparison tbody + tbody { margin-top: 16px; }
  .comparison tbody[id] { scroll-margin-top: 18px; }
  .comparison .course-group { display: block; }
  .comparison .course-group th { display: block; border: 0; border-radius: 9px; }
  .comparison .course-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
  }
  .comparison .course-row > * { display: block; padding: 10px 12px; border: 0; font-size: .92rem; }
  .comparison .course-name, .comparison .course-price { grid-column: 1 / -1; }
  .comparison .course-name { border-bottom: 1px solid var(--line); }
  .comparison .course-price { border-top: 1px solid var(--line); }
  .comparison tbody:last-child .course-row:last-child > :last-child { border-radius: 0; }
  .mobile-label { display: block; font-size: .78rem; color: var(--muted); font-weight: 650; }
  .subpage-intro { grid-template-columns: minmax(0,1fr); }
  .subpage-copy { padding: 22px 18px; }
  .subpage-visual { min-height: 0; aspect-ratio: 1.8; }
  .subpage-visual img { border-radius: 0 0 20px 20px; }
  .decision-grid { grid-template-columns: 1fr; gap: 10px; }
  .help-grid, .free-grid { grid-template-columns: 1fr; gap: 16px; }
  .free-grid > div + div { padding: 15px 0 0; border-left: 0; border-top: 1px solid #aacbc8; }
  .footer-inner { flex-direction: column; align-items: start; gap: 12px; }
}

@media (max-width: 360px) {
  .directions a { font-size: .83rem; }
}
