@charset "UTF-8";

.contactInfo {
    margin-bottom: 60px;
}
.main {
    padding-bottom:70px;
}
.caution {
    width: min(100% - var(--pad), var(--max));
    margin-inline: auto;
}

.desc {
    text-align: right;
    font-size: 12px;
}

@media (min-width: 1024px) {
    .main {
        padding-bottom:100px;
    }
    .desc {
        font-size: 14px;
    }
}

.text {
    font-size: 13px;
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .text {
        font-size: 16px;
        margin-top: 30px;
        font-weight: var(--fw5);
    }
}

.h1 {
    text-transform: uppercase;
    text-align: center;
    font-weight: var(--fw7);
    line-height: 1.2;
    position: relative;
    font-size: 22px;
    letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
    .h1 {
        font-size: 32px;
    }
}

.h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    width: 1px;
    background-color: var(--white);
    top: 115px;
    height: 60px;
}

@media (min-width: 1024px) {
    .h1::after {
        top: 80px;
        height: 100px;
    }
}

.body {
    width: min(100% - var(--pad), var(--max));
    margin-inline: auto;
    margin-top: 60px;
    background-color:#ffffff;
    padding:30px;
    border-radius:20px;
}

  

dl {
    margin-top: 20px;
}

@media (min-width: 1024px) {
    dl {
        margin-top: 30px;
    }
}

dl dt h2::before {
    content:"・";
    margin-right: 10px;
}

dl dt {
    position: relative;
}

dl dt::after {
    content: "";
    position: absolute;
    top: 7px;
    display: inline-block;
    width: 27px;
    height: 18px;
    background-image: url(/src/images/svg/ufo.svg);
    left: -40px;
}

dl dt h2 {
    font-size: 16px;
    font-weight: var(--fw7);
}

@media (min-width: 1024px) {
    dl dt h2 {
        font-size: 18px;
    }
}

dl dd {
    margin-top: 15px;
}

dl dd p {
    font-size: 13px;
}

@media (min-width: 1024px) {
    dl dd p {
        font-size: 14px;
    }
}

dl dd ol li {
    margin-top: 5px;
    font-size: 13px;
}

@media (min-width: 1024px) {
    dl dd ol li {
        font-size: 14px;
    }
}

dl dd ol li h3 {
    margin-top: 20px;
    font-size: 14px;
    font-weight: var(--fw7);
}

@media (min-width: 1024px) {
    dl dd ol li h3 {
        margin-top: 30px;
        font-size: 16px;
    }
}

dl dd ol li:first-child h3 {
    margin-top: 15px;
}

.katakana {
    margin-top: 15px;
}

@media (min-width: 1024px) {
    .katakana {
        margin-top: 15px;
    }
}

.katakana li {
    position: relative;
    padding-left: 35px;
}

.katakana li::before {
    display: inline-block;
    position: absolute;
    left: 0;
}

.katakana li:first-child::before {
    content: "ア.";
}

.katakana li:nth-child(2)::before {
    content: "イ.";
}

.katakana li:nth-child(3)::before {
    content: "ウ.";
}

.katakana li:nth-child(4)::before {
    content: "エ.";
}

.contactInfo {
    margin-top: 15px;
    padding-left: 25px;
    border-left: 1px solid var(--white);
    width: min(100%, 390px);
}

.contactInfo h2 {
    font-size: 16px;
    font-weight: var(--fw7);
}

.contactInfo ul {
    margin-top: 10px;
}

.contactInfo ul li {
    font-size: 12px;
}

@media (min-width: 1024px) {
    .contactInfo ul li {
        margin-top: 3px;
    }
}

.content2 {
    max-width: 1000px;
    height: 340px;
    margin: 50px auto;
    position: relative;
  }
  
  .text2 {
    max-width: 680px;
    padding: 55px 160px 55px 84px;
    position: absolute;
    left: 0;
    background-color:white;
  }
  
  .text2 p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 35px;
  }
  .text2 .syousai{
    font-size:16px;
    z-index: 10;
    position: relative; /* 追加 */
  }
  .text2 .size{
    margin-bottom:10px;
  }
  /*
  「display: inline-block;」で下線をテキスト幅に合わせる。
  */
  .text2 .title {
    border-bottom: solid 1px #35383a;
    display: inline-block;
    font-size: 1.875rem;
    font-weight: normal;
    margin-bottom: 30px;
  }
  .text2 .large2 {
    font-size: 1.875rem;
    border-bottom: solid 3px #ffc778;
    position: relative;
    text-align: center;
  }
  .text2 .large2:after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 3px skyblue;
    bottom: -3px;
    width: 50%;
  }
  /*
  「display: inline-block;」でボタンをテキスト幅に合わせてから
  paddingでサイズを調整。
  「transition」で、ホバーをふわっとさせる。
  （※transitionの詳細については調べてみてくださいね。）
  */
  .text2 .btn {
    display: inline-block;
    border: solid 1px #35383a;
    border-radius: 30px;
    padding: 16px 50px;
    transition: all 0.3s ease;
  }
  .text2 .btn:hover {
    background-color: #efeded;
  }
  /*
  【要素の重ね合わせ（子要素）】
  「position: absolute;」と「top」「right」で、
  親要素の上から140px、右から20pxに配置。
  */
  .img2 {
    max-width: 400px;
    position: absolute;
    top: 60px;
    right: 20px;
    z-index:10;
  }
  /*
  「vertical-align: bottom;」で、画像の下の隙間を消す。
  「top」を指定してもOK。
  （※画像の下の隙間を消す方法は、実務でもよく使うので
  覚えておいてください。）
  */
  .img2 img {
    vertical-align: bottom;
    border-radius:20px;
    width:400px;
    height:310px;
  }

  @media (max-width: 1024px) {
    .service{
        padding:0px;
    }
    .content2 {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 100%;
      height: auto;
      margin: 20px auto;
    }
  
    .text2 {
      padding: 30px 20px;
      max-width: 90%;
      position: relative;
      background-color: white;
      text-align: center; /* 中央揃えに調整 */
    }
  
    .img2 {
      max-width: 100%;
      width: 90%; /* 画面に合わせてサイズを調整 */
      height: auto;
      margin-top: 20px;
      position: static;
      top: auto;
      right: auto;
      z-index: 1; /* Zインデックスを下げる */
    }
  
    .img2 img {
      width: 100%; /* 画像を親要素に合わせる */
      height: auto;
      border-radius: 10px; /* 画像の丸みを少し調整 */
    }
  }
  

  /* モバイル対応のためのメディアクエリ */
@media (max-width: 768px) {
    .h1 {
        font-size: 24px; /* 見出しのフォントサイズをモバイル向けに調整 */
        line-height: 1.3;
    }
  
    .text2 p {
        font-size: 16px; /* テキストのフォントサイズを調整 */
        line-height: 1.6;
        margin-bottom: 20px;
    }
  
    .text2 {
        padding: 20px 10px; /* パディングを小さくしてモバイル表示を最適化 */
        max-width: 100%;
    }
  
    .text2 .large2 {
        font-size: 20px; /* 見出しのフォントサイズを調整 */
    }
  
    .img2 {
        width: 100%; /* 画像の幅をデバイスに合わせて調整 */
        height: auto;
        margin-top: 15px;
    }
  
    .img2 img {
        width: 100%;
        height: auto;
        border-radius: 8px; /* 画像の角丸を小さく調整 */
    }
  
    .content2 {
        margin: 15px auto; /* マージンを減らしてモバイル表示をコンパクトに */
        padding: 10px;
    }
  
    dl dt h2 {
        font-size: 16px; /* ディフィニションリストの見出しを調整 */
    }
  
    dl dd p {
        font-size: 14px; /* ディフィニションリストの内容テキストを調整 */
    }
  
    .katakana li {
        font-size: 14px; /* 箇条書きのフォントサイズを調整 */
    }
  
    .contactInfo {
        margin-top: 10px; /* コンテナのマージンを減らしてスペースを確保 */
        padding-left: 15px;
        width: 90%;
        border-left: 1px solid var(--white);
    }
  
    .contactInfo h2 {
        font-size: 18px; /* 見出しを少し大きめに */
    }
  
    .contactInfo ul li {
        font-size: 14px; /* リストアイテムのフォントサイズを調整 */
        margin-top: 5px;
    }
  }
  
  /* タブレット対応のためのメディアクエリ */
  @media (min-width: 769px) and (max-width: 1024px) {
    .h1 {
        font-size: 28px; /* 見出しのフォントサイズをタブレット向けに調整 */
        line-height: 1.4;
    }
  
    .text2 p {
        font-size: 18px; /* テキストのフォントサイズを調整 */
        line-height: 1.7;
        margin-bottom: 25px;
    }
  
    .text2 {
        padding: 30px 20px; /* パディングを少し大きく調整 */
        max-width: 90%;
    }
  
    .text2 .large2 {
        font-size: 22px; /* 見出しのフォントサイズを調整 */
    }
  
    .img2 {
        width: 95%; /* 画像の幅をデバイスに合わせて調整 */
        height: auto;
        margin-top: 18px;
    }
  
    .img2 img {
        width: 100%;
        height: auto;
        border-radius: 10px; /* 画像の角丸を調整 */
    }
  
    .content2 {
        margin: 20px auto; /* マージンを減らして表示を最適化 */
        padding: 15px;
    }
  
    dl dt h2 {
        font-size: 18px; /* ディフィニションリストの見出しを調整 */
    }
  
    dl dd p {
        font-size: 16px; /* ディフィニションリストの内容テキストを調整 */
    }
  
    .katakana li {
        font-size: 16px; /* 箇条書きのフォントサイズを調整 */
    }
  
    .contactInfo {
        margin-top: 15px; /* コンテナのマージンを調整 */
        padding-left: 20px;
        width: 90%;
        border-left: 1px solid var(--white);
    }
  
    .contactInfo h2 {
        font-size: 20px; /* 見出しを少し大きめに */
    }
  
    .contactInfo ul li {
        font-size: 16px; /* リストアイテムのフォントサイズを調整 */
        margin-top: 8px;
    }
  }