/* ======================================================
   Base
====================================================== */
:root {
  --main-green: #134f43;
  --main-green-dark: #0d3b32;
  --main-green-light: #e9f3f0;
  --accent-gold: #d7b46a;
  --text-main: #24312e;
  --body-bg: #dcdcdc;
  --border-light: #d9e4e1;
  --shadow-green: rgba(19, 79, 67, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--body-bg);
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.5;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

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

p,
h1,
h2,
h3,
h4,
h5,
figure,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.en {
  font-family: "Josefin Sans", sans-serif;
}

.page-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.container {
  width: 100%;
  padding: 0 12px;
}

.global-nav,
.d-pc,
.d-sp {
  display: none !important;
}

/* ======================================================
   Header / Menu
====================================================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 640px);
  height: 0;
  z-index: 1000;
  pointer-events: none;
}

.header__inner {
  position: relative;
  width: 100%;
  height: 0;
}

.hamburger,
.sp-nav__close {
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 50%;
  padding: 0;
}

.hamburger {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--main-green);
  cursor: pointer;
  z-index: 1100;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hamburger.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hamburger span {
  display: block;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: #fff;
}

.hamburger span:nth-child(1),
.hamburger span:nth-child(2) {
  width: 32px;
}

.hamburger span:nth-child(3) {
  width: 22px;
}

.sp-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 640px);
  height: 100dvh;
  z-index: 1090;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.sp-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sp-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 66.6667%;
  height: 100%;
  padding: 112px 28px 40px;
  background: #f3f3f3;
  box-shadow: -8px 0 18px rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.sp-nav.is-active {
  visibility: visible;
  pointer-events: auto;
}

.sp-nav.is-active .sp-nav__overlay {
  opacity: 1;
}

.sp-nav.is-active .sp-nav__panel {
  transform: translateX(0);
}

.sp-nav__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #bdbdbd;
  cursor: pointer;
}

.sp-nav__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 3px;
  background: #333;
  border-radius: 999px;
}

.sp-nav__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sp-nav__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sp-nav__list {
  border-top: 1px solid #d8d8d8;
}

.sp-nav__item a {
  display: block;
  padding: 24px 0;
  text-align: center;
  border-bottom: 1px solid #d8d8d8;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* ======================================================
   Hero
====================================================== */
.hero {
  margin-top: 0;
}

.hero__image img {
  width: 100%;
}

.hero__txt {
  padding: 18px 4px 6px;
}

.hero__subtitle {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #5dcbcf;
  font-weight: 700;
}

.hero__lead {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
}

/* ======================================================
   Common Header
====================================================== */
.c-header {
  padding: 44px 0 36px;
  text-align: center;
}

.c-header__subtitle {
  font-size: 14px;
  letter-spacing: 0.42em;
  color: #8f8f8f;
}

.c-header__title {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  color: #0c1f62;
}

.c-header--image {
  padding: 44px 0 36px;
}

.c-header__image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

/* ======================================================
   Plan
====================================================== */
.plan {
  padding: 0 12px 18px;
}

.plan__inner {
  display: block;
}

.plan__item {
  margin-bottom: 20px;
  background: transparent;
}

.plan__item:last-child {
  margin-bottom: 0;
}

.plan__item img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  -webkit-filter: none;
  filter: none;
  box-shadow: none;
}

.plan__item img[src*="plan_11"] {
  margin-bottom: 60px;
}

.plan__header {
  margin: 8px 0 20px;
  padding: 0;
}

.plan__header--image {
  margin-top: -8px !important;
  margin-bottom: 20px !important;
}

.plan__header-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.plan__subtitle {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 12px 20px;
  background: #ff4d0d;
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 2px;
}

.plan__subtitle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px !important;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid #ff4d0d;
}

.plan__subtitle-line1,
.plan__subtitle-line2 {
  display: block;
  width: 100%;
  text-align: center;
}

.plan__subtitle-line1 {
  font-size: 16px;
  white-space: nowrap;
}

.plan__subtitle-line2 {
  margin-top: 6px;
  font-size: 16px;
}

/* ======================================================
   Application
====================================================== */
.application {
  background: linear-gradient(180deg, #f5faf8 0%, #edf5f2 100%);
  padding: 28px 0 48px;
}

.application__cont {
  padding: 0 8px;
}

.application__cont form {
  background: #fff;
  border: 1px solid rgba(19, 79, 67, 0.16);
  border-radius: 22px;
  padding: 18px 16px 24px;
  box-shadow: 0 12px 30px var(--shadow-green);
}

.application__subtitle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--main-green);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(19, 79, 67, 0.16);
}

.application__subtitle::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-gold);
}

.application__subtitle:not(:first-of-type) {
  margin-top: 28px;
}

.application__subtitle + .application__form-item,
.application__subtitle + .application__term,
.application__subtitle + .checkboxItem,
.application__subtitle + .submit-btn {
  margin-top: 0;
}

.application__subtitle-text {
  order: 1;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.required-badge,
.optional-badge {
  order: 2;
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 9px 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.required-badge {
  background: #fff;
  color: var(--main-green);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.optional-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.application__form-item {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.application__form-item--radio-select,
.application__form-item--payment,
.application__form-item--remote {
  display: block !important;
  padding: 0;
  background: transparent;
}

/* Inputs */
.text-input,
.select-input {
  width: 100%;
  height: 54px;
  padding: 10px 15px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--text-main);
  appearance: none;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.text-input:focus,
.select-input:focus,
textarea:focus {
  border-color: var(--main-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 79, 67, 0.12);
}

.select_wrapper {
  position: relative;
}

.select_wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--main-green);
  border-bottom: 2px solid var(--main-green);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Radio Labels */
.plan-radio,
.pay-radio,
.remote-radio {
  display: none;
}

.plan-label,
.pay-label,
.remote-label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin: 0 0 10px;
  padding: 13px 18px 13px 14px;
  border: 1.5px solid #d8e5e1;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(19, 79, 67, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pay-label,
.remote-label {
  justify-content: center;
  width: 100%;
}

.plan-label:last-of-type,
.pay-label:last-of-type,
.remote-label:last-of-type {
  margin-bottom: 0;
}

.plan-label:hover,
.pay-label:hover,
.remote-label:hover {
  border-color: var(--main-green);
  transform: translateY(-1px);
}

.plan-radio:checked + .plan-label,
.pay-radio:checked + .pay-label,
.remote-radio:checked + .remote-label {
  background: var(--main-green);
  border-color: var(--main-green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(19, 79, 67, 0.22);
}

.plancode-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--main-green);
  border-radius: 50%;
  background: var(--main-green-light);
  color: var(--main-green);
}

.plancode-num-text {
  display: block;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
}

.plan-radio:checked + .plan-label .plancode-num {
  border-color: #fff;
  background: #fff;
  color: var(--main-green);
}

.plan-radio:checked + .plan-label .plancode-num-text {
  color: var(--main-green);
}

/* Apply Category */
.application__form-item--apply_cate {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 4px;
}

.inline-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  min-height: 42px;
  padding: 0 2px;
  cursor: pointer;
}

.inline-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inline-radio__mark {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border: 1.5px solid #80948f;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s ease, border-width 0.2s ease;
}

.inline-radio__text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.inline-radio input:checked + .inline-radio__mark {
  border-width: 6px;
  border-color: var(--main-green);
}

/* Terms / Agreement */
.application__term {
  margin: 0;
  padding: 18px 18px 16px;
  background: #fbfdfc;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  height: 270px;
  overflow-y: auto;
}

.application__term-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--main-green);
}

.application__term-sentence {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: #374541;
}

.agreement-checks {
  margin-top: 2px;
}

.checkboxItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 4px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-main);
}

.checkboxItem span {
  display: inline-block;
  flex: 1;
}

.checkbox {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: var(--main-green);
}

.submit-btn {
  display: block;
  width: 100%;
  margin: 30px auto 0;
  padding: 19px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a6a5a 0%, var(--main-green) 100%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(19, 79, 67, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(19, 79, 67, 0.32);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Confirmation Notes */
.confirmation-notes {
  margin: 32px 0 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--text-main);
}

.confirmation-notes__title {
  margin: 0 0 12px;
  color: var(--main-green);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.confirmation-notes__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.confirmation-notes__list li {
  position: relative;
  padding-left: 1.15em;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.confirmation-notes__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* ======================================================
   Company
====================================================== */
.company {
  padding: 34px 18px 42px;
  background: #fff;
  text-align: center;
}

.company .c-header--image {
  padding: 0 0 28px;
}

.company .c-header__image {
  max-width: 320px;
  margin: 0 auto;
}

.company__ja-title {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
}

.company__address,
.company__mail {
  display: block;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  font-style: normal;
}

/* ======================================================
   Footer
====================================================== */
.footer {
  padding: 18px 16px 26px;
  background: #164f43;
  color: #fff;
  text-align: center;
}

.footer__menu {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}

.copyright {
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.95;
}

/* ======================================================
   Responsive
====================================================== */
@media screen and (max-width: 640px) {
  .c-header__title {
    font-size: 24px;
  }

  .c-header--image {
    padding: 36px 0 28px;
  }

  .c-header__image,
  .company .c-header__image {
    max-width: 220px;
  }

  .plan__header--image {
    margin-top: -4px !important;
    margin-bottom: 16px !important;
  }

  .plan__item img[src*="plan_5"] {
    margin-bottom: 60px;
  }

  .application {
    padding: 20px 0 40px;
  }

  .application__cont {
    padding: 0 4px;
  }

  .application__cont form {
    border-radius: 18px;
    padding: 16px 12px 22px;
  }

  .application__subtitle {
    padding: 11px 12px;
    margin-bottom: 10px;
  }

  .application__subtitle:not(:first-of-type) {
    margin-top: 24px;
  }

  .application__subtitle-text {
    font-size: 16px;
  }

  .plan-label,
  .pay-label,
  .remote-label {
    min-height: 52px;
    gap: 12px;
    padding: 12px 14px 12px 12px;
    border-radius: 12px;
    font-size: 15px;
  }

  .plancode-num {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .plancode-num-text {
    font-size: 19px;
  }

  .inline-radio__text {
    font-size: 15px;
  }

  .checkboxItem {
    gap: 10px;
    font-size: 14px;
  }

  .submit-btn {
    font-size: 20px;
    letter-spacing: 0.12em;
  }

  .confirmation-notes__title {
    font-size: 17px;
  }

  .confirmation-notes__list li {
    font-size: 12px;
    line-height: 1.75;
  }

  .company .c-header--image {
    padding: 0 0 24px;
  }

  .company__ja-title {
    font-size: 18px;
  }

  .company__address,
  .company__mail {
    font-size: 14px;
  }

  .sp-nav__item a {
    font-size: 20px;
  }
}

@media screen and (min-width: 641px) {
  .plan {
    padding-left: 36px;
    padding-right: 36px;
  }

  .application {
    padding-left: 36px;
    padding-right: 36px;
  }

  .application__cont form {
    padding: 24px 22px 30px;
  }

  .c-header {
    padding-top: 60px;
    padding-bottom: 48px;
  }

  .c-header__subtitle {
    margin-bottom: 24px;
  }

  .c-header--image {
    padding-top: 60px;
    padding-bottom: 48px;
  }

  .c-header__image {
    max-width: 320px;
  }

  .plan__item {
    margin-bottom: 40px;
  }

  .plan__header--image {
    margin-top: -20px !important;
    margin-bottom: 16px !important;
  }

  .plan__item img[src*="plan_5"] {
    margin-bottom: 100px;
  }
}
