/* ========================================
   ANCHOR LINK OFFSET
   ======================================== */
html {
    scroll-padding-top: 105px;
}

/* 古いブラウザ対応 */
html {
    scroll-behavior: smooth;
}

/* Safari対応 */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        scroll-padding-top: 105px;
    }
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ========================================
   ANCHOR LINK OFFSET
   ======================================== */
   html {
    scroll-padding-top: 80px;
}

/* 古いブラウザ対応 */
html {
    scroll-behavior: smooth;
}

/* Safari対応 */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        scroll-padding-top: 80px;
    }
}

body {
    font-family: 'Noto Serif JP', serif;
    color: #333;
    line-height: 1.6;
    background-color: #F8F8F8;
    padding-top: 0; /* 80pxから0に変更 */
}

body.scrolled {
    padding-top: 0; /* 60pxから0に変更 */
}

section.bg-white {
    background-color: #ffffff;
}

.container {
    width: calc(100% - 48px);
    max-width: 1220px;
    padding: 10px 24px;
    margin: 0 auto;
}

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

.link-to-text {
    color: #009CD9;
    text-decoration: underline dotted !important;
    transition: color 0.2s;
}

.link-to-text:hover {
    color: #005f7f;
    text-decoration: underline solid;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .sp-only {
        display: block;
    }
    .annotation-text {
        font-size: 0.85em;
    }
}


/* ========================================
   TOP BAR
   ======================================== */
.site-topbar {
    background: #1B2F66;
    color: #fff;
    font-size: 14px;
}

.topbar-inner {
    text-align: center;
    padding: 6px 0 18px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 21px;
    color: #FFFFFF;
    letter-spacing: 1.75px;
}

.topbar-main {
    font-size: 26px;
    color: #FFFFFF;
    letter-spacing: 2.17px;
    text-align: center;
}

.topbar-sub a {
    color: #fff;
    border-bottom: 1px solid #fff;
    margin-left: 8px;
}

/* ========================================
   HEADER
   ======================================== */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    background-color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-main.scrolled {
    padding: 8px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-logo {
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
}

.site-logo img {
    transition: all 0.3s ease;
}

.site-logo span {
    display: block;
    text-align: center;
    margin-top: 3px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1em;
    color: #FFFFFF;
    background-color: #1B2F66;
    border-radius: 3px;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.header-main.scrolled .site-logo img {
    width: 185px;
    height: 24px;
}

.header-main.scrolled .site-logo span {
    font-size: 12px;
    padding: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   UTILITY NAVIGATION
   ======================================== */

/* Mobile Header - PCでは非表示 */
.main-nav .mobile-header {
    display: none;
}

.utility-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.utility-nav .btn {
    display: inline-block;
    margin-left: 12px;
    padding: 8px 16px;
    background: #222222;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    padding-left: 2em;
    position: relative;
}

.utility-nav .btn::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome";
    font-weight: 900;
    display: inline-block;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.utility-nav .btn.contact {
    background-color: #009CD9;
}

.utility-nav .btn.access {
    background-color: #E79F19;
}

.utility-nav .btn.contact::before {
    content: "\f10b";
}

.utility-nav .btn.access::before {
    content: "\f041";
}

.utility-nav .nav-btn {
    font-size: 14px;
    padding: 0 12px;
    border-right: 1px solid #222222;
}

/* ========================================
   HEADER SNS LINKS
   ======================================== */
.header-sns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #515b76;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-sns-link:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.header-sns-link i {
    font-size: 24px;
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.main-nav {
    padding-top: 105px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .nav-btn:last-child {
    border-right: none;
}

.main-nav .nav-btn:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.main-nav .nav-btn::after {
    content: "\f105"; /* 右向き矢印に変更 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.main-nav .nav-btn:hover::after {
    transform: none; /* 回転を無効化 */
    color: #007bff;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-btn {
    cursor: pointer;
}

.nav-dropdown .nav-btn::after {
    content: "\f107"; /* dropdownの場合は下向き矢印のまま */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-btn::after {
    transform: rotate(180deg);
    color: #007bff;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.nav-dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

/* ========================================
   HAMBURGER MENU
   ======================================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-close-btn {
    display: none;
}

/* ========================================
   RESERVATION BUTTON
   ======================================== */
.reservation {
    position: fixed;
    right: 0;
    top: 245px;
    transform: translateY(-50%);
    width: 65px;
    height: 166px;
    border-radius: 6px 0 0 6px;
    background: #AF3737;
    border: 4px solid #7F2121;
    border-right: none;
    overflow: hidden;
    z-index: 1000;
    transition: width 0.3s ease;
}

.reservation:hover {
    width: 75px;
    background: #c55e55;
}

.reservation-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.reservation-inner h2 {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reservation-inner h2::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome";
    font-weight: 900;
    content: "\f017";
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section-title {
    position: relative;
    font-size: 24px;
    margin-bottom: 24px;
}

.section-title span {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

/* ========================================
   ANNOUNCEMENT
   ======================================== */
.announcement {
    padding-bottom: 48px;
}

.announcement h2 {
    font-size: 16px;
    font-weight: 100;
    text-align: center;
    letter-spacing: 1.33px;
}

.announcement-box {
    width: 100%;
    text-align: center;
}

.announcement-box p {
    font-size: 33px;
    font-weight: 700;
    letter-spacing: 2.75px;
    text-align: center;
}

p.announce-label {
    font-size: 41px;
    color: #000000;
    letter-spacing: 3.42px;
    font-weight: bold;
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #979797;
    margin: 0 0 12px;
}

p.announce-label span {
    font-size: 23px;
}

/* ========================================
   NEWS
   ======================================== */
.news {
    padding-bottom: 48px;
}

.news .fblk {
    display: flex;
    justify-content: space-between;
}

.news h2 {
    font-size: 41.16px;
    font-weight: 100;
    color: #000000;
    letter-spacing: 3.43px;
}

.news h2 + a {
    display: inline-block;
    font-size: 14px;
    padding-right: 41px;
    background: url(../img/detlink.png) no-repeat right top 2px;
    background-size: 31px auto;
}

.news h2 + a.back {
    padding-right: 0;
    padding-left: 41px;
    background: url(../img/detlink_back.png) no-repeat left top 2px;
    background-size: 31px auto;
}

.news h2 + a:hover {
    opacity: 0.7;
}

.news .fblk .fblk-title > div a {
    display: inline-block;
    font-size: 14px;
    padding-right: 41px;
    margin-bottom: 10px;
}

.news .fblk .fblk-title > div a.slt {
    background: url(../img/detlink.png) no-repeat right top 2px;
    background-size: 31px auto;
}

.news .fblk .fblk-title > div a:hover {
    opacity: 0.7;
}

.news .fblk .fblk-body {
    width: 955px;
    box-sizing: border-box;
    padding: 28px 38px;
    background-color: #FFF;
}

.news .fblk .fblk-body ul {
    list-style: none;
}

.news .fblk .fblk-body ul li {
    display: block;
    padding-top: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #979797;
}

.news .fblk .fblk-body ul li > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news .fblk .fblk-body ul li > div > span {
    font-size: 14px;
}

.news .fblk .fblk-body ul li > div > strong {
    display: inline-block;
    min-width: 90px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 2;
    text-align: center;
    background-color: #1B2F66;
    color: #FFFFFF;
    border-radius: 3px;
}

.news .fblk .fblk-body ul li > div > strong.important {
    background-color: #A90909;
}

.news .fblk .fblk-body ul li a {
    display: inline-block;
    font-size: 16px;
    line-height: 1.68;
    margin-top: 8px;
    text-align: justify;
}

.news .fblk .fblk-body ul li a:hover {
    opacity: 0.7;
}

.news-det .news-date {
    font-size: 12px;
}

.news-det h1.news-title {
    font-size: 28px;
    line-height: 1.42;
    padding: 14px 0;
    border-bottom: 1px solid #1B2F66;
}

.news-det .news-body {
    padding-top: 30px;
}

/* ========================================
   PAGINATION
   ======================================== */
.page-nation {
    width: 100%;
    padding: 26px 0;
}

.page-nation ul {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    list-style: none;
}

.page-nation ul li a {
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    text-align: center;
    vertical-align: middle;
    border: #322D2A 1px solid;
    border-radius: 2px;
    color: #322D2A;
    margin: 0 6px;
}

.page-nation a.ellipsis {
    border: none;
}

.page-nation a {
    color: #322D2A;
}

.page-nation a.slt, 
.page-nation a:hover {
    background-color: #1b2f66;
    color: #FFF;
}

.page-nation a.ellipsis:hover {
    background-color: transparent;
}

/* ========================================
   ACCESS
   ======================================== */
.access {
    background: #1B2F66;
    color: #fff;
    padding: 60px 0;
}

.access h2 {
    text-align: center;
    font-weight: 300;
    font-size: 41.16px;
    color: #FFFFFF;
    letter-spacing: 3.43px;
}

.access-inner {
    display: flex;
    gap: 40px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1.33px;
    line-height: 28px;
}

.access-info {
    flex: 1;
}

.access-info h2,
.access-info h2 span {
    color: #fff !important;
}

.access-info h3 {
    color: #fff;
    font-weight: 300;
    font-size: 26.16px;
    color: #FFFFFF;
    letter-spacing: 2.18px;
    padding-bottom: 24px;
}

.access-info hr {
    height: 1px;
    border: none;
    background-color: #979797;
    margin: 24px 0;
}

.access-info p,
.access-info ul {
    margin-bottom: 12px;
    font-size: 14px;
}

.access-info li {
    list-style: none;
}

.access-map {
    width: 100%;
    max-width: 822px;
    aspect-ratio: 822 / 437;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    padding: 40px 0;
}

.contact h2 {
    font-size: 41.16px;
    font-weight: 300;
    letter-spacing: 3.43px;
    line-height: 1em;
    padding-top: 24px;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
}

.contact-list {
    font-size: 14px;
    color: #333;
    padding-top: 24px;
    list-style-position: inside;
}

.contact-list li {
    margin-bottom: 2px;
    padding: 0;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info p span {
    font-size: 12px;
}

.contact-info a {
    font-size: 18px;
    color: #006BAC;
    letter-spacing: 1.5px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    color: #222222;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media screen and (max-width: 1250px) {
    .news .fblk .fblk-body {
        width: 75%;
    }
}

/* Desktop */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .access-inner {
        flex-direction: column;
        gap: 30px;
    }

    .access-map {
        height: 300px;
    }

    .contact-inner {
        flex-direction: column;
        gap: 30px;
    }

    .news {
        padding-bottom: 30px;
    }
}

/* Tablet */
@media screen and (max-width: 992px) {
    .menu-cards {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .menu-cards .card {
        flex: 0 1 45%;
        width: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    /* Header */
    .header-main {
        padding: 10px 0;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header-main.scrolled {
        padding: 5px 0;
    }

    .header-right {
        display: none;
        gap: 10px;
        margin-right: 10px;
    }

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

    .site-logo span {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Body */
    body {
        padding-top: 112px;
    }

    body.scrolled {
        padding-top: 45px;
    }

    /* Top Bar */
    .topbar-main {
        font-size: 1em;
    }
    
    .topbar-inner {
        font-size: 1.2em;
    }

    /* Navigation */
    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        padding-top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav-inner {
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        margin-top: 60px;
    }

    .main-nav .nav-btn {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e9ecef;
        border-right: none;
        justify-content: center;
        font-size: 18px;
    }

    .main-nav .nav-btn:last-child {
        border-bottom: none;
    }

    .main-nav .nav-btn::after {
        margin-left: auto;
    }

    /* Dropdown Menu */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown .nav-btn {
        width: 100%;
        justify-content: left;
        text-align: left;
        background-color: #1B2F66;
        color: #fff;
    }

    .nav-dropdown .nav-btn:hover {
        background-color: #1B2F66;
        color: #fff;
    }

    .nav-dropdown .nav-btn::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown-menu a {
        padding: 15px 40px;
        font-size: 16px;
        border-bottom: 1px solid #e9ecef;
        text-align: center;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    .nav-dropdown-menu a:hover {
        background-color: #e9ecef;
        color: #007bff;
    }

    /* Mobile Header - モバイルでのみ表示 */
    .main-nav .mobile-header {
        display: block;
        margin-top: auto;
        width: 100%;
        border-top: 1px solid #e9ecef;
    }

    .main-nav .mobile-header .utility-nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: stretch;
        gap: 0;
        margin-bottom: 16px;
    }

    .main-nav .mobile-header .utility-nav .nav-btn {
        flex: 1;
        width: 100%;
        padding: 12px 8px;
        font-size: 16px;
        text-align: center;
    }

    .main-nav .mobile-header .utility-nav .nav-btn:last-child {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    /* 区切り線「｜」を非表示 */
    .main-nav .mobile-header .utility-nav .nav-btn:first-child::after {
        display: none;
    }

    .main-nav .mobile-header .header-sns {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 0 0 16px;
        border-bottom: 1px solid #e9ecef;
    }

    .main-nav .mobile-header .header-sns .header-sns-link i {
        font-size: 2em;
    }

    /* Utility Navigation */
    .utility-nav {
        gap: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .utility-nav .btn {
        flex: 0 1 auto;
        text-align: center;
        white-space: nowrap;
    }

    .utility-nav .nav-btn {
        border-right: none;
        position: relative;
        text-align: center;
    }

    /* Header SNS */
    .header-sns {
        gap: 10px;
    }

    .header-sns-link {
        width: 28px;
        height: 28px;
    }

    .header-sns-link i {
        font-size: 18px;
    }

    /* Reservation */
    .reservation {
        position: fixed;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        height: 60px;
        border-radius: 0;
        border: none;
        border-top: 4px solid #7F2121;
    }

    .reservation:hover {
        width: 100%;
    }

    .reservation-inner h2 {
        flex-direction: row;
        gap: 8px;
    }

    .reservation-inner h2::before {
        margin-bottom: 0;
        display: inline;
    }

    /* Announcement */
    .announcement-box img {
        width: calc(100% - 48px);
        height: auto;
    }

    .announcement-box > p {
        font-size: 1.2em;
    }

    p.announce-label {
        font-size: 1.6em;
    }

    p.announce-label b {
        display: block;
    }

    p.announce-label span {
        font-size: 0.6em;
    }

    /* Access */
    .access-inner {
        flex-direction: column;
        gap: 24px;
    }

    /* Contact */
    .contact {
        flex-direction: column;
        gap: 0;
    }

    .contact-inner {
        flex-direction: column;
    }

    .contact-info div {
        flex-direction: column;
    }

    /* News */
    #news {
        padding: 0;
    }

    .news .fblk {
        flex-direction: column;
    }

    .news .fblk .fblk-body {
        width: 100%;
        margin-top: 28px;
        margin-bottom: 30px;
        padding: 20px;
    }

    .news .fblk .fblk-title > div {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .news .fblk .fblk-title > div a {
        padding: 0;
        margin: 0;
    }

    .news .fblk .fblk-title > div a.slt {
        background: none;
        color: #A90909;
    }

    /* Footer */
    .site-footer {
        padding-bottom: 120px;
    }

    /* 閉じるボタン */
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        background: none;
        border: none;
        color: #333;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.3s ease;
        z-index: 1002;
    }

    .nav-close-btn:hover {
        background-color: #e0e5e9;
    }

    .nav-close-btn:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
}

/* Small Mobile */
@media screen and (max-width: 600px) {
    .menu-cards .card.quarter {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* モバイル表示でドロップダウンの矢印アイコンを非表示 */
@media screen and (max-width: 768px) {
    .main-nav .nav-btn::after {
        display: none;
    }
    
    .nav-dropdown .nav-btn::after {
        display: none;
    }
}

