/* =============================================
   HOKKO SEAFOOD JAPAN – main.css
   ============================================= */

:root {
    --header-h: 80px;
    --admin-bar-offset: 0px;
}

/* Logged-in admin bar pushes the fixed header down; add the same offset to anchor scrolling */
html:has(body.admin-bar) {
    --admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
    html:has(body.admin-bar) {
        --admin-bar-offset: 46px;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-underline-offset: 3px;
}

a:hover,
a:focus,
a:active {
    color: #0992C2;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
}

html {
    scroll-padding-top: calc(var(--header-h) + var(--admin-bar-offset));
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes anim-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes anim-fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

[data-animate="fade-in"]    { opacity: 0; }
[data-animate="fade-in-up"] { opacity: 0; }

[data-animate="fade-in"].is-visible {
    animation: anim-fade-in 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: var(--animate-delay, 0ms);
}

[data-animate="fade-in-up"].is-visible {
    animation: anim-fade-in-up 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: var(--animate-delay, 0ms);
}

/* ===== SITE WRAPPER ===== */
.site-wrapper {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: var(--header-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-x: clip;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Admin bar (logged-in): push header below it */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    padding: 0 28px;
    background: transparent;
}

.header-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding-right: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 52px;
    cursor: pointer;
    user-select: none;
    z-index: 250;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.nav-toggle__bar {
    width: 28px;
    height: 3px;
    background: #153776;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-nav a {
    font-weight: 500;
}

.site-header .header-nav__list,
.site-header .header-nav__list li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.site-header .header-nav__list {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.site-header .header-nav__list > li {
    display: flex;
    align-items: stretch;
    font-size: 20px;
}

.site-header .header-nav__list > li > a {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    font-size: inherit;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.site-header .header-nav__list > li > a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0992C2;
}

/* Last nav item: teal CTA button */
.site-header .header-nav__list > li:last-child {
    align-self: stretch;
}

.site-header .header-nav__list > li:last-child > a {
    background: #0992C2;
    color: #fff;
    padding: 0 60px;
    transition: background 0.3s;
}

.site-header .header-nav__list > li:last-child > a:hover {
    background: #2080A8;
    color: #fff;
}

/* Language switcher */
.lang-switcher {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #153776;
    padding: 0 18px;
    gap: 3px;
    font-size: 20px;
}

.lang-link {
    font-weight: 600;
    /* color: rgba(255, 255, 255, 0.55); */
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    text-align: center;
    display: block;
}

.lang-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.lang-link--active {
    pointer-events: none;
    opacity: 0.7;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* =============================================
   NEWS LIST (archive & home)
   ============================================= */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 82px;
}

.news-item {
    border: 1px solid #4A72C0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 4px 4px 0 rgba(74, 114, 192, 0.3);
    font-family: 'Noto Sans JP', sans-serif;
}

.news-item .post-link:last-child {
    text-align: right;
}

.news-item-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-date {
    background: #0992C2;
    color: #fff;
    font-size: 20px;
    padding: 6px 22px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-item-top > div {
    font-size: 22px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    text-align: right;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-item p {
    font-size: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.news-more {
    display: inline-block;
    text-align: right;
    color: #0992C2;
    font-size: 20px;
    font-weight: 500;
    text-decoration: underline;
    font-family: 'Noto Serif JP', serif;
    transition: transform 0.3s;
}

.news-more:hover {
    transform: translateX(4px);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: transparent;
    margin-top: auto;
}

.footer-main {
    display: flex;
    align-items: start;
    min-height: 280px;
    background: url('../images/common/bg-footer.png') center / cover no-repeat;
    padding: 48px 60px;
    gap: 48px;
    border-top: 1px solid #000;
}

.footer-logo-wrap {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo {
    width: 150px;
    height: auto;
}

.footer-nav {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: end;
    margin-right: 6%;
}

.footer-nav .footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-nav .footer-nav__list li {
    margin: 0;
    padding: 0;
}

.footer-nav .footer-nav__list a {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.3s, opacity 0.3s;
    padding: 10px 0;
    letter-spacing: 0.04em;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.footer-nav .footer-nav__list a:hover {
    color: #fff;
    opacity: 0.75;
}

.footer-bottom {
    background: #112E81;
    padding: 8px 40px;
    text-align: center;
}

.footer-copy {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15em;
    font-family: 'Noto Serif JP', serif;
}

/* =============================================
   GO-TOP BUTTON
   ============================================= */
.go-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 999;
    display: block;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.go-top img {
    width: 90px;
    height: 90px;
    display: block;
}

.go-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.go-top:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* =============================================
   ARCHIVE: NEWS
   ============================================= */
.archive-banner {
    text-align: center;
    padding: 72px 24px 40px;
    background: #fff;
}

.archive-banner .section-title {
    margin-bottom: 8px;
}

.archive-banner p {
    margin-bottom: 20px;
}

.archive-banner-line {
    border: none;
    border-top: 1px solid #000;
    width: 60%;
    margin: 0 auto;
}

.archive-news-section {
    background: #fff;
    padding: 0 40px 80px;
}

.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #4A72C0;
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: #0992C2;
    color: #fff !important;
    border-color: #0992C2;
}

.archive-pagination .page-numbers.dots {
    border: none;
    pointer-events: none;
}

.archive-empty {
    text-align: center;
    padding: 60px 0;
    color: #888;
    font-size: 18px;
}

.news-item-top h3 a {
    color: inherit;
    text-decoration: none;
}

.news-item-top h3 a:hover {
    color: #0992C2;
}

/* =============================================
   SINGLE: NEWS DETAIL
   ============================================= */
.single-news-section {
    background: #fff;
    padding: 0 40px 80px;
}

.news-detail {
    max-width: 860px;
    margin: 0 auto;
}

.news-detail-meta {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-detail-meta .news-date {
    font-size: 18px;
    padding: 6px 20px;
    flex-shrink: 0;
}

.news-detail-title {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.news-detail-divider {
    border: none;
    border-top: 1px solid #4A72C0;
    margin: 0 0 32px;
}

.news-detail-content {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
}

.news-detail-content p {
    margin-bottom: 1.2em;
}

.news-back-wrap {
    max-width: 860px;
    margin: 48px auto 0;
    text-align: center;
}

.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #0992C2;
    color: #0992C2;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.news-back-btn:hover {
    background: #0992C2;
    color: #fff;
}

/* =============================================
   RESPONSIVE: Tablet (≤1200px)
   ============================================= */
@media (max-width: 1200px) {
    .site-header .header-nav__list > li, .lang-switcher  {
        font-size: 16px;
    }

    .site-header .header-nav__list > li > a {
        padding: 20px 15px;
    }

    .site-header .header-nav__list > li:last-child > a {
        padding: 0 30px;
    }
}

/* =============================================
   RESPONSIVE: SP (≤767px)
   ============================================= */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    /* Header */
    .site-header .header-nav__list > li, .lang-switcher {
        font-size: 2vw;
    }

    .site-header .header-nav__list > li > a {
        padding: 0 1.9vw;
    }

    .header-logo img {
        height: 10vw;
    }

    /* News */
    .news-date {
        font-size: 13px;
        padding: 4px 14px;
    }

    .news-item-top > div {
        font-size: 15px;
    }

    .news-item p {
        font-size: 13px;
    }

    .news-more {
        font-size: 14px;
    }

    /* Footer */
    .footer-main {
        flex-direction: row;
        min-height: auto;
        padding: 28px 20px;
        gap: 16px;
    }

    .footer-logo-wrap {
        width: auto;
        flex: 0 0 40%;
        justify-content: flex-start;
    }

    .footer-logo {
        width: 90px;
    }

    .footer-nav {
        flex: 1;
        align-items: flex-end;
        justify-content: center;
        margin-right: 0;
    }

    .footer-nav .footer-nav__list {
        align-items: flex-start;
    }

    .footer-nav .footer-nav__list a {
        font-size: 13px;
        padding: 10px 0;
    }

    .footer-bottom {
        padding: 12px 20px;
    }

    .footer-copy {
        font-size: 11px;
    }

    .go-top img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 48px;
    }

    /* Header */
    .header-logo {
        padding: 0 10px;
    }

    .site-header .header-nav__list > li:last-child > a {
        padding: 0 12px;
    }

    .lang-switcher {
        flex-direction: column;
        padding: 0 10px;
        gap: 0;
    }

    .site-header .header-nav__list > li, .lang-switcher  {
        font-size: 2.4vw;
    }

    .header-logo img {
        height: 40px;
    }
}

/* =============================================
   RESPONSIVE: Hamburger nav (≤900px)
   ============================================= */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    body.nav-open {
        overflow: hidden;
    }

    .header-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        overflow-y: auto;
        z-index: 220;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
    }

    body.nav-open .header-nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.35s ease, opacity 0.3s ease;
    }

    .site-header .header-nav__list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .site-header .header-nav__list > li,
    .lang-switcher {
        font-size: 16px;
        width: 100%;
    }

    .site-header .header-nav__list > li > a {
        width: 100%;
        padding: 18px 24px;
        justify-content: center;
    }

    .site-header .header-nav__list > li:last-child > a {
        padding: 18px 24px;
        justify-content: center;
    }

    .lang-switcher {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 16px;
    }

    /* Keep the header (logo) clear of the open panel when the admin bar shifts it down */
    .admin-bar .header-nav {
        top: calc(var(--header-h) + 32px);
        height: calc(100vh - var(--header-h) - 32px);
    }
}

@media (max-width: 782px) {
    .admin-bar .header-nav {
        top: calc(var(--header-h) + 46px);
        height: calc(100vh - var(--header-h) - 46px);
    }
}
