@charset "UTF-8";

:root {
  --green: #2f7d32;
  --green-dark: #1f6124;
  --green-soft: #eef8ec;
  --orange: #f39b2f;
  --blue: #2e83c5;
  --text: #1f2933;
  --muted: #65717d;
  --line: #e2e8df;
  --bg: #f8fbf6;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(39, 87, 48, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(1200px, calc(100% - 36px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.site-logo img {
  width: 62px;
  height: auto;
}

.site-logo h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.site-logo p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.global-nav a {
  position: relative;
  padding: 28px 14px 24px;
  font-weight: 700;
  font-size: 14px;
  color: #263238;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  transform: scaleX(1);
}

.global-nav a:hover,
.global-nav a.active {
  color: var(--green);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff 0%, #fffdf5 48%, #f3faf0 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 92px;
  max-width: 1120px;
}

.hero-label {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero h2 {
  margin: 0 0 26px;
  color: var(--green);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: 0.08em;
}

.hero h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.05em;
}

.hero-text {
  margin: 0 0 34px;
  font-size: 17px;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn::after {
  content: "›";
  margin-left: 18px;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  filter: brightness(1.04);
}

.btn:hover::after {
  transform: translateX(5px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.btn.outline {
  color: var(--green);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 125, 50, 0.45);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 59%;
  min-width: 680px;
  z-index: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.95) 15%, rgba(255,255,255,0.62) 32%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0) 100%),
    linear-gradient(270deg, #f3faf0 0%, rgba(243,250,240,0.78) 5%, rgba(243,250,240,0) 22%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.news-section {
  margin-top: -56px;
  position: relative;
  z-index: 3;
}

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr 130px;
  gap: 28px;
  align-items: center;
  padding: 28px 34px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-heading span,
.section-title span,
.section-kicker {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-heading h2,
.section-title h2,
.download-box h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.news-list {
  display: grid;
  gap: 6px;
}

.news-list a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: center;
  padding: 4px 0;
}

.news-list time {
  color: var(--green);
  font-weight: 800;
}

.news-list a:hover span {
  color: var(--green);
}

.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.shortcut-section,
.business-section,
.download-section {
  padding: 78px 0;
}

.section-title {
  margin-bottom: 28px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.shortcut-card {
  min-height: 184px;
  padding: 26px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(39, 87, 48, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shortcut-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.shortcut-card .icon {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}

.shortcut-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.shortcut-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.business-section {
  background: #fff;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.business-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(39, 87, 48, 0.08);
}

.business-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eef8ec;
}

.business-card div {
  padding: 24px;
}

.business-card h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 20px;
}

.business-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.business-card a {
  color: var(--green);
  font-weight: 800;
}

.download-box {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f0faed);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-box p {
  color: var(--muted);
  margin-bottom: 0;
}

.download-links {
  display: grid;
  gap: 12px;
}

.download-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.download-links a::after {
  content: "›";
  color: var(--green);
  font-size: 24px;
}

.site-footer {
  color: #fff;
  background: #1f6124;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p {
  margin: 0 0 8px;
  opacity: 0.92;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 74px;
  }

  .menu-button {
    display: inline-flex;
  }

  .global-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 10px 18px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  .global-nav a {
    padding: 12px 10px;
  }

  .global-nav a::after {
    bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 72px 0 340px;
  }

  .hero-visual {
    top: auto;
    left: 0;
    width: 100%;
    min-width: 0;
    height: 380px;
  }

  .hero-visual::before {
    background:
      linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.78) 18%, rgba(255,255,255,0.05) 42%, rgba(255,255,255,0) 100%),
      linear-gradient(270deg, #f3faf0 0%, rgba(243,250,240,0.2) 22%, rgba(243,250,240,0) 45%);
  }

  .news-card {
    grid-template-columns: 1fr;
  }

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

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

  .download-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-logo img {
    width: 48px;
  }

  .site-logo h1 {
    font-size: 18px;
  }

  .site-logo p {
    display: none;
  }

  .hero-copy {
    width: min(100% - 28px, 1120px);
    padding: 54px 0 300px;
  }

  .hero h2 {
    font-size: 35px;
    letter-spacing: 0.04em;
  }

  .hero h3 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 15px;
  }

  .btn {
    width: 100%;
  }

  .news-section {
    margin-top: -34px;
  }

  .news-card {
    padding: 24px 20px;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

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

  .shortcut-section,
  .business-section,
  .download-section {
    padding: 54px 0;
  }

  .download-box {
    padding: 28px 20px;
  }
}


/* ===== Lower page common ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf1 58%, #eaf7e6 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 76px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--green);
}

.page-hero-label {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-hero h1 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #344054;
  font-size: 17px;
  font-weight: 600;
}

.page-section {
  padding: 72px 0;
}

.page-section.white {
  background: #fff;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.lead-card {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-card h2 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 30px;
  line-height: 1.45;
}

.lead-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-soft);
}

.lead-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  background: var(--green-soft);
  border-radius: 14px;
  font-weight: 800;
}

.feature-item span {
  color: var(--green);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.course-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(39, 87, 48, 0.08);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--green);
}

.course-card.orange::before {
  background: var(--orange);
}

.course-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--green);
}

.course-card.orange h3 {
  color: #d87910;
}

.course-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.course-links {
  display: grid;
  gap: 10px;
}

.file-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fbf6;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.file-button:hover {
  transform: translateY(-2px);
  border-color: rgba(47,125,50,.45);
  box-shadow: 0 10px 22px rgba(39, 87, 48, 0.08);
}

.file-button::after {
  content: "開く";
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}

.file-button.pdf::before,
.file-button.word::before {
  flex: 0 0 auto;
  min-width: 46px;
  text-align: center;
  border-radius: 8px;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
}

.file-button.pdf::before {
  content: "PDF";
  background: #d94343;
}

.file-button.word::before {
  content: "WORD";
  background: #2e83c5;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-card {
  padding: 24px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 12px 28px rgba(39, 87, 48, 0.08);
}

.flow-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  font-size: 20px;
}

.flow-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-box {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff8ea;
  border: 1px solid #f4d9aa;
}

.notice-box h2 {
  margin: 0 0 12px;
  color: #c56c0c;
  font-size: 24px;
}

.notice-box ul {
  margin: 0;
  padding-left: 1.2em;
  color: #5f4a2f;
}

.notice-box li {
  margin-bottom: 6px;
}

@media (max-width: 1040px) {
  .lead-grid,
  .course-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .lead-photo img {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .page-hero-inner {
    width: min(100% - 28px, 1120px);
    padding: 54px 0 58px;
  }

  .page-section {
    padding: 52px 0;
  }

  .lead-card,
  .course-card,
  .notice-box {
    padding: 24px 20px;
  }

  .lead-photo img {
    height: 240px;
  }

  .file-button {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-button::after {
    align-self: flex-end;
  }
}


/* ===== Training page v2 ===== */
.summary-table-wrap,
.course-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--line);
}

.summary-table,
.course-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

.summary-table th,
.summary-table td,
.course-table th,
.course-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  vertical-align: top;
  text-align: left;
}

.summary-table th {
  width: 210px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td,
.course-table tr:last-child td {
  border-bottom: 0;
}

.course-table thead th {
  color: #fff;
  background: var(--green);
  font-weight: 900;
  text-align: center;
}

.course-table td:first-child {
  width: 150px;
  font-weight: 900;
  color: var(--green);
  background: #f7fcf5;
}

.course-table .course-basic {
  color: var(--green);
}

.course-table .course-special {
  color: #d87910;
}

.course-table .date-cell,
.course-table .place-cell {
  width: 160px;
  font-weight: 800;
}

.course-table ul {
  margin: 0;
  padding-left: 1.25em;
}

.course-table li {
  margin-bottom: 4px;
}

.mobile-course-list {
  display: none;
}

.mobile-course-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(39, 87, 48, 0.08);
}

.mobile-course-card + .mobile-course-card {
  margin-top: 16px;
}

.mobile-course-card h3 {
  margin: 0 0 14px;
  color: var(--green);
}

.mobile-course-card.special h3 {
  color: #d87910;
}

.mobile-course-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mobile-course-card dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.mobile-course-card dd {
  margin: 0;
  color: var(--text);
}

.mobile-course-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.certification-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.cert-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(39, 87, 48, 0.08);
}

.cert-card h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 22px;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
}

.anchor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.anchor-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(47,125,50,.38);
  color: var(--green);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(39,87,48,.06);
}

.anchor-buttons a:hover {
  background: var(--green-soft);
}

@media (max-width: 760px) {
  .course-table-wrap {
    display: none;
  }

  .mobile-course-list {
    display: block;
  }

  .summary-table {
    min-width: 0;
  }

  .summary-table,
  .summary-table tbody,
  .summary-table tr,
  .summary-table th,
  .summary-table td {
    display: block;
    width: 100%;
  }

  .summary-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .summary-table td {
    padding-top: 8px;
  }

  .certification-box {
    grid-template-columns: 1fr;
  }
}


/* ===== Training page v3 adjustments ===== */
.course-table {
  min-width: 680px;
}

.place-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.place-link::after {
  content: " ↗";
  font-size: 0.9em;
}

.place-link:hover {
  color: var(--green-dark);
}


/* ===== Training page v4 table width adjustment ===== */
@media (min-width: 761px) {
  .course-table {
    table-layout: fixed;
    min-width: 0;
  }

  .course-table th:nth-child(1),
  .course-table td:nth-child(1) {
    width: 15%;
  }

  .course-table th:nth-child(2),
  .course-table td:nth-child(2) {
    width: 19%;
  }

  .course-table th:nth-child(3),
  .course-table td:nth-child(3) {
    width: 19%;
  }

  .course-table th:nth-child(4),
  .course-table td:nth-child(4) {
    width: 47%;
  }

  .course-table .date-cell,
  .course-table .place-cell {
    width: auto;
  }

  .course-table td,
  .course-table th {
    word-break: keep-all;
  }

  .course-table li {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}


/* Badge style update */
.row-basic td{
  background:#f6fcf5;
}
.row-special td{
  background:#fff8f1;
}

.course-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  line-height:1;
}
.course-badge.basic{
  background:#dff3df;
  color:#2f7d32;
}
.course-badge.special{
  background:#ffe6c9;
  color:#d87910;
}
