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

body {
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    color: #333;
    background-color: #fcfcfc;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: #333;
}

.logo-shoulder {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.logo-main {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.02em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-size: 15px;
    position: relative;
}

.hamburger {
    display: none;
    position: fixed;
    right: 20px;
    top: 25px;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

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

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

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

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff;
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

.logo.active,
.logo.active .logo-shoulder,
.logo.active .logo-main {
    color: #fff;
    z-index: 1001;
}


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

    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.95);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        z-index: 1000;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        color: #fff;
    }

    .hero-slide {
        background-size: auto 100%;
        animation-name: heroSlider, heroPan;
        animation-duration: 40s, 40s;
    }
}


.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    opacity: 0;
    animation-name: heroSlider, heroPan;
    animation-duration: 32s, 32s;
    animation-iteration-count: infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

.hero-slide:nth-child(3) {
    animation-delay: 16s;
}

.hero-slide:nth-child(4) {
    animation-delay: 24s;
}

@keyframes heroSlider {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }
}

@keyframes heroPan {
    0% {
        background-position: 0% 50%;
    }

    3% {
        background-position: 0% 50%;
    }

    23% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-text {
    writing-mode: vertical-rl;
    font-size: clamp(24px, 5vw, 42px);
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 40px 20px;
    text-shadow: none;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* --- 共通セクション設定 --- */
section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: normal;
}

.section-title span {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    color: #888;
    font-family: sans-serif;
    letter-spacing: 0.1em;
}

.news-list {
    list-style: none;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-link {
    display: flex;
    padding: 20px 0;
    align-items: baseline;
    gap: 30px;
}

.news-date {
    font-family: sans-serif;
    color: #666;
    font-size: 14px;
    min-width: 100px;
}

.news-title {
    font-size: 16px;
}

@media (max-width: 768px) {
    .news-link {
        flex-direction: column;
        gap: 5px;
    }
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    box-shadow: 10px 10px 0px #eee;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
}

.btn-link {
    display: inline-block;
    margin-top: 30px;
    border: 1px solid #333;
    padding: 10px 0;
    width: 12em;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-link:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: pointer;
}

.gallery-item {
    position: relative;
    /* 追加 */
    overflow: hidden;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

footer {
    background-color: #222;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav a {
    margin: 0 15px;
    display: inline-block;
}

.copyright {
    color: #888;
    font-family: sans-serif;
    font-size: 12px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    letter-spacing: 0.1em;
    z-index: 101;
}

.page-header {
    background-color: #333;
    color: #fff;
    padding: 120px 20px 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

#news {
    width: 100%;
    max-width: none;
    background-color: #fdfcf0;
}

#guide {
    background-color: #fdfcf0;
    width: 100%;
    max-width: none;
}

#about .about-text {
    text-align: center;
}

#about .about-text h3 span {
    display: inline-block;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    #about .about-container {
        display: block;
    }

    #about .about-text {
        writing-mode: vertical-rl;
        text-orientation: upright;
        height: 600px;
        width: fit-content;
        margin: 0 auto;
        position: relative;
        text-align: left;
    }

    #about .about-text h3 {
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 60px;
        width: max-content;
        font-size: 1.6rem;
        line-height: 2.0;
    }

    #about .about-text h3 span {
        display: inline-block;
        font-size: 1.1rem;
        margin-top: 20em;
    }

    #about .about-text p {
        display: inline-block;
        font-size: 1.3rem;
        margin: 0;
        line-height: 3.2;
    }

    #about .about-text .btn-link {
        writing-mode: horizontal-tb;
        margin: 20px 10px 0 0;
    }
}

.contact-content {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.google-form-container {
    width: 100%;
    min-height: 600px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
    color: #666;
    padding: 20px;
}

.content-container {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.content-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.location-card {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.location-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.location-name {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 4px solid #333;
    padding-left: 15px;
}

.location-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.location-map {
    flex: 1 1 300px;
}

.location-map img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #eee;
}

.location-details {
    flex: 1 1 300px;
    line-height: 1.8;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
}

.fee-table th,
.fee-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.fee-table th {
    background-color: #f5f5f5;
    width: 40%;
    font-weight: normal;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.faq-item summary {
    padding: 15px 40px 15px 15px;
    background-color: #fcfcfc;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -8px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.3s ease, margin-top 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(225deg);
    margin-top: -2px;
}

.faq-content {
    padding: 20px;
    border-top: 1px solid #eee;
    line-height: 1.8;
}

.instructor-note {
    margin-top: 40px;
    padding: 30px;
    background-color: #fcfcfc;
    text-align: center;
}

.greeting-container {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.greeting-text p {
    line-height: 2.2;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.iemoto-sign {
    text-align: right;
    font-size: 1.2rem;
    margin: 40px 0 60px;
    font-weight: 500;
}

.profile-section {
    background-color: #f9f9f9;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.profile-content p {
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-image {
        flex-shrink: 0;
    }
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.event-section {
    margin-bottom: 80px;
}

.event-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
    cursor: pointer;
    list-style: none;
    outline: none;
    user-select: none;
}

.event-title::-webkit-details-marker {
    display: none;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #333;
}

.event-title-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.accordion-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: relative;
    top: -2px;
}

details[open] .accordion-icon {
    transform: rotate(225deg);
    top: 4px;
}

details[open] .gallery-grid {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.lightbox.loading .lightbox-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#js-lightbox-img {
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 101;
}