@charset "UTF-8";

/* スマートフォン用のメディアクエリ */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden; /* 横スクロールを防ぐ */
  }
  .sp {
    display: block; /* スマートフォンでは改行を有効にする */
  }

  .intro-section {
    text-align: center;
    width: 100%;
  }

  .intro-text {
    font-size: 15px;
  }

  .img-ozuka {
    text-align: center;
    background-color: #fff6f7;
    border-radius: 100%;
    width: 50%;
  }

  .img-ozuka img {
    object-fit: cover;
    width: 71%;
    height: 71%;
    aspect-ratio: 4 / 3;
    border: 5px solid #ffffff;
  }

  .intro-section1 {
    margin: 20px auto;
    gap: 10px;
    width: 95%;
  }

  .contact-info {
    font-size: 20px;
    margin: 20px auto;
  }

  p.text-ozuka {
    font-size: 9px;
    line-height: 0.8rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 中央に配置 */
  }

  .btn1,
  .btn2 {
    width: 85%;
  }

  .btn_text {
    font-size: 13px;
  }

  .btn_text2 {
    font-size: 18px; /* フォントサイズを小さくする */
  }

  .main-content {
    padding: 0px; /* パディングを小さくする */
    margin: 10px auto; /* マージンを小さくする */
    max-width: 100%; /* 幅を100%に設定 */
  }

  .full-width-background {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-image: url(../img/background_img.webp);
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
  }

  .full-width-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
      255,
      255,
      255,
      0.3
    ); /* 半透明の白いフィルターを薄くする */
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
    z-index: 1; /* コンテンツの背面に配置 */
  }

  .feature-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    border-radius: 5px;
  }

  .feature-image {
    order: 1; /* 画像を上に配置 */
  }

  .feature-text {
    order: 2; /* テキストを下に配置 */
    text-align: left; /* テキストを左揃えにする */
  }

  .full-width-background {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-image: url(../img/background_img.webp);
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
  }

  .full-width-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
      255,
      255,
      255,
      0.3
    ); /* 半透明の白いフィルターを薄くする */
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
    z-index: 1; /* コンテンツの背面に配置 */
  }

  h2.section-title2 img {
    width: 100%;
  }
  section.features {
    margin: 0 10px;
    padding: 0;
  }
  h2.section-title2 {
    text-align: center;
  }

  h2.section-title {
    margin: 30px 0 15px 0;
    font-size: 20px;
  }
  img.premarri-image {
    text-align: center;
    width: 100%;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 画像に影を追加 */
  }

  h2.section-title img {
    width: 40%;
  }

  p.highlight-text {
    font-size: 28px;
    font-weight: 700;
    color: #45322b;
    text-align: center;
    line-height: 2.5rem;
    margin: 0;
    margin-top: 45px;
  }
  .text_1111 {
    font-size: 28px;
    font-weight: 700;
    color: #45322b;
    text-align: center;
    line-height: 2.5rem;
    position: relative; /* 擬似要素のために相対位置を設定 */
  }

  .text_1111::after {
    width: 83%;
  }

  .text222 {
    font-size: 13px;
    line-height: 1.5rem;
    font-weight: 600;
  }

  .flex_features {
    flex-direction: column;
    gap: 0px;
  }

  img.feature-image {
    width: 40%;
    margin: 10px;
  }
  h3.feature-title {
    width: 100%;
    font-size: 14px;
    margin: 0;
    margin-top: 7px;
  }
  .feature-title1 {
    margin-top: 5px;
  }
  .feature-description111 {
    border-radius: 5px;
    margin-right: 4px;
  }

  p.feature-description {
    font-size: 14px;
    margin: 5px 0;
  }

  h2.text333 {
    font-size: 24px;
    line-height: 1.5;
    margin: 30px 0 25px 0;
  }

  .flex_story-card {
    flex-direction: column;
  }

  .flex_story-card > .story-card {
    flex: 1 1 calc(50% - 15px); /* 各要素の幅を50%に設定し、ギャップを考慮 */
    box-sizing: border-box; /* パディングとボーダーを含む */
    max-width: 600px; /* 各要素の最大幅を設定（必要に応じて調整） */
  }

  .full-width-background111 {
    position: relative; /* 擬似要素のために相対位置を設定 */
    width: 100%; /* 画面の幅を100%に設定 */
    margin-left: calc(50% - 50vw); /* セクションを中央に配置 */
    background-image: url(../img/background_img02.webp); /* 背景画像を設定 */
    background-size: cover; /* 背景画像をカバーする */
    background-position: center; /* 背景画像を中央に配置 */
    padding: 20px 0; /* 上下のパディングを追加 */
  }

  .full-width-background111::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
      255,
      255,
      255,
      0.7
    ); /* 半透明の白いフィルターを薄くする */
    z-index: 1; /* コンテンツの背面に配置 */
  }

  .full-width-background111 .success-stories111 {
    margin-bottom: 145px;
  }

  .story-card img {
    width: 100%;
    border-top-left-radius: 5px; /* 左上角を角丸にする */
    border-top-right-radius: 5px; /* 右上角を角丸にする */
  }

  .story-card {
    border-radius: 5px;
  }
  .grad-item1 {
    text-align: left;
    color: #45322b;
    margin-top: 10px;
  }

  span.text_150 {
    font-size: 12px;
  }

  h3.story-card22 {
    font-size: 15px;
  }

  .story-card33 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 表示する行数を指定 */
    -webkit-box-orient: vertical;
    line-height: 1.5em; /* 行の高さを指定 */
    max-height: calc(1.5em * 5); /* 最大の高さを指定（行の高さ × 行数） */
    color: #45322b;
    text-align: left;
  }

  .story-card44 {
    width: 90%;
    font-size: 15px;
    padding: 0px;
  }
  .story-card55 {
    width: 83%;
    margin: 0px 0 49px 0;
  }

  .story-card44 img {
    margin-right: -3px; /* 画像とテキストの間のスペースを調整 */
  }

  .story-card44 a {
    font-size: 16px;
  }

  .story-card44 .icon-right {
    margin-left: auto; /* 左側に自動マージンを追加して右寄せ */
  }

  .story-card44 svg {
    margin-left: auto; /* 左側に自動マージンを追加して右寄せ */
    transform: translateX(-15px); /* 左に10px移動 */
  }

  .btn-link {
    text-decoration: none; /* リンクの下線を消す */
  }

  .btn-link button {
    display: inline-block;
    padding: 10px 50px;
    font-size: 16px;
    color: #fff;
    background-color: #f54768;
    border: none;
    border-radius: 50px;
    cursor: pointer;
  }

  .btn-link button:hover {
    background-color: #d43f5e; /* ホバー時の背景色を変更 */
  }

  .circle-image {
    width: 100%; /* 画像の幅を100%に設定 */
    height: 100%; /* 画像の高さをコンテナに合わせる */
    border-radius: 50%; /* 画像を円形にする */
    object-fit: cover; /* 画像をコンテナに収める */
    border: 5px solid #fdc3ce; /* 円のふちに線を追加 */
  }

  .image {
    width: 150px; /* 画像コンテナの幅を設定 */
    height: 150px; /* 画像コンテナの高さを設定 */
    overflow: hidden; /* 画像がコンテナをはみ出さないようにする */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* 画像コンテナを中央に配置 */
  }

  .card {
    position: relative; /* リボンの位置を相対的に設定 */
    overflow: hidden; /* はみ出る部分を隠す */
    text-align: center;
    padding: 20px; /* 内側の余白を追加 */
    border: 5px solid #f54768;
    background-color: #fff; /* 背景色を設定 */
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ボックスシャドウを追加 */
  }

  .text h2 {
    color: #f54768;
    line-height: 1.5rem;
    font-size: 20px;
  }

  .text_p {
    line-height: 1.3rem;
    line-height: 1.3rem;
    color: #45322b;
    font-weight: 600;
  }

  .ribbon {
    position: absolute;
    top: 91px;
    left: -33px;
    width: 150px;
    height: 34px;
    background-color: #f54768;
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    font-family: sans-serif;
    transform: rotate(-49deg);
    transform-origin: left top;
    padding: 5px;
  }

  .card1 {
    border: 5px solid #000f63;
    border-radius: 5px;
  }

  .text1 h2 {
    color: #000f63;
    line-height: 1.5rem;
  }

  .ribbon1 {
    background-color: #000f63;
  }
  .circle-image1 {
    width: 100%; /* 画像の幅を100%に設定 */
    height: 100%; /* 画像の高さをコンテナに合わせる */
    border-radius: 50%; /* 画像を円形にする */
    object-fit: cover; /* 画像をコンテナに収める */
    border: 5px solid #8e92a7; /* 円のふちに線を追加 */
  }

  .btn-link1 button {
    display: inline-block;
    padding: 10px 50px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background-color: #000f63;
  }

  p.text_p_1 {
    text-align: left;
  }

  .slick-list.draggable {
    padding-bottom: 50px;
    overflow: hidden; /* 横スクロールを防ぐ */
  }

  .text444 {
    font-size: 30px;
    line-height: 2.5rem;
    margin: 30px 0;
  }

  ul.slider {
    padding: 0;
  }

  .full-width-background2 {
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
  }

  .full-width-background2::before {
    border-top-left-radius: 50% 30px; /* 左上角をさらに緩やかにする */
    border-top-right-radius: 50% 30px; /* 右上角をさらに緩やかにする */
  }

  .full-width-background2 .content-wrapper1 {
    position: relative; /* 擬似要素のために相対位置を設定 */
    z-index: 2; /* 擬似要素の前面に配置 */
    max-width: 1200px; /* コンテンツの最大幅を設定 */
    margin: 0 auto; /* コンテンツを中央に配置 */
    padding: 0 20px; /* 左右のパディングを追加 */
  }

  #hiddenText,
  #hiddenText2 {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 表示する行数を指定 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #hiddenText.show,
  #hiddenText2.show {
    -webkit-line-clamp: unset; /* 行数制限を解除 */
  }

  .card {
    height: auto; /* 高さを自動調整 */
  }

  .text_p {
    height: auto; /* 高さを自動調整 */
  }

  .grad-wrap {
    position: relative;
  }

  .grad-btn {
    display: inline-block;
    padding: 10px 50px;
    font-size: 16px;
    color: #fff;
    background-color: #f54768;
    border: none;
    border-radius: 50px;
    cursor: pointer;
  }
  .grad-btn1 {
    background-color: #000f63;
  }

  .grad-btn::before {
    content: "続きを読む";
  }
  .grad-btn2::before {
    content: "もっと読む";
  }

  .grad-item {
    position: relative;
    overflow: hidden;
    height: 80px; /* 隠した状態の高さ */
  }

  .grad-item::before {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px; /* グラデーションで隠す高さ */
    background: -webkit-linear-gradient(
      top,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.9) 50%,
      #fff 100%
    );
    background: linear-gradient(
      top,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(255, 255, 255, 0.9) 50%,
      #fff 100%
    );
    content: "";
  }

  .grad-trigger {
    display: none; /* チェックボックスは常に非表示 */
  }

  .grad-trigger:checked ~ .grad-btn::before {
    content: "閉じる"; /* チェックされていたら、文言を変更する */
  }

  .grad-trigger:checked ~ .grad-item {
    height: auto; /* チェックされていたら、高さを戻す */
  }

  .grad-trigger:checked ~ .grad-item::before {
    display: none; /* チェックされていたら、grad-itemのbeforeを非表示にする */
  }

  .footer_bana {
    gap: 0;
    margin: 40px 0 0 0;
    flex-direction: column;
    align-items: center;
  }

  .footer_img img {
    width: 100%;
  }
  .footer_img {
    margin: 70px 0 50px 0;
  }

  .footer_bana img {
    width: 50%;
    margin-top: 25px;
  }
  .info_table {
    color: #ffffff;
    font-weight: 600;
  }
  .info_table dl {
    justify-content: center;
  }

  .info_table {
    margin: 15px 0;
    font-size: 0.7rem;
  }

  p.copyright {
    font-size: 0.8rem;
  }
  .custom-icon {
    width: 18px;
    height: 22px;
    margin: -5px;
    margin-right: 6px;
  }
}

/* スマートフォンだけ表示するスタイル */

@media screen and (max-width: 768px) {
  .sp-only {
    display: block; /* スマートフォンでは表示する */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 50px;
  }

  .pc-only {
    display: none; /* スマートフォンでは非表示にする */
  }
}
