@charset "utf-8";

:root {
  --fd-orange: #f2994a;
  --fd-orange-dark: #e08330;
  --fd-text-main: #333;
  --fd-text-sub: #666;
  --fd-bg-light: #f9f9f9;
  --fd-border: #eee;
}

.l-wrapper {
  margin: 0 auto;
  max-width: 100%;
  padding: 0;
}
h1 {
  text-align: center;
}
h1 img {
  width: 262px;
  max-width: 100%;
  height: auto;
}
.heading.heading-primary {
  text-align: center;
  line-height: 1em;
  margin: 60px 0;
}

.fd-flow-wrapper {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--fd-text-main);
  line-height: 1.8;
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.fd-flow-wrapper * {
  box-sizing: border-box;
}

.fd-flow-intro {
  margin-bottom: 60px;
  text-align: center;
  font-size: 16px;
}

.fd-flow-step {
  margin-bottom: 80px;
  background: #fff;
  border: 1px solid var(--fd-border);
  border-radius: 8px;
  padding: 30px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  position: relative;
}

.fd-flow-step:last-child {
  margin-bottom: 0;
}

/* Numbered Badge style */
.fd-flow-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--fd-orange-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--fd-bg-light);
  padding-bottom: 15px;
}

.fd-flow-number {
  background: var(--fd-orange);
  color: #fff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 4px rgba(242, 153, 74, 0.4);
}

.fd-flow-content {
  font-size: 16px;
  color: var(--fd-text-main);
  padding-left: 60px; /* Align with title text (40px icon + 20px margin) */
}

.fd-flow-content p {
    margin-bottom: 1em;
}
.fd-flow-content p:last-child {
    margin-bottom: 0;
}

.fd-flow-content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
    background: var(--fd-bg-light);
    padding: 15px 20px;
    border-radius: 4px;
}
.fd-flow-content ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    font-size: 15px;
}
.fd-flow-content ul li:last-child {
    margin-bottom: 0;
}
.fd-flow-content ul li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--fd-orange);
    font-weight: bold;
}
/* Nested lists */
.fd-flow-content ul ul {
    margin: 5px 0 5px 10px;
    padding: 0;
    background: none;
}
.fd-flow-content ul ul li {
    font-size: 14px;
    color: var(--fd-text-sub);
}

.fd-subsidy-box {
    background-color: #fff8f0;
    border: 1px solid #ffe0b2;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}
.fd-subsidy-title {
    font-weight: bold;
    color: #e65100;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
}
.fd-subsidy-box p {
    font-size: 14px;
    margin: 0;
}

/* Arrow between steps */
.fd-flow-step::after {
    content: "▼";
    display: block;
    text-align: center;
    color: var(--fd-orange);
    font-size: 40px;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translate(-50%, 60%);
}
.fd-flow-step:last-child::after {
    display: none;
}

/* Responsive */
@media (max-width: 599px) {
  .fd-flow-step {
    padding: 20px;
  }
  .fd-flow-title {
    font-size: 18px;
    padding-bottom: 10px;
  }
  .fd-flow-number {
      width: 32px;
      height: 32px;
      font-size: 14px;
      margin-right: 15px;
  }
  .fd-flow-content {
      padding-left: 0;
      margin-top: 15px;
  }
  .fd-flow-step::after {
      bottom: -30px;
  }
}

#page_bottom {
  margin: 80px auto;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 20px;
}
#page_bottom .btn {
  width: auto;
}
#page_bottom .btn:last-child {
  margin-bottom: 0;
}
#page_bottom .btn .btn__link {
  background-color: #f29600;
  color: #fff;
  width: 300px;
  max-width: 100%;
}
@media (max-width: 599px) {
  #page_bottom {
    display: flex;
    flex-direction: column;
  }
}
