/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* ユーティリティクラス */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bold {
  font-weight: 700;
}

.sm-only {
  display: none;
}

@media (max-width: 640px) {
  .sm-only {
    display: inline;
  }
}

.md-hidden {
  display: none;
}

@media (max-width: 768px) {
  .md-hidden {
    display: inline;
  }
}

/* セクション共通スタイル */
section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
  }
}

/* カバーセクション */
.cover {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 58, 138, 0.6);
  z-index: 10;
}

/* カバー画像のスタイルを確認 */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.cover-logo {
  margin-bottom: 1.5rem;
}

.cover-logo img {
  width: 150px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .cover-logo {
    margin-bottom: 2rem;
  }

  .cover-logo img {
    width: 200px;
  }
}

.cover-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .cover-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .cover-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .cover-title {
    font-size: 4rem;
  }
}

.cover-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .cover-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .cover-subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .cover-subtitle {
    font-size: 1.875rem;
  }
}

.cover-catchcopy {
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 48rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .cover-catchcopy {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .cover-catchcopy {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cover-catchcopy {
    font-size: 1.5rem;
  }
}

/* セクション1 */
.section-1 {
  background-color: #f8fafc;
  padding: 3rem 0;
}

.section-1-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.section-1-text {
  width: 100%;
  max-width: 48rem;
  text-align: center;
}

.section-1-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .section-1-text p {
    font-size: 1.125rem;
  }
}

.section-1-bubble {
  width: 100%;
  max-width: 28rem;
}

.bubble-content {
  background-color: #dbeafe;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.bubble-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .bubble-title {
    font-size: 1.25rem;
  }
}

.bubble-list {
  list-style: none;
  padding: 0 1rem 0 2rem;
}

.bubble-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.bubble-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .bubble-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

.bubble-text {
  font-size: 1rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .bubble-text {
    font-size: 1.125rem;
  }
}

/* セクション2 */
.section-2 {
  background-color: white;
  padding: 3rem 0;
}

.table-notice {
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #4b5563;
}

@media (min-width: 768px) {
  .table-notice {
    font-size: 1rem;
  }
}

.table-container {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.table-wrapper {
  min-width: 768px;
}

.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.subsidy-table th {
  background-color: #0ea5e9;
  color: white;
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .subsidy-table th {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

.subsidy-table td {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .subsidy-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

.subsidy-table .alt-row {
  background-color: #f9fafb;
}

.subsidy-name {
  display: flex;
  align-items: center;
}

.subsidy-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.25rem;
}

@media (min-width: 768px) {
  .subsidy-dot {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
  }
}

.subsidy-dot.blue {
  background-color: #2563eb;
}

.subsidy-dot.green {
  background-color: #16a34a;
}

.subsidy-dot.amber {
  background-color: #b45309;
}

.subsidy-label {
  font-weight: 500;
}

.table-footnote {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .table-footnote {
    font-size: 0.875rem;
  }
}

/* セクション3 */
.section-3 {
  background-color: #f8fafc;
  padding: 3rem 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps-container {
    gap: 3rem;
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .step-item {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.step-number {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .step-number {
    justify-content: flex-start;
  }
}

.step-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .step-circle {
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
  }
}

.step-1 {
  background: linear-gradient(to right, #60a5fa, #2563eb);
}

.step-2 {
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.step-3 {
  background: linear-gradient(to right, #2563eb, #1e40af);
}

.step-4 {
  background: linear-gradient(to right, #1d4ed8, #1e3a8a);
}

.step-content {
  flex: 1;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .step-content {
    margin-top: 0;
  }
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .step-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }
}

.step-description {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .step-description {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

.checklist {
  background-color: #f0fdf4;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.checklist ul {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.checklist i {
  color: #16a34a;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.checklist span {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .checklist span {
    font-size: 1rem;
  }
}

/* セクション4 */
.section-4 {
  background-color: white;
  padding: 3rem 0;
}

.simulation-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .simulation-container {
    flex-direction: row;
    gap: 2rem;
  }
}

.simulation-box {
  flex: 1;
  max-width: 20rem;
  width: 100%;
}

.simulation-title {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .simulation-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.simulation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.simulation-amount-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .simulation-amount-label {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

.simulation-amount {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .simulation-amount {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }
}

.simulation-chart {
  width: 100%;
  height: 12rem;
  position: relative;
}

@media (min-width: 768px) {
  .simulation-chart {
    height: 16rem;
  }
}

/* chart-no-subsidy クラスの修正 */
.chart-no-subsidy {
  position: absolute;
  inset: 0;
  background-color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .chart-no-subsidy {
    font-size: 1.25rem;
  }
}

.chart-self-pay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  background-color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .chart-self-pay {
    font-size: 1rem;
  }
}

.chart-subsidy {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-bubble {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
}

.mobile-bubble .bubble-arrow {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.5rem solid transparent;
  border-right: 0.5rem solid transparent;
}

.bubble-green {
  background-color: #16a34a;
}

.bubble-green .bubble-arrow {
  border-bottom: 0.5rem solid #16a34a;
}

.bubble-orange {
  background-color: #f97316;
  bottom: -7rem;
}

.bubble-orange .bubble-arrow {
  border-bottom: 0.5rem solid #f97316;
}

.desktop-bubble {
  display: none;
}

@media (min-width: 768px) {
  .mobile-bubble {
    display: none;
  }

  .desktop-bubble {
    display: block;
    position: absolute;
    right: -1rem;
    transform: translateX(100%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.75rem; /* フォントサイズを小さく */
    white-space: nowrap;
    max-width: 150px; /* 最大幅を設定 */
  }

  .desktop-bubble .bubble-arrow {
    position: absolute;
    top: 50%;
    left: -0.5rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
  }

  .bubble-green {
    top: 50%;
    transform: translateY(-50%) translateX(100%);
  }

  .bubble-green .bubble-arrow {
    border-right: 0.5rem solid #16a34a;
    border-bottom: none;
  }

  .bubble-orange {
    top: 12.5%;
    transform: translateY(-50%) translateX(100%);
    padding: 0.3rem 0.8rem; /* パディングを小さく */
  }

  .bubble-orange .bubble-arrow {
    border-right: 0.5rem solid #f97316;
    border-bottom: none;
  }
}

.bubble-text {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.75rem; /* フォントサイズを小さく */
}

.simulation-note {
  margin-top: 0.75rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .simulation-note {
    margin-top: 1rem;
    font-size: 1rem;
  }
}

.simulation-note.success {
  color: #16a34a;
  font-weight: 700;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .simulation-note.success {
    margin-top: 1rem;
  }
}

/* セクション5 */
.section-5 {
  background-color: #f8fafc;
  padding: 4rem 0;
}

.qa-container {
  background-color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.qa-item {
}

.question {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.question i {
  color: #2563eb;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.question h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.answer {
  margin-left: 2rem;
}

.answer-content {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.answer-content i {
  color: #2563eb;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* セクション6 */
.section-6 {
  background-color: white;
  padding: 4rem 0;
}

.support-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .support-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.support-item {
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-item i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.support-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.support-blue {
  background-color: #dbeafe;
}

.support-blue i {
  color: #2563eb;
}

.support-blue h3 {
  color: #1e40af;
}

.support-green {
  background-color: #dcfce7;
}

.support-green i {
  color: #16a34a;
}

.support-green h3 {
  color: #166534;
}

.support-cyan {
  background-color: #cffafe;
}

.support-cyan i {
  color: #0891b2;
}

.support-cyan h3 {
  color: #155e75;
}

/* セクション7 */
.section-7 {
  background: linear-gradient(to right, #1e3a8a, #1e40af);
  color: white;
  padding: 3rem 0;
}

.section-7 .section-title {
  color: white;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
  }
}

.contact-info {
  flex: 1;
}

.contact-info p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-methods {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-method {
  display: flex;
  align-items: center;
}

.contact-method i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.contact-method span {
  font-size: 1.125rem;
  color: white; /* 電話番号を含むすべてのテキストを白色に */
}

.contact-button {
  flex-shrink: 0;
}

.cta-button {
  display: inline-block;
  background-color: #22c55e;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #16a34a;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.footer-logo img {
  width: 150px;
  object-fit: contain;
}
