@charset "UTF-8";

/* スマホ用のスタイル */
@media screen and (max-width: 576px) {
  /*vwのベースは390px*/

  body {
    max-width: 576px;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
  }

  .sp-show {
    display: block;
    /* スマホ版の要素を表示 */
  }

  .pc-show {
    display: none;
    /* PC版の要素は非表示 */
  }

  /* 1段目: トップ */
  .top-container {
    height: auto;
  }

  .top-main {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-area {
    width: 83%;
  }

  .text-area h1 {
    height: 69px;
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 35px;
    margin-top: 78px;
    margin-left: 0px;
    margin-bottom: 0px;
  }

  .text-area p {
    width: 100%;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.48px;
    line-height: 30px;
    height: 110px;
    margin-top: 25px;
    margin-left: 0px;
    margin-bottom: 0px;
  }

  .quote-button {
    width: 93%;
    margin: 0 auto;
    height: 60px;
    font-size: 24px;
    text-align: center;
    margin-top: 40px;
  }
  .inquiry-button {
    width: 300px;
    margin: 0;
    height: 60px;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
  }

  .image-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 54px;
  }

  .image-area img {
    width: 89.7%;
    height: auto;
    margin-left: 35px;
    margin-top: 0px;
  }

  /* 2段目: 脳活ライフとは */
  .about-container {
    height: auto;
  }

  .about-main {
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image img {
    width: 23%;
    max-width: 90px;
  }

  .about-image img {
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: 51px;
  }

  main img {
    margin-top: 0px;
    width: 100%;
  }

  .about-text {
    width: 87%;
    max-width: 330px;
  }

  .about-text h2 {
    font-weight: 600;
    /* W6に相当するウェイト */
    color: #14a83b;
    font-size: 22px;
    line-height: 35px;
    white-space: pre-line;
    /* 改行を表示 */
    margin-top: 22px;
    margin-bottom: 22px;
    letter-spacing: 0.66px;
  }

  .about-text p {
    font-weight: 400;
    /* W6に相当するウェイト */
    color: #323436;
    font-size: 18px;
    line-height: 30px;
    text-align: left;
    margin-top: 0px;
    letter-spacing: 0px;
    margin-bottom: 60px;
  }

  /* セクションヘッダー */
  .section-title {
    font-size: 30px;
    letter-spacing: 0.9px;
    line-height: 70px;
  }

  /* 3段目: サービス紹介 */
  /* point 1 */
  .main-inner {
    background-color: #ffffff;
    padding: 0;
    margin: 0 6.5%;
    width: 87%;
    box-sizing: border-box;
    max-width: 390px;
  }

  .point {
    margin: 30px auto 0px auto;
  }

  .section h2 {
    font-size: 22px;
    font-weight: 600;
    /* W6に相当するウェイト */
    margin-top: 20px;
    margin-bottom: 0px;
    line-height: 35px;
    letter-spacing: 0px;
    white-space: pre-line;
    /* 改行を表示 */
  }

  .training-description {
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    line-height: 30px;
    white-space: pre-line;
    margin: 0px;
    margin-bottom: 30px;
  }

  /* point 2 */
  /* サークル */
  .pc-circle-container {
    display: none;
  }

  .sp-circle-container {
    display: flex;
  }

  .upper-parts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .circle-container {
    width: 84.6%;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .circle {
    width: 160px;
    height: 160px;
  }

  .circle p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0px;
    line-height: 24px;
  }

  /* point 3 */
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .rectangle {
    margin: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .text-content {
    width: 92%;
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  .image-container img {
    max-width: 330px;
    margin-top: 20px;
    height: auto;
    margin-bottom: 10px;
  }

  .rectangle img {
    width: 60%;
    height: auto;
  }

  .record-details {
    width: 100%;
    font-size: 20px;
    font-weight: 400;
    color: #3f4143;
    margin-top: 0px;
    margin-bottom: 5px;
  }

  .p-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
  }

  .image-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .image-item {
    margin: 10px 0;
    text-align: center;
  }

  .image-item img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }

  .image-item p {
    margin-top: 8px;
    margin-bottom: 10px;
  }

  /* 4段目: 機能紹介 */
  .main-inner-function {
    width: 100%;
    /* 330px未満の幅に設定 */
    max-width: 330px;
    /* 最大幅を330pxに設定 */
    margin: 0 auto;
    /* 中央揃え */
    padding: 10px;
    /* パディングを保持 */
  }

  .section {
    padding: 0;
  }

  .section-text {
    width: 100%;
    padding-left: 5px;
    max-width: 330px;
    margin: 0 auto;
  }

  .section-text h2 {
    width: 100%;
    max-width: 330px;
    font-size: 22px;
    line-height: 35px;
    letter-spacing: 0px;
    white-space: pre-line;
    margin-top: 25px;
    margin-bottom: 30px;
  }

  .section-text p {
    text-align: left;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 30px;
    white-space: pre-line;
  }

  .table-inner {
    width: 100%;
    max-width: 330px;
    margin: 0;
    padding: 0;
  }

  .function-table {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .function-table .row.header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 40px;
  }

  .label.company {
    width: 160px;
    max-width: 160px;
    font-size: 14px;
    font-weight: 30px;
    font-weight: 600;
    letter-spacing: 0.7px;
    height: 40px;
    padding: 0;
  }

  .label.user {
    width: 160px;
    max-width: 160px;
    font-size: 14px;
    font-weight: 30px;
    font-weight: 600;
    letter-spacing: 0.7px;
    height: 40px;
    padding: 0;
  }

  .label.function {
    width: 100%;
    max-width: 320px;
    font-size: 14px;
    font-weight: 600;
  }

  .label {
    padding: 10px 20px;
    font-size: 25px;
    color: #ffffff;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .label.function {
    height: 30px;
    padding: 0px;
  }

  .function-table .row {
    display: flex;
    justify-content: space-between;
  }

  .label.white,
  .label.grey {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.6px;
    height: 30px;
    padding: 0px;
  }

  .activity-images {
    flex-direction: column;
    align-items: center;
  }

  .activity-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .activity-item img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .activity-item p {
    margin-left: 0;
    text-align: center;
  }

  .activity-item h3 {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .activity-item p {
    width: 100%;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: left;
  }

  /* 5段目: メリット */
  .merit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
  }

  .main-inner-merit {
    width: 100%;
    max-width: 340px;
  }

  .merit-inner {
    width: 100%;
    max-width: 340px;
    padding: 0px;
  }

  .merit-inner .section-text h2 {
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .card {
    width: 100%;
    height: 700px;
    background-color: #ffffff;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    box-shadow: 0px 5px 5px #04040433;
    text-align: center;
  }

  /* ヘッダー部分 */
  .card-header {
    width: 100%;
    height: 80px;
    border-radius: 10px 10px 0 0;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .highlight {
    width: 80%;
    height: 140px;
  }

  /* 説明のテキスト */
  .card-content p {
    width: 70%;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0px;
    margin-bottom: 0px;
  }

  .highlight h4 {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    white-space: pre-line;
    letter-spacing: 0px;
  }

  /* 6段目: 料金プラン */
  .main-inner-plan .section-text h2 {
    margin-top: 60px;
    margin-bottom: 20px;
  }

  .main-inner-plan .section-text p {
    margin-bottom: 45px;
  }

  .main-inner-plan {
    width: 100%;
    padding: 0%;
  }

  .pc-plan-table {
    display: none;
  }

  .sp-plan-table {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .sp-table-inner {
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .sp-table-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-text .center-text {
    text-align: left;
    /* スマホ版では左揃えに変更 */
  }

  .row-header {
    width: 18.5%;
  }

  td {
    padding: 0px;
    text-align: center;
    font-size: 20px;
    height: 75px;
  }

  td.remarks {
    width: 30%;
    text-align: left;
    height: 100px;
  }

  .sp-table-row p {
    font-size: 20px;
    line-height: 29px;
    letter-spacing: 0px;
    font-weight: 600;
  }

  /* 先頭に戻る */
  .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
  }

  .scroll-to-top::before {
    font-size: 20px;
  }

  /* フッター */
  .footer .container {
    max-width: 100%;
    padding: 0px;
    height: 700px;
  }

  .footer-logo img {
    margin-top: 50px;
    width: 260px;
    height: 96px;
  }

  .footer-upper {
    flex-direction: column;
    align-items: center;
    margin-top: 90px;
    gap: 10px;
    margin-bottom: 50px;
    /* 下部マージンを追加 */
  }

  .footer-upper a {
    margin: 5px 0;
  }

  .footer-under {
    display: flex;
    /* フレックスボックスを使用 */
    flex-direction: column;
    /* 縦に並べる */
    align-items: flex-start;
    /* 左寄せ */
  }

  .privacy-logo-parts {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
  }

  .anab-logo-parts {
    display: flex;
    flex-direction: row;
  }

  .privacy-text-parts {
    display: flex;
    /* フレックスボックスを有効にする */
    flex-direction: column;
    /* 縦に並べる */
    align-items: flex-start;
    /* 左揃え */
  }

  .privacy-notice {
    font-size: 11px;
    /* プライバシー通知のフォントサイズを設定 */
    line-height: 18px;
    letter-spacing: 0.4px;
    text-align: left;
    margin-bottom: 0px;
  }

  .privacy-notice-link {
    color: #242528;
    /* リンクの文字色を指定 */
    text-decoration: underline;
    /* 下線を残す */
  }

  .iso-notice {
    font-size: 11px;
    /* ISO通知のフォントサイズを設定 */
    line-height: 18px;
    letter-spacing: 0.4px;
    text-align: left;
    margin-top: 21px;
    margin-left: 11px;
    margin-bottom: 0px;
  }

  .certification-logo {
    margin-bottom: 0;
    /* マージンをリセット */
    margin-bottom: 10px;
    /* 下部にマージンを追加 */
    margin-left: 40px;
  }

  .privacy-logo {
    width: 90px;
    /* プライバシーマークの幅 */
    height: auto;
    /* 高さを自動に */
  }

  .anab-logo {
    width: 100px;
    /* ISO Certificationの幅 */
    height: auto;
    /* 高さを自動に */
  }

  .footer {
    flex-direction: column;
    /* 縦並びに変更 */
    align-items: center;
    /* 中央揃え */
  }

  .footer-copyright p {
    font-size: 14px;
    font-weight: 400px;
    line-height: 21px;
    letter-spacing: 0px;
  }

  /* ハンバーガーメニュー */
  .header {
    height: auto;
  }

  /* ヘッダー */
  .header-container {
    display: flex;
    align-items: center;
    /* 縦方向の中央揃え */
    justify-content: flex-start;
    /* 左揃え */
    height: 70px;
    /* 高さ設定 */
    padding: 0 20px;
    /* 左右パディング */
    position: relative;
    /* ここでrelativeにして、子要素を絶対配置できるようにする */
  }

  /* ロゴ */
  .logo {
    width: 240px;
    height: 42px;
    margin-top: 20px;
    margin-left: 10px;
  }

  .logo img {
    width: 100%;
    /* 画像の幅を100%に */
    height: auto;
    /* 高さ自動調整 */
  }

  /* 三本線のメニューアイコンを右端に配置 */
  .menu-icon {
    display: inline-block;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    /* 親要素に対して絶対配置 */
    right: 20px;
    /* 右端から20pxの位置に固定 */
    top: 15px;
    /* 上からの位置を調整 */
  }

  .menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    /* 三本線を白色に */
    transition: transform 0.3s, opacity 0.3s;
  }

  /* チェックボックスは隠す */
  #menu-toggle {
    display: none;
  }

  /* ハンバーガーのアニメーション */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ヘッダーメニューはスマホ時にハンバーガーメニュー表示 */
  .nav-links-container {
    display: none;
    /* 初期状態は非表示 */
  }

  /* チェックが入った時にメニュー全体を表示 */
  #menu-toggle:checked ~ .nav-links-container {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #43cb66;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* 縦に並べる */
    align-items: center;
    /* 中央揃え */
    padding: 0;
    padding-top: 80px;
    height: 100vh;
    /* 画面の高さに合わせる */
    overflow: hidden;
    /* メニュー内で縦方向にスクロールできる */
  }

  .nav-links li {
    list-style: none;
    padding: 10px;
  }

  .nav-links li a {
    text-decoration: none;
    color: #ffffff;
  }

  .card-header h3 {
    font-size: 25px;
  }

  .merit-description {
    width: 90vw;
    font-size: 4.1025vw;
  }

  .header-item {
    width: 51.282vw;
    font-size: 5.1282vw;
  }
}
