html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

body {
    color: #4B3832;
    background-image: url('img/bg.png');
    background-repeat: repeat-y;         /* ← 縦方向だけ繰り返す */
    background-position: center top;     /* ← 横中央・縦上部に配置 */
    background-size: 100% auto;          /* ← 横幅100%、縦は自動 */
    font-family: Meiryo;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 任意の余白 */
}

#explanation {
    display: none;
}

.gradient-hr {
    width: 90%;
    max-width: 650px; /* 最大幅を指定 */
    margin: 30px auto;
    border: none;
    height: 5px;
    background: linear-gradient(to right, #22CC00, #FFD700);
}

a {
    color: #336699;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF9900;
    text-decoration: underline;
}

small {
    color: #FF0000;
}

strong {
    font-size: 180%;
}

@media screen and (max-width: 600px) {
    strong {
        font-size: 120%;
        font-weight: normal; /* 必要なら太さも調整 */
    }
}

.logo {
    padding: 10px;
    text-align: left;
}

/* ハンバーガー */
.bar {
    width: 30px;
    height: 4px;
    background-color: #FF9900;
    margin: 4px 0;
}

/* モバイルサイズ用のスタイル */
@media (max-width: 1024px) {

    .menu-container {
        position: relative;
        background-size: cover;
        padding-bottom: 100px;
    }

    .title_header {
        background-image: url('subback.png');
        background-size: cover;
        background-position: center center;  /* ここが“中央固定”の肝！ */
    }

    .hamburger {
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
    }

    .hamburgermenu {
        display: none;
        position: absolute;
        top: 50px;
        right: 0; /* メニューを右側に移動 */
        background-color: white;
        border: 1px solid #ccc;
        padding: 10px;
        z-index: 1;
        text-decoration: underline;
        text-align: left;
    }

    ul.horizontal-list li {
        list-style-type: none; /* リストマーカー（「・」など）を非表示にする */
    }

    .no-break {
        white-space: nowrap;
    }


    h1 {
        color: #0080ff;
        padding-bottom: 30px;
        text-shadow:
            2px 2px 2px #ffff00, -2px -2px 2px #ffff00,
           -2px 2px 2px #ffff00,  2px -2px 2px #ffff00,
            2px 0px 2px #ffff00, -2px -0px 2px #ffff00,
            0px 2px 2px #ffff00,  0px -2px 2px #ffff00;
    margin: 0;
    }

    .year {
        font-size: 0.6em;
    }

    .catch {
        font-size: 0.8em;
    }

    .title {
        font-size: 1.8em;
        font-weight: 800;
        line-height: 1.2;
        padding-top:30px;
        max-width: 800px;
        margin: auto;
    }

    .title img { width: 100%; }

    .recruit {
        font-size: 1.4em;
        font-weight: 800;
        line-height: 1.2;
    }


}

/* PCサイズ用のスタイル */
@media (min-width: 1025px) {

    .menu-container {
        position: relative;
        background-size: cover;
        background-position: center center;  /* ここが“中央固定”の肝！ */
        max-width: 1025px;        /* 横幅の限界値を指定 */
        margin: 0 auto;          /* 中央寄せ（中央固定に必要！） */
    }

    .title_header {
        background-image: url('subback.png');
        background-size: cover;
        background-position: center center;  /* ここが“中央固定”の肝！ */
        border-top: 10px solid #fff;
        border-bottom: 10px solid #fff;
    }

    .hamburger {
        display: none; /* ハンバーガーアイコンを非表示に */
    }

    ul {
        list-style: none;
        padding: 0;
    }

    /* リストアイテムを横並びにするスタイル */
    ul.horizontal-list li {
        display: inline-block;
        margin-right: 3px; /* アイテム間の余白を調整 */
    }

    .menu-button {
        margin: 10px;
        padding: 12px;
        border: 2px solid #336699;
        background-size: cover;
        background-position: center;
        background-color: #fff;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        font-weight: bold;
        cursor: pointer;
    }

    .menu-button:hover {
        background-color: #fff; /* ホバー時に真っ白に */
        color: #336699; /* ホバー時の文字色をネイビーに */
        border: 2px solid #FFA500;
    }

    h1 {
        color: #0080ff;
        padding-bottom: 30px;
        text-shadow:
            2px 2px 2px #ffff00, -2px -2px 2px #ffff00,
           -2px 2px 2px #ffff00,  2px -2px 2px #ffff00,
            2px 0px 2px #ffff00, -2px -0px 2px #ffff00,
            0px 2px 2px #ffff00,  0px -2px 2px #ffff00;
    margin: 0;
    }

    .year {
        font-size: 1.0em;
    }

    .catch {
        font-size: 1.2em;
    }

    .title {
        font-size: 1.8em;
        font-weight: 800;
        line-height: 1.2;
        padding-top:30px;
        max-width: 800px;
        margin: auto;
    }

    .title img { width: 100%; }

    .recruit {
        font-size: 2em;
        font-weight: 800;
        line-height: 1.2;
    }

}

p {
    margin: 5px auto; /* 上下に5pxの余白、左右は自動中央配置 */
    padding: 10px; /* 余白を枠内に追加 */
    width: 80%; /* 幅を80%に設定 */
    background-color: #fff; /* 背景色を白に設定 */
    border: none; /* ボーダーを無しに設定 */
}

.highlighted {
    font-size: 120%;
    font-weight: bold; /* テキストを太字にする */
    border: 3px dotted #22CC00; /* テキストの下に波線を引く */
    color: #6D4C41;
}

/* サイドの余白調整 */

.description {
    box-sizing: border-box;         /* ← 余白込みで幅を計算 */
    max-width: 820px;               /* ← 最大幅を固定 */
    width: 100%;                    /* ← 親要素に合わせて柔軟に縮む */
    margin: 30px auto;              /* ← 中央寄せ */
    font-size: 110%;
    border: 2px solid #89c997;
}

h2 {
    color: yellow;
    /* 縁取りが滑らかになるように影の数を増やす */
    text-shadow:
        -1px -1px 0 red,
        1px -1px 0 red,
        -1px 1px 0 red,
        1px 1px 0 red,
        -2px 0 0 red,
        2px 0 0 red,
        0 -2px 0 red,
        0 2px 0 red;
    /* その他スタイルは元のままでOK */
    margin: 3px auto;
    padding: 10px;
    width: 85%;
    max-width: 800px;
    font-size: 200%;
}

.main-content {
    width: 100%; /* 幅を100%に設定 */
    max-width: 820px; /* 最大幅を指定 */
    margin: 5px auto; /* 上下に5pxの余白、左右は自動中央配置 */
    padding: 10px; /* 余白を枠内に追加 */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の白背景 */
    box-sizing: border-box;
    border: 5px solid #fff;
    border-radius: 24px;
}

.main-content div {
    font-size: 1rem;
    line-height: 1.6;
}

.main-content a {
    color: white;
}

.sub-content {
    width: 100%; /* 幅を100%に設定 */
    max-width: 800px; /* 最大幅を指定 */
    margin: 5px auto; /* 上下に5pxの余白、左右は自動中央配置 */
    padding: 10px; /* 余白を枠内に追加 */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の白背景 */
    box-sizing: border-box;
    border: 5px solid #fff;
    border-radius: 24px;
    text-align: left;

}

.sub-content-font {
    font-size: 140%;
}

@media screen and (max-width: 1024px) {
    .img-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .img-container a {
        width: 90%; /* スマホでも見やすく */
        max-width: 300px;
    }
}

/* PC表示（1025px以上）で上1つ・下2つに並べる */
@media screen and (min-width: 1025px) {
    .img-container {
        display: grid;
        margin-top: 20px;
        grid-template-columns: 300px 300px;
        grid-template-rows: auto auto;
        column-gap: 20px;
        justify-content: center;
    }

    .img-container a:nth-child(1) {
        grid-column: 1 / span 2;
        justify-self: center;
    }

    .img-container a:nth-child(2),
    .img-container a:nth-child(3) {
        justify-self: start; /* ←左右に寄せる */
    }
}

.center {
    text-align: center;
}

.leftbox {
    text-align: left;
    margin: 3px;
}

.main-content-box {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明の白背景 */
    padding: 10px;
    max-width: 800px;        /* 横幅の限界値を指定 */
    margin: 0 auto;          /* 中央寄せ（中央固定に必要！） */
}

.box {
    padding: 5px;
    text-shadow: 2px  2px 3px RGB(255, 255, 255),
                -2px  2px 3px RGB(255, 255, 255),
                 2px -2px 3px RGB(255, 255, 255),
                -2px -2px 3px RGB(255, 255, 255);
}

.rightbox {
    float: right;
    margin: 3px 3px 3px 10px;
    font-size: 30%;
}

.footer {
    margin: 5px auto; /* 上下に5pxの余白、左右は自動中央配置 */
    padding: 10px; /* 余白を枠内に追加 */
    background-color: #fff; /* 背景色を白に設定 */
    border: none; /* ボーダーを無しに設定 */
    max-width: 800px;        /* 横幅の限界値を指定 */
    margin: 0 auto;          /* 中央寄せ（中央固定に必要！） */
}

.copyright {
    margin: 5px auto; /* 上下に5pxの余白、左右は自動中央配置 */
    padding: 10px; /* 余白を枠内に追加 */
    border: none; /* ボーダーを無しに設定 */
    font-size: 50%;
    max-width: 800px;        /* 横幅の限界値を指定 */
    margin: 0 auto;          /* 中央寄せ（中央固定に必要！） */
    background: linear-gradient(to right, #22CC00, #FFD700);
}

.link-button {
    margin: 10px 70px;
    padding: 10px 15px;
    border: 2px solid #fff;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    border-color: #336699;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.link-button:hover {
    background-color: #fff; /* ホバー時に真っ白に */
    border-color: #FFA500; /* ホバー時のボーダーカラーをオレンジに */
}
.link-button1 {
  padding: 40px 35px 20px;
  border-radius: 30px; /* 50% で丸い形になります */
  background-size: cover;
  background-position: center;
  color: white;
  background-color: #9EA300;
  box-shadow: 0 10px 0 #777A00;
  border-radius: 60px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  font-weight: bold;
  font-size: 150%;
  cursor: pointer;
}

.link-button1:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.oubo2 {
    display: flex;
    justify-content: space-between;
    margin: 0px 50px 50px 50px;
}

.main-content div .oubo2-yoko{
    font-size: 2.5em;
    color: #E67015;
    height:140px;
    line-height:140px;
}

.oubo-button1 {
    margin: 0px 50px 30px;
    padding: 35px 30px 30px;
    border-radius: 30px; /* 50% で丸い形になります */
    background-size: cover;
    background-position: center;
    background-color: #3FA145;
    box-shadow: 0 10px 0 #338238;
    border-radius: 60px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.oubo-button1:hover {
    box-shadow: none;
    transform: translateY(5px);
    text-decoration: none;
}

.oubo-button1 a {
    text-decoration: none;
    color: #fff; /* 必要に応じて色も継承 */
}

.oubo-button2 {
    padding: 40px 35px 20px;
    border-radius: 30px; /* 50% で丸い形になります */
    background-size: cover;
    background-position: center;
    background-color: #9EA300;
    box-shadow: 0 10px 0 #777A00;
    border-radius: 60px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.oubo-button2:hover {
    box-shadow: none;
    transform: translateY(5px);
    text-decoration: none;
}

.oubo-button2 a {
    text-decoration: none;
    color: #fff; /* 必要に応じて色も継承 */
}

.oubo-button3 {
    margin: 50px;
    padding: 50px;
    border-radius: 10px; /* 50% で丸い形になります */
    background-size: cover;
    background-position: center;
    background-color: #000;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.oubo-button3:hover {
    box-shadow: none;
}

.oubo-button4 {
    margin: 0px 50px 30px;
    padding: 35px 30px 30px;
    border-radius: 30px; /* 50% で丸い形になります */
    background-size: cover;
    background-position: center;
    background-color: #3FA145;
    box-shadow: 0 10px 0 #338238;
    border-radius: 60px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.oubo-button4:hover {
    box-shadow: none;
    transform: translateY(5px);
    text-decoration: none;
}

.oubo-button4 a {
    text-decoration: none;
    color: #fff; /* 必要に応じて色も継承 */
}

.oubo-button5 {
    padding: 40px 35px 20px;
    border-radius: 30px; /* 50% で丸い形になります */
    background-size: cover;
    background-position: center;
    background-color: #9EA300;
    box-shadow: 0 10px 0 #777A00;
    border-radius: 60px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
    font-size: 150%;
    cursor: pointer;
}

.oubo-button5:hover {
    box-shadow: none;
    transform: translateY(5px);
    text-decoration: none;
}

.oubo-button5 a {
    text-decoration: none;
    color: #fff; /* 必要に応じて色も継承 */
}

.popup-text1 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.oubo-button1:hover + .popup-text1 {
    display: block;
}

.popup-text2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.oubo-button2:hover + .popup-text2 {
    display: block;
}

.popup-text3 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.oubo-button3:hover + .popup-text3 {
    display: block;
}

.form_table {
    margin: 10px;
    text-align: left;
}

table {
    margin-bottom: 20px;
    width: 83%;
    margin:0px auto 20px;
    border-collapse: collapse;
    border-spacing: 0;
}

th {
    background-color: #F2F2F2;
    padding:6px;
}

td {
    background-color: #E0F8DA;
}

.waku {
    border: 1px solid #8B5A2B;
}

.white {
    background-color:  rgba(255,255,255,0);
    text-align: left;
}

.table-right {
    text-align:right;
}

.table-left .table-right{
    white-space:nowrap;
}

.ash {
    margin: 0;
    padding: 3px;
    font-weight: bold;
    background-color: #F2F2F2;
    border: 1px solid #fff;
}

.textfield {
    width: 350px;
}

.no-link {
    pointer-events: none;
    text-decoration: none;
    color: #4B3832;
}

/* 画面トップへのボタン */
#back-to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    opacity: 0.7;
    cursor: pointer;
}

/* 画面トップへのボタン画像を設定 */
#back-to-top {
    background: url('img/backtotop.png') no-repeat center center;
    width: 50px;
    height: 50px;
}
