@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    color: #383e45;
    font-size: 1rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

.site-title {
    width: 340px;
    line-height: 1px;
    padding: 10px 0;
}

.site-title a {
    display: block;
}

.section-title {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 60px;
    border-bottom: solid 1px #383e45
}

.content-title {
    font-size: 1rem;
    margin: 10px 0;
}

.wrapper {
    /*max-width: 960px;*/
    margin: 0 auto;
    padding: 0 4%;
    text-align: center;
}

/*-----------------
Header (PC)
-----------------*/
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    background-image: url(../img/headerbg.png);
    height: 110px;
}

#header ul {
    display: flex;
    padding: 10px 0;
}

#header li {
    margin-left: 30px;
}

#header li a {
    color: #fff;
    font-size: 1.2rem;
}

#header li a:hover {
    opacity: 0.7;
}

/*-----------------
Mainvisual
-----------------*/
#mainvisual {
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 110px);
}

#mainvisual img {
    width: 100%;
    max-width: 1920px;
    object-fit: cover;
}

#mainvisual .mv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

#mainvisual .mv.active {
    opacity: 1;
    z-index: 1;
}

.hamburger,
#sp-nav {
    display: none;
}

.mv-catch {
    display: block;
    position: absolute;
    bottom: 40px;
    right: 20px;
    z-index: 10;
    color: #fff;
    text-align: left;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.mv-catch .main-copy {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
}

.mv-catch .sub-copy {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/*-----------------
News
-----------------*/
#news {
    text-align: center;
    max-width: 960px;
}

.news-list {
    max-width: 100%;
    margin: 0 auto;
}

.news-list li {
    display: flex;
    border-bottom: solid 1px #ccc;
    padding: 15px 0;
    font-size: 1rem;
}

.news-list time {
    width: 110px;
    color: #777;
    flex-shrink: 0;
}

.news-list p {
    margin: 0;
    text-align: left;
}

/*-----------------
Recommend (Slider)
-----------------*/
.recommend {
    margin-bottom: 100px;
    overflow: hidden;
}

#recommend {
    margin-top: 70px;
}

.slider-container {
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: continuous-scroll 30s linear infinite;
}

.slider-item {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
    cursor: pointer;
    /* タップ可能であることを示すポインター */
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

@keyframes continuous-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media screen and (min-width: 821px) {
    .slider-item {
        width: 40vw;
    }
}

@media screen and (max-width: 820px) {
    .slider-item {
        width: 50vw;
    }

    .recommend {
        margin-bottom: 80px;
    }
}

/*-----------------
About
-----------------*/
#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .text {
    text-align: left;
    width: 400px;
}

#about .flex-list {
    display: flex;
    flex-wrap: wrap;
}

#about .text dt {
    width: 20%;
    /*
    text-align: justify;
    text-align-last: justify;
    */
}

#about .text dd {
    width: 80%;
}

/*-----------------
Access (Google Maps Responsive)
-----------------*/
#access {
    margin: 70px auto;
}

/* Googleマップのレスポンシブ化 */
#access iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* 横長の比率を維持 */
    vertical-align: bottom;
}

#access ul {
    display: flex;
    justify-content: space-between;
}

#access li {
    width: 32%;
}

/*-----------------
Footer & Others
-----------------*/
#footer {
    font-size: 0.8rem;
    padding: 10px 0;
    text-align: center;
}

html {
    scroll-behavior: auto;
}

.page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(56, 62, 69, 0.9);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.page-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -30%) rotate(45deg);
}

/*-----------------
For SP (Max-width: 820px)
-----------------*/
@media screen and (max-width: 820px) {
    #header {
        display: none;
    }

    #mainvisual {
        height: 100vh;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
        z-index: 100;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 11px;
    }

    .hamburger span:nth-child(3) {
        top: 22px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    #sp-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(36, 41, 46, 0.95);
        z-index: 90;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
    }

    #sp-nav.active {
        opacity: 1;
        visibility: visible;
    }

    #sp-nav ul {
        text-align: center;
    }

    #sp-nav li {
        margin: 30px 0;
    }

    #sp-nav a {
        color: #fff;
        font-size: 1.4rem;
        font-weight: bold;
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* スマホでは地図の比率を少し縦長に調整 */
    #access iframe {
        aspect-ratio: 4 / 3;
    }

    #access ul {
        flex-direction: column;
    }

    #access li {
        width: 100%;
        margin-bottom: 30px;
    }
}

/*-----------------
追加：モーダルウィンドウ
-----------------*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    /* ページトップボタン(1000)より前面に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* モーダル表示時のフェードイン用クラス */
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 100%;
    padding: 40px 30px 30px;
    box-sizing: border-box;
    border-radius: 8px;
    z-index: 2010;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: left;
}

/* モーダル表示時に中身を少し浮かせるアニメーション */
.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #383e45;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    gap: 20px;
}

.modal-body img {
    width: 50%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    /*max-height: 250px;*/
}

.modal-text {
    width: 50%;
    color: #383e45;
}

.modal-text h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: bold;
    border-bottom: solid 1px #383e45;
    padding-bottom: 5px;
}

.modal-text p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* SP・タブレット向けのモーダル内レイアウト（横並び） */
@media screen and (max-width: 600px) {
    .modal-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-body img {
        width: 95%;
        max-height: none;
    }

    .modal-text {
        width: 95%;
    }

    .modal-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    #about .text {
        width: auto;
    }

    #about .text dt {
        width: 100%;
        font-weight: bold;
    }

    #about .text dd {
        width: 100%;
        margin-bottom: 20px;
    }

    #about .flex-list {
        flex-direction: column;
    }
}