
/* 全体に適用 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

p, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

img {
    vertical-align: bottom;
}

a {
    color: white;
    text-decoration: none;
}

.LeftAlign{
        text-align: left;
        font-size: 20px;
    }

.mainContents fieldset{
    text-align: left;
    font-size: 20px;
}

a:visited {
    color: white;
}

/* ヘッダー */
#header {
    background-color: rgba(200, 200, 200, 0.87);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    top: 0%;
    margin: 0 auto;
    width: 100%;
    height: 7%;
    position: fixed;
    display: flex;
    opacity: 0;
}
#header.visible {
    opacity: 1;
}

.head_img {
    margin-left: 2%;
    height: 90%;
    position: absolute;
}

/* フッター */
.footer {
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #000000;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    background-color: rgba(165, 165, 165, 0.774);
    display: none;
}

/* 背景 */
body {
    background: linear-gradient(to top, #308ec5, #96dcff);
    height: auto;
    min-height: 100vh;
    background-image: url('img/posterback.webp');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* トップイメージ */
.topImage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100vh;
}
.topImage img {
    max-width: 75%;
    height: auto;
}

/* メインコンテンツ */
.mainContents {
    width: 85%;
    margin: 5% auto 10% auto;
    padding: 7% 5%;
    background-color: rgba(255, 255, 255, 0.664);
    border-radius: 10px;
    font-size: 35px;
    text-align: center;
    font-weight: 600;
    overflow-x: hidden;
}
.mainContents h3 {
    text-decoration: underline;
    text-decoration-color: rgba(255, 115, 35, 0.986);
    text-decoration-thickness: 10px;
}
.mainContents a {
    color: blue;
}

/* メニュー（共通） */
.menuForPhone {
    z-index: 999;
    position: fixed;
    top: 7%;
    width: 100%;
    height: calc(100vh - 7%);
    background: linear-gradient(to top, rgba(67, 46, 95, 0.897), rgba(200, 200, 200, 0.89));
    overflow-y: auto;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    text-align: center;
}

.menuForPhone-section {
    width: 100%;
    padding: 20px 0;
    font-size: 28px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
}
.menuForPhone-section a {
    color: black;
    text-decoration: none;
}

/* メニューボタン */
.menuForPhone-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    pointer-events: auto;
    opacity: 1;
    z-index: 1000;
    background-image: url('img/menu_icon_black.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    visibility: visible;
}
.menuForPhone-button.open {
    background-image: url('img/menu_icon.webp');
}

/* クリック領域 */
.anywayClose {
    left: 20%;
    top: 0;
    position: fixed;
    width: 80%;
    height: 7%;
    border: none;
    background: #007bff00;
}

/* SNS */
.SNScontainer {
    text-align: left;
}

/* Google Map */
.googlemap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
}
.googlemap iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

/* メッセージ */
.message-container {
    margin-top: 15%;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}
.message-container a {
    display: block;
    margin-top: 10px;
    color: #333;
    text-decoration: underline;
}
.message-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* フォーム */
textarea {
    padding-top: 10px;
    resize: none;
    font-size: 18px;
    padding-bottom: 8px;
    width: calc(100% - 20px);
    margin-left: 0px;
    display: block;
}
input[type="submit"] {
    width: 200px;
    height: 50px;
    font-size: 18px;
    margin-top: 30px;
    margin-left: 0px;
    display: block;
}
input[type="text"],
input[type="email"] {
    margin-left: 0px;
    width: 250px;
    font-size: 18px;
    padding: 10px;
    box-sizing: border-box;
}

/* PC向け */
@media screen and (min-width: 1000px) {
    .topImage img {
        max-width: 40%;
    }

    .mainContents {
        width: 70%;
        font-size: 30px;
    }

    .menuForPhone-button {
        position: fixed;
        top: 10px;
        right: 20px;
        left: auto;
        width: 60px;
        height: 60px;
        background-image: url('img/menu_icon_black.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        cursor: pointer;
        opacity: 1;
        visibility: visible;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .menuForPhone-button.open {
        background-image: url('img/menu_icon.webp');
    }

    .menuForPhone {
        z-index: 100;
        position: absolute;
        top: 5%;
        right: 0;
        left: auto;
        width: 400px;
        max-height: 95vh;
        overflow-y: auto;
        background: linear-gradient(to bottom, rgba(67, 46, 95, 0.97), rgba(255, 255, 255, 0.92));
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        text-align: center;
    }

    .menuForPhone.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menuForPhone-section {
        font-size: 24px;
        padding: 25px 0;
        background-color: rgba(45, 50, 51, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .menuForPhone-section a {
        color: white;
    }
}

#container {
    column-count: 3;
}

.List {
    font-size: 20px;
}

.List .section a {
    font-size: 18px;
}

/* スマートフォン向け（幅が999px以下） */
@media screen and (max-width: 999px) {
    .mainContents {
        font-size: 24px;
        padding: 5% 3%;
    }

    .mainContents h2 {
        font-size: 28px;
    }

    .mainContents h3 {
        margin-top: 0;
        font-size: 24px;
    }

    .mainContents h4 {
        font-size: 20px;
        text-align: right;
    }

    .SNScontainer p, .mainContents p {
        font-size: 21px;
        margin-left: auto;
        margin-right: 0;
        margin-bottom: 0;
    }

    .menuForPhone {
        transform: translateX(-100%);
        left: 0;
        right: auto;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .menuForPhone.open {
        transform: translateX(0);
    }

    .imageTextRow {
        flex-direction: column;
        align-items: flex-start;
    }

    .imageTextRow img.gate {
        max-width: 100%;
    }

    .textLeft {
        width: 100%;
    }

    .video {
        max-width: 100%; /* スマートフォンでは常に100%にする */
        height: auto;
        margin-left: auto; /* 中央寄せ */
        margin-right: auto; /* 中央寄せ */
    }
}

.table-responsible {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* 表本体 */
.table-responsible table {
  min-width: 900px;
  width: max-content;
  border-collapse: collapse;
  background-color: white;
  font-size: 18px;
}

/* 見出し行 */
.table-responsible th {
  background-color: #007acc;
  color: white;
  padding: 12px 15px;
  border: 1px solid #ccc;
  text-align: left;
  white-space: nowrap;
}

/* データ行 */
.table-responsible td {
  padding: 10px 15px;
  border: 1px solid #ccc;
  background-color: #fdfdfd;
  white-space: nowrap;
  vertical-align: top;
  text-align: left;
}

/* 行を交互に色付け */
.table-responsible tr:nth-child(even) td {
  background-color: #f3faff;
}

/* テーブル全体 */
.table-responsible table {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.network_logo {
    max-width: 100%;
    height: 180px;
    width: 180px;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.gate {
    max-width: 100%;
    height: 300px;
    width: 500px;
    display: block;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.video {
   width: 100%; /* 親要素の幅に合わせて100%にする */
    max-width: 400px; /* PCでの最大幅を設定（お好みのサイズに調整してください） */
    height: auto; /* 幅に合わせて高さを自動調整する */
    display: block;
    margin-left: auto;
    margin-right: auto; /* 中央寄せにする場合はautoに変更 */
}

.imageTextRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap; /* 画面が狭いとき自動で折り返す */
}

.imageTextRow img.gate {
    width: 100%;
    max-width: 300px;
    height: auto;
    flex-shrink: 0;
}

.textLeft {
    flex: 1;
    font-size: 21px;
    min-width: 200px;
}

.imageColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    flex-shrink: 0;
}

.caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}