

/* スマホ用（〜767px） */



@media screen and (max-width: 767px) {
  /* スマホ向けのスタイルを書く */

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;   /* 横スクロールだけ禁止 */
  overflow-y: auto;     /* 縦スクロールは常に許可 */
}

*, *::before, *::after {
  box-sizing: inherit;
}

.container {
  padding: 0 16px;
  max-width: none;
}
 #header {
  display: none;
  }


#sp-header {
  padding: 0 20px;
  height: 64px;
  width: 100%;
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(31, 38, 50, 32%);
}

 .sp-header-logo {
  display: flex;
  width: 116px;
  height: auto;
  margin: 10px 0;
  padding-top: 0px;

 }

.sp-menu-toggle {
  color: #2AABE3;
  width: 40px;      
  height: 40px;
  padding: 8px;
  max-width: 40px;
  overflow: hidden;
  
}


/* メニュー本体 */
.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  transition: right 0.5s ease;
  overflow-y: auto;
   pointer-events: none; 
}

/* メニュー表示時 */
.sp-menu.active {
  right: 0;
    pointer-events: auto; 
}

.sp-menu a {
    position: relative;
  z-index: 10000; 
}

/* メニュー中身 */
.sp-menu-inner {
  padding: 12px 20px;
  position: relative;
}

.sp-menu-logo img {
  width: 116px;
  margin-bottom: 24px;
}

.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.sp-menu-list li {
  margin-bottom: 4px;
}

.sp-menu-list a {
  display: block;  
  text-decoration: none;
  color: #2B303C;
  font-size: 20px;
  font-weight: 700;
  padding: 16px 8px;
  z-index: 10001;
  position: relative;
  background: transparent; /* 念のため */
}

/* ボタン類 */
.sp-menu-buttons .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  margin-bottom: 12px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}

.sp-menu-buttons .btn.white {
  border: 1px solid #2AABE3;
  color: #2AABE3;
  background-color: #fff;
}

.sp-menu-buttons .btn.blue {
  background-color: #2AABE3;
  color: #fff;
}

/* 閉じるボタン */

#sp-menu-close {
  padding: 0;
}
.sp-menu-close {    
  font-family: 'roboto', sans-serif;
  font-weight: 200;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 36px;
  background: none;
  border: none;
  color: #2AABE3;
  cursor: pointer;
}

:root { --header-h: 64px; }              /* あなたのSPヘッダー高さに合わせる */
[id] { scroll-margin-top: var(--header-h); }
html { scroll-behavior: smooth; }

/* メニュー表示中は背面をスクロールさせない */
body.menu-open { overflow: hidden; }


/* 固定ヘッダーぶんの被り防止（SPヘッダー 64px 想定） */
:root { --header-h: 64px; }
[id] { scroll-margin-top: var(--header-h); }




.hero {
  margin-top: 0px;
  height: 100vh;
  height: 100dvh;
  position: relative;
}
.hero-btn {
  letter-spacing: 0.1em;
}

.hero-btn.hero-btn--sp {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px auto 0;
    width: 100vw;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 56px;
    font-size: 20px;
}

.hero-bg-left {
  background-size: cover;
}

.hero-inner {  
 flex-direction: column; /* 縦並びに変更 */
 gap: 8px;/* 必要に応じて余白調整 */
 margin-top:  68px; /* ヘッダーの高さ分の余白 */
 align-items: center;
  }

.hero-logo {
  width: 76vw;
  display: none;
  align-items: flex-start;

}

.hero-message .small {
  margin-right: -0.1em;
  margin-left: 0em;
}

.hero-small {
  margin-top: 20px;;
}

.spmin-br {
    display: inline;
  }


.hero-badge img {
    margin-top: clamp(8px, 2.00vw, 46px);
}

.trouble {
  padding-top: 48px;;
}

.trouble-inner {
  margin: 0 16px; /* スマホ用に余白を調整 */
}

  .trouble-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 8px;
    justify-items: center;
  }

  .trouble-row,
  .center-bottom {
    display: contents; /* 子要素をあたかも親直下に並んでいるように扱う */
  }

  .trouble-item {
    width: 100%;
    max-width: calc(100% - 8px);
  }

  .trouble-item5 {
    grid-column: 1 / 3;
    justify-content: center;
    margin: 0 auto;
      max-width: 280px;
    
  }



  .trouble-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }



  .trouble-item5 .trouble-item-img {
    width: 100px;
    height: 100px;

  }


.trouble-item-img {
  margin: 0 auto;
}
.trouble-item-img img {
  width: 100%;
  max-width: 100px; /* ← 適切なサイズに調整 */
  height: auto;
  display: block;
  margin: 0 auto;
}

.trouble-item-text p {
  font-size: 15px;
}

.sp-br {
  display: inline-block; /* インラインブロックに変更 */
  width: 100%; /* 幅を100%に */
  height: 0; /* 高さを0にして改行効果を出す */
}
.sp-br-none {
  display: none; /* スマホでは改行しない */
}

.trouble-heading {
   gap: 20px;
}

.trouble-heading h2 {
  font-size: 26px;
  line-height: 1.2;
}

.trouble-item-inner {
  display: block;
}

  .trouble-item5 .trouble-item-inner {
    display: block;
    flex-direction: column;
     align-items: center; /* ← 中央に寄せるポイント！ */
    justify-content: center;
  }

    .trouble-item5 .trouble-item-text p {
    text-align: center; /* テキストだけ中央 */
  }

    .trouble-item5 .trouble-item-img {
    margin: 0 auto; /* 念のため画像も中央に */
  }

.trouble::after {
  border-top: 50px solid #fff;
  bottom: -50px;;
}

.sp-br {
  display: block;
}

.slash {
  width: 48px;

}

.slash line {
  stroke-width: 2;
  display: block;
  overflow: visible;
}

.slash--right {
  transform: rotate(180deg);
}

.features {
  order: 2;
  display: flex;
  flex-direction: row; /* ←横並びに変更 */
  justify-content: center; /* 中央寄せ（任意） */
  gap: clamp(12px, 2.4vw, 28px); /* 要素間の余白 */
  align-items: center; /* 縦方向の中央揃え */
  width: 100%;
  padding-bottom:0px;
  padding: 0px;
}

.hero-left {
    align-items: center;
}

.hero-left,
.hero-right {
  width: 100%;
  text-align: center;
}

.hero-right {
    display: flex;
    flex-direction: column;
    margin-top: clamp(0x, 2.8vw, 20px); /* 上の余白を調整 */
    
}

.hero-bg-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/hero_sp-bg.png) no-repeat center top;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-btn {
  order: 3;
  width: 90%;
  max-width: 360px;
  margin-top: clamp(16px, 4vw, 32px);
}

.hero-btn--pc {
    display: none; /* PCでは非表示 */
}

.hero-image {
  order: 1;
  height: auto;
  width: 80%;
  margin: 0 auto;
  max-width: 400px;
}


.hero-message {
    text-align: cwenter;
    width: 100%
}

.hero-message .small {
    font-size: clamp(28px, 8vw, 36px); /* 中心：30px 目安 */
    margin-right: -0.2em; /* 微調整 */
    margin-left: -0.1em /* 微調整 */
  }

  
.hero-message .large {
    font-size: clamp(34px, 9.6vw, 42px); /* 中心：36px 目安 */
  }

.hero-message .main {
    font-size: clamp(40px, 11.2vw, 48px); /* 中心：42px 目安 */
  }

.hero-badge img {
  width: clamp(100px, 38vw, 160px);
  height: auto;
  }

.features .feature:nth-child(2), .features .feature:nth-child(3) {
  margin-top: 0; /* 2番目と3番目の要素の上マージンをリセット */
}

.feature {
  width: clamp(84px, 18vw, 88px);
  height: clamp(84px, 18vw,88px);
  gap: clamp(12px, 2.4vw, 16px);

}

.feature-icon {
  width: clamp(22px, 6vw,32px); /* 小〜中サイズ端末で自然に拡大 */
  height: clamp(22px, 6vw,32px); /* 小〜中サイズ端末で自然に拡大 */
  display: block;
  align-self: end;
}

.feature-text {
      align-self: start;
}

.solution {
  padding-top: 128px;
  padding-bottom: 56px;;
}

.solution-heading {
  margin-bottom: 32px;;
}

.solution-title{
  font-size: 28px;
}

.solution-label {
  font-size: 16px;
  padding: 2px 40px;
  margin-bottom: 12px;
}

.solution-label::after {
  bottom: -6px;
  border-top: 7px solid #2AABE3;
}
  


.solution-label2 {
  padding: 8px 20px;
}



.solution-card h3 {
  font-size: 20px;
  width: 100%;
}

.solution-cards {
  gap: 32px;
}


.solution-card li {
  margin-bottom: 12px;
  font-size: 15px;;
}

.solution-card ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 4px;; /* 適宜調整 */
}

.cta {
   background: url('../img/sp-cta-background.png');
   background-size: cover;
   padding: 48px 16px;
   background-position: center center;
   background-repeat: no-repeat;
}

.cta-subtext  {
  line-height: 1.4;
  margin-bottom: 18px;
  letter-spacing: 0.02em;;
}
.cta-subtext .small {
  font-size: 18px;
  margin-right: -3px;
}

.cta-subtext .large {
  font-size: 20px;
  margin-right: -4px;
}

.cta-title {
  margin-bottom: 4px;
}
.cta-title .medium {
  font-size: 36px;
}

.cta-title .large {
  font-size: 44px;
}

.cta-line {
  margin-bottom: 8px;
}
.cta-line svg{
  width: 80%;
}

.cta-btn {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 700;
  height: 64px;
}

.sp-text-none {
  display: none;
}

.mail-icon svg {
  width: 22px;
}

.section-normal-title {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 32px;
}

.point-box {
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* 横幅固定 */
  width: 280px;
  margin-left: 20px;
  scroll-snap-align: center;
}

.point-box1 {
  margin-left: 40px;
}

.point-box3 {
  margin-right: 40px;
}

.point-content {
  display: block;
  height: 480px;
  width: 280px;
  margin-bottom: 0;
}

.point-image img {
  width: 280px;
  height: auto;
}

.point-text {
  padding: 16px;
}


.point-heading {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}


.point-3box {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 40px 0 32px 0;
  width: 100%;
  scrollbar-width: none; /* Firefox */
}


.point-3box::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

  .point-indicators {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-bottom: 12px;
    position: relative;
  }

  .dot {
    width: 8px;
    height: 8px;
    margin: 0 8px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s;
  }

  .dot.active {
    background-color: #2AABE3;
  }


.border-text {
  padding-right: 18px;
  height: 56px;
  border-radius: 1px;
}

.sample-description {
  font-size: 19px;
  text-align: left;
  letter-spacing: -0em;
}

.sample-shop-name svg {
  height: 64px;
  width: auto;
}

.sample-box {
  height: 200px;
  padding: 8px 16px;
  display: flex; 
  justify-content: flex-start; 
  background: linear-gradient(180deg, #2688B4 0%, #2688B4 32%, rgba(38, 136, 180, 0) 72%, rgba(38, 136, 180, 0) 100%);
}

.sample-box-right  {
  width: 100%;
  bottom: 0;
  background-image: url(../img/SP-gokai-food_background.png);
  background-position: center bottom;
  height: 206px;
  
}


.sample-shop-name {
  height: 72px;
  width: auto;
}

.sample-box-center {
  margin-left: 12px;

}

.sample-heading {
  margin-bottom: 56px;
}

.sample-vertical-line {
  margin-right: 12px;
    width: 1px;
}

.sample-phone {
  width: 260px;
}

.fade-label {
  font-size: 40px;
  margin-bottom: -32px;
}

.simple-section-title {
  font-size: 32px;
  margin-bottom: 28px;
}

.sample-case {
  padding-top: 48px;
}





/* スクロールヒントのスタイル */

.scroll-hint {
  padding: 20px 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.5;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background-color: #2B303C;
  border-radius: 4px;
}

.scroll-hint img {
  width: 100px; /* 適宜サイズ調整 */
  height: auto;
}

.scroll-text {
  font-size: 12px;
  color: white;
}

/* スクロールで非表示にするクラス */
.scroll-hint.hidden {
  opacity: 0;
  visibility: hidden;
}


/* 横スクロール領域の親 */
.horizontal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative; /* ヒントの absolute 用 */
  height: 100%;
}

/* 表本体 */
.comparison-wrapper {
  min-width: 800px;
  display: inline-block;
  transform: scale(0.8);
  transform-origin: left top; /* 左上基準で縮小 */
   margin-bottom: -120px;
   margin-right: -140px;

}

.comparison-row .label {
  font-size: 20px;
}

.comparison-row .value small {
  font-size: 16px;
}

.teacher-icon {
  left: -72px;
  width: 88px;
  height: auto;
}

.price-applis-logo {
  padding-right: 12px;
}
 

/* スクロールヒント全体 */
.scroll-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* スクロールされた or 自動で非表示にするためのクラス */
.scroll-indicator.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ヒントの中身（例: 指アイコン＋テキスト） */
.scroll-indicator-inr {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 15px 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeBlink 2s infinite ease-in-out;
}

/* 画像サイズ調整（指アイコンなど） */
.scroll-indicator-inr img {
  width: 50px;
}

/* 点滅アニメーション */
@keyframes fadeBlink {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

.price-center {
  display: flex;
  align-items: center;
}

.price-comparison {
  padding: 56px 0;
}

.comparison-header {
  padding-top: 4px;
}

.price-note {
  max-width: 100%;
  padding: 8px 16px;
  margin:  16px 16px 0 16px;
}

.industry-section {
  padding: 56px 0;
}
  .industry-scroll-container {
    overflow: hidden; /* はみ出し隠す */
  }

  .industry-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .industry-grid {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    grid-template-rows: repeat(3, auto); /* 3行 */
    gap: 16px;
    justify-content: center;
    padding: 16px;
  }

  .industry-card {
    text-align: center;
  }

  .point-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
  
  .flow-section {
    padding: 56px 20px 80px;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
  }

  .flow-step {
    width: 248px;
    position: relative; /* ←線を表示するために必要 */
  }

  .flow-steps::before {
    display: none; /* PC用の背景線を非表示に */
  }

  .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background-color: #2AABE3;
    transition: height 0.4s ease;
    z-index: 0;
  }

  .flow-step.line-active:not(:last-child)::after {
    height: 40px; /* 好みに応じて調整可 */
    width: 1px;
  }

    .footer {
    background-color:#044EAC;
  } 

  .faq-question {
    font-size: 16px;
    text-align: left;
    padding: 16px 18px;

  }


  .faq-section {
    padding: 56px 0;;
  }


    .faq-question,
  .faq-answer {
    width: 100%;              /* 固定幅解除 */
    margin-left: 0;           /* 左マージン解除 */    /* 左右に16pxパディング */
    box-sizing: border-box;
  }

  .faq-item.open .faq-answer {
    padding: 1rem 16px;
  }

  .faq-section .container {
    padding: 0 16px;
    
  }

  .faq-title-heading {
    font-size: 28px;
  }

  .faq-icon {
    width: 32px;
    height: auto;
  }

  .footer-nav {
    font-size: 14px;
    gap: 16px;
  }



   .faq-item.open .plus {
    display: flex;
    transform: rotate(45deg);
   transform-origin: center center; /* ← この1行が重要！ */
    height: 24px;
    width: 24px;
    text-align: center;
    margin-left: 16px;
    vertical-align: middle;
    justify-content: center;
    align-items: center;

}

 .faq-question .plus {
  display: flex;
  font-size: 1.4em;
  transition: transform 0.3s;
  transform-origin: center center; /* ← この1行が重要！ */
  color: #484a4b;
  height: 24px;
  width: 24px;
  justify-content: center;
  align-items: center;

  
}

.question-text {
  font-size: 18px;
}

.hero {
  position: relative; /* ← scroll-line を絶対配置するために必要 */
  /* すでにある他のスタイルは残す */
}

.scroll-line-animation {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-line-animation .arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid #929292;
  border-right: 2px solid #929292;
  transform: rotate(45deg);
  animation: scroll-down 1.2s infinite;
  opacity: 0.8;
}

@keyframes scroll-down {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(8px) rotate(45deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
}

  .footer {
    padding: 8px 20px 12px;
  }


}






/* 小型スマホ〜ちょい狭端末向け */
@media screen and (max-width: 360px) {
  /* padding調整・font-size調整など */

  .hero-message .small {
    font-size: 24px;
    margin-right: -0.3em;
  }

  .hero-message .large {
    font-size: 32px;
  }

  .hero-message .main {
    letter-spacing: 0.02em;
  }

  .trouble-heading h2 {
    font-size: 24px;
  }

  .trouble-heading {
    gap: 12px;
  }

  .solution-card {
    padding: 28px 16px;
  }

  .solution-card li::before {
    font-size: 12px;
}

 .solution-card li {
  padding-left: 12px;
 }

  .solution-card li span {
    font-size: 14px;
 }

 .cta-title .large {
  font-size: 40px;
 }

  .cta-title .medium {
  font-size: 32px;
  margin-right: -8px;
 }



 .sample-description {
  font-size: 17px;
 }
 
   .footer-nav {
    font-size: 14px;
    gap: 12px;
  }

  .footer-nav a::after {
    margin-left: 8px;
  }

  .footer {
    background-color: #014AAA;
  }

  .footer-logo img {
    width: 160px;
    height: auto;
  }


}
@media screen and (min-width: 560px) and (max-width: 767px) {
  .hero-btn {
    height: 56px; /* ← お好きな高さに */
    font-size: 18px; /* 必要ならフォントサイズも調整 */
    padding: 0 24px;
  }

  .footer {
    background-color: #176FB8;
  }

  
}

@media screen and (min-width: 480px) and (max-width: 559px) {
  .footer {
    background-color: #1165B4;
  }
}

@media screen and (min-width: 401px) and (max-width: 480px) {
  .footer {
    background-color: #0855AE;
  }
}




