* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0.1em;
}

body {
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 300;
    line-height: 1.6;
    background: none;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/top.jpg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.site-logo {
    height: 200px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .site-logo {
        height: 400px;
    }
}

.site-header nav {
    position: relative;
}

.nav-toggle {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: block;
}

.nav-menu {
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    position: absolute;
    top: 60px;
    right: 0;
    width: 140px;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.nav-menu a.current {
    position: relative;
    z-index: 1;
}

.nav-menu a.current::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 15px);
    height: 90%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    z-index: -1;
    pointer-events: none;
}

.nav-menu a:hover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 25px);
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: -1;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 24px;
        background: none;
        width: 455px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu a.current {
        border-bottom: none;
    }

    .site-header nav ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        list-style: none;
        gap: 40px;
        margin: 0;
        padding: 0;
    }

    .site-header nav ul li a {
        position: relative;
        display: inline-block;
        text-decoration: none;
        color: white;
        font-size: 14px;
        letter-spacing: 0.05em;
        line-height: 1;
        padding: 6px 10px;
        transition: background 0.3s ease;
    }

    .nav-menu a.current {
        position: relative;
        z-index: 1;
    }

    .nav-menu a.current::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100%);
        height: 120%;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        z-index: -1;
        pointer-events: none;
    }

    .nav-menu a:hover::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% + 10px);
        height: 150%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        z-index: -1;
    }
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    color: white;
    padding: 18px 40px 0 26px;
}

.site-header a {
    margin-right: auto;
}

.site-header nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: 40px;
}

.site-header nav ul li {
    position: relative;
    text-align: center;
}

.site-header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1;
}

.site-header nav ul li+li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%);
    display: none;
}

@media (max-width: 767px) {
    .site-header {
        padding: 20px 20px 0 20px;
    }

    .site-header nav ul {
        gap: 20px;
    }

    .site-header nav ul li {
        margin-right: 0;
        font-size: 12px;
    }

    .site-header nav ul li+li::before {
        display: none;
    }
}

.hero {
    position: relative;
    height: 100vh;
    background: none;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-attachment: fixed;
    display: none;
}

.about {
    text-align: center;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 60px;
}

.about h2 {
    display: none;
    padding: 0 0 60px 0;
    font-size: 28px;
}

.about p {
    line-height: 300%;
    font-size: 16px;
}

.none {
    display: none;
}

.with-stamp {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
}

.with-stamp .line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #000;
}

.stamp {
    width: 40px;
    height: auto;
    vertical-align: middle;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .about {
        padding: 40px 16px;
    }

    .about p {
        font-size: 14px;
        line-height: 3.0;
    }

    .none {
        display: none;
    }

    .with-stamp {
        margin-top: 12px;
    }

    .with-stamp .line {
        height: 0.5px;
    }

    .stamp {
        width: 28px;
    }
}

.blank1 {
    margin: auto;
    height: 100vh;
}

.main {
    text-align: justify;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 70px;
}

.main h2 {
    text-align: center;
    padding: 10px 0 60px 0;
    font-size: 26px;
    margin: 0 auto;
    width: 100%;
    font-weight: 500;
}

.main p {
    line-height: 300%;
    font-size: 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 80%;
    text-align: justify;
}

.main video {
    display: block;
    margin: 40px auto 0;
    width: 100%;
    max-width: 80%;
    height: auto;
}

@media (max-width: 767px) {
    .main {
        padding: 55px 0 20px;
    }

    .main h2 {
        font-size: 18px;
        padding: 0 0 40px 0;
        display: block;
    }

    .main p {
        font-size: 14px;
        line-height: 2.5;
        max-width: 85%;
    }

    .main video {
        max-width: 100%;
        margin: 35px auto;
    }
}

.hello {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0 70px 50px;
    padding-top: 15px;
}

.hello h2 {
    text-align: center;
    padding: 0 0 60px 0;
    font-size: 26px;
    font-weight: 500;
}

.hello p {
    line-height: 250%;
    font-size: 16px;
    text-align: justify;
}

.profile {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 80%;
    margin: 0 auto 56px;
}

.profile img {
    width: 160px;
    height: auto;
    display: block;
}

.greeting-text {
    position: relative;
}

.greeting-text p {
    margin: 0;
}

.signature {
    display: block;
    letter-spacing: 0.08em;
    color: #444;
}

.signature-pc {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.8rem;
    text-align: right;
    font-size: 0.85rem;
    white-space: nowrap;
}

.signature-sp {
    display: none;
}

@media (max-width: 767px) {
    .hello {
        padding: 0 40px 20px;
        padding-top: 0;
    }

    .hello h2 {
        font-size: 18px;
        padding: 0 0 50px 0;
        display: block;
    }

    .hello p {
        font-size: 14px;
        line-height: 2.5;
        max-width: 95%;
        margin: 0 auto;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        max-width: 100%;
        margin-bottom: 32px;
    }

    .profile img {
        width: 150px;
        margin: 0 auto;
    }

    .greeting-text {
        position: static;
    }

    .signature-pc {
        display: none;
    }

    .signature-sp {
        display: block;
        position: static;
        margin-top: 15px;
        margin-bottom: 5px;
        text-align: center;
        font-size: 12.5px;
        letter-spacing: 0.12em;
        white-space: normal;
    }
}

.blank2 {
    margin: 200px;
}

.access {
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
}

.access p {
    text-align: center;
    font-size: 16px;
}

.access p a {
    color: black;
    text-decoration: none;
}

.access p a:visited {
    color: rgb(0, 0, 0);
}

@media (max-width: 767px) {
    .access p {
        font-size: 14px;
    }
}

footer {
    margin: 0 auto;
    background-color: #afafaf;
    padding: 20px;
    text-align: center;
    color: white;
}

footer nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0 auto 10px;
    padding: 0;
    position: relative;
}

footer nav ul li {
    width: 180px;
    text-align: center;
    position: relative;
}

footer nav ul li a {
    text-decoration: none;
    font-size: 14px;
    color: white;
    line-height: 1;
}

footer nav ul li:not(:last-child)::after {
    content: "｜";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    color: white;
    font-size: 14px;
    line-height: 1;
}

footer small {
    font-size: 12px;
}

@media (max-width: 767px) {
    footer nav ul {
        flex-direction: column;
        gap: 8px;
    }

    footer nav ul li a {
        font-size: 12px;
        display: inline-flex;
        align-items: center;
    }

    .footer-link-icon {
        width: 12px;
        height: 12px;
        background-image: url("images/link-icon.png");
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        filter: brightness(0) invert(1);
        pointer-events: none;
        position: relative;
        margin-right: 3px;
        vertical-align: middle;
    }

    footer nav ul li:not(:last-child)::after {
        content: none;
    }

    footer small {
        display: block;
        margin-top: 20px;
        font-size: 0;
        color: #fff;
        position: relative;
        text-align: center;
    }

    footer small::before {
        content: "© 松月氷室";
        font-size: 11px;
        position: static;
        display: inline-block;
    }
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.8);
}