@charset "UTF-8";

/* ========================================
   common.css
   共通設定
   ======================================== */

:root {
  --color-main: #0e7a43;
  --color-main-dark: #095e33;
  --color-main-light: #e8f5ee;
  --color-accent: #f0b400;
  --color-text: #222;
  --color-text-light: #555;
  --color-white: #fff;
  --color-bg: #f7f9f8;
  --color-border: #d8e3dc;
  --color-red: #cc1f1f;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --content-width: 1100px;
  --page-width: 980px;
  --header-height: 88px;
}

/* ========================================
   base
   ======================================== */

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

a:hover {
  opacity: 0.88;
}

img {
  max-width: 100%;
  height: auto;
}

.l-inner {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
}

.l-main {
  display: block;
}

.l-contents {
  padding: 70px 0 90px;
  background: var(--color-bg);
}

.l-contents__inner,
.l-primary {
  display: block;
}

/* ========================================
   utility
   ======================================== */

.u-color-red {
  color: var(--color-red);
}

.u-fw-bold {
  font-weight: 700;
}

.u-clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.u-br-pc,
.u-br-sp {
  display: none;
}

.u-list-note {
  list-style: none !important;
  padding-left: 0 !important;
}

.u-list-note li {
  position: relative;
  padding-left: 1em !important;
  font-size: 1.4rem !important;
}

.u-list-note li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* ========================================
   header
   ======================================== */

.l-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 122, 67, 0.08);
}

.l-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}

.l-header__logo {
  margin: 0;
  font-size: 0;
}

.c-font-type--logo {
  display: inline-block;
  font-size: clamp(2rem, 2.2vw, 3rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-main-dark);
  letter-spacing: 0.02em;
}

.l-header__desc {
  font-size: 1.3rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.l-header__nav {
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.p-global-nav {
  display: flex;
  align-items: center;
  /*justify-content: center;*/
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.p-global-nav .menu-item a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-main-dark);
}

.p-global-nav .menu-item a:hover {
  background: var(--color-main-light);
  opacity: 1;
}

.p-global-nav .menu-item.current-menu-item a {
  background: var(--color-main-light);
  color: var(--color-main-dark);
}

.p-menu-btn {
  display: none;
}

/* ========================================
   breadcrumb
   共通化
   ======================================== */

.p-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 20px 0 0;
  color: var(--color-text-light);
  font-size: 1.3rem;
}

.p-breadcrumb__item {
  position: relative;
}

.p-breadcrumb__item:not(:last-child)::after {
  content: ">";
  margin-left: 14px;
  color: #999;
}

.p-breadcrumb a:hover {
  color: var(--color-main);
  opacity: 1;
}

/* ========================================
   sub page shared layout
   下層ページ共通
   ======================================== */

.l-contents--subpage {
  padding: 28px 0 90px;
}

.l-contents--subpage .l-contents__inner {
  max-width: var(--page-width);
  margin: 0 auto;
}

/* ========================================
   sub page hero
   下層ページ共通ヒーロー
   ======================================== */

.p-subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 122, 67, 0.08), rgba(14, 122, 67, 0.02));
  box-shadow: var(--shadow-sm);
}

.p-subpage-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 42px;
}

.p-subpage-hero__eyebrow {
  margin-bottom: 10px;
  color: var(--color-main);
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-subpage-hero__title {
  margin: 0;
  color: var(--color-main-dark);
  font-size: clamp(3rem, 3.6vw, 4.4rem);
  line-height: 1.25;
  font-weight: 700;
}

.p-subpage-hero__lead {
  margin-top: 18px;
  color: var(--color-text-light);
  font-size: 1.7rem;
  line-height: 1.95;
}

.p-subpage-hero__image {
  min-height: 280px;
  background: #dfe8e2;
}

.p-subpage-hero__image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ========================================
   shared page body
   本文共通カード
   ======================================== */

.p-page-body-wrap,
.p-entry__body {
  margin-top: 32px;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   shared summary cards
   ======================================== */

.p-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.p-summary-cards__item {
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fcfa, #f1f7f3);
  border: 1px solid var(--color-border);
}

.p-summary-cards__label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-light);
  font-size: 1.3rem;
  font-weight: 700;
}

.p-summary-cards__value {
  display: block;
  color: var(--color-main-dark);
  font-size: 1.95rem;
  line-height: 1.5;
  font-weight: 700;
}

/* ========================================
   shared section title
   ======================================== */

.c-section-title {
  margin: 0 0 18px;
  padding: 0.55em 0.75em;
  border-left: 6px solid var(--color-main-dark);
  background: #f7f9f8;
  color: var(--color-text);
  font-size: clamp(2.4rem, 2.8vw, 3rem);
  line-height: 1.45;
  font-weight: 700;
}

.c-section-title__sub {
  display: block;
  margin-top: 6px;
  color: #66756d;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.c-section-title__sub::before {
  content: "— ";
}

/* ========================================
   subpage shared body text
   下層本文共通テキスト
   ======================================== */

.p-entry__body p,
.p-entry__body li,
.p-entry__body td {
  color: var(--color-text-light);
  font-size: 1.6rem;
  line-height: 1.9;
}

.p-entry__body strong:not(.p-summary-cards__value) {
  color: var(--color-text);
}

.p-entry__body a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.p-entry__body a:hover {
  color: var(--color-main-dark);
  opacity: 1;
}

/* ========================================
   subpage shared section spacing
   ======================================== */

.p-entry__body > * + * {
  margin-top: 20px;
}

/* ========================================
   subpage shared step flow
   ======================================== */

.p-step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.p-step-flow__item {
  position: relative;
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.p-step-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 0.4em;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.p-step-flow__item h3 {
  margin: 0 0 8px;
  color: var(--color-main-dark);
  font-size: 1.8rem;
  line-height: 1.5;
  font-weight: 700;
}

.p-step-flow__item p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* ========================================
   subpage shared card blocks
   ======================================== */

.p-info-card,
.p-note-box,
.p-contact-box {
  padding: 24px;
  border-radius: 18px;
  background: var(--color-main-light);
  border: 1px solid var(--color-border);
}

.p-info-card__title,
.p-note-box__title,
.p-contact-box__title {
  margin: 0 0 10px;
  color: var(--color-main-dark);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ========================================
   subpage shared 2-column helpers
   ======================================== */

.p-info-card__grid,
.p-doc-list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.p-info-card__col {
  padding: 18px;
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

/* ========================================
   subpage shared doc list
   ======================================== */

.p-doc-list {
  display: grid;
  gap: 18px;
}

.p-doc-list__item {
  padding: 24px;
  background: #f7f9f8;
  border: 1px solid var(--color-border);
}

.p-doc-list__item h3 {
  margin: 0 0 12px;
  color: var(--color-main-dark);
  font-size: 1.9rem;
  font-weight: 700;
}

/* ========================================
   subpage shared note / utility lists
   ======================================== */

.p-note {
  color: #666;
  font-size: 1.4rem;
  line-height: 1.8;
}

/* ========================================
   subpage shared contact buttons
   ======================================== */

.p-contact-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ========================================
   subpage shared responsive
   ======================================== */

@media (max-width: 991px) {
  .p-step-flow,
  .p-info-card__grid,
  .p-doc-list--2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .p-entry__body p,
  .p-entry__body li,
  .p-entry__body td,
  .p-step-flow__item p {
    font-size: 1.4rem;
  }

  .p-info-card,
  .p-note-box,
  .p-contact-box,
  .p-doc-list__item,
  .p-step-flow__item {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .p-contact-buttons {
    flex-direction: column;
  }
}

/* ========================================
   shared numbered list
   ======================================== */

.c-number-list {
  counter-reset: sectionNum;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.c-number-list > li {
  position: relative;
  list-style: none;
  padding-left: 2.8em;
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1.8;
  counter-increment: sectionNum;
}

.c-number-list > li::before {
  content: "（" counter(sectionNum) "）";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-main);
  font-weight: 700;
}

.c-number-list--boxed {
  padding: 24px;
  background: #f7f9f8;
  border: 1px solid var(--color-border);
}

/* ========================================
   shared buttons
   ======================================== */

.c-btn-primary,
.c-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
}

.c-btn-primary {
  background: var(--color-main);
  color: var(--color-white) !important;
}

.c-btn-primary:hover {
  background: var(--color-main-dark);
  color: var(--color-white) !important;
  text-decoration: none !important;
  opacity: 1;
}

.c-btn-secondary {
  background: #eef3f0;
  color: var(--color-main-dark) !important;
}

.c-btn-secondary:hover {
  background: #dfe9e2;
  color: var(--color-main-dark) !important;
  text-decoration: none !important;
  opacity: 1;
}

/* ========================================
   footer
   ======================================== */

.l-footer {
  background: var(--color-main-dark);
  color: var(--color-white);
}

.p-info {
  padding: 44px 0 28px;
}

.p-info__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.p-info__logo {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-footer-widget__title {
  font-size: 1.7rem;
  font-weight: 600;
}

.p-footer-widget__time {
  font-size: 1.4rem;
}

.p-copyright {
  padding: 16px 20px 22px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.3rem;
}

/* ========================================
   responsive
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
  }

  .l-header__inner {
    min-height: var(--header-height);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
  }

  .c-font-type--logo {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    line-height: 1.4;
  }

  .p-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-subpage-hero {
    grid-template-columns: 1fr;
  }

  .p-subpage-hero__content {
    padding: 34px 28px;
  }

  .p-subpage-hero__image {
    min-height: 220px;
  }

  .p-subpage-hero__image img {
    height: 260px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 56.25%;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .l-inner {
    width: min(100% - 32px, var(--content-width));
  }

  .l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(14, 122, 67, 0.08);
    overflow: visible;
  }

  .l-header__inner {
    min-height: 64px;
    padding: 14px 0;
    position: relative;
    z-index: 1202;
    background: rgba(255, 255, 255, 0.96);
  }

  .c-font-type--logo {
    font-size: 2rem;
    line-height: 1.45;
    padding-right: 56px;
  }

  .l-header__desc {
    font-size: 1.2rem;
    white-space: normal;
  }

  .p-menu-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    z-index: 1203;
  }

  .p-menu-btn::before,
  .p-menu-btn::after,
  .p-menu-btn span {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--color-main-dark);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  }

  .p-menu-btn::before {
    top: 14px;
  }

  .p-menu-btn span {
    top: 21px;
  }

  .p-menu-btn::after {
    top: 28px;
  }

  .p-menu-btn.is-open::before {
    top: 21px;
    transform: rotate(45deg);
  }

  .p-menu-btn.is-open span {
    opacity: 0;
  }

  .p-menu-btn.is-open::after {
    top: 21px;
    transform: rotate(-45deg);
  }

  .l-header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 20px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    z-index: 1201;
    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .l-header__nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .p-global-nav {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 0;
  }

  .p-global-nav .menu-item a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f8f5;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
  }

  .p-global-nav .menu-item.current-menu-item a {
    background: var(--color-main);
    color: var(--color-white);
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .l-main {
    padding-top: 64px;
  }

  .p-breadcrumb {
    padding-top: 14px;
    font-size: 1.2rem;
  }

  .l-contents {
    padding: 54px 0 72px;
  }

  .l-contents--subpage {
    padding: 20px 0 64px;
  }

  .p-page-body-wrap,
  .p-entry__body {
    margin-top: 24px;
    padding: 28px 20px;
  }

  .p-summary-cards {
    grid-template-columns: 1fr;
  }

  .p-summary-cards__value {
    font-size: 1.75rem;
  }

  .p-info {
    padding: 32px 0 22px;
  }

  .p-info__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .p-info__logo {
    font-size: 1.9rem;
  }

  .p-footer-widget__title {
    font-size: 1.5rem;
  }

  .p-copyright {
    font-size: 1.2rem;
  }

  .c-btn-primary,
  .c-btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .u-br-pc {
    display: none;
  }

  .u-br-sp {
    display: block;
  }
}

/* ========================================
   shared table
   ======================================== */

.s_table {
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.s_table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--color-white);
}

.s_table th,
.s_table td {
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
  line-height: 1.75;
  vertical-align: top;
}

.s_table thead th {
  background: #eef3f0;
  color: var(--color-main-dark);
  text-align: center;
  font-weight: 700;
}

.s_table tbody th {
  width: 28%;
  background: #f7f9f8;
  color: var(--color-text);
  font-weight: 700;
  text-align: left;
}

.s_table td ul {
  margin: 0;
  padding-left: 1.2em;
}

.s_table td li + li {
  margin-top: 6px;
}

@media (max-width: 767px) {
  .p-global-nav {
    padding: 0 16px;
  }

  .p-global-nav li a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 8px;
  }
}
