/* ヘッダーのスタイル */
/* ------------------------------ */
.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 1120px);
    z-index: 5000; /* 他の要素よりも前面に表示 */
    margin: 0;
    background: rgba(255, 255, 255, 0.92); /* 背景色 */
    color: var(--ink); /* テキスト色 */
    font-family: var(--font-sans);
    padding: 0; /* パディング */
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
    overflow: visible;
}

/* 管理バーがある場合の調整 */
.logged-in-admin .site-header {
    top: 50px; /* 管理バーの高さ分を足す */
}

.admin-bar .site-header {
    top: 50px;
}

/* コンテンツがヘッダーの下に隠れないように調整 */
body {
    padding-top: 0; /* 通常フローのヘッダーに戻す */
}

.logged-in-admin body {
    padding-top: 0; /* 通常フローのヘッダーに戻す */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 18px;
    padding: 10px 14px 10px 20px;
}

.logo-title {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
} 

.logo-title .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
    max-width: none;
    min-width: max-content;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.brand-icon img {
    display: block;
    width: 100%;
    max-width: 54px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.05;
}

.brand-name {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-subcopy {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.logo-title img.white-logo {
    max-height: 46px;
    width: auto;
    transform: scale(0.7); /* 70%に縮小 */
    margin-right: 0;
}

.logo-title .site-title {
    display: inline-block;
    font-size: 12px; /* 文字サイズを70%に変更 */
    font-weight: 900;
    color: #fff;
    white-space: nowrap; /* 折り返さないようにする */
    letter-spacing: 0.04em;
    overflow: visible;
    text-overflow: clip;
}
/* トグルボタンをPCでは非表示にする */
.menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.06);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: #fff;
    color: var(--ink);
    border-color: rgba(17, 24, 39, 0.2);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.10);
    transform: translateY(-2px);
    outline: none;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
@media (max-width: 768px) {
    body {
        padding-top: 82px;
    }

    .site-header {
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: min(calc(100% - 24px), 1120px);
        margin: 0;
        border-radius: 999px;
        box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    }
    .admin-bar .site-header {
        top: 58px;
    }
    .logo-title img.white-logo {
        max-height: 40px;
        width: auto;
        transform: scale(0.7); /* 70%に縮小 */
        margin-right: 0;
    }
}

@media (max-width: 980px) {
    .brand-subcopy,
    .logo-title .site-title {
        display: none;
    }

    .site-header {
        border-radius: 28px;
    }
}

/* 検索バー */
/* ------------------------------ */
.header-search {
    display: none;
    margin-left: auto;
    flex: 0 0 220px;
}

.header-search form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px; /* 角丸にする */
    background: #fff;
    overflow: hidden; /* 子要素が親要素からはみ出さないようにする */
    box-shadow: inset 0 0 0 1px rgba(32, 35, 51, 0.02);
}

.search-input {
    flex-grow: 1;
    min-width: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 999px 0 0 999px; /* 左側の角を丸める */
    outline: none;
    color: var(--ink);
    font-weight: 700;
}

.search-submit {
    padding: 8px 11px;
    border: none;
    background-color: #fff;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 999px 999px 0; /* 右側の角を丸める */
}

.search-submit i {
    font-size: 16px; /* アイコンのサイズを調整 */
    color: #555;
}


/* ナビゲーション */
/* ------------------------------ */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    gap: 10px;
    min-width: 0;
    padding: 0;
    overflow: visible;
    scrollbar-width: none;
}

.main-navigation::-webkit-scrollbar {
    display: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--ink);
    text-decoration: none;
}

.header-nav-tabs {
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 999px;
    overflow: visible;
    scrollbar-width: none;
}

.header-nav-tabs::-webkit-scrollbar {
    display: none;
}

.header-nav-tab {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 11px 16px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-nav-tab:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.72);
}

.header-nav-tab.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

.header-nav-tab::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    z-index: 4;
    pointer-events: none;
    border-bottom-left-radius: 10px;
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.96) 0%,
            rgba(248,249,250,0.98) 55%,
            rgba(229,231,235,0.9) 100%);
    box-shadow: -1px 2px 3px rgba(17, 24, 39, 0.10);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    opacity: 0;
    transform: scale(0.72);
    transform-origin: 100% 0;
    transition:
        width 0.24s cubic-bezier(.2,.8,.2,1),
        height 0.24s cubic-bezier(.2,.8,.2,1),
        opacity 0.2s ease,
        transform 0.24s cubic-bezier(.2,.8,.2,1);
}

.header-nav-tab:hover::after,
.header-nav-tab:focus-visible::after {
    width: 22px;
    height: 22px;
    opacity: 1;
    transform: scale(1);
}

.header-nav-tab.is-active:hover::after,
.header-nav-tab.is-active:focus-visible::after {
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.94) 0%,
            rgba(244,245,247,0.96) 60%,
            rgba(218,222,228,0.86) 100%);
}
@media (max-width: 768px) {
    .logged-in-admin .site-header {
        top: 58px;
    }
    .admin-bar .site-header {
        top: 58px;
    }
    #wpadminbar{
        position: fixed;
    }
    .logo-title {
        display: flex;
        flex: 0 0 auto;
        text-align: left;
        width: auto;
        justify-content: flex-start;
        min-width: 0;
    }
    .logo-title .logo-link{
        display: flex;
    }

    .logo-title .site-title {
        display: none;
    }

    .brand-icon {
        width: 44px;
        height: 28px;
    }

    .brand-icon img {
        max-width: 44px;
        max-height: 28px;
    }

    .brand-name {
        max-width: calc(100vw - 140px);
        overflow: hidden;
        font-size: 12.5px;
        text-overflow: ellipsis;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 50%;
        left: auto;
        width: calc(100vw - 24px);
        max-width: 360px;
        min-width: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--soft-shadow);
        overflow: visible;
        backdrop-filter: blur(16px);
        box-sizing: border-box;
        transform: translateX(50%);
    }

    .site-header.is-menu-open .main-navigation {
        display: block;
    }
    
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
    }
    .header-container {
        flex-direction: row;
        align-items: center;
        padding: 6px 8px;
        gap: 8px;
        min-width: 0;
    }

    .header-nav-tabs {
        width: 100%;
        overflow: visible;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 5px;
        padding: 0;
    }

    .header-nav-tabs li {
        width: 100%;
    }

    .header-nav-tab {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: auto;
        padding: 10px 12px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
        font-size: 12px;
        text-align: center;
    }

    .header-nav-tab:hover,
    .header-nav-tab:focus-visible {
        background: #fff;
        color: var(--ink);
        border-color: rgba(17, 24, 39, 0.18);
        box-shadow: 0 10px 20px rgba(17, 24, 39, 0.10);
        transform: translateY(-2px);
        outline: none;
    }

    .header-nav-tab.is-active,
    .header-nav-tab.is-active:hover,
    .header-nav-tab.is-active:focus-visible {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
        box-shadow: none;
    }

    .header-search {
        width: 100%;
        flex-basis: auto;
        margin-top: 0;
    }

    .search-input {
        min-height: 38px;
    }

}

@media (hover: none) {
    .header-nav-tab::after {
        display: none;
    }
}


/* メインビジュアル */
/* ------------------------------ */
.main-visual {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    text-align: center;
}

.main-visual img {
    width: 100%;
    height: auto;
    max-width: 1200px; /* 必要に応じて最大幅を設定 */
    border-radius: 10px; /* 必要に応じて角を丸くする */
}


/* フッター */
/* ------------------------------ */
.site-footer,
footer {
    width: min(calc(100% - 32px), 1120px);
    display: block;
    clear: both;
    margin: 18px auto 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 0;
    text-align: center;
    position: relative; /* 相対位置に変更 */
    z-index: 1;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.footer-container {
    padding: 12px 16px;
}

/* フッターのリンクスタイル */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    background: var(--soft-card);
    box-shadow: var(--soft-shadow);
}

footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

/* フッターアイコンメニューのスタイル */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.footer-menu-item {
    text-align: center;
    color: #fff;
    text-decoration: none;
    flex-grow: 1;
}

.footer-menu-item i {
    display: block;
    font-size: 20px; /* アイコンのサイズ */
    margin-bottom: 5px; /* アイコンとテキストの間の余白 */
}

.footer-menu-item span {
    font-size: 12px; /* テキストのサイズ */
}

@media (min-width: 768px) {
    .footer-menu {
        display: none; /* モバイルではテキストを非表示に */
    }
}

html, body {
    min-height: 100%;
    margin: 0;
    display: block;
}

footer {
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .single-page,
    .common-page {
        margin-top: 104px;
    }
}

@media (max-width: 768px) {
    .site-footer,
    footer {
        width: min(calc(100% - 24px), 1120px);
        margin: 16px auto 12px;
        border-radius: 24px;
        box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    }

    .footer-container {
        padding: 12px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 11px;
    }

    footer p {
        font-size: 11px;
        line-height: 1.6;
    }
}
/* インデックスページと共通ページの横幅を統一 */
.index-page,
.common-page {
    width: calc(100% - 40px); /* Width minus 40px */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
@media (min-width: 768px) {
    index-page{
        padding-top: 30px;
    }
}

/* コンテンツコンテナのスタイル */
.content-container {
    gap: 20px;
    margin-bottom: 40px;
}

/* メインコンテンツのスタイル */
.main-content {
    flex: 3;
    overflow: hidden;
}

/* サイドバーのスタイル */
.sidebar {
    flex: 1;
    background-color: #f8f7f6;
    padding: 20px;
    border-radius: 5px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

/* フッターのスタイル */
.full-width {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0;
}

/* パンくずリスト */
.breadcrumb {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f7f6;
    border-radius: 5px;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* コンテンツコンテナの下のブロック */
.background-gray {
    background-color: #f8f7f6; /* 少しグレーの背景色 */
    padding: 20px 0; /* 上下のパディングを追加 */
}

.full-width {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0;
}
