html {
  scroll-behavior: smooth;
}

:root {
  --color-main: #8fc31f;
  --color-sub: #e30012;
  --color-bg: #f9fbfa;
  --color-text: #333;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header Custom */
.m-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  position: relative;
  z-index: 100;
}
.m-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-header-logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}
.m-header-logo-image {
  width: 150px;
  line-height: 0;
}
.m-header-logo-image svg {
  width: 100%;
  height: auto;
}
.m-header-logo-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 15px;
  color: #5c370c;
}
.m-pc-only { display: inline; }
.m-sp-only { display: none; }

@media (max-width: 768px) {
  .m-header { padding: 8px 0 11px; }
  .m-header-logo-text { display: none; }
  .m-pc-only { display: none; }
  .m-sp-only { display: inline; }
  .m-header-logo-image { width: 120px; }
  .m-footer-inner { padding: 12px 0 !important; }
}


/* Page Title Section */
.page-hero {
  background: linear-gradient(135deg, #8fc31f 0%, #76a318 100%);
  color: #fff;
  padding: 40px 20px 60px;
  text-align: center;
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
  margin-top: 0;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* Entry Choice Section */
.choice-container {
  display: flex;
  gap: 20px;
  max-width: 1000px;
  margin: -40px auto 60px;
  padding: 0 20px;
}
.choice-card {
  flex: 1;
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.choice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.choice-card i {
  display: block;
  width: 80px;
  height: 80px;
  background: #f0f7e6;
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-card i img {
  width: 45px;
}
.choice-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-main);
}
.choice-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.btn-choice {
  margin-top: auto;
  background: var(--color-main);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  width: 100%;
  max-width: 200px;
}

/* Premium CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 60px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}
.cta-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.cta-btn:hover::after {
  left: 100%;
}
.cta-btn .icon-arrow {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.cta-btn:hover .icon-arrow {
  transform: translateX(5px);
}
.cta-btn--main {
  background: linear-gradient(135deg, #8fc31f 0%, #76a318 100%);
}
.cta-btn--sub {
  background: linear-gradient(135deg, #e30012 0%, #b2000e 100%);
}
.choice-card.is-registered i {
  background: #fff0f0;
}
.choice-card.is-registered h2 {
  color: var(--color-sub);
}
.choice-card.is-registered .btn-choice {
  background: var(--color-sub);
}

.choice-card.is-forgot i {
  background: #fff8e6;
}
.choice-card.is-forgot h2 {
  color: #f39800;
}
.choice-card.is-forgot .btn-choice {
  background: #f39800;
}

/* Guide Section */
.guide-section {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 20px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}
.section-head span {
  background: var(--color-main);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 700;
}

/* Steps Layout */
.step-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.step-item {
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid #eee;
}
.step-num {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 35px;
  height: 35px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(143, 195, 31, 0.3);
}
.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 5px;
}
.step-item p {
  font-size: 14px;
  color: #555;
}

/* Auth Info Box */
.info-box {
  background: #fff;
  border: 2px solid var(--color-main);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
}
.info-box h4 {
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-box ul {
  list-style: disc;
  margin-left: 20px;
  font-size: 14px;
  color: #444;
}
.alert-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-sub);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer adjustment */
.m-footer {
  background: #fff !important;
  border-top: 1px solid #eee;
  margin-top: 0;
}
.m-footer-cr {
  color: #666 !important;
  text-align: center !important;
  margin-top: 10px !important;
  display: block !important;
  font-size: 11px !important;
}

/* Footer Contact Area */
.m-footer-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-bottom: 40px;
}
.m-footer-contact-title {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #5C370C;
}
.m-footer-contact-title__logo {
    width: 150px;
}
.m-footer-coop-logo img {
    height: 40px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .choice-container {
    flex-direction: column;
    margin-top: -20px;
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 24px;
  }
  .m-header-logo-text { display: none; }
  .m-pc-only { display: none; }
  .m-sp-only { display: inline; }
  .m-header-logo-image { width: 120px; }
  .m-footer-contact { flex-direction: column; gap: 20px; text-align: center; }
}
