@charset "utf-8";

*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.target {
    scroll-margin-top: 70px;
}

body {
    color: #000000;
font-family: "BIZ UDPMincho", serif;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

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

a:hover {
    opacity: 0.6;
}

.w-container{
    max-width: 1100px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

header {
    height: 70px;
    inset: 0;
    position: fixed;
    z-index: 9999;
    background-color: #ffffff;
    opacity: 0.9;
    box-shadow: 0 0 15px -5px #777777;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.logo {
    font-family: "BIZ UDPMincho", serif;
    font-weight: 700;
    font-size: 42px;
    color: #000000;
}

.header-container ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    font-family: "BIZ UDPMincho", serif;
    font-weight: 700;
    font-size: 20px;
    color: #000000;
    list-style: none;
}

header img {
    height: 70px;
}

.main-visual {
    margin-top: 70px;
    padding: 16px;

    /* フォールバック（古いブラウザ） */
    height: calc(100vh - 70px);

    /* 対応ブラウザではこっちが勝つ */
    height: calc(100dvh - 70px);

    display: flex;
    align-items: flex-end;
    background-image: url(../images/main.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
}

.main-visual-text {
    text-align: right;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
}

.main-visual-text p {
    font-size: 19px;
}

.main-visual h1 {
    font-family: "BIZ UDPMincho", serif;
    font-weight: 700;
    font-size: 100px;
    line-height: 1;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

#news {
    background-color: rgb(176, 0, 0);
}

h2 {
    margin-bottom: 1em;
    font-family: "BIZ UDPMincho", serif;
    font-weight: 700;
    text-align: center;
    color: #000000;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-item {
    background-color: #ffffff;
    height: 100%;
}

.news-text h3 {
    margin: 0.5em;
    line-height: 0.5em;
}

.news-item time {
    margin-right: 0.5em;
    padding: 0.2em 1em;
    font-size: 14px;
    background-color: #777777;
    color: #ffffff;
    border-radius: 20px;
}

.news-item p {
    margin: 0.5em;
}

.news-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.news-container a {
    display: block;
}

.more {
    margin-top: 1em;
    color: #ffffff;
    text-align: right;
}

.menu-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    list-style: none;
}

.about-text {
    margin-bottom: 1em;
    font-family: "BIZ UDPMincho", serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    padding: 40px;
    color: #000000;   
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-area: 24px;
    margin-bottom: 30px;
}

.menu2-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-area: 24px;
}

.access-container {
    display: flex;
    gap: 36px;
    justify-content: space-between;
    align-items: center;
}

iframe {
    width: 50%;
    height: 300px;
}

.access-container table {
    border-collapse: collapse;
}

.access-container tr {
    border-bottom: 1px solid #000000;
}

.access-container tr:last-child {
    border-bottom: none;
}

.access-container th {
    padding: 1em;
}

.access-container td {
    padding: 1em;
    border-left: 1px solid #000000;
}

footer {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: rgb(176, 0, 0);
    color: #ffffff;
    text-align: center;
}


/* SP */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-item img {
        aspect-ratio: 4 / 3;
    }
}