@charset "utf-8";

/* =========================================================
   トークン（トップページ tamaya-an.com とトーン&マナーを統一）
   ========================================================= */
:root {
    --ty-navy: #1c2b3f;
    --ty-navy-deep: #14202f;
    --ty-gold: #b8935a;
    --ty-gold-light: #d9bd8d;
    --ty-bg: #faf8f4;
    --ty-card: #ffffff;
    --ty-text: #2b2b2b;
    --ty-text-soft: #6b6f76;
    --ty-border: #e6e1d8;
    --ty-radius: 6px;
    --ty-font-serif: "Noto Serif JP", serif;
    --ty-font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ty-bg);
    color: var(--ty-text);
    font-family: var(--ty-font-sans);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ty-navy);
    text-decoration: none;
}
a:hover { color: var(--ty-gold); }

h1, h2, h3, h4 {
    font-family: var(--ty-font-serif);
    color: var(--ty-navy);
    font-weight: 700;
    line-height: 1.5;
}

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

/* =========================================================
   ヘッダー（スティッキー）
   ========================================================= */
.ty-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ty-navy);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ty-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ty-header__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}
.ty-header__brand:hover { color: var(--ty-gold-light); }

.ty-header__eyebrow {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--ty-gold-light);
}

.ty-header__title {
    font-family: var(--ty-font-serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.ty-header__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .9rem;
}
.ty-header__nav a { color: #eceff2; }
.ty-header__nav a:hover,
.ty-header__nav a.is-active { color: var(--ty-gold-light); }

.ty-header__back {
    padding: 6px 14px;
    border: 1px solid var(--ty-gold);
    border-radius: 999px;
    color: var(--ty-gold-light) !important;
    white-space: nowrap;
}
.ty-header__back:hover { background: var(--ty-gold); color: var(--ty-navy-deep) !important; }

.ty-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.ty-header__toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
}

.ty-mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--ty-navy-deep);
    padding: 6px 20px 16px;
}
.ty-mobile-nav.is-open { display: flex; }
.ty-mobile-nav a {
    color: #eceff2;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 820px) {
    .ty-header__nav { display: none; }
    .ty-header__toggle { display: flex; }
}

/* =========================================================
   レイアウト（本文＋サイドバー）
   ========================================================= */
.ty-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.ty-main { flex: 1 1 auto; min-width: 0; }
.ty-sidebar { flex: 0 0 280px; }

@media (max-width: 900px) {
    .ty-layout { flex-direction: column; padding: 28px 16px 48px; gap: 32px; }
    .ty-sidebar { width: 100%; }
}

/* =========================================================
   エントリー本文
   ========================================================= */
#entry h3 {
    border-bottom: 2px solid var(--ty-border);
    padding-bottom: 10px;
}
#entry h3 time {
    font-family: var(--ty-font-sans);
    font-weight: 400;
    font-size: .8rem;
    color: var(--ty-text-soft);
}
#entry .category .badge {
    background: var(--ty-navy) !important;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
}

#entry .text img { border-radius: var(--ty-radius); }

#entry ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#entry #entry ul li a,
h3.h4 + ul li a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--ty-border);
    border-radius: 6px;
}

.ty-entry-row {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--ty-border);
}
.ty-entry-row__image {
    flex: 0 0 180px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--ty-radius);
    display: block;
}
.ty-entry-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ty-entry-row__body { flex: 1 1 auto; min-width: 0; }
.ty-entry-row__body h3 a { color: var(--ty-navy); }
.ty-entry-row__body time { color: var(--ty-text-soft); font-weight: 400; font-size: .8rem; }

@media (max-width: 560px) {
    .ty-entry-row { flex-direction: column; }
    .ty-entry-row__image { flex-basis: auto; width: 100%; }
}

.ty-pager ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 30px 0 0;
}
.ty-pager a {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid var(--ty-border);
    border-radius: 6px;
    font-size: .85rem;
}
.ty-pager a.is-current {
    background: var(--ty-navy);
    color: #fff;
    border-color: var(--ty-navy);
}

ul.headline { list-style: none; padding: 0; }
ul.headline li {
    padding: 14px 0;
    border-bottom: 1px solid var(--ty-border);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
}
ul.headline .datetime {
    color: var(--ty-gold);
    font-size: .85rem;
    font-weight: 500;
}
ul.headline a { font-weight: 700; }
ul.headline .text {
    flex-basis: 100%;
    color: var(--ty-text-soft);
    font-size: .9rem;
}

/* カテゴリー / ページ移動 の見出し直下リスト（トグルナビ風） */
#category ul, #entry > ul {
    margin: 0 0 30px;
}
#category ul li a,
#entry > ul li a {
    border-radius: 999px;
    font-size: .85rem;
}
#category ul li a.selected {
    background: var(--ty-navy);
    color: #fff;
    border-color: var(--ty-navy);
}

/* =========================================================
   ホーム：カード型エントリー一覧
   ========================================================= */
.ty-lead {
    background: var(--ty-card);
    border: 1px solid var(--ty-border);
    border-left: 4px solid var(--ty-gold);
    border-radius: var(--ty-radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.ty-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.ty-entry-card {
    background: var(--ty-card);
    border: 1px solid var(--ty-border);
    border-radius: var(--ty-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.ty-entry-card:hover {
    box-shadow: 0 10px 24px rgba(28, 43, 63, .1);
    transform: translateY(-2px);
}

.ty-entry-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ty-border);
}
.ty-entry-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ty-entry-card__body { padding: 16px 18px 20px; }
.ty-entry-card__body time {
    color: var(--ty-gold);
    font-size: .78rem;
    font-weight: 500;
}
.ty-entry-card__body h3 {
    font-size: 1rem;
    margin: 6px 0 8px;
}
.ty-entry-card__body h3 a { color: var(--ty-navy); }
.ty-entry-card__body p {
    color: var(--ty-text-soft);
    font-size: .85rem;
    margin: 0;
}

.ty-more {
    text-align: center;
    margin-top: 32px;
}
.ty-more a {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--ty-navy);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
}
.ty-more a:hover { background: var(--ty-navy); color: #fff; }

/* =========================================================
   サイドバー ウィジェット
   ========================================================= */
.ty-widget {
    background: var(--ty-card);
    border: 1px solid var(--ty-border);
    border-radius: var(--ty-radius);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.ty-widget__title {
    font-size: 1rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ty-gold);
}

.ty-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .88rem;
}
.ty-widget__list li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed var(--ty-border);
}
.ty-widget__list li:last-child { border-bottom: none; }
.ty-widget__count { color: var(--ty-text-soft); }

.ty-widget__list--archive {
    max-height: 320px;
    overflow-y: auto;
}

/* =========================================================
   カレンダー（旧サイトの「継続の可視化」を踏襲）
   ========================================================= */
.ty-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--ty-font-serif);
    font-weight: 700;
    color: var(--ty-navy);
    margin-bottom: 10px;
}
.ty-calendar__head a {
    color: var(--ty-gold);
    font-size: 1.2rem;
    padding: 0 8px;
}

.ty-calendar__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
    text-align: center;
}
.ty-calendar__table th,
.ty-calendar__table td {
    padding: 6px 2px;
    width: 14.28%;
}
.ty-calendar__table thead th {
    color: var(--ty-text-soft);
    font-weight: 500;
    border-bottom: 1px solid var(--ty-border);
}
.ty-calendar__table th.is-sun, .ty-calendar__table td.is-sun { color: #c0504d; }
.ty-calendar__table th.is-sat, .ty-calendar__table td.is-sat { color: #4472c4; }
.ty-calendar__table td.is-empty { color: transparent; }

.ty-calendar__table td.has-entry a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--ty-navy);
    color: #fff !important;
    font-weight: 700;
}
.ty-calendar__table td.has-entry a:hover { background: var(--ty-gold); }

/* =========================================================
   フッター
   ========================================================= */
.ty-footer {
    background: var(--ty-navy-deep);
    color: #cfd4da;
    text-align: center;
    padding: 32px 20px;
    font-size: .82rem;
}
.ty-footer__company {
    font-family: var(--ty-font-serif);
    color: #fff;
    font-size: 1rem;
    margin: 0 0 6px;
}
.ty-footer__links { margin: 10px 0; }
.ty-footer__links a { color: var(--ty-gold-light); margin: 0 10px; }
.ty-footer__copyright { color: #8891a0; margin-top: 10px; font-size: .75rem; }
