main {
    padding-top: 80px; /* ヘッダーの高さ分余白を追加 */
}

/* SNSセクション */
.sns-section {
    display: flex;
    justify-content: center; /* 間隔を均等に配置 */
    align-items: center;
    margin: 40px;
    gap: 40px; /* 間隔を狭くする */
}

/* SNSアイテム */
.sns-item {
    color: #367df8; /* 通常アイコン色 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* アイコンとテキスト間の距離 */
}

/* SNSリンクボタン間隔調整 */
.sns-link {
    color: #367df8;
    text-decoration: none;
    padding: 4px 6px; /* コンパクトに間隔を調整 */
    gap: 10px; /* アイコンとテキスト間の距離 */
}

/* SNSリンクアイコンサイズ調整 */
.sns-link i {
    font-size: 48px; /* アイコンの大きさを変更（48pxは例） */
}

/* SNSアイコンホバーエフェクト */
.sns-link:hover {
    transform: scale(1.1); /* アイコンが少し大きくなるエフェクト */
    color: #ff963b;
}

/* テキストリンク */
.sns-text-link {
    white-space: nowrap; /* テキストが折り返さないように */
    color: #367df8;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* テキストリンクホバー */
.sns-text-link:hover {
    color: #fa904e;
}


  /* トップに戻るボタン */
  html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fbfbfb;
    border: solid 2px #2546ef;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #3293e7;
    }
}
@media (max-width: 768px) {
    .pagetop {
        height: 40px;
        width: 40px;
        position: fixed;
        right: 10px;
        bottom: 10px;
        background: #354d65;
        border: solid 2px #000;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
    }
    
    .pagetop__arrow {
        height: 10px;
        width: 10px;
        border-top: 3px solid #000;
        border-right: 3px solid #000;
        transform: translateY(20%) rotate(-45deg);
    }
}

 /* モバイル対応（768px以下） */
 @media (max-width: 768px) {
    body {
        font-size: 14px; /* フォントサイズを小さくする */
        margin: 0 24px; /* 両側の余白を追加（15pxずつ） */
        max-width: 100%; /* 幅を画面いっぱいに */
        padding: 10px; /* 内容の内側の余白を少し狭く */
    }

    /* 見出しのフォントサイズを縮小 */
    h1 {
        font-size: 20px; /* 大見出しのサイズ */
    }

    h2 {
        font-size: 22px; /* 中見出しのサイズ */
    }

    h3 {
        font-size: 16px; /* 小見出しのサイズ */
    }

    h4 {
        font-size: 16px; /* 小見出しのサイズ */
    }

    h5 {
        font-size: 12px; /* 小見出しのサイズ */
    }

    p {
        font-size: 14px; /* 小見出しのサイズ */
    }

    /* ナビゲーションメニューのフォントサイズを調整 */
    .nav-menu a {
        font-size: 14px; /* メニューリンクの文字サイズ */
    }

    /* フッターのフォントサイズ */
    footer {
        font-size: 8px; /* フッターの文字サイズをさらに縮小 */
    }
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
}