/**************************/
/* ヘッダー */
/**************************/

.site-header {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    border-bottom: 1px solid transparent;
    border-image: linear-gradient(
            to right,
            transparent 0%,
            var(--color-gold-light) 15%,
            var(--color-gold) 50%,
            var(--color-gold-light) 85%,
            transparent 100%
    ) 1;

    margin-bottom: 15px;
}

.site-logo {
    width: 160px;
}

.site-logo img {
    display: block;

    width: 160px;

    mix-blend-mode: multiply;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.site-nav-link {
    display: block;

    padding: 8px 18px;

    color: var(--color-brown);
    text-decoration: none;

    white-space: nowrap;

    border-radius: 8px;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.site-nav-link:hover {
    background-color: rgba(255, 253, 247, 0.5);
}

.site-nav-link.active {
    color: var(--color-gold-dark);
    font-weight: bold;
    background-color: rgba(246, 236, 216, 0.45);

    border-bottom: 2px solid var(--color-gold);
}

/* Xリンク */
.x-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: rgba(255, 253, 247, 0.65);

    transition:
            background-color 0.2s ease,
            box-shadow 0.2s ease;
}

.x-link img {
    transition: opacity 0.2s ease;
}

.x-link:hover {
    background: rgba(255, 253, 247, 0.9);

    box-shadow:
            0 2px 6px var(--color-shadow);
}

.x-link img:hover {
    opacity: 0.7;
}

/* PC用X */
.desktop-x-link {
    display: flex;
}

/* スマホ用X */
.mobile-x-link {
    display: none;
}

/**************************/
/* 管理ナビ */
/**************************/

.admin-nav {
    display: flex;
    align-items: center;

    padding: 8px 0;

    border-bottom: 1px solid var(--color-border);
}

.admin-nav form {
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    padding: 0 10px;

    color: var(--color-brown);
    text-decoration: none;

    border-right: 1px solid var(--color-border);
}

.nav-links a:first-child {
    padding-left: 0;
}

.nav-links a:last-child {
    border-right: none;
}

/**************************/
/* 更新情報 */
/**************************/

.update-info {
    width: min(1100px, calc(100% - 40px));
    margin: 10px 0 15px;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background-color: rgba(255, 253, 247, 0.9);

    box-shadow:
            0 3px 12px var(--color-shadow);
}


/* 見出し */
.update-info summary {
    padding: 10px 15px;

    font-weight: bold;
    color: var(--color-brown);

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.update-info summary:hover {
    background-color: rgba(232, 213, 174, 0.35);
}


/* 最新情報 */
.update-latest {
    margin-left: 10px;

    font-weight: normal;
    color: var(--color-brown-light);
}


/* 更新一覧 */
.update-list {
    padding: 0 14px 12px;

    max-height: 150px;
    overflow-y: auto;
}


/* 更新項目 */
.update-item {
    display: flex;
    gap: 15px;

    margin-top: 6px;

    font-size: 0.9em;
}


/* 更新日 */
.update-date {
    color: var(--color-brown-light);

    white-space: nowrap;
}


.update-info-hr {
    border: 0;
    height: 1px;

    background: linear-gradient(
            to right,
            transparent,
            var(--color-gold-light),
            transparent
    );

    margin: 0;
}

/**************************/
/* 検索結果エリア */
/**************************/

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-header .btn {
    margin: 0 0 12px;
    padding: 6px 12px;
    font-size: 13px;
}

/**************************/
/* フッター */
/**************************/

footer {
    margin-top: 40px;
    padding: 12px 0 20px;

    text-align: center;

    border-top: 1px solid var(--color-border);
}

footer .copyright {
    margin: 0;

    color: var(--color-brown-light);
    font-size: 12px;
    line-height: 1.8;
}