@charset "UTF-8";

/* --------------------------
  common
-------------------------- */
.wrapper {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 10px 2px #d6d6d6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
}

main {
  margin: 0;
  padding: 0;
}

section {
  margin: 0;
  padding: 0;
}

/* 画像の隙間を無くす */
img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 8px 0;
}

h2 {
  margin: 0;
  padding: 0;
}

/* SP表示時の100%レスポンシブ対応 */
@media (max-width: 1023px) {
  .wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
}

/* PC表示時の中央配置 */
@media (min-width: 1024px) {
  body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }
  .wrapper {
    max-width: 750px;
    width: 750px;
    margin: 0;
  }
}


/* --------------------------
  cta
-------------------------- */
.cta_1 {
  background-color: #FEF2CB;
  padding: 24px 16px 0px 16px;
}

.cta_2 {
  padding: 0px 16px 24px 16px;
  background-color: #1A3C7A;
}

.cta_3 {
  padding: 0px 24px 24px 24px;
  background-color: #FFF5E7;
}

/* CTAボタンのホバー効果 */
.cta_1 a,
.cta_2 a {
  transition: all 0.3s ease;
}

.cta_1 a:hover,
.cta_2 a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* --------------------------
  form
-------------------------- */
.form {
  background-color: #F0F0F0;
  padding: 0;
  margin: 0;
  scroll-margin-top: 20px;
}

.form form {
  background-color: #FFF5E7;
  padding: 30px 20px;
  margin: 0;
  max-width: 100%;
}

/* フォームノート */
.form-note {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* フォームグループ */
.form-group {
  margin-bottom: 20px;
}

/* 名前入力フィールドの横並び */
.name-inputs {
  display: flex;
  gap: 10px;
}

.name-inputs input {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
  font-weight: normal;
}

/* 必須タグ */
.required {
  background-color: #FF6B35;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: normal;
  display: inline-block;
}

/* 入力フィールド */
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  box-sizing: border-box;
  color: #333;
}

.form input[type="text"]:focus,
.form input[type="tel"]:focus,
.form input[type="email"]:focus,
.form select:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form input[type="text"]::placeholder,
.form input[type="tel"]::placeholder,
.form input[type="email"]::placeholder {
  color: #AAAAAA;
}

/* フォームノート（注意書き） */
.form-group .form-note {
  font-size: 12px;
  color: #FF6B35;
  margin: 5px 0 10px 0;
  text-align: left;
  line-height: 1.4;
}

/* ラジオボタンセクション */
.radio-section {
  margin-bottom: 25px;
}

.radio-header {
  background-color: #FF6B35;
  color: white;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.radio-options {
  background-color: white;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
}

.radio-option input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
  cursor: pointer;
}

.radio-text {
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.radio-option:hover .radio-text {
  color: #FF6B35;
}

/* 送信ボタン */
.form input[type="submit"] {
  background: linear-gradient(180deg, #4CAF50 0%, #43A047 50%, #388E3C 100%);
  color: white;
  border: 2px solid #fff;
  padding: 24px 32px;
  border-radius: 100px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 6px 0 #2E7D32, 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.form input[type="submit"]:hover {
  background: linear-gradient(180deg, #66BB6A 0%, #4CAF50 50%, #43A047 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #2E7D32, 0 12px 25px rgba(0, 0, 0, 0.4);
}

.form input[type="submit"]:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #2E7D32, 0 5px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #388E3C 0%, #2E7D32 50%, #1B5E20 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .form form {
    padding: 20px 15px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form input[type="text"],
  .form input[type="tel"],
  .form input[type="email"],
  .form select {
    font-size: 14px;
    padding: 10px;
  }
  
  .radio-header {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .radio-text {
    font-size: 14px;
  }
  
  .form input[type="submit"] {
    padding: 20px 25px;
    min-height: 70px;
    font-size: 18px;
  }
}



/* --------------------------
  fv section
-------------------------- */
.fv {
  position: relative;
}

/* --------------------------
  hojokin-results-overlay (補助金実績)
-------------------------- */
.hojokin-results-overlay {
  position: absolute;
  top: 69.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(90%, 90vw, 680px);
  z-index: 10;
  border-radius: clamp(8px, 1.5vw, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hojokin-header {
  background: #FF9C3F;
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2.5vw, 20px);
  text-align: center;
}

.hojokin-header h3 {
  color: white;
  font-size: 40px;
  font-weight: bold;
  margin: 0;
}

.hojokin-header sup {
  font-size: clamp(10px, 1.8vw, 14px);
  margin-left: 4px;
  color: white;
}

.hojokin-content {
  background-color: white;
  height: 480px;
  overflow: hidden;
  position: relative;
  border: clamp(2px, 0.5vw, 4px) solid #FF9C3F;
  border-radius: 0px 0px clamp(8px, 1.5vw, 12px) clamp(8px, 1.5vw, 12px);
}

.hojokin-scroll-container {
  height: calc(200px + (480px - 200px) * (100vw - 320px) / (1024px - 320px));
  overflow: hidden;
  position: relative;
}

.hojokin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scrollUp 20s linear infinite;
}

.hojokin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(4px, 4vw, 32px) clamp(8px, 3vw, 24px);
  border-bottom: 1px solid #e5e7eb;
  background-color: white;
  transition: background-color 0.2s ease;
}

.hojokin-item:last-child {
  border-bottom: none;
}

.location {
  font-size: 28px;
  color: black;
  flex: 1;
}

.amount {
  background: #FF9C3F;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 28px;
  font-weight: bold;
}

/* 無限スクロールアニメーション */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-33.333%);
  }
}

@media (max-width: 1023px) {
  .hojokin-results-overlay {
    width: 90%
  }
  .hojokin-content {
    height:  65vw;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hojokin-header {
    padding: 12px 16px;
  }
  .hojokin-header h3 {
    font-size: clamp(24px, 5vw, 32px);
  }
  .hojokin-item {
    padding: 16px;
  }
  .location {
    font-size: clamp(20px, 3vw, 28px);
  }
  .amount {
    font-size: clamp(20px, 3vw, 28px);
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .hojokin-header {
    padding: 4px 16px;
  }
  .hojokin-header h3 {
    font-size: clamp(16px, 4vw, 20px);
  }
  .hojokin-item {
    padding: 16px;
  }
  .location {
    font-size: clamp(14px, 4vw, 20px);
  }
  .amount {
    font-size: clamp(14px, 4vw, 20px);
    padding: 3px 6px;
  }
}


/* --------------------------
  footer
-------------------------- */
footer {
  padding: 40px 16px;
  background-color: #1f377c;
  color: white;
  text-align: center;
  line-height: 1.5;
  z-index: 20;
  position: relative;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer ul li {
  margin: 0;
}

footer ul li a,
footer ul li a:link,
footer ul li a:visited {
  color: white;
  text-decoration: none;
  font-size: clamp(14px, 2.8vw, 20px);
}

footer ul li a:hover {
  text-decoration: underline;
}

footer .copyright {
  font-size: clamp(12px, 2.8vw, 16px);
  color: white;
}
