* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* デフォルトでSP専用画像を非表示にしておく（PC/タブレットで表示されないように） */
.flow-mobile-image-wrapper {
  display: none !important;
}

/* 最終オーバーライド: SPでservices-gridを確実に1列にする */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* タブレット幅(769px〜1024px)：フローはPCと同じ表示にする */
@media (min-width: 769px) and (max-width: 1024px) {
  /* SP用画像はタブレットでは非表示 */
  .flow-mobile-image-wrapper {
    display: none !important;
  }

  .flow-steps {
    display: flex !important;
    align-items: stretch;
    margin-top: 60px;
    margin-bottom: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  background-image: url('img/Group\ 31.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
  }

  .flow-step {
    flex: 1;
    padding: 50px 40px 50px 60px;
    text-align: left;
    position: relative;
    margin-right: -40px;
  }

  .flow-step img{
    width: 87px;
    height: auto;
    position: absolute;
    top: -40px;
    left: 0;
  }
}

/* 横スクロール防止 */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  position: relative;
}

body {
  font-family: "Barlow", sans-serif;
  background: white;
  color: #353e45;
  line-height: 1.6;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* フルワイドセクション */
.full-width {
  width: 100%;
}

/* セクション共通 */
section {
  width: 100%;
}

.br_sp{
 display: none; 
}

.hero {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  display: block;
  padding-top: 44.53%; /* PC: 1920x855の比率 */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/TOP_PC.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero a img{
  width: 30vw;
  position: absolute;
  top: 32vw;
  left: 3.5vw;
  transition:all 0.2s ease-in-out;
}

.hero a img:hover{
  opacity: 0.8;
}


.hero a img.sp_fv{
  display: none;}



.hero-content {
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

a.cta-button {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 80px;
  color: #fff;
  background: #f06122;
  font-size: 20px; 
  letter-spacing: 1.6px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* ホバー時のスタイル（推測） */
a.cta-button:hover {
  opacity: 0.8;
  background-color: white;
  color: #f06122;
  border: 2px solid #f06122;
  transform: translate(0px, -4px); /* 右上に移動 */
}

/* セクション見出し */
.section-header {
  text-align: center;
  padding: 20px 0 56px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.section-header::after {
  content: "";
  display: block;
  width: 128px;
  height: 4px;
  background: linear-gradient(90deg, #6fb3f7 0%, #2278ce 100%);
  margin: 20px auto 0;
}

.section-header .label {
  color: #353e45;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

.section-header h2 {
  color: #216dba;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

/* 問題提起セクション */
.problems-section {
  background: #f7f7f7;
  padding: 80px 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  text-align: center;
  position: relative; /* 追加 */
}

.problem-item img {
  width: 160px;
  height: 160px;
  margin-bottom: 15px;
}

.problem-item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #353e45;
  margin-bottom: 10px;
}

.problem-item .highlight {
  color: #2278ce;
  text-decoration: underline;
}

.underline{
  text-align: center;
  display: block;
  margin: 90px auto 0;
}

.underline img{
    width: 960px;
  height: auto;
}

.problem-image {
  position: absolute;
  left: -140px; /* 左側にはみ出す */
  bottom: -90px; /* 下側の位置 */
}

.problem-image img{
  width: 123px;
  height: auto;
}

/* ソリューションセクション */
.solution-section {
padding: 2rem 0 7.5rem 0;
    background-image: url(img/合体\ 2.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100%;
    background-color: #ffffff;
}

.solution-grid {
  display: grid;
  /* デスクトップ：4列横並び */
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.solution-card {
  background: white;
  box-shadow: 0px 0px 16px rgba(86, 122, 159, 0.24);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  border-radius:  0 10%  0 0;
}

.solution-card img {
  position: absolute;
  top:-26px;
  right: -26px;
  height: 124px;
  width: auto;
}

.solution-card h3 {
  color: #f06122;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin: 40px 4px 20px;
  text-align: left;
}

.solution-card p {
  color: #353e45;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.75;
}



/* ABOUTセクション */
.about-section {
  background: linear-gradient(90deg, #72d4ff 0%, #5ba4ed 100%);
  padding: 0px 0 40px;
  border-radius: 50px;
  margin-bottom:120px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 1000px;
  align-items: center;
  justify-items: center;
}

/* feature の個別ラッパー：丸（.feature-card）と説明文を縦並びにする */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-features .feature-description {
  margin-top: 18px;
  max-width: 320px;
}

.feature-card {
  background: white;
  box-shadow: 0px 0px 16px rgba(86, 122, 159, 0.24);
  border-radius: 100%;
  text-align: center;
  width: 282px;
  height: 282px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 30px;
}

.feature-card h3 {
  color: #2278ce;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.5;
}



.feature-note {
  color: white;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-align: center;
  margin-top: 30px;
  width: 1000px;
}

.feature-description {
  color: white;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-align: center;
  margin-top: 20px;
}

/* サービス一覧セクション */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: #f1f8ff;
  padding: 30px;
}

.service-card h3::after {
    content: ''; 
    background-image: url(img/パス\ 9377.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 400px;
    height:auto;
    position: absolute;
    left: 400px;
}

.service-card h3 {
  color: #2278ce;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

.service-card h4 {
  color: #2278ce;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  color: #353e45;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.6px;
  padding-left: 35px;
  margin-bottom: 10px;
  position: relative;
}

.service-card li::before {
  background-image: url(img/ico_check.svg.svg);
  width: 100%;
  height: auto;
}

.service-card li::after {
    content: ''; 
    background-image: url(img/ico_check.svg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 7px;
    top: 7px;
}


/* フローセクション */
.flow-section {
  overflow: hidden;
}

.flow-steps {
  display: flex;
  align-items: stretch;
  margin-top: 60px;
  margin-bottom: 120px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  background-image: url('img/Group\ 31.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

/* SP用の画像はデフォルトで非表示にする（PCで表示されないように） */
.flow-mobile-image-wrapper {
  display: none;
}

.flow-step {
  flex: 1;
  padding: 50px 40px 50px 60px;
  text-align: left;
  position: relative;
  margin-right: -40px;
}

.flow-step img{
  width: 87px;
  height: auto;
  position: absolute;
  top: -40px;
  left: 0;
}

.flow-step:first-child {
  padding-left: 40px;
}

.flow-step:nth-child(2) {
  margin-left: 56px;
}


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


.flow-step h3 {
  margin-top: 40px;
  color: #2278ce;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.flow-step h3:nth-child(2) {
  margin-top:20px;
}


.flow-step p {
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  /* 保持：タブレットはPCと同様に横並びにするため、flex-direction は変更しない */
  .flow-steps {
    gap: 20px;
    background-image: none; /* 背景画像は不要なら消す */
  }

  /* SP用画像はデフォルトで非表示（PC/タブレットで重複表示させないため） */
  .flow-mobile-image-wrapper {
    display: none;
  }
  
  .flow-step {
    margin-right: 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #d4e4f3 0%, #7fb3db 100%);
  }
  
  .flow-step:first-child {
    padding: 40px 30px;
  }
}

/* Q&Aセクション */
.qa-section {
  background: #f7f7f7;
  padding: 80px 0;
}

.qa-section .section-header{
  margin: 0 auto 0;
}

.qa-list {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.qa-item {
  background: white;
  box-shadow: 0px 0px 16px rgba(86, 122, 159, 0.24);
  padding: 30px;
  margin-bottom: 30px;
}

.qa-question {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.qa-question .q-badge {
  background: #2278ce;
  color: white;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-right: 15px;
}

.qa-question h3 {
  color: #353e45;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

.qa-answer {
  display: flex;
  align-items: flex-start;
}

.qa-answer .a-badge {
  background: #f06122;
  color: white;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-right: 15px;
  flex-shrink: 0;
}

.qa-answer p {
  color: #353e45;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.6;
}

/* 強みセクション */
.strengths-section .section-header{
  margin: 0 auto 0;
}

.strengths-section {
  background: #f0f8ff;
  padding: 80px 0;
}

.strength-card {
  background: white;
  box-shadow: 0px 0px 16px rgba(86, 122, 159, 0.24);
  padding: 60px;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.strength-card img {
  width: 100%;
  max-width: 464px;
  height: auto;
}

.strength-content h3 {
  color: #353e45;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.strength-content h3::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 173, 137, 0) 60%, #ffad89 60%);
  z-index: -1;
}

.strength-content p {
  color: #353e45;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.strength-list {
  list-style: none;
}

.strength-list li {
  color: #353e45;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1.7;
  padding-left: 35px;
  margin-bottom: 15px;
  position: relative;
}

.strength-list li::before {
  content: "";
    background-image: url(img/ico_check.svg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    position: absolute;
    left: -5px;
    top: 3.5px;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(90deg, #72d4ff 0%, #5ba4ed 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
}

/* フッター */
.footer {
  background: #495867;
  padding: 80px 0;
}

.footer-content {
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  width: 180px;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.footer-links a {
  color: white;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  display: block;
  width: 32px;
  height: 32px;
}

.footer-social img {
  width: 100%;
  height: 100%;
}

.footer-copyright {
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.6px;
}

/* フッター内リンクのホバー/フォーカス効果 */
.footer a {
  transition: opacity .18s ease, transform .18s ease;
}

.footer a:hover,
.footer a:focus {
  opacity: 0.8; /* 少し透明にする */
  transform: translateY(-2px); /* 軽い浮き上がり効果（任意） */
  outline: none;
}

/* キーボードフォーカス時の視認性向上 */
.footer a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
  border-radius: 4px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .about-features {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    /* タブレットでも2列表示にする */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .strength-card {
    grid-template-columns: 1fr;
  }

  /* タブレット・SPで強みカードの画像を先に表示する（画像を上、テキストを下に） */
  .strength-card img {
    /* grid による配置で先に表示 */
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
  }

  .strength-card .strength-content {
    grid-row: 2;
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 32px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* SP: サービス一覧は1列にする */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* タブレット・SP用のメディアクエリ */
@media (max-width: 1024px) {
  /* コンテナ調整 */
  .container {
    padding: 0 15px;
  }

  .br_sp{
 display: block; 
}

  /* セクション見出し */
  .section-header h2 {
    font-size: 32px;
  }

  .section-header .label {
    font-size: 24px;
  }

  /* 問題提起セクション */
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .problem-item img {
    width: 140px;
    height: 140px;
  }

  .problem-item h3 {
    font-size: 16px;
  }

  /* underline の画像を画面内で横幅80%にする（タブレット・SP共通） */
  .underline img {
    width: 80%;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* タブレット/SP：5番目の問題（定期的なメンテナンス）を右下に移動し、
     空いた左下スペースに .problem-image を表示する */
  .problems-grid {
    position: relative; /* 絶対配置の基準 */
    /* 5番目を絶対配置する分のスペースを下部に確保して重なりを防ぐ */
    padding-bottom: 160px;
  }

  .problems-grid .problem-item:nth-child(5) {
    position: absolute;
    right: 10px;
    /* 少し上げて隙間を作る（他のアイテムと被らないように） */
    bottom: -80px;
    width: calc(50% - 20px); /* 右列幅に合わせる */
    box-sizing: border-box;
    z-index: 3;
    padding: 20px; /* スタイルを若干調整 */
    background: transparent; /* 背景が必要なら指定 */
  }

  /* 空いた左下エリアに .problem-image を配置 */
  .problem-image {
    position: absolute;
    left: 20px;
    bottom: -460px;
    /* 少し内側に寄せる（見た目のバランス調整） */
    transform: translate(20px, 8px);
    z-index: 2;
  }

  .problem-image img{
    width: 110px;
    height: auto;
  }

    .problem-image img{
    display: block;
    width: 120px; /* 固定幅で縦に縮まないようにする */
    max-width: none;
    height: auto;
    object-fit: contain;
  }

  /* ソリューションセクション */
  .solution-grid {
    /* タブレット：2列 */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .solution-card {
    padding: 30px 15px;
  }

  .solution-card img {
    width: 100px;
    height: auto;
  }

  .solution-card h3 {
    font-size: 20px;
  }

  .solution-card p {
    font-size: 16px;
  }

  /* ABOUTセクション */
  .about-section {
    padding: 80px 0 60px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 60px 20px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-note,
  .feature-description {
    font-size: 16px;
  }

  /* サービス一覧セクション */
  .services-grid {
    /* タブレットでも2列表示にする（重複ブロックのため合わせて変更） */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .service-card h4 {
    font-size: 18px;
  }

  .service-card li {
    font-size: 16px;
  }

  /* フローセクション */
  .flow-steps {
    flex-direction: column;
    gap: 20px;
    background-image: none;
    min-height: auto;
  }

  .flow-step {
    margin-right: 0;
    margin-left: 0 !important;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d4e4f3 0%, #7fb3db 100%);
    border-radius: 8px;
  }

  .flow-step:first-child {
    padding: 40px 20px;
  }

  .flow-step:nth-child(2) {
    margin-left: 0;
  }

  .flow-step img {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 10px;
  }

  .flow-step h3 {
    font-size: 20px;
    margin-top: 10px;
  }

  .flow-step p {
    font-size: 14px;
  }

  /* Q&Aセクション */
  .qa-item {
    padding: 20px;
  }

  .qa-question h3 {
    font-size: 18px;
  }

  .qa-answer p {
    font-size: 18px;
  }

  /* 強みセクション */
  .strength-card {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 30px;
  }

  .strength-card img {
    max-width: 100%;
    margin: 0 auto;
  }

  .strength-content h3 {
    font-size: 24px;
  }

  .strength-content p {
    font-size: 16px;
  }

  .strength-list li {
    font-size: 16px;
  }

  /* CTAセクション */
  .cta-section h2 {
    font-size: 20px;
  }

  /* フッター */
  .footer {
    padding: 60px 0 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .footer-links a {
    font-size: 14px;
  }
}

/* SP専用のメディアクエリ（390px幅基準） */
@media (max-width: 768px) {
  /* ヒーローセクション */
  .hero::after {
    background-image: url("img/TOP_SP.png");
  }
  
  .hero::before {
    padding-top: 189.23%; /* SP: 390x738の比率 */
  }


  .hero a img.pc_fv{
  display: none;
  }

  .hero a img.sp_fv{
  display: block;
  }

  .hero a img{
  width: 60vw;
  position: absolute;
  top: 100vw;
  left: 9.5vw;
}


  .link_01 {
    width: 90%;
    max-width: 450px;
    left: 5%;
  }


  /* セクション見出し */
  .section-header {
    padding: 20px 0 40px;
  }

  .section-header h2 {
    font-size: 28px;
    line-height: 1.6;
  }

  /* 問題提起セクション */
  .problems-section {
    padding: 60px 0;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    /* 極小デバイス向けにさらに下部スペースを確保（絶対配置された5番目カード用） */
    padding-bottom: 200px;
  }

  .problem-item img {
    width: 140px;
    height: 140px;
  }

  .problem-item h3 {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ソリューションセクション */
  .solution-section {
    padding: 60px 0;
  }

  /* SP: フローの横並びは非表示にし、SP専用画像を表示 */
  .flow-steps {
    display: none;
  }

  .flow-mobile-image-wrapper {
    display: block;
    text-align: center;
    margin: 20px 0 40px;
  }

  .flow-mobile-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .solution-grid {
    gap: 20px;
  }

  .solution-card {
    padding: 40px 20px;
  }

  .solution-card img {
    width: 120px;
    height: 120px;
    top: -24px;
    right: -24px;
  }

  .solution-card h3 {
    font-size: 24px;
    margin: 40px 0 20px;
  }

  .solution-card p {
    font-size: 16px;
    text-align: left;
  }

  /* ABOUTセクション */
  .about-section {
    padding: 60px 0;
  }

  .about-features {
    gap: 30px;
  }

  .feature-card {
    padding: 90px 30px;
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  /* サービス一覧セクション */
  .services-section {
    padding: 60px 0;
  }

  .service-card {
    padding: 24px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card h4 {
    font-size: 18px;
  }

  .service-card li {
    font-size: 16px;
    padding-left: 32px;
  }

  /* フローセクション */
  .flow-section {
    padding: 60px 0;
  }

  /* Q&Aセクション */
  .qa-section {
    padding: 60px 0;
  }

  .qa-list {
    margin-top: 40px;
  }

  .qa-item {
    padding: 24px;
    margin-bottom: 20px;
  }

  .qa-question {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .qa-question .q-badge {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .qa-question h3 {
    font-size: 18px;
  }

  .qa-answer {
    flex-direction: column;
    align-items: flex-start;
  }

  .qa-answer .a-badge {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .qa-answer p {
    font-size: 18px;
  }

  /* 強みセクション */
  .strengths-section {
    padding: 40px 0;
  }

  .strength-card {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .strength-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .strength-content p {
    font-size: 16px;
    line-height: 1.75;
  }

  .strength-list li {
    font-size: 16px;
    line-height: 1.7;
  }

  /* CTAセクション */
  .cta-section {
    padding: 60px 0;
  }

  .cta-section h2 {
    font-size: 19px;
    margin-bottom: 20px;
  }

  /* SP: CTAボタンをやや小さく表示 */
  .cta-button {
    width: 100%;
    max-width: 320px; /* 360 -> 320 に縮小 */
    height: 64px;     /* 80 -> 64 に縮小 */
    font-size: 18px;  /* フォントサイズを少し小さく */
    padding: 0 18px;
  }

  /* フッター */
  .footer {
    padding: 80px 0 40px;
  }

  .footer-logo img {
    width: 145px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-copyright {
    font-size: 14px;
    margin-top: 40px;
  }
}

/* 極小デバイス対応 */
@media (max-width: 450px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .problem-item img {
    width: 120px;
    height: 120px;
  }

  .problem-item h3 {
    font-size: 13px;
  }

  .solution-card img {
    width: 120px;
    height: 120px;
  }

  .feature-card {
    padding: 70px 20px;
    max-width: 300px;
  }

  /* 極小デバイス：CTAのテキストが2行にならないようにする */
  .cta-button {
    white-space: nowrap;      /* 改行を防止 */
    font-size: 16px;         /* 小さめにして1行に収める */
    height: 56px;            /* ボタン高さを調整 */
    padding: 0 12px;
    max-width: 320px;
  }
}
/* SPでの固定width対応 */
@media (max-width: 768px) {
  /* ABOUTセクションの固定width修正 */
  .about-features {
    width: 100% !important;
    max-width: 100%;
  }

  .feature-note {
    width: 100% !important;
    max-width: 100%;
  }

  /* feature-descriptionのグリッド調整 */
  .about-section > div[style*="grid-template-columns"] {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ------- SP で確実にソリューションを1列にする（優先度確保） ------- */
@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ===== FLOW（画像切替） ===== */
.flow-image { 
  text-align: center; 
  margin: 20px 0 40px; 
}
.flow-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* デフォルト：PC/Tabletを表示、SP用は隠す */
.flow-image-desktop { display: block !important; }
.flow-image-mobile  { display: none  !important; }

/* SPで縦画像に切替 */
@media (max-width: 768px) {
  .flow-image-desktop { display: none !important; }
  .flow-image-mobile  { display: block !important; }
}

/* タブレット以上（600px以上）：念のためモバイル用画像を強制的に非表示にする */
@media (min-width: 550px) {
  .flow-image-mobile { display: none !important; }
  .flow-image-desktop { display: block !important; }
}

/* 旧レイアウトを完全にオフ（残していてもOK） */
.flow-steps,
.flow-mobile-image-wrapper { display: none !important; }


/* ===== Reveal Up (下→上 + フェード) ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* 適度な間隔で段階的に出したい時のユーティリティ */
.reveal-stagger > * { opacity: 0; transform: translateY(12px); }
.reveal-stagger.is-visible > * {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: .00s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: .03s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: .06s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: .09s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: .12s; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); }
.reveal-stagger.is-visible > * {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: .00s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: .28s; }

/* SP 用にアニメーションを短縮してより速く見えるようにする */
@media (max-width: 768px) {
  .reveal-up {
    transform: translateY(12px);
    transition: opacity .35s ease-out, transform .35s ease-out;
  }

  .reveal-stagger > * { transform: translateY(12px); }
  .reveal-stagger.is-visible > * {
    transition: opacity .35s ease-out, transform .35s ease-out;
  }
  .reveal-stagger.is-visible > *:nth-child(1){ transition-delay: .00s; }
  .reveal-stagger.is-visible > *:nth-child(2){ transition-delay: .03s; }
  .reveal-stagger.is-visible > *:nth-child(3){ transition-delay: .06s; }
  .reveal-stagger.is-visible > *:nth-child(4){ transition-delay: .09s; }
  .reveal-stagger.is-visible > *:nth-child(5){ transition-delay: .12s; }
}

/* デスクトップ専用：もう少しサクサク表示（PC のみ軽く高速化） */
@media (min-width: 1025px) {
  .reveal-up {
    transform: translateY(18px); /* 少し移動量を小さく */
    transition: opacity .45s ease, transform .45s ease; /* 0.6s -> 0.45s */
  }

  .reveal-stagger.is-visible > * {
    transition: opacity .45s ease, transform .45s ease;
  }
  /* 少し短めのスタガーに調整 */
  .reveal-stagger.is-visible > *:nth-child(1){ transition-delay: .00s; }
  .reveal-stagger.is-visible > *:nth-child(2){ transition-delay: .05s; }
  .reveal-stagger.is-visible > *:nth-child(3){ transition-delay: .10s; }
  .reveal-stagger.is-visible > *:nth-child(4){ transition-delay: .15s; }
  .reveal-stagger.is-visible > *:nth-child(5){ transition-delay: .20s; }

  /* PC のみ、指定セクション下に余白を追加 */
  .services-section {
    margin-bottom: 80px;
  }

  .flow-section {
    margin-bottom: 80px;
  }
}



.page-top p {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

button {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 80px;
  right: -80px;
  bottom: calc(50% - 40px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border: 0;
  background: #216dba;
  transition: .2s;
  letter-spacing: 3px;
  font-weight: bold;
  border-radius: 10px 0 0 10px;
}

button i{
  position: absolute;
  font-size: 30px;
  color: #FFF;
  top: 15px;
  font-weight: 300;
}

button p{
  margin: 0;
  font-size: 15px;
  bottom: 13px;
  position: absolute;
}

.is-active {
  opacity: 1;
  visibility: visible;
}

button.is-active {
  right: -2px;
}

/* --- ページトップボタン専用スタイル（.page-top） --- */
.page-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 80px;
  right: -80px;
  bottom: calc(50% - 40px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border: 0;
  background:#216dba;
  transition: .2s;
  letter-spacing: 3px;
  font-weight: 700;
  border-radius: 10px 0 0 10px;
  z-index: 9999;
}

.page-top i {
  position: absolute;
  font-size: 30px;
  color: #fff;
  top: 12px;
  font-weight: 300;
}

.page-top span{
  margin: 0;
  font-size: 15px;
  bottom: 12px;
  position: absolute;
}

.page-top.is-active {
  opacity: 1;
  visibility: visible;
  right: -2px;
}

/* 小さい画面では少し小さめに */
@media (max-width: 450px) {
  .page-top { width: 52px; height: 72px; }
  .page-top i { font-size: 26px; top: 10px; }
  .page-top span { font-size: 13px; bottom: 10px; }
}

/* デスクトップ：ボタンを現在の2倍サイズにする */
@media (min-width: 1025px) {
  .page-top {
    width: 80px; /* 60 -> 120 */
    height: 120px; /* 80 -> 160 */
    right: -190px; /* オフスクリーンに隠す分を調整 */
  }

  .page-top i {
    font-size: 45px; /* 30 -> 60 */
    top: 30px;
  }

  .page-top span {
    font-size: 20px; /* 15 -> 30 */
    bottom: 40px;
  }

  /* アクティブ時の位置調整は既存ルールを尊重（右にスライドイン） */
  .page-top.is-active {
    right: -2px;
  }
}