/* 基本設定 */
/* ボックスモデルの統一 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* 1rem = 16px */
    line-height: 1.6;
    letter-spacing: 0.05em;
    font-family: "Noto Sans Japanese", Helvetica, Arial, sans-serif;
    color: #333;
    -webkit-text-size-adjust: 100%;
    /* iOSでのフォントサイズ自動調整防止 */
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 本文 */
p {
    font-size: 1rem;
    /* 16px */
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 1.618rem;
    /* 約26px */
}

/* h1 */
h1 {
    font-size: 3.125rem;
    /* 50px（黄金比より控えめ） */
    line-height: 1.3;
    font-weight: 700;
    margin-top: 5.854rem;
    /* 約94px */
    margin-bottom: 1.625rem;
    /* 26px */
}

/* h2 */
h2 {
    font-size: 2.625rem;
    /* 42px */
    line-height: 1.4;
    font-weight: 700;
    margin-top: 4.236rem;
    /* 約68px */
    margin-bottom: 1.625rem;
    /* 26px */
}

/* h3 */
h3 {
    font-size: 1.625rem;
    /* 26px */
    line-height: 1.5;
    font-weight: 600;
    margin-top: 2.618rem;
    /* 約42px */
    margin-bottom: 1.25rem;
    /* 20px */
}

/* h4 */
h4 {
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.5;
    font-weight: 600;
    margin-top: 1.618rem;
    /* 約26px */
    margin-bottom: 1rem;
    /* 16px */
}

/* 画像やメディアの最大幅制限 */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    /* 余計な下マージン防止 */
}

/* リンクのスタイル初期化（必要に応じてカスタマイズ） */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
a:focus {
    text-decoration: underline;
    outline: none;
}

a:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* フォーム要素のフォント継承 */
input,
button,
textarea,
select {
    font: inherit;
}

/* 強制的にウェブフォントのスムージングを有効化（macOSなど） */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 不要なリストのマージン・パディング削除 */
ul,
ol {
    margin: 0;
    padding-left: 1.5rem;
    /* 好みで調整 */
}

/* 見出しと段落のフォントウェイトやマージン調整（必要に応じて） */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    margin: 0;
}

/* テーブルの基本スタイル */
table {
    border-collapse: collapse;
    width: 100%;
}

/* ユーザーセレクト禁止例（必要な場合のみ） */
/* .no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
} */

/* SECTION基本設定 */
.outer {
    padding: 80px 0;
}

.inner {
    width: 70%;
    /*文字量多い場合は80％*/
    margin: 0 auto;
}

/*表示管理*/
.flex {
    display: flex;
}

.pc-only {
    display: block;
}

.tb-only {
    display: none;
}

.sp-only {
    display: none;
}

.pc-none {
    display: none !important;
}

.tb-none {
    display: block;
}

.sp-none {
    display: block;
}

.none {
    display: none !important;
}

/*トップ画像：mainview*/
#mainview .single-mv {
    width: 100%;
    height: 90vh;
    object-fit: cover;
}

#mainview .outer {
    padding-top: 0;
}


@media (max-width: 1024px) {
    .inner {
        width: 85%;
    }

    .pc-only {
        display: none;
    }

    .tb-only {
        display: block;
    }

    .sp-only {
        display: none;
    }

    .pc-none {
        display: block;
    }

    .tb-none {
        display: none !important;
    }

    .sp-none {
        display: block;
    }

    .none {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* 全体を縮小 */
    }

    p {
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    h1 {
        font-size: 2.5rem;
        margin-top: 3.5rem;
        margin-bottom: 1.2rem;
    }

    h2 {
        font-size: 2rem;
        margin-top: 3rem;
        margin-bottom: 1.2rem;
    }

    h3 {
        font-size: 1.375rem;
        margin-top: 1.8rem;
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 1.125rem;
        margin-top: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .outer {
        padding: 50px 0;
    }

    .inner {
        width: 90%;
    }

    .pc-only {
        display: none;
    }

    .tb-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .pc-none {
        display: block;
    }

    .tb-none {
        display: block;
    }

    .sp-none {
        display: none !important;
    }

    .none {
        display: none !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
        /* さらに縮小 */
    }

    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.125rem;
        margin-top: 1.2rem;
        margin-bottom: 0.8rem;
    }

    h4 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.6rem;
    }

    .outer {
        padding: 30px 0;
    }

    .inner {
        width: 95%;
    }
}