:root {
  /* グラデーションラインの共通設定 */
  --title-line-margin: 70px;  /* 左右のマージン */
  --title-line-height: 5px;   /* 線の高さ */
  --title-gradient: linear-gradient(to right, #1a3d90, #68b3d7);  /* グラデーション */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
  overflow-x: hidden; 
}
header {
  background-color: #001858;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.header-container {
  color: #fff;
  width: 80%;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
}

.logo img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.header-btn {
  background: linear-gradient(to right, #68b3d7, #1a3d90);
  color: #fff;
  border: none;
  padding: 17px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.header-btn:hover {
  opacity: 0.9;
}

.hero {
  text-align: left;
  margin: 0 auto;
  padding: 120px 20px;
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 200px;
  right: -10%;
  width: 50%;
  height: 100%;
  background: url('../images/hero_after.png') no-repeat center right / contain;
  z-index: -1;
  transform: var(--floating-transform, translate3d(0, 0, 0));
  will-change: transform;
}

.hero-content {
  width: 80%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 32px;
  margin: 0;
  font-weight: bold;
}

.hero-location {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.hero-message {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  line-height: 1.6;
}

.hero-buttons {
  font-size: 14px;
  margin-top: 100px;
  display: flex;
  gap: 20px;
}

.hero-btn-primary {
  background: linear-gradient(to right, #1a3d90, #68b3d7);
  color: white;
  padding: 17px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.hero-btn-primary:hover {
  opacity: 0.9;
}

.hero-btn-secondary {
  background: linear-gradient(to right, #68b3d7, #1a3d90);
  color: white;
  padding: 17px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.hero-btn-secondary:hover {
  opacity: 0.9;
}

.hero-location,
.hero h1,
.hero-message,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
}


.problem {
  background: url('../images/problem_bg.png') no-repeat center center / cover;
  background-attachment: fixed;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.problem-content-top {
  margin-bottom: 10px;
}

.problem-question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.problem-content h2 {
  font-size: 28px;
  font-weight: bold;
  text-decoration: line-through;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-underline-offset: -0.1em;
  text-decoration-color: #00bf63;
  text-decoration-thickness: 10px;
  margin-bottom: 30px;
}

.problem-description {
  font-size: 14px;
}

.problem-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.problem-card {
  background: #fff;
  color: #333;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.problem-card img {
  width: 100%;
  border-radius: 10px;
}

.problem-cta {
  margin-top: 60px;
  border-bottom: 4px solid #76cafe;
  display: inline-block;
  padding-bottom: 1px;
}

.problem-cta img {
  height: 3em;
  vertical-align: bottom;
}

.problem-cta {
  margin-top: 60px;
  border-bottom: 4px solid #76cafe;
  display: inline-block;
  padding-bottom: 1px;
}

.problem-cta p {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px; 
}

.problem-cta img {
  height: 3em;
  vertical-align: middle; 
}



.flow {
  padding: 100px 20px;
  background: #ffffff;
  text-align: center;
}

.flow-content-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 30px;
  position: relative;
}

.flow-content-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--title-line-margin);
  right: var(--title-line-margin);
  height: var(--title-line-height);
  background: var(--title-gradient);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 50px;
  width: 80%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.flow-step:not(:last-child) {
  border-bottom: 1.5px dotted #1a3d90;
  margin-left: auto;
  margin-right: auto;
}

.flow-step img {
  width: 300px;
  border-radius: 8px;
}

.flow-step div {
  max-width: 500px;
  text-align: left;
}

.flow-step h3 {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  padding-bottom: 10px;
  gap: 20px;
}

.flow-step-number {
  font-size: 42px;
  color: #5ba1cd;
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', sans-serif;
  font-weight: lighter;
}

.flow-step p {
  color: #525252;
  font-size: 14px;
  line-height: 1.6;
}


.area {
  background: url('../images/area_bg.png') no-repeat center center / cover;
  background-attachment: fixed;
  text-align: center;
  padding: 100px 0;
}

.area-content {
  background: #ffffff;
  width: 50%;
  margin: 0 auto;
  padding: 50px;
  border-radius: 15px;
}

.area-title {
  margin: 0;
}

.area-title p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #5ba1cd;
}

.area-title h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.area img {
  max-width: 230px;
  margin: 30px 0;
}

.area .note {
  font-size: 28px;
  color: #1b3b90;
  font-weight: bold;
  text-decoration: line-through;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-underline-offset: -0.1em;
  text-decoration-color: #ffde59;
  text-decoration-thickness: 10px;
  margin: 5px 0;
}


.features {
  background-color: #fff;
  padding: 100px 20px;
}

.features-content {
  background: #ffffff;
  width: 60%;
  margin: 0 auto;
  text-align: center;
}

.features-content-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 30px;
  position: relative;
}

.features-content-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--title-line-margin);
  right: var(--title-line-margin);
  height: var(--title-line-height);
  background: var(--title-gradient);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  background: #ffffff;
  padding: 50px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-item:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

.feature-item-icon img {
  width: 75px;
  height: auto;
  margin-bottom: 10px;
}

.feature-item-icon {
  border-bottom: 4px solid;
  border-image: linear-gradient(to right, #1a3d90, #68b3d7) 1;
  padding-bottom: 20px;
  margin-bottom: 20px;
  width: 20%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.feature-item p {
  font-size: 12px;
  line-height: 1.6;
  width: 80%;
  margin: 0 auto;
  text-align: left;
}



.steps {
  padding: 120px 20px;
  background: #f1f1f1;
  text-align: center;
}

.steps-content {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.steps-content-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  display: inline-block;
  padding-bottom: 30px;
  position: relative;
}

.steps-content-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--title-line-margin);
  right: var(--title-line-margin);
  height: var(--title-line-height);
  background: var(--title-gradient);
}


.step-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: #fff;
}

.step-box {
  background: #1b3b90;
  padding: 50px 25px;
  width: 180px;
  border-radius: 10px;
  align-items: center;
}

.step-box h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  gap: 10px;
}

.step-box-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.steps-step-number {
  font-size: 30px;
  font-weight: bold;
  color: #ffde59;
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', sans-serif;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-item-icon img {
  width: 50px;
  height: auto;
}

.step-item-icon {
  border-top: 4px solid #fff;
  padding-top: 20px;
  margin-bottom: 20px;
  width: 20%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-box p {
  font-size: 16px;
  font-weight: bold;
  margin: 0 auto;
  margin-bottom: 15px;
  text-align: center;
}

.step-box small {
  font-size: 12px;
  margin: 0;
  margin-bottom: 10px;
  text-align: left;
  display: block;
  line-height: 1.4;
}




.contact-container {
  display: flex;
  justify-content: space-between;
}

.contact-box {
  flex: 1;
  background: #fcfcfc;
  color: #333;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.contact-request {
  flex: 1;
  background: url('../images/contact_request_bg.png') no-repeat center center / cover;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.contact-box-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.contact-box-title img {
  width: 200px;
  height: auto;
}

.contact-box-title h2 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-request-title h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;
}

.contact-box p,
.contact-request p {
  font-size: 14px;
  margin-bottom: 30px;
}

.contact-btn,
.contact-request-btn {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  padding: 17px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  background: linear-gradient(to right, #68b3d7, #1a3d90);
  transition: opacity 0.3s;
}

.contact-btn:hover,
.contact-request-btn:hover {
  opacity: 0.9;
}


footer {
  background: linear-gradient(to left, #68b3d7, #1a3d90);
  color: white;
  padding: 100px 20px;
}

.footer-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.footer-logo {
  width: 200px;
}

.footer-logo img {
  width: 60%;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
}

.footer-nav-btn {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-nav-btn:hover {
  opacity: 0.9;
}

.mobile-fixed-buttons {
  display: none;
}

@media (max-width: 1024px) {
  .hero::after {
      top: 300px;
      right: -20%;
      width: 50%;
      height: 100%;
  }

  .problem-cards {
    flex-direction: column;
    align-items: center;
  }

  .flow-step img {
      width: 300px;
      border-radius: 8px;
  }

  .features-content {
      width: 80%;  /* モバイル表示時は幅を広げる */
  }

  .feature-item {
      padding: 30px 15px;  /* パディングを少し小さく */
  }

}

@media (max-width: 420px) {
  .logo img {
    height: 25px;
  }
  
  .hero {
    padding: 0 20px;
  }

  .header-btn {
    font-size: 10px;
  }

  .hero::after {
      top: 240px;
      right: -50%;
      width: 80%;
      height: 100%;
  }

  .hero-location {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 24px;
  }

  .hero-message {
    font-size: 12px;
  }

  .hero-buttons {
      flex-direction: column;  /* 縦並びに変更 */
      gap: 15px;  /* ボタン間の間隔を設定 */
      align-items: center;  /* 中央揃え */
  }

  .hero-btn-primary,
  .hero-btn-secondary {
      width: 50%;  /* ボタンの幅を設定 */
      text-align: center;  /* テキストを中央揃え */
  }

  .problem-cta img {
      height: 2.2em;
      vertical-align: bottom;
  }
  
  .problem-cta p {
      font-size: 14px;
      margin: 0;
  }

  .flow-step:nth-child(2) {  /* 2番目のflow-stepのみに適用 */
      flex-direction: row-reverse;
  }
  
  .flow-step img {
      display: none;
  }

  .area-title h2 {
      font-size: 18px;
  }

  .area-title p {
      font-size: 14px;
  }

  .area img {
      max-width: 200px;
      margin: 10px 0;
  }

  .area .note {
      font-size: 18px;
  }
  
  .feature-grid {
      grid-template-columns: 1fr;  /* 1列に変更 */
      grid-template-rows: auto;    /* 行の高さを自動調整 */
  }

  .features-content {
      width: 80%;  /* モバイル表示時は幅を広げる */
  }

  .feature-item {
      padding: 30px 15px;  /* パディングを少し小さく */
  }

  .contact-container {
      flex-direction: column;  /* 縦並びに変更 */
      gap: 20px;  /* 要素間の間隔を設定 */
  }

  .contact-box,
  .contact-request {
      padding: 30px 20px;  /* パディングを調整 */
  }

  .contact-box-title img {
      width: 150px;  /* ロゴのサイズを調整 */
  }

  .contact-btn,
  .contact-request-btn {
      padding: 12px 30px;  /* ボタンのパディングを調整 */
      font-size: 12px;  /* ボタンの文字サイズを調整 */
  }

  .footer-bottom {
      flex-direction: column;
      text-align: center;
  }
  
  .flow-step {
      flex-direction: column;
  }
  
  .step-box {
      width: 90%;
  }

  .mobile-fixed-buttons {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      padding: 10px;
      background: #001858;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      box-sizing: border-box;
      z-index: 1000;
      gap: 10px;
  }

  .mobile-btn-primary,
  .mobile-btn-secondary {
      flex: 1;
      padding: 12px;
      text-align: center;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      font-size: 14px;
      min-width: 0;
  }

  .mobile-btn-primary {
      background: linear-gradient(to left, #1a3d90, #68b3d7);
      color: #fff;
  }

  .mobile-btn-secondary {
      background: linear-gradient(to left, #68b3d7, #1a3d90);
      color: #fff;
  }
}

/* contact.html */

.contactform {
  background: #fff;
  width: 50%;
  margin: 0 auto;
  padding: 200px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contactform-container {
  width: 100%;
  margin: 0 auto;
}

.contactform-en {
  text-align: center;
  color: #111;
  font-size: 1rem;
  font-weight: lighter;
  margin-bottom: 8px;
}

.contactform-title {
  position: relative; 
  display: block;
  padding-bottom: 30px;  
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.contactform-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--title-line-margin);
  right: var(--title-line-margin);
  height: var(--title-line-height);
  background: var(--title-gradient);
}


.contactform-desc {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.form label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.submit-btn {
  background: linear-gradient(to right, #003D99, #69A5DE);
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  display: block;
  margin-top: 20px;
}


/* Responsive */
@media (max-width: 1024px) {
  .footer-flex {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 420px) {

  .contactform {
      padding: 150px 20px;
  }

  .form label {
    font-size: 0.85rem;
  }
  .submit-btn {
    width: 100%;
    padding: 12px;
  }
}

/* request.html */

.form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 10px;
}

.form select:focus {
  outline: none;
  border-color: #003D99;
}

.form select:required:invalid {
  color: #757575;
}

.form select option {
  color: #333;
}

@media (max-width: 420px) {
  .contactform {
    width: 70%;
  }

  .contactform-title {
    font-size: 1.5rem;
  }

  .form select {
    font-size: 0.85rem;
  }
}

/* privacy.html */
.privacy {
  padding: 150px 0;
}

.privacy .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-en {
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 10px;
}

.privacy-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.privacy-line {
  width: 60px;
  height: 5px;
  background: linear-gradient(to right, #1a3d90, #68b3d7);
  border: none;
  margin: 0 auto 50px;
}

.privacy-heading {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  text-align: center;
}

.privacy-subheading {
  font-size: 1.2rem;
  margin: 30px 0 15px;
  text-align: center;
}

.privacy-paragraph {
  line-height: 1.8;
  margin-bottom: 20px;
}

.privacy-list {
  padding-left: 25px;
  line-height: 1.8;
}

.privacy-list li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .privacy {
    padding: 60px 0;
  }

  .privacy-title {
    font-size: 1.8rem;
  }

  .privacy-heading {
    font-size: 1.3rem;
  }

  .privacy-subheading {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .privacy {
    padding: 40px 0;
  }

  .privacy-en {
    font-size: 1rem;
  }

  .privacy-title {
    font-size: 1.5rem;
  }

  .privacy-heading {
    font-size: 1.2rem;
  }

  .privacy-subheading {
    font-size: 1rem;
  }

  .privacy-paragraph {
    font-size: 0.9rem;
  }

  .privacy-list {
    font-size: 0.9rem;
  }


}.error404 {
  padding: 250px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ef 100%);
}

.error404-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.error404-content {
  text-align: center;
}

.error404-logo {
  max-width: 400px;
}

.error404-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a3d90;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.error404-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 24px;
}

.error404-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.8;
}

.error404-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.error404-btn {
  display: inline-block;
  background: linear-gradient(to right, #68b3d7, #1a3d90);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 61, 144, 0.2);
}

.error404-btn-secondary {
  background: #fff;
  color: #1a3d90;
  border: 2px solid #1a3d90;
}

.error404-btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .error404 {
    padding: 80px 0;
  }

  .error404-logo {
    max-width: 160px;
    margin-bottom: 30px;
  }

  .error404-content h1 {
    font-size: 2.2rem;
  }

  .error404-content h2 {
    font-size: 1.5rem;
  }

  .error404-content p {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .error404 {
    padding: 60px 0;
  }

  .error404-logo {
    max-width: 140px;
    margin-bottom: 24px;
  }

  .error404-content h1 {
    font-size: 1.8rem;
  }

  .error404-content h2 {
    font-size: 1.3rem;
  }

  .error404-content p {
    font-size: 0.9rem;
  }

  .error404-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .error404-btn {
    padding: 14px 32px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}