.hayashi-db-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 18px 56px;
}

.hayashi-db-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hayashi-filter-panel {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-filter-panel label {
    display: grid;
    gap: 6px;
}

.hayashi-filter-panel span {
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-filter-panel input,
.hayashi-filter-panel select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.hayashi-filter-keyword {
    grid-column: span 2;
}

.hayashi-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hayashi-filter-actions .hayashi-button {
    border: 0;
    cursor: pointer;
}

.hayashi-reset-link {
    color: #555;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-result-count {
    margin: 0 0 16px;
    color: #555;
    font-weight: 700;
}

.hayashi-active-filters,
.hayashi-keyword-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
}

.hayashi-active-filters strong,
.hayashi-keyword-matches strong {
    color: #276955;
    font-size: 13px;
}

.hayashi-active-filters a,
.hayashi-keyword-matches a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-active-filters a:hover,
.hayashi-keyword-matches a:hover {
    border-color: #276955;
    background: #e8f0eb;
}

.hayashi-active-filters span,
.hayashi-keyword-matches span {
    color: #276955;
    font-size: 12px;
}

.hayashi-active-filters b {
    color: #b7352d;
    font-size: 16px;
    line-height: 1;
}

.hayashi-keyword-matches {
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
}

.hayashi-keyword-matches strong {
    padding-top: 7px;
}

.hayashi-keyword-matches div {
    display: flex;
    flex: 1 1 260px;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-term-profile {
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #d9ddd6;
    border-left: 5px solid #276955;
    border-radius: 8px;
    background: #fff;
}

.hayashi-term-profile p:first-child {
    margin: 0 0 4px;
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-term-profile h2 {
    margin: 0 0 10px;
}

.hayashi-term-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 14px;
}

.hayashi-term-summary div {
    padding: 12px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
}

.hayashi-term-summary strong {
    display: block;
    color: #1f2724;
    font-size: 24px;
    line-height: 1;
}

.hayashi-term-summary span {
    display: block;
    margin-top: 6px;
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-area-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 12px;
    color: #8a8175;
    font-size: 13px;
    font-weight: 700;
}

.hayashi-area-breadcrumb a {
    color: #7a0f0f;
    text-decoration: none;
}

.hayashi-area-breadcrumb a:hover {
    text-decoration: underline;
}

.hayashi-area-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hayashi-area-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hayashi-area-children a {
    justify-content: space-between;
}

.hayashi-area-children a span {
    color: #8a8175;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-term-description > :last-child,
.hayashi-term-profile div > :last-child {
    margin-bottom: 0;
}

.hayashi-term-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.hayashi-term-facts div {
    padding: 12px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
}

.hayashi-term-facts dt {
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-term-facts dd {
    margin: 5px 0 0;
    line-height: 1.7;
}

.hayashi-term-facts a {
    color: #276955;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.hayashi-term-facts a:hover {
    text-decoration: underline;
}

.hayashi-map-link {
    display: inline-flex;
    margin-top: 6px;
    color: #276955;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-map-link:hover {
    text-decoration: underline;
}

.hayashi-map-embed {
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #e7e7e7;
}

.hayashi-map-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
}

.hayashi-map-section {
    border-top: 1px solid #eef0ed;
}

.hayashi-map-page .hayashi-map-hero .hayashi-link-list {
    margin-top: 16px;
}

.hayashi-map-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hayashi-map-filter-panel .hayashi-filter-keyword {
    grid-column: span 2;
}

.hayashi-map-filter-panel .hayashi-filter-actions {
    grid-column: 1 / -1;
}

.hayashi-map-results {
    display: grid;
    gap: 12px;
}

.hayashi-map-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-map-card h2 {
    margin: 8px 0 6px;
    font-size: 19px;
}

.hayashi-map-card p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.hayashi-map-card small {
    display: block;
    margin-top: 6px;
    color: #666;
    line-height: 1.6;
}

.hayashi-map-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hayashi-leaflet-panel {
    margin: 18px 0;
    overflow: hidden;
}

.hayashi-map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.hayashi-map-heading p {
    margin: 0 0 4px;
    color: #8a8175;
    font-size: 0.9rem;
}

.hayashi-map-heading h2 {
    margin: 0;
    color: #5a0a0a;
    font-size: 1.55rem;
}

.hayashi-map-heading span {
    color: #7a0f0f;
    font-weight: 700;
    white-space: nowrap;
}

.hayashi-leaflet-map {
    width: 100%;
    min-height: 560px;
    border: 1px solid #d8ccba;
    background: #f5efe4;
}

.hayashi-google-map {
    background: #f5efe4;
}

.hayashi-map-unavailable {
    display: grid;
    min-height: 560px;
    place-items: center;
    padding: 24px;
    color: #7a0f0f;
    text-align: center;
    line-height: 1.7;
}

.hayashi-map-note {
    margin: 10px 0 0;
    color: #8a8175;
    font-size: 0.9rem;
    line-height: 1.7;
}

.hayashi-map-pin {
    background: transparent;
    border: 0;
}

.hayashi-map-pin span {
    display: block;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 3px 10px rgba(4, 30, 66, 0.28);
    transform: rotate(-45deg);
}

.hayashi-map-popup {
    min-width: 220px;
    color: #3f3a34;
}

.hayashi-map-popup > span {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f5efe4;
    color: #7a0f0f;
    font-size: 0.78rem;
    font-weight: 700;
}

.hayashi-map-popup strong {
    display: block;
    margin-bottom: 5px;
    color: #5a0a0a;
    font-size: 1rem;
    line-height: 1.45;
}

.hayashi-map-popup p,
.hayashi-map-popup small {
    display: block;
    margin: 0 0 7px;
    color: #3f3a34;
    line-height: 1.55;
}

.hayashi-map-popup div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.hayashi-map-popup a {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 4px;
    background: #7a0f0f;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-map-type-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -8px 0 18px;
    padding: 14px 18px;
    border: 1px solid #d8ccba;
    background: #041e42;
    color: #fff;
}

.hayashi-map-type-switch strong {
    font-size: 0.98rem;
    white-space: nowrap;
}

.hayashi-map-type-switch div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hayashi-map-type-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-map-type-switch a:hover,
.hayashi-map-type-switch a:focus,
.hayashi-map-type-switch a.is-active {
    border-color: #fff;
    background: #fffdf7;
    color: #7a0f0f;
}

.hayashi-term-children {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0ed;
}

.hayashi-term-children strong {
    display: block;
    margin-bottom: 8px;
    color: #276955;
    font-size: 13px;
}

.hayashi-term-children div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-term-children a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #f7faf8;
    color: #276955;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-term-children a:hover {
    border-color: #276955;
    background: #e8f0eb;
}

.hayashi-term-related-events {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0ed;
}

.hayashi-term-group-preview,
.hayashi-term-guidance {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0ed;
}

.hayashi-term-group-preview > strong,
.hayashi-term-guidance > strong {
    display: block;
    margin-bottom: 8px;
    color: #276955;
    font-size: 13px;
}

.hayashi-term-group-preview > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hayashi-term-group-preview a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
    color: inherit;
    text-decoration: none;
}

.hayashi-term-group-preview a:hover {
    border-color: #276955;
    background: #eef6f1;
}

.hayashi-term-group-preview img,
.hayashi-term-group-preview-thumb {
    width: 56px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #dfe7e2;
}

.hayashi-term-group-preview b {
    display: block;
    color: #1f2724;
    line-height: 1.45;
}

.hayashi-term-group-preview small {
    display: block;
    margin-top: 3px;
    color: #666;
    line-height: 1.45;
}

.hayashi-term-guidance {
    padding: 12px;
    border: 1px solid #e4d8b8;
    border-left: 5px solid #b48728;
    border-radius: 8px;
    background: #fffaf0;
}

.hayashi-term-guidance ul {
    margin: 0;
    padding-left: 1.2em;
    color: #5b4a22;
    line-height: 1.7;
}

.hayashi-term-related-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0ed;
}

.hayashi-term-related-groups div {
    padding: 12px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
}

.hayashi-term-related-groups p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
}

.hayashi-term-related-events strong {
    display: block;
    margin-bottom: 8px;
    color: #276955;
    font-size: 13px;
}

.hayashi-term-related-groups strong {
    display: block;
    color: #276955;
    font-size: 13px;
}

.hayashi-term-related-events div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-term-related-events a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #fff;
    color: #276955;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-term-related-groups a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #fff;
    color: #276955;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-term-related-events a span {
    color: #68736d;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-term-related-groups a:hover,
.hayashi-term-related-events a:hover {
    border-color: #276955;
    background: #e8f0eb;
}

.hayashi-card {
    overflow: hidden;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e7e7e7;
}

.hayashi-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.hayashi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hayashi-tag {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f0eb;
    color: #276955;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-tag:hover,
.hayashi-card-facts a:hover {
    text-decoration: underline;
}

.hayashi-tag-muted {
    background: #f1f3f0;
    color: #68736d;
}

.hayashi-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hayashi-card-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border: 1px solid #d8c8ba;
    border-radius: 999px;
    background: #fff8f0;
    color: #7a342d;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-card-facts {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #eef0ed;
    border-bottom: 1px solid #eef0ed;
}

.hayashi-card-facts div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
}

.hayashi-card-facts-rich div {
    grid-template-columns: 68px minmax(0, 1fr);
}

.hayashi-card-facts dt {
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-card-facts dd {
    margin: 0;
    color: #444;
    line-height: 1.55;
}

.hayashi-card-facts a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 6px;
    background: #b7352d;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-button-secondary {
    border: 1px solid #276955;
    background: #fff;
    color: #276955;
}

.hayashi-button-secondary:hover {
    background: #eef6f1;
}

.hayashi-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: 36px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 18px;
}

.hayashi-single-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

.hayashi-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.hayashi-term-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #f7faf8;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-term-chip:hover {
    border-color: #276955;
    background: #e8f0eb;
}

.hayashi-term-chip span {
    color: #276955;
    font-size: 12px;
}

.hayashi-hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.hayashi-hero-facts div {
    padding: 10px 12px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-hero-facts dt {
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-hero-facts dd {
    margin: 4px 0 0;
    line-height: 1.55;
}

.hayashi-hero-facts a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-hero-facts a:hover {
    text-decoration: underline;
}

.hayashi-transmission-callout {
    margin: 16px 0;
    padding: 14px;
    border-left: 5px solid #c89432;
    border-radius: 8px;
    background: #fff8eb;
}

.hayashi-transmission-callout span {
    display: block;
    margin-bottom: 4px;
    color: #8a5b12;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-transmission-callout p {
    margin: 0;
    line-height: 1.7;
}

.hayashi-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 0 18px;
}

.hayashi-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background: #fff;
    color: #276955;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-section-nav a:hover {
    border-color: #276955;
    background: #e8f0eb;
}

.hayashi-panel,
.hayashi-single-layout aside {
    scroll-margin-top: 24px;
}

.hayashi-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px 56px;
}

.hayashi-panel {
    padding: 20px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-panel + .hayashi-panel {
    margin-top: 18px;
}

.hayashi-info-group {
    padding-top: 14px;
}

.hayashi-info-group + .hayashi-info-group {
    margin-top: 16px;
    border-top: 1px solid #eef0ed;
}

.hayashi-info-group h3 {
    margin: 0 0 6px;
    color: #276955;
    font-size: 15px;
}

.hayashi-info-group .hayashi-info-list {
    margin: 0;
}

.hayashi-info-list-legacy {
    display: none;
}

.hayashi-info-list div {
    padding: 9px 0;
    border-bottom: 1px solid #e5e5e5;
}

.hayashi-info-list dt {
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-info-list dd {
    margin: 4px 0 0;
}

.hayashi-info-list dd a {
    color: #276955;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-info-list dd a:hover {
    text-decoration: underline;
}

.hayashi-pagination {
    margin-top: 28px;
}

.hayashi-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hayashi-pagination a,
.hayashi-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9ddd6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.hayashi-pagination .current {
    border-color: #276955;
    background: #276955;
    color: #fff;
}

.hayashi-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hayashi-video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.hayashi-video-card {
    overflow: hidden;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-video-card p {
    margin: 0;
    padding: 10px 12px;
    color: #276955;
    font-weight: 700;
}

.hayashi-video-watch-panel {
    padding: 22px;
    background: #041E42;
    color: #fff;
    border-color: #041E42;
}

.hayashi-video-watch-heading {
    margin: 0 0 16px;
}

.hayashi-video-watch-heading p {
    margin: 0 0 4px;
    color: #F5EFE4;
    font-size: 13px;
    font-weight: 700;
}

.hayashi-video-watch-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.45;
}

.hayashi-video-player {
    overflow: hidden;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hayashi-video-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    border: 0;
}

.hayashi-video-player-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #F5EFE4;
}

.hayashi-video-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hayashi-video-archive-card {
    display: flex;
    flex-direction: column;
}

.hayashi-video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #041E42;
    color: #fff;
    text-decoration: none;
}

.hayashi-video-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hayashi-video-thumb span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(122, 15, 15, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hayashi-video-thumb .hayashi-video-play-mark {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hayashi-video-thumb .hayashi-video-play-mark::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #fff;
}

.hayashi-video-archive-card:hover .hayashi-video-thumb img {
    transform: scale(1.03);
    opacity: 0.9;
}

.hayashi-video-summary {
    margin: 12px 0 0;
    color: #3F3A34;
}

.hayashi-video-card-body {
    padding: 12px 14px 14px;
}

.hayashi-video-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
}

.hayashi-video-card-body p {
    padding: 0;
}

.hayashi-video-related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.hayashi-video-related-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #D8CCBA;
    border-radius: 999px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-video-relation-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}

.hayashi-video-relation-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 8px;
    border: 1px solid #D8CCBA;
    border-radius: 8px;
    background: #FFFDF7;
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-video-relation-card:hover {
    border-color: #7A0F0F;
    color: #5A0A0A;
}

.hayashi-video-relation-card img,
.hayashi-video-relation-initial {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: #F5EFE4;
}

.hayashi-video-relation-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A0F0F;
    font-weight: 800;
}

.hayashi-video-relation-card strong,
.hayashi-video-relation-card em {
    display: block;
    min-width: 0;
}

.hayashi-video-relation-card strong {
    color: #3F3A34;
    line-height: 1.45;
}

.hayashi-video-relation-card em {
    margin-top: 3px;
    color: #8A8175;
    font-size: 12px;
    font-style: normal;
}

.hayashi-video-trace-panel {
    border-top: 4px solid #041E42;
}

.hayashi-video-trace-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.hayashi-video-trace-card {
    display: block;
    min-height: 104px;
    padding: 12px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: linear-gradient(180deg, #FFFDF7 0%, #F7F3EA 100%);
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-video-trace-card:hover {
    border-color: #7A0F0F;
    color: #5A0A0A;
}

.hayashi-video-trace-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 3px 8px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 0.78rem;
    font-weight: 700;
}

.hayashi-video-trace-card strong,
.hayashi-video-trace-card em {
    display: block;
}

.hayashi-video-trace-card strong {
    color: #3F3A34;
    line-height: 1.45;
}

.hayashi-video-trace-card em {
    margin-top: 6px;
    color: #8A8175;
    font-size: 0.82rem;
    font-style: normal;
}

.hayashi-video-single .hayashi-video-relations > h2,
.hayashi-video-single .hayashi-video-comments > h2,
.hayashi-video-single .hayashi-video-profile > h2,
.hayashi-video-single .hayashi-video-trace-panel > h2,
.hayashi-video-single .hayashi-video-group-profile-panel > h2,
.hayashi-video-watch-below .hayashi-panel > h2 {
    margin: 0 0 16px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #D8CCBA;
    background: transparent;
    color: #5A0F12;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.45;
}

.hayashi-video-single .hayashi-video-relations h3 {
    margin: 18px 0 10px;
    color: #5A0F12;
    font-size: 1.08rem;
    line-height: 1.45;
}

.hayashi-video-single .hayashi-video-comments .hayashi-panel-eyebrow {
    display: none;
}

.hayashi-video-single .hayashi-video-comments {
    padding-top: 24px;
}

.hayashi-video-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
    align-items: start;
    width: min(100%, 1440px);
    margin: 0 auto 18px;
}

.hayashi-video-watch-main {
    min-width: 0;
}

.hayashi-video-watch-below {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.hayashi-video-watch-layout > .hayashi-video-watch-below {
    grid-column: 1 / 2;
}

.hayashi-video-watch-below summary {
    display: none;
}

.hayashi-video-watch-below-inner {
    display: grid;
    gap: 18px;
}

.hayashi-video-watch-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hayashi-video-watch-recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 18px auto;
}

.hayashi-video-side-panel {
    padding: 16px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
}

.hayashi-video-side-panel h2 {
    margin: 0 0 12px;
    color: #5A0F12;
    font-size: 1.08rem;
}

.hayashi-video-watch-sidebar .hayashi-video-side-panel {
    padding: 12px;
}

.hayashi-video-watch-sidebar .hayashi-video-side-panel h2 {
    font-size: 1rem;
}

.hayashi-video-watch-sidebar .hayashi-video-mini-card {
    grid-template-columns: 132px minmax(0, 1fr);
}

.hayashi-video-group-side-panel {
    max-width: 1120px;
    margin: 18px auto;
}

.hayashi-video-group-side-panel .hayashi-video-mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hayashi-video-group-side-panel .hayashi-video-mini-card {
    display: block;
}

.hayashi-video-group-side-panel .hayashi-video-mini-thumb {
    margin-bottom: 8px;
}

.hayashi-video-mini-list {
    display: grid;
    gap: 10px;
}

.hayashi-video-mini-card {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-video-mini-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #041E42;
}

.hayashi-video-mini-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hayashi-video-mini-card:hover .hayashi-video-mini-thumb img {
    transform: scale(1.03);
    opacity: 0.9;
}

.hayashi-video-mini-card .hayashi-video-play-mark {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 24px;
    border-radius: 6px;
    background: rgba(122, 15, 15, 0.92);
}

.hayashi-video-mini-card .hayashi-video-play-mark::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff;
    transform: translate(-38%, -50%);
}

.hayashi-video-mini-body strong,
.hayashi-video-mini-body em {
    display: block;
}

.hayashi-video-mini-body strong {
    color: #3F3A34;
    line-height: 1.45;
}

.hayashi-video-mini-body em {
    margin-top: 5px;
    color: #8A8175;
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.45;
}

.hayashi-video-group-spotlight {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hayashi-video-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hayashi-video-group-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

.hayashi-video-group-info-card {
    display: block;
    width: 100%;
}

.hayashi-video-group-image {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #F5EFE4;
}

.hayashi-video-group-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
}

.hayashi-video-group-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.hayashi-video-group-card h3 a {
    color: #5A0F12;
    text-decoration: none;
}

.hayashi-video-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.hayashi-video-group-meta span {
    padding: 3px 8px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 0.82rem;
    font-weight: 700;
}

.hayashi-video-group-facts {
    display: grid;
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
    gap: 0;
    margin: 0 0 12px;
    border: 1px solid #E5D9C7;
    border-radius: 5px;
    background: #F7F3EA;
    overflow: hidden;
}

.hayashi-video-group-facts div {
    display: contents;
    min-width: 0;
}

.hayashi-video-group-facts dt {
    margin: 0;
    padding: 9px 10px;
    border-bottom: 1px solid #E5D9C7;
    background: #F5EFE4;
    color: #8A8175;
    font-size: 0.82rem;
    font-weight: 700;
}

.hayashi-video-group-facts dd {
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #E5D9C7;
    background: #FFFDF7;
    color: #3F3A34;
    font-size: 0.92rem;
    line-height: 1.55;
}

.hayashi-video-group-text,
.hayashi-video-group-history {
    margin: 0 0 12px;
    padding-top: 10px;
    border-top: 1px solid #E5D9C7;
}

.hayashi-video-group-text h4,
.hayashi-video-group-history h4 {
    margin: 0 0 5px;
    color: #5A0F12;
    font-size: 0.92rem;
    font-weight: 700;
}

.hayashi-video-group-text p,
.hayashi-video-group-history p {
    margin: 0;
    color: #3F3A34;
    font-size: 0.92rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .hayashi-video-watch-layout,
    .hayashi-video-watch-recommendations,
    .hayashi-video-group-grid,
    .hayashi-video-group-side-panel .hayashi-video-mini-list {
        grid-template-columns: 1fr;
    }

    .hayashi-video-watch-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hayashi-video-trace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .hayashi-video-watch-below {
        display: block;
        margin-top: 14px;
    }

    .hayashi-video-watch-below summary {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #D8CCBA;
        border-radius: 5px;
        background: #FFFDF7;
        color: #7A0F0F;
        font-weight: 700;
        cursor: pointer;
    }

    .hayashi-video-watch-below-inner {
        margin-top: 12px;
    }

    .hayashi-video-watch-sidebar {
        grid-template-columns: 1fr;
    }

    .hayashi-video-trace-grid {
        grid-template-columns: 1fr;
    }

    .hayashi-video-mini-card,
    .hayashi-video-group-card {
        grid-template-columns: 1fr;
    }

    .hayashi-video-group-facts {
        grid-template-columns: 1fr;
    }

    .hayashi-video-group-facts div,
    .hayashi-video-group-facts dt,
    .hayashi-video-group-facts dd {
        display: block;
    }

    .hayashi-video-group-facts dt {
        border-bottom: 0;
        padding-bottom: 3px;
    }

    .hayashi-video-group-facts dd {
        padding-top: 0;
    }
}

.hayashi-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hayashi-relation {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #d9ddd6;
    border-left: 5px solid #c89432;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.hayashi-relation-no-image {
    display: block;
}

.hayashi-relation img {
    width: 72px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #e7e7e7;
}

.hayashi-relation + .hayashi-relation,
.hayashi-relation-group + .hayashi-relation-group {
    margin-top: 12px;
}

.hayashi-relation-group h3 {
    margin: 14px 0 10px;
    color: #276955;
    font-size: 16px;
}

.hayashi-relation-incoming {
    border-left-color: #276955;
}

.hayashi-relation span {
    display: block;
    color: #276955;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-related-group + .hayashi-related-group {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0ed;
}

.hayashi-related-group h3 {
    margin: 0 0 10px;
    color: #276955;
    font-size: 16px;
}

.hayashi-related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-related-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.hayashi-related-card:hover {
    border-color: #276955;
}

.hayashi-related-card img {
    width: 72px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #e7e7e7;
}

.hayashi-related-card .hayashi-relation-no-image {
    width: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #dfe7e2;
}

.hayashi-related-card span {
    color: #276955;
    font-weight: 700;
    line-height: 1.45;
}

.hayashi-related-card small {
    grid-column: 2;
    color: #666;
    line-height: 1.45;
}

.hayashi-related-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-related-cards article {
    padding: 14px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #f7faf8;
}

.hayashi-related-cards h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.hayashi-related-cards a {
    color: #276955;
    text-decoration: none;
}

.hayashi-related-cards a:hover {
    text-decoration: underline;
}

.hayashi-related-cards p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.hayashi-article-related {
    margin-top: 18px;
}

body.single-post .hayashi-article-related-wrap {
    clear: both;
    margin: 42px 0 0;
    display: grid;
    gap: 18px;
}

body.single-post .hayashi-article-related-wrap .hayashi-panel {
    margin: 0;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid #d8ccba;
    border-top: 4px solid #7a0f0f;
    border-left: 1px solid #d8ccba;
    border-radius: 6px;
    background: #fffdf7;
    color: #3f3a34;
    box-shadow: none;
}

body.single-post .hayashi-article-related-wrap .hayashi-panel h2 {
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(216, 204, 186, 0.85);
    background: transparent;
    color: #5a0f12;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.35;
}

body.single-post .hayashi-article-related-wrap .hayashi-related-cards article {
    background: #ffffff;
    border-color: #d8ccba;
}

body.single-post .hayashi-article-related-wrap .hayashi-related-cards a,
body.single-post .hayashi-article-related-wrap .hayashi-panel a {
    color: #7a0f0f;
}

body.single-post .hayashi-article-related-wrap .hayashi-related-cards p {
    color: #4c463f;
}

.hayashi-alb-hero {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 32px;
    padding: 0;
}

.hayashi-builder-db-wrap {
    padding: clamp(32px, 5vw, 56px) 0;
}

.hayashi-builder-db-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 3vw, 26px);
}

.hayashi-builder-db-content ~ .hayashi-builder-db-content {
    display: none;
}

.hayashi-builder-db-content > article {
    margin: 0;
}

.hayashi-builder-db-content .hayashi-single-hero,
.hayashi-builder-db-content .hayashi-event-profile {
    margin-top: 0;
}

.hayashi-group-pr-panel,
.hayashi-group-pr-only .hayashi-pr-content {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hayashi-panel-eyebrow {
    margin: 0 0 8px;
    color: #7A0F0F;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
}

.hayashi-pr-lead {
    color: #3F3A34;
    font-size: 1.03rem;
    line-height: 1.9;
}

.hayashi-pr-catchcopy {
    margin: 10px 0 0;
    color: #5A0F12;
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.65;
}

.hayashi-group-pr-hero .hayashi-pr-catchcopy {
    color: inherit;
}

.hayashi-pr-message-panel,
.hayashi-pr-details-panel,
.hayashi-support-comments {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hayashi-group-pr-page {
    display: grid;
    gap: 22px;
}

.hayashi-group-pr-hero {
    border-top-color: #041E42;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(4, 30, 66, 0.92), rgba(90, 15, 18, 0.88)),
        #041E42;
    color: #FFFFFF;
}

.hayashi-group-pr-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, #7A0F0F, #F5EFE4, #041E42);
    opacity: 0.86;
}

.hayashi-group-pr-hero > * {
    position: relative;
    z-index: 1;
}

.hayashi-pr-message-panel,
.hayashi-pr-details-panel {
    position: relative;
    overflow: hidden;
}

.hayashi-pr-message-panel::before,
.hayashi-pr-details-panel::before,
.hayashi-support-comments::before {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 0 0 14px;
    border-radius: 2px;
    background: #7A0F0F;
}

.hayashi-pr-message-body,
.hayashi-support-comments-lead {
    color: #3F3A34;
    line-height: 1.9;
}

.hayashi-support-comments {
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 243, 234, 0.96));
}

.hayashi-support-comments-lead {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

.hayashi-pr-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.hayashi-pr-detail-grid article {
    padding: 16px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
    box-shadow: 0 10px 24px rgba(4, 30, 66, 0.06);
}

.hayashi-pr-detail-grid h3 {
    margin: 0 0 8px;
    color: #5A0F12;
    font-size: 1rem;
}

.hayashi-pr-detail-grid p {
    margin: 0;
    color: #3F3A34;
    line-height: 1.8;
}

.hayashi-pr-gallery-panel {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hayashi-pr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-pr-gallery-item {
    position: relative;
    min-height: 190px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #F5EFE4;
}

.hayashi-pr-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 392px;
}

.hayashi-pr-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.hayashi-pr-gallery-item:hover img {
    transform: scale(1.035);
}

.hayashi-pr-gallery-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.6;
    background: linear-gradient(180deg, rgba(4, 30, 66, 0), rgba(4, 30, 66, 0.86));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hayashi-managed-portal {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.hayashi-managed-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.hayashi-managed-portal-card {
    padding: 18px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
}

.hayashi-managed-portal-card h3 {
    margin: 0 0 14px;
    color: #5A0F12;
    font-size: 1.12rem;
}

.hayashi-managed-portal-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
}

.hayashi-managed-portal-card dl div {
    padding: 10px;
    border: 1px solid #E5DCCF;
    border-radius: 5px;
    background: #F7F3EA;
}

.hayashi-managed-portal-card dt {
    color: #8A8175;
    font-size: 0.82rem;
}

.hayashi-managed-portal-card dd {
    margin: 4px 0 0;
    color: #041E42;
    font-weight: 700;
}

.hayashi-managed-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-manager-front-note {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    border-top-color: #041E42;
    background: #FFFDF7;
}

.hayashi-manager-front-note h2 {
    margin-top: 0;
    color: #041E42;
}

@media (max-width: 760px) {
    .hayashi-managed-portal-grid,
    .hayashi-managed-portal-card dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hayashi-pr-gallery-grid {
        grid-template-columns: 1fr;
    }

    .hayashi-pr-gallery-item,
    .hayashi-pr-gallery-item:first-child {
        grid-column: auto;
        grid-row: auto;
        min-height: 220px;
    }
}

.hayashi-support-comment-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.hayashi-support-comment-list .comment {
    margin: 0;
    padding: 16px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
    box-shadow: 0 8px 18px rgba(4, 30, 66, 0.05);
}

.hayashi-support-comment-list .comment-author {
    color: #5A0F12;
    font-weight: 700;
}

.hayashi-support-comment-list .comment-content {
    margin-top: 8px;
    color: #3F3A34;
    line-height: 1.85;
}

.hayashi-support-comment-list .comment-meta,
.hayashi-support-comment-list .comment-metadata {
    color: #8A8175;
    font-size: 0.88rem;
}

.hayashi-support-comments .comment-respond {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #F7F3EA;
}

.hayashi-support-comment-form {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
}

.hayashi-support-comments .comment-reply-title {
    margin: 0 0 12px;
    color: #5A0F12;
    font-size: 1.18rem;
}

.hayashi-support-comments .comment-form {
    display: grid;
    gap: 12px;
}

.hayashi-support-comments .comment-form p {
    margin: 0;
}

.hayashi-support-comments .comment-form label {
    display: block;
    margin-bottom: 6px;
    color: #5A0F12;
    font-weight: 700;
}

.hayashi-support-comments .comment-form input[type="text"],
.hayashi-support-comments .comment-form input[type="email"],
.hayashi-support-comments .comment-form input[type="url"],
.hayashi-support-comments .comment-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #FFFFFF;
    color: #3F3A34;
}

.hayashi-support-comments .form-submit input,
.hayashi-support-comments .form-submit button {
    border: 1px solid #7A0F0F;
    border-radius: 4px;
    background: #7A0F0F;
    color: #FFFFFF;
    font-weight: 700;
}

.hayashi-support-comments .form-submit input:hover,
.hayashi-support-comments .form-submit button:hover {
    border-color: #5A0A0A;
    background: #5A0A0A;
}

.hayashi-support-comments .hayashi-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hayashi-button-comment {
    border-color: #041E42 !important;
    background: #041E42 !important;
    color: #FFFFFF !important;
}

.hayashi-button-comment:hover {
    border-color: #0A315F !important;
    background: #0A315F !important;
}

.hayashi-form-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.7;
}

.hayashi-form-message-success {
    border: 1px solid #C9DDBF;
    background: #F1F8ED;
    color: #2F5D22;
}

.hayashi-form-message-error {
    border: 1px solid #E6C2C2;
    background: #FFF3F3;
    color: #7A0F0F;
}

.hayashi-pr-actions {
    margin-top: 16px;
}

.hayashi-pr-facts {
    margin-top: 16px;
}

.hayashi-group-pr-only {
    display: grid;
    gap: 24px;
}

.hayashi-group-pr-hero .hayashi-pr-lead {
    color: inherit;
    max-width: 48rem;
}

.hayashi-alb-hero > *:first-child {
    margin-top: 0;
}

.hayashi-alb-hero > *:last-child {
    margin-bottom: 0;
}

#top .template-hayashi-db .hayashi-alb-hero .container,
body .template-hayashi-db .hayashi-alb-hero .container {
    max-width: none;
}

.hayashi-event-profile-after-builder,
.hayashi-single-hero-after-builder {
    max-width: 1180px;
    margin: 0 auto 32px;
    border: 1px solid #d8ccba;
    border-top: 4px solid #7a0f0f;
    border-radius: 6px;
    background: #fffdf7;
    box-shadow: none;
}

.hayashi-event-profile-after-builder {
    padding: clamp(22px, 4vw, 38px);
}

.hayashi-event-profile-after-builder h1 {
    color: #5a0f12;
}

.hayashi-event-profile-after-builder .hayashi-event-profile-image {
    display: none;
}

.hayashi-single-hero-after-builder {
    padding: clamp(18px, 3vw, 28px);
}

.hayashi-single-hero-after-builder > img {
    max-height: 260px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .hayashi-alb-hero {
        margin-bottom: 22px;
    }

    .hayashi-event-profile-after-builder,
    .hayashi-single-hero-after-builder {
        margin-bottom: 24px;
    }
}

.hayashi-article-relation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-article-relation-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(122, 15, 15, 0.22);
    border-radius: 6px;
    background: #fff;
    color: #7a0f0f;
    text-decoration: none;
}

.hayashi-article-relation-links a:hover {
    border-color: #7a0f0f;
    text-decoration: none;
}

.hayashi-source-panel {
    border-left: 5px solid #041e42;
}

.hayashi-source-panel p {
    margin-bottom: 0;
    line-height: 1.8;
}

.hayashi-source-cards {
    grid-template-columns: 1fr;
}

.hayashi-source-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #d8ccba;
    border-top: 4px solid #041e42;
    border-radius: 6px;
    background: #fffdf7;
}

.hayashi-source-card h3 {
    margin-bottom: 0;
    line-height: 1.45;
}

.hayashi-source-card h3 a {
    color: #5a0f12;
}

.hayashi-source-type {
    width: fit-content;
    padding: 3px 8px;
    border: 1px solid #d8ccba;
    border-radius: 4px;
    background: #f5efe4;
    color: #7a0f0f;
    font-size: 12px;
    font-weight: 700;
}

.hayashi-source-subtitle,
.hayashi-source-meta,
.hayashi-source-id {
    color: #555;
    font-size: 14px;
}

.hayashi-source-id {
    color: #777;
}

.hayashi-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.hayashi-source-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(122, 15, 15, 0.22);
    border-radius: 4px;
    background: #fff;
    color: #7a0f0f;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-source-actions a:hover {
    border-color: #7a0f0f;
    background: #f5efe4;
    text-decoration: none;
}

.hayashi-source-detail-panel {
    border-left: 5px solid #041e42;
}

.hayashi-source-detail-kicker {
    margin: 0 0 4px;
    color: #7a0f0f;
    font-size: 13px;
    font-weight: 700;
}

.hayashi-source-detail-panel h2 {
    margin-top: 0;
    color: #5a0f12;
}

.hayashi-source-detail-title {
    margin: 0;
    color: #041e42;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.hayashi-source-detail-table {
    margin-top: 12px;
}

.hayashi-source-detail-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d8ccba;
    border-radius: 6px;
    background: #fffdf7;
}

.hayashi-source-detail-note h3 {
    margin: 0 0 6px;
    color: #5a0f12;
    font-size: 16px;
}

.hayashi-source-detail-actions {
    margin-top: 14px;
}

.hayashi-source-usage-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hayashi-source-usage-card {
    display: grid;
    gap: 8px;
}

.hayashi-source-usage-group {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hayashi-source-usage-group > h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: #041e42;
    font-size: 17px;
}

.hayashi-source-usage-group > h3 span {
    padding: 2px 7px;
    border: 1px solid #d8ccba;
    border-radius: 4px;
    background: #f5efe4;
    color: #7a0f0f;
    font-size: 12px;
}

.hayashi-source-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hayashi-source-archive-card {
    padding: 16px;
    border: 1px solid #d8ccba;
    border-top: 4px solid #041e42;
    border-radius: 6px;
}

.hayashi-source-archive-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.hayashi-source-archive-card h2 a {
    color: #5a0f12;
    text-decoration: none;
}

.hayashi-source-archive-card h2 a:hover {
    text-decoration: underline;
}

.hayashi-source-summary {
    color: #555;
    line-height: 1.75;
}

.hayashi-source-card .hayashi-source-summary,
.hayashi-source-archive-card .hayashi-source-summary {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed #d8ccba;
}

.hayashi-source-used-count {
    width: fit-content;
    padding: 3px 8px;
    border: 1px solid #d8ccba;
    border-radius: 4px;
    background: #f5efe4;
    color: #7a0f0f;
    font-size: 13px;
    font-weight: 700;
}

.hayashi-submission {
    max-width: 920px;
    margin: 0 auto;
}

.hayashi-submission-success {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #b9d8ca;
    border-left: 5px solid #276955;
    border-radius: 8px;
    background: #f0faf5;
    color: #225c49;
    font-weight: 700;
}

.hayashi-submission-form {
    padding: 22px;
    border: 1px solid #d9ddd6;
    border-radius: 8px;
    background: #fff;
}

.hayashi-submission-form-polished {
    display: grid;
    gap: 18px;
    background: #fffdf7;
    border-color: #d8ccba;
}

.hayashi-submission-lead {
    padding: 14px 16px;
    border: 1px solid #d8ccba;
    border-left: 5px solid #7a0f0f;
    border-radius: 6px;
    background: #f7f3ea;
    color: #3f3a34;
}

.hayashi-submission-lead strong {
    display: block;
    margin-bottom: 4px;
    color: #5a0f12;
    font-size: 17px;
}

.hayashi-submission-lead p {
    margin: 0;
    line-height: 1.75;
}

.hayashi-anti-spam {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hayashi-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hayashi-form-wide {
    grid-column: 1 / -1;
}

.hayashi-submission-section {
    margin: 22px 0;
}

.hayashi-submission-section h2 {
    margin: 0 0 6px;
    color: #276955;
    font-size: 20px;
}

.hayashi-submission-section p {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.7;
}

.hayashi-submission-fieldset {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #d8ccba;
    border-radius: 6px;
    background: #fffdf7;
}

.hayashi-submission-fieldset summary {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: -4px 0 12px;
    color: #5a0f12;
    font-weight: 700;
    cursor: pointer;
}

.hayashi-submission-fieldset[open] summary {
    border-bottom: 1px solid rgba(216, 204, 186, 0.75);
    padding-bottom: 10px;
}

.hayashi-required-field em {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 4px;
    background: #7a0f0f;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
}

.hayashi-required-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
    color: #5c5147;
    font-size: 13px;
    line-height: 1.6;
}

.hayashi-required-note span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    background: #7a0f0f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.hayashi-locked-target {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
    color: #3F3A34;
}

.hayashi-locked-target span {
    color: #8A8175;
    font-size: 0.86rem;
    font-weight: 700;
}

.hayashi-locked-target strong {
    color: #5A0F12;
    font-size: 1.08rem;
}

.hayashi-locked-target small {
    color: #8A8175;
}

.hayashi-submission-form label {
    display: grid;
    gap: 7px;
    margin: 0 0 16px;
    color: #26322d;
    font-weight: 700;
}

.hayashi-admin-message-field {
    display: grid;
    margin-top: 4px;
}

.hayashi-submission-form span {
    font-size: 14px;
}

.hayashi-submission-form input,
.hayashi-submission-form select,
.hayashi-submission-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #d8ccba;
    border-radius: 6px;
    background: #fff;
    color: #3f3a34;
    font: inherit;
}

.hayashi-submission-form input:focus,
.hayashi-submission-form select:focus,
.hayashi-submission-form textarea:focus {
    border-color: #7a0f0f;
    box-shadow: 0 0 0 2px rgba(122, 15, 15, 0.12);
    outline: none;
}

.hayashi-submission-form textarea {
    min-height: 180px;
    line-height: 1.7;
    resize: vertical;
}

@media (max-width: 900px) {
    .hayashi-db-grid,
    .hayashi-filter-panel,
    .hayashi-map-card,
    .hayashi-single-hero,
    .hayashi-single-layout,
    .hayashi-term-summary,
    .hayashi-area-summary,
    .hayashi-term-related-groups,
    .hayashi-term-group-preview > div,
    .hayashi-term-facts,
    .hayashi-hero-facts,
    .hayashi-video-grid,
    .hayashi-video-archive-grid,
    .hayashi-source-archive-grid,
    .hayashi-video-relation-cards,
    .hayashi-related-list,
    .hayashi-related-cards,
    .hayashi-form-grid {
        grid-template-columns: 1fr;
    }

    .hayashi-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hayashi-video-watch-panel {
        padding: 14px;
    }

    .hayashi-video-watch-heading h2 {
        font-size: 22px;
    }

    .hayashi-video-player iframe {
        min-height: 0;
    }

    .hayashi-filter-keyword {
        grid-column: auto;
    }

    .hayashi-map-card-actions {
        justify-content: flex-start;
    }
}

/* hayashi.asia cultural archive theme */
.hayashi-db-wrap,
.hayashi-map-page,
.hayashi-single-hero,
.hayashi-single-layout,
.hayashi-submission {
    --hayashi-crimson: #7A0F0F;
    --hayashi-cream: #F5EFE4;
    --hayashi-navy: #041E42;
    --hayashi-vermilion: #C1121F;
    --hayashi-ink: #201918;
    --hayashi-muted: #675f59;
    --hayashi-line: #e4d8cc;
    --hayashi-paper: #fffaf2;
    color: var(--hayashi-ink);
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.hayashi-db-wrap {
    background:
        linear-gradient(180deg, rgba(245, 239, 228, 0.92), rgba(255, 250, 242, 0.98));
    border-top: 4px solid var(--hayashi-crimson);
}

.hayashi-db-wrap h1,
.hayashi-db-wrap h2,
.hayashi-single-hero h1,
.hayashi-panel h2,
.hayashi-map-page h1 {
    color: var(--hayashi-crimson);
    letter-spacing: 0;
}

.hayashi-db-wrap h1,
.hayashi-map-page h1,
.hayashi-single-hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.35;
}

.hayashi-filter-panel,
.hayashi-map-filter-panel,
.hayashi-term-profile,
.hayashi-card,
.hayashi-map-card,
.hayashi-panel,
.hayashi-video-card,
.hayashi-submission-form,
.hayashi-submission-fieldset,
.hayashi-related-cards article,
.hayashi-term-summary div,
.hayashi-term-facts div,
.hayashi-term-related-groups div {
    border-color: var(--hayashi-line);
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 10px 28px rgba(4, 30, 66, 0.06);
}

.hayashi-filter-panel,
.hayashi-map-filter-panel,
.hayashi-term-profile,
.hayashi-panel,
.hayashi-submission-form {
    border-radius: 6px;
}

.hayashi-filter-panel span,
.hayashi-active-filters strong,
.hayashi-keyword-matches strong,
.hayashi-active-filters span,
.hayashi-keyword-matches span,
.hayashi-term-profile p:first-child,
.hayashi-term-summary span,
.hayashi-term-facts dt,
.hayashi-term-children strong,
.hayashi-term-group-preview > strong,
.hayashi-term-guidance > strong,
.hayashi-term-related-events strong,
.hayashi-term-related-groups strong,
.hayashi-card-facts dt,
.hayashi-hero-facts dt,
.hayashi-info-group h3,
.hayashi-info-list dt,
.hayashi-submission-section h2,
.hayashi-submission-fieldset legend,
.hayashi-submission-fieldset summary,
.hayashi-video-card p,
.hayashi-relation span,
.hayashi-relation-group h3,
.hayashi-related-group h3,
.hayashi-related-card span {
    color: var(--hayashi-crimson);
}

.hayashi-filter-panel input,
.hayashi-filter-panel select,
.hayashi-map-filter-panel input,
.hayashi-map-filter-panel select,
.hayashi-submission-form input,
.hayashi-submission-form select,
.hayashi-submission-form textarea {
    border-color: var(--hayashi-line);
    background: #fff;
    color: var(--hayashi-ink);
    border-radius: 4px;
}

.hayashi-filter-panel input:focus,
.hayashi-filter-panel select:focus,
.hayashi-map-filter-panel input:focus,
.hayashi-map-filter-panel select:focus,
.hayashi-submission-form input:focus,
.hayashi-submission-form select:focus,
.hayashi-submission-form textarea:focus {
    border-color: var(--hayashi-crimson);
    box-shadow: 0 0 0 3px rgba(122, 15, 15, 0.12);
    outline: 0;
}

.hayashi-button,
.hayashi-db-links .avia-button {
    background: var(--hayashi-crimson);
    color: #fff;
    border: 1px solid var(--hayashi-crimson);
    border-radius: 4px;
}

.hayashi-button:hover,
.hayashi-button:focus,
.hayashi-db-links .avia-button:hover,
.hayashi-db-links .avia-button:focus {
    background: var(--hayashi-vermilion);
    border-color: var(--hayashi-vermilion);
    color: #fff;
    text-decoration: none;
}

.hayashi-button-secondary,
.hayashi-reset-link,
.hayashi-map-link {
    color: var(--hayashi-crimson);
}

.hayashi-button-secondary {
    background: #fff;
    border-color: var(--hayashi-crimson);
}

.hayashi-button-secondary:hover,
.hayashi-button-secondary:focus {
    background: var(--hayashi-cream);
}

.hayashi-tag,
.hayashi-term-chip,
.hayashi-active-filters a,
.hayashi-keyword-matches a,
.hayashi-term-children a,
.hayashi-term-group-preview a,
.hayashi-term-related-events a,
.hayashi-term-related-groups a {
    border-color: var(--hayashi-line);
    background: #fff;
    color: var(--hayashi-crimson);
    border-radius: 999px;
}

.hayashi-tag:hover,
.hayashi-term-chip:hover,
.hayashi-active-filters a:hover,
.hayashi-keyword-matches a:hover,
.hayashi-term-children a:hover,
.hayashi-term-group-preview a:hover,
.hayashi-term-related-events a:hover,
.hayashi-term-related-groups a:hover {
    border-color: var(--hayashi-crimson);
    background: var(--hayashi-cream);
    color: var(--hayashi-crimson);
}

.hayashi-tag-muted {
    background: #f4eee6;
    color: var(--hayashi-muted);
}

.hayashi-card-badges span {
    border-color: rgba(193, 18, 31, 0.22);
    background: #fff5f3;
    color: var(--hayashi-crimson);
}

.hayashi-card,
.hayashi-map-card,
.hayashi-video-card,
.hayashi-related-cards article {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hayashi-card:hover,
.hayashi-map-card:hover,
.hayashi-video-card:hover,
.hayashi-related-cards article:hover {
    border-color: rgba(122, 15, 15, 0.36);
    box-shadow: 0 16px 34px rgba(4, 30, 66, 0.11);
    transform: translateY(-1px);
}

.hayashi-card img,
.hayashi-single-hero img,
.hayashi-term-group-preview img,
.hayashi-related-card img,
.hayashi-map-embed {
    background: #e8ded2;
}

.hayashi-single-hero {
    background:
        linear-gradient(135deg, rgba(4, 30, 66, 0.98), rgba(122, 15, 15, 0.92));
    color: #fff;
    max-width: none;
    padding: 44px max(18px, calc((100vw - 1180px) / 2)) 44px;
}

.hayashi-single-hero h1,
.hayashi-single-hero p,
.hayashi-single-hero .hayashi-hero-meta {
    color: #fff;
}

.hayashi-single-hero .hayashi-term-chip,
.hayashi-single-hero .hayashi-hero-facts div {
    border-color: rgba(245, 239, 228, 0.28);
    background: rgba(255, 250, 242, 0.1);
    color: #fff;
}

.hayashi-single-hero .hayashi-term-chip span,
.hayashi-single-hero .hayashi-hero-facts dt,
.hayashi-single-hero .hayashi-hero-facts a {
    color: var(--hayashi-cream);
}

.hayashi-single-hero img {
    border: 1px solid rgba(245, 239, 228, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hayashi-section-nav {
    margin-top: 22px;
}

.hayashi-section-nav a,
.hayashi-pagination a,
.hayashi-pagination span {
    border-color: var(--hayashi-line);
    background: #fff;
    color: var(--hayashi-crimson);
    border-radius: 4px;
}

.hayashi-section-nav a:hover,
.hayashi-pagination a:hover {
    border-color: var(--hayashi-crimson);
    background: var(--hayashi-cream);
}

.hayashi-pagination .current {
    border-color: var(--hayashi-crimson);
    background: var(--hayashi-crimson);
    color: #fff;
}

.hayashi-term-profile,
.hayashi-source-panel,
.hayashi-transmission-callout,
.hayashi-relation,
.hayashi-relation-incoming,
.hayashi-term-guidance {
    border-left-color: var(--hayashi-vermilion);
}

.hayashi-transmission-callout,
.hayashi-term-guidance,
.hayashi-keyword-matches,
.hayashi-term-summary div,
.hayashi-term-facts div,
.hayashi-related-cards article,
.hayashi-term-related-groups div {
    background: var(--hayashi-paper);
}

.hayashi-transmission-callout span,
.hayashi-term-guidance ul,
.hayashi-related-cards p,
.hayashi-card-facts dd,
.hayashi-map-card p,
.hayashi-map-card small,
.hayashi-term-related-events a span,
.hayashi-related-card small,
.hayashi-submission-section p {
    color: var(--hayashi-muted);
}

.hayashi-map-page .hayashi-map-hero,
.hayashi-map-page .hayashi-db-wrap > header {
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(4, 30, 66, 0.97), rgba(122, 15, 15, 0.94));
    color: #fff;
    padding: 28px;
}

.hayashi-map-page .hayashi-map-hero h1,
.hayashi-map-page .hayashi-db-wrap > header h1,
.hayashi-map-page .hayashi-map-hero p,
.hayashi-map-page .hayashi-db-wrap > header p {
    color: #fff;
}

#top .hayashi-single-hero {
    background-image:
        linear-gradient(135deg, rgba(4, 30, 66, 0.98), rgba(122, 15, 15, 0.92));
}

#top .hayashi-single-hero h1,
#top .hayashi-single-hero h2,
#top .hayashi-single-hero p,
#top .hayashi-single-hero a,
#top .hayashi-single-hero dt,
#top .hayashi-single-hero dd,
#top .hayashi-single-hero .hayashi-hero-meta {
    color: #fff;
}

#top .hayashi-map-page .hayashi-map-hero h1,
#top .hayashi-map-page .hayashi-map-hero p,
#top .hayashi-map-page .hayashi-map-hero a,
#top .hayashi-map-page .hayashi-db-wrap > header h1,
#top .hayashi-map-page .hayashi-db-wrap > header p {
    color: #fff;
}

body .hayashi-single-hero,
body .hayashi-single-hero h1,
body .hayashi-single-hero h2,
body .hayashi-single-hero h3,
body .hayashi-single-hero p,
body .hayashi-single-hero a,
body .hayashi-single-hero dt,
body .hayashi-single-hero dd,
body .hayashi-single-hero span,
body .hayashi-single-hero .hayashi-hero-meta {
    color: #fff !important;
}

body .hayashi-single-hero .hayashi-term-chip,
body .hayashi-single-hero .hayashi-hero-facts div {
    border-color: rgba(245, 239, 228, 0.3) !important;
    background-color: rgba(255, 250, 242, 0.1) !important;
}

/* Hayashi archive list: keep Enfold outer colors, style only DB internals */
.hayashi-db-wrap {
    --hayashi-red: #7A0F0F;
    --hayashi-red-dark: #5A0A0A;
    --hayashi-cream: #F7F3EA;
    --hayashi-cream-alt: #F5EFE4;
    --hayashi-border: #D8CCBA;
    --hayashi-text: #3F3A34;
    --hayashi-muted-soft: #8A8175;
    background: transparent;
    border-top-color: var(--hayashi-border);
    color: var(--hayashi-text);
}

.hayashi-db-wrap > header,
.hayashi-archive-header,
.archive-header,
.hayashi-hero,
.post-type-archive-hayashi_group .page-header,
.post-type-archive-hayashi .page-header {
    background: #F7F3EA;
    color: #3F3A34;
    border-bottom: 1px solid #D8CCBA;
}

.hayashi-db-wrap h1,
.hayashi-db-wrap h2,
.hayashi-archive-header h1,
.archive-header h1,
.hayashi-hero h1,
.post-type-archive-hayashi_group h1,
.post-type-archive-hayashi h1 {
    color: #5A0F12;
}

.hayashi-filter-panel,
.hayashi-search-box,
.archive-filter,
.search-filter-area,
.hayashi-keyword-matches,
.hayashi-active-filters a {
    background: #FFFDF7;
    border-color: #D8CCBA;
    color: #3F3A34;
}

.hayashi-filter-panel input,
.hayashi-filter-panel select,
.hayashi-search-box input,
.hayashi-search-box select,
.archive-filter input,
.archive-filter select {
    background: #FFFFFF;
    color: #3F3A34;
    border-color: #D8CCBA;
}

.hayashi-filter-panel span,
.hayashi-filter-panel strong,
.hayashi-active-filters strong,
.hayashi-keyword-matches strong,
.hayashi-active-filters span,
.hayashi-keyword-matches span,
.hayashi-result-count,
.hayashi-card-facts dt {
    color: #7A0F0F;
}

.hayashi-button,
.hayashi-filter-panel button,
.hayashi-search-box button,
.archive-filter button,
.post-type-archive-hayashi_group .button,
.post-type-archive-hayashi .button,
.post-type-archive-hayashi_group input[type="submit"],
.post-type-archive-hayashi input[type="submit"] {
    background: #7A0F0F;
    color: #FFFFFF;
    border-color: #7A0F0F;
}

.hayashi-button:hover,
.hayashi-button:focus,
.hayashi-filter-panel button:hover,
.hayashi-filter-panel button:focus,
.hayashi-search-box button:hover,
.hayashi-search-box button:focus,
.archive-filter button:hover,
.archive-filter button:focus,
.post-type-archive-hayashi_group .button:hover,
.post-type-archive-hayashi .button:hover,
.post-type-archive-hayashi_group input[type="submit"]:hover,
.post-type-archive-hayashi input[type="submit"]:hover {
    background: #5A0A0A;
    border-color: #5A0A0A;
    color: #FFFFFF;
}

.hayashi-button-secondary,
.hayashi-reset-link,
.hayashi-map-link {
    background: #FFFDF7;
    color: #7A0F0F;
    border-color: #D8CCBA;
}

.hayashi-button-secondary:hover,
.hayashi-button-secondary:focus,
.hayashi-reset-link:hover,
.hayashi-map-link:hover {
    background: #F5EFE4;
    color: #5A0A0A;
    border-color: #D8CCBA;
}

.hayashi-card,
.hayashi-item,
.archive-card,
.post-type-archive-hayashi_group .hayashi-card,
.post-type-archive-hayashi .hayashi-card,
.post-type-archive-hayashi_group article.hayashi-card,
.post-type-archive-hayashi article.hayashi-card {
    background: #FFFDF7;
    color: #3F3A34;
    border-color: #D8CCBA;
    border-top: 4px solid #7A0F0F;
    box-shadow: 0 8px 22px rgba(63, 58, 52, 0.06);
}

.hayashi-card:hover,
.hayashi-item:hover,
.archive-card:hover {
    border-color: #C7B9A6;
    border-top-color: #5A0A0A;
    box-shadow: 0 14px 30px rgba(63, 58, 52, 0.1);
}

.hayashi-tag,
.hayashi-badge,
.archive-tag,
.term-badge,
.hayashi-term-chip,
.hayashi-card-badges span,
.hayashi-keyword-matches a {
    background: #F5EFE4;
    color: #7A0F0F;
    border-color: #D8CCBA;
}

.hayashi-tag:hover,
.hayashi-badge:hover,
.archive-tag:hover,
.term-badge:hover,
.hayashi-term-chip:hover,
.hayashi-keyword-matches a:hover {
    background: #FFFDF7;
    color: #5A0A0A;
    border-color: #7A0F0F;
}

.hayashi-card-facts dd,
.hayashi-card-facts a,
.hayashi-db-wrap p,
.hayashi-db-wrap li,
.hayashi-db-wrap dd {
    color: #3F3A34;
}

.hayashi-db-wrap a {
    color: #7A0F0F;
}

.hayashi-db-wrap a:hover {
    color: #5A0A0A;
}

#top .hayashi-filter-panel input,
#top .hayashi-filter-panel select,
body .hayashi-filter-panel input,
body .hayashi-filter-panel select {
    background-color: #FFFFFF !important;
    color: #3F3A34 !important;
    border: 1px solid #D8CCBA !important;
}

#top .hayashi-filter-panel .hayashi-button,
body .hayashi-filter-panel .hayashi-button,
#top .hayashi-filter-actions .hayashi-button,
body .hayashi-filter-actions .hayashi-button {
    background-color: #7A0F0F !important;
    color: #FFFFFF !important;
    border: 1px solid #7A0F0F !important;
}

#top .hayashi-filter-panel .hayashi-button:hover,
#top .hayashi-filter-panel .hayashi-button:focus,
body .hayashi-filter-panel .hayashi-button:hover,
body .hayashi-filter-panel .hayashi-button:focus,
#top .hayashi-filter-actions .hayashi-button:hover,
#top .hayashi-filter-actions .hayashi-button:focus,
body .hayashi-filter-actions .hayashi-button:hover,
body .hayashi-filter-actions .hayashi-button:focus {
    background-color: #5A0A0A !important;
    border-color: #5A0A0A !important;
    color: #FFFFFF !important;
}

.hayashi-video-single {
    max-width: 1180px;
}

.hayashi-video-single-header {
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
}

.hayashi-video-single-header h1 {
    color: #5A0F12 !important;
}

.hayashi-video-single .hayashi-video-watch-panel {
    background: #041E42 !important;
    color: #FFFFFF !important;
    border-color: #041E42 !important;
    box-shadow: 0 22px 54px rgba(4, 30, 66, 0.2);
}

.hayashi-video-single .hayashi-video-watch-heading p,
.hayashi-video-single .hayashi-video-watch-heading h2 {
    color: #FFFFFF !important;
}

.hayashi-video-single .hayashi-video-player {
    max-width: 1120px;
}

.hayashi-video-single .hayashi-video-player iframe {
    min-height: 560px;
}

@media (max-width: 900px) {
    .hayashi-video-single .hayashi-video-player iframe {
        min-height: 0;
    }
}

/* Database color unification: match the submission form tone inside plugin UI only */
#top .hayashi-db-wrap,
#top .hayashi-map-page,
body .hayashi-db-wrap,
body .hayashi-map-page {
    --hayashi-red: #7A0F0F;
    --hayashi-red-dark: #5A0A0A;
    --hayashi-cream: #F7F3EA;
    --hayashi-cream-alt: #F5EFE4;
    --hayashi-paper: #FFFDF7;
    --hayashi-border: #D8CCBA;
    --hayashi-text: #3F3A34;
    --hayashi-muted: #8A8175;
    background: transparent !important;
    color: #3F3A34 !important;
}

#top .hayashi-db-wrap > header,
#top .hayashi-archive-header,
#top .hayashi-video-single-header,
#top .hayashi-map-page .hayashi-db-wrap > header,
body .hayashi-db-wrap > header,
body .hayashi-archive-header,
body .hayashi-video-single-header,
body .hayashi-map-page .hayashi-db-wrap > header {
    background: #F7F3EA !important;
    color: #3F3A34 !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #7A0F0F !important;
    box-shadow: none !important;
}

#top .hayashi-db-wrap h1,
#top .hayashi-db-wrap h2,
#top .hayashi-db-wrap h3,
#top .hayashi-archive-header h1,
#top .hayashi-video-single-header h1,
#top .hayashi-panel h2,
#top .hayashi-panel h3,
body .hayashi-db-wrap h1,
body .hayashi-db-wrap h2,
body .hayashi-db-wrap h3,
body .hayashi-archive-header h1,
body .hayashi-video-single-header h1,
body .hayashi-panel h2,
body .hayashi-panel h3 {
    color: #5A0F12 !important;
}

#top .hayashi-single-hero,
body .hayashi-single-hero {
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #7A0F0F !important;
    box-shadow: none !important;
}

#top .hayashi-single-hero h1,
#top .hayashi-single-hero h2,
#top .hayashi-single-hero h3,
#top .hayashi-single-hero p,
#top .hayashi-single-hero a,
#top .hayashi-single-hero dt,
#top .hayashi-single-hero dd,
#top .hayashi-single-hero span,
body .hayashi-single-hero h1,
body .hayashi-single-hero h2,
body .hayashi-single-hero h3,
body .hayashi-single-hero p,
body .hayashi-single-hero a,
body .hayashi-single-hero dt,
body .hayashi-single-hero dd,
body .hayashi-single-hero span {
    color: #3F3A34 !important;
}

#top .hayashi-single-hero h1,
#top .hayashi-single-hero h2,
body .hayashi-single-hero h1,
body .hayashi-single-hero h2 {
    color: #5A0F12 !important;
}

#top .hayashi-card,
#top .hayashi-panel,
#top .hayashi-filter-panel,
#top .hayashi-map-filter-panel,
#top .hayashi-map-card,
#top .hayashi-term-profile,
#top .hayashi-term-summary div,
#top .hayashi-term-facts div,
#top .hayashi-term-related-groups div,
#top .hayashi-related-cards article,
#top .hayashi-video-card,
body .hayashi-card,
body .hayashi-panel,
body .hayashi-filter-panel,
body .hayashi-map-filter-panel,
body .hayashi-map-card,
body .hayashi-term-profile,
body .hayashi-term-summary div,
body .hayashi-term-facts div,
body .hayashi-term-related-groups div,
body .hayashi-related-cards article,
body .hayashi-video-card {
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
    border-color: #D8CCBA !important;
    box-shadow: 0 10px 28px rgba(4, 30, 66, 0.05) !important;
}

#top .hayashi-card,
#top .hayashi-map-card,
#top .hayashi-video-card,
body .hayashi-card,
body .hayashi-map-card,
body .hayashi-video-card {
    border-top: 4px solid #7A0F0F !important;
}

#top .hayashi-tag,
#top .hayashi-term-chip,
#top .hayashi-card-badges span,
#top .hayashi-active-filters a,
#top .hayashi-keyword-matches a,
#top .hayashi-term-children a,
#top .hayashi-term-group-preview a,
#top .hayashi-term-related-events a,
#top .hayashi-term-related-groups a,
body .hayashi-tag,
body .hayashi-term-chip,
body .hayashi-card-badges span,
body .hayashi-active-filters a,
body .hayashi-keyword-matches a,
body .hayashi-term-children a,
body .hayashi-term-group-preview a,
body .hayashi-term-related-events a,
body .hayashi-term-related-groups a {
    background: #F5EFE4 !important;
    color: #7A0F0F !important;
    border-color: #D8CCBA !important;
}

#top .hayashi-filter-panel input,
#top .hayashi-filter-panel select,
#top .hayashi-map-filter-panel input,
#top .hayashi-map-filter-panel select,
body .hayashi-filter-panel input,
body .hayashi-filter-panel select,
body .hayashi-map-filter-panel input,
body .hayashi-map-filter-panel select {
    background: #FFFFFF !important;
    color: #3F3A34 !important;
    border-color: #D8CCBA !important;
}

#top .hayashi-db-wrap a,
#top .hayashi-map-page a,
body .hayashi-db-wrap a,
body .hayashi-map-page a {
    color: #7A0F0F !important;
}

#top .hayashi-db-wrap a:hover,
#top .hayashi-map-page a:hover,
body .hayashi-db-wrap a:hover,
body .hayashi-map-page a:hover {
    color: #5A0A0A !important;
}

/* Enfold shell: database templates use the theme header/body colors without a sidebar. */
#top .container_wrap.av-hayashi-no-sidebar,
body .container_wrap.av-hayashi-no-sidebar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .container,
body .container_wrap.av-hayashi-no-sidebar .container {
    max-width: 1180px;
    padding-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .av-main-hayashi-db,
body .container_wrap.av-hayashi-no-sidebar .av-main-hayashi-db {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .content,
body .container_wrap.av-hayashi-no-sidebar .content {
    padding-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .post-entry,
#top .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper,
body .container_wrap.av-hayashi-no-sidebar .post-entry,
body .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper,
body .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper {
    max-width: none;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap {
    padding-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header:first-child,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header:first-child {
    margin-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .sidebar,
body .container_wrap.av-hayashi-no-sidebar .sidebar {
    display: none !important;
}

#top .hayashi-single-hero,
body .hayashi-single-hero {
    grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
    align-items: stretch;
    padding: 24px;
}

#top .hayashi-single-hero > img,
body .hayashi-single-hero > img {
    height: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}

#top .hayashi-hero-summary,
body .hayashi-hero-summary {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

#top .hayashi-hero-summary div,
body .hayashi-hero-summary div {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #F7F3EA;
}

#top .hayashi-hero-summary dt,
body .hayashi-hero-summary dt {
    color: #7A0F0F !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

#top .hayashi-hero-summary dd,
body .hayashi-hero-summary dd {
    margin: 0;
    color: #3F3A34 !important;
    line-height: 1.65;
}

#top .hayashi-hero-summary a,
body .hayashi-hero-summary a {
    color: #7A0F0F !important;
    font-weight: 700;
    text-decoration: none;
}

#top .hayashi-hero-summary a:hover,
body .hayashi-hero-summary a:hover {
    color: #5A0A0A !important;
    text-decoration: underline;
}

/* Festival/event database: closer to taxonomy archive pages */
#top .template-hayashi-event-archive .hayashi-event-archive-header,
body .template-hayashi-event-archive .hayashi-event-archive-header {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 8px;
}

#top .template-hayashi-event-archive .hayashi-event-archive-header::before,
body .template-hayashi-event-archive .hayashi-event-archive-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #7A0F0F;
}

#top .template-hayashi-event-archive .hayashi-event-archive-header > *,
body .template-hayashi-event-archive .hayashi-event-archive-header > * {
    position: relative;
}

#top .template-hayashi-event-archive .hayashi-event-archive-header p:first-child,
body .template-hayashi-event-archive .hayashi-event-archive-header p:first-child,
#top .hayashi-event-hero .hayashi-eyebrow,
body .hayashi-event-hero .hayashi-eyebrow {
    color: #7A0F0F !important;
    font-size: 12px;
    font-weight: 700;
}

#top .template-hayashi-event-archive .hayashi-event-card,
body .template-hayashi-event-archive .hayashi-event-card {
    border-top-width: 0 !important;
    border-left: 4px solid #7A0F0F !important;
    border-radius: 8px !important;
}

#top .template-hayashi-event-archive .hayashi-event-card img,
body .template-hayashi-event-archive .hayashi-event-card img {
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid #D8CCBA;
}

#top .template-hayashi-event-archive .hayashi-event-card h2,
body .template-hayashi-event-archive .hayashi-event-card h2 {
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.35;
}

#top .template-hayashi-event-archive .hayashi-event-card .hayashi-tags,
body .template-hayashi-event-archive .hayashi-event-card .hayashi-tags {
    gap: 6px;
}

#top .template-hayashi-event-archive .hayashi-event-card .hayashi-tag,
body .template-hayashi-event-archive .hayashi-event-card .hayashi-tag {
    min-height: 28px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

#top .template-hayashi-event-archive .hayashi-event-card .hayashi-card-facts,
body .template-hayashi-event-archive .hayashi-event-card .hayashi-card-facts {
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid #E7DDCF;
}

#top .template-hayashi-event-archive .hayashi-event-card .hayashi-card-facts div,
body .template-hayashi-event-archive .hayashi-event-card .hayashi-card-facts div {
    padding: 9px 0;
    border-bottom: 1px solid #E7DDCF;
    background: transparent !important;
}

#top .template-hayashi-event-single .hayashi-event-hero,
body .template-hayashi-event-single .hayashi-event-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 24px;
    align-items: center;
    border-left: 6px solid #7A0F0F !important;
    border-top-width: 1px !important;
    border-radius: 8px;
}

#top .template-hayashi-event-single .hayashi-event-hero > img,
body .template-hayashi-event-single .hayashi-event-hero > img {
    min-height: 260px;
    aspect-ratio: 16 / 10;
    border: 1px solid #D8CCBA;
}

#top .template-hayashi-event-single .hayashi-event-profile,
body .template-hayashi-event-single .hayashi-event-profile {
    max-width: 1180px;
    margin: 0 auto 28px !important;
}

#top .template-hayashi-event-single .hayashi-event-profile h1,
body .template-hayashi-event-single .hayashi-event-profile h1 {
    margin: 0 0 16px;
    color: #5A0F12 !important;
    font-size: 34px;
    line-height: 1.3;
}

#top .template-hayashi-event-single .hayashi-event-profile .hayashi-link-list,
body .template-hayashi-event-single .hayashi-event-profile .hayashi-link-list {
    margin: 14px 0 18px;
}

#top .template-hayashi-event-single .hayashi-event-profile .hayashi-term-description,
body .template-hayashi-event-single .hayashi-event-profile .hayashi-term-description {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #F7F3EA;
    line-height: 1.85;
}

#top .template-hayashi-event-single .hayashi-event-profile-facts,
body .template-hayashi-event-single .hayashi-event-profile-facts {
    margin-top: 16px;
}

#top .hayashi-event-profile-image,
body .hayashi-event-profile-image {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
}

#top .hayashi-event-profile-image img,
body .hayashi-event-profile-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

#top .hayashi-event-hero-summary,
body .hayashi-event-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

#top .hayashi-event-hero-summary div,
body .hayashi-event-hero-summary div {
    padding: 10px 12px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #F7F3EA;
}

#top .hayashi-event-hero-summary dt,
body .hayashi-event-hero-summary dt {
    color: #7A0F0F !important;
    font-size: 12px;
    font-weight: 700;
}

#top .hayashi-event-hero-summary dd,
body .hayashi-event-hero-summary dd {
    margin: 4px 0 0;
    color: #3F3A34 !important;
    line-height: 1.6;
}

#top .template-hayashi-event-single .hayashi-info-group h2,
body .template-hayashi-event-single .hayashi-info-group h2 {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 4px solid #7A0F0F;
    background: #F5EFE4;
    border-radius: 6px;
    color: #5A0F12 !important;
    font-size: 18px;
}

#top .template-hayashi-event-single .hayashi-info-group,
body .template-hayashi-event-single .hayashi-info-group {
    overflow: hidden;
    padding: 16px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .template-hayashi-event-single .hayashi-info-group > :not(h2),
body .template-hayashi-event-single .hayashi-info-group > :not(h2) {
    margin-left: 0;
    margin-right: 0;
}

#top .template-hayashi-event-single .hayashi-single-layout,
body .template-hayashi-event-single .hayashi-single-layout {
    grid-template-columns: minmax(0, 1fr);
}

#top .template-hayashi-event-single .hayashi-single-side,
body .template-hayashi-event-single .hayashi-single-side {
    max-width: none;
}

#top .template-hayashi-event-single .hayashi-related-cards article,
body .template-hayashi-event-single .hayashi-related-cards article {
    border-left: 4px solid #7A0F0F;
    border-radius: 8px;
}

#top .template-hayashi-event-archive .hayashi-event-card,
body .template-hayashi-event-archive .hayashi-event-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

#top .template-hayashi-event-archive .hayashi-event-card .hayashi-card-body,
body .template-hayashi-event-archive .hayashi-event-card .hayashi-card-body {
    align-content: start;
}

#top .hayashi-card-excerpt,
body .hayashi-card-excerpt {
    margin: 0;
    color: #3F3A34 !important;
    line-height: 1.75;
}

#top .hayashi-event-related-block .hayashi-term-group-preview,
body .hayashi-event-related-block .hayashi-term-group-preview {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#top .hayashi-event-related-block .hayashi-term-group-preview > strong,
body .hayashi-event-related-block .hayashi-term-group-preview > strong {
    display: block;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #F5EFE4;
    color: #7A0F0F !important;
}

#top .hayashi-event-related-block .hayashi-term-group-preview a,
body .hayashi-event-related-block .hayashi-term-group-preview a {
    background: #FFFDF7 !important;
}

#top .hayashi-event-detail-link,
body .hayashi-event-detail-link {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 7px !important;
    padding: 3px 7px;
    border-radius: 5px;
    background: #041E42;
    color: #FFFFFF !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

#top .template-hayashi-event-single .hayashi-panel,
body .template-hayashi-event-single .hayashi-panel {
    overflow: hidden;
}

#top .template-hayashi-event-single .hayashi-panel > h2:first-child,
body .template-hayashi-event-single .hayashi-panel > h2:first-child {
    margin: -20px -20px 16px;
    padding: 12px 18px;
    border-left: 4px solid #7A0F0F;
    background: #F5EFE4;
    color: #5A0F12 !important;
}

@media (max-width: 780px) {
    #top .hayashi-event-hero-summary,
    body .hayashi-event-hero-summary {
        grid-template-columns: 1fr;
    }

    #top .template-hayashi-event-single .hayashi-event-hero,
    body .template-hayashi-event-single .hayashi-event-hero {
        grid-template-columns: 1fr;
    }
}

#top .hayashi-hero-facts,
body .hayashi-hero-facts {
    grid-template-columns: 1fr;
}

@media (max-width: 820px) {
    #top .hayashi-single-hero,
    body .hayashi-single-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    #top .hayashi-single-hero > img,
    body .hayashi-single-hero > img {
        min-height: 220px;
    }

    #top .hayashi-hero-summary div,
    body .hayashi-hero-summary div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

#top .hayashi-button,
#top .hayashi-filter-actions .hayashi-button,
#top .hayashi-map-card-actions .hayashi-button,
body .hayashi-button,
body .hayashi-filter-actions .hayashi-button,
body .hayashi-map-card-actions .hayashi-button {
    background: #7A0F0F !important;
    color: #FFFFFF !important;
    border-color: #7A0F0F !important;
}

#top .hayashi-button:hover,
#top .hayashi-button:focus,
#top .hayashi-filter-actions .hayashi-button:hover,
#top .hayashi-filter-actions .hayashi-button:focus,
#top .hayashi-map-card-actions .hayashi-button:hover,
#top .hayashi-map-card-actions .hayashi-button:focus,
body .hayashi-button:hover,
body .hayashi-button:focus,
body .hayashi-filter-actions .hayashi-button:hover,
body .hayashi-filter-actions .hayashi-button:focus,
body .hayashi-map-card-actions .hayashi-button:hover,
body .hayashi-map-card-actions .hayashi-button:focus {
    background: #5A0A0A !important;
    border-color: #5A0A0A !important;
    color: #FFFFFF !important;
}

/* Detail/list readability pass: quieter metadata, clearer buttons, softer square tags. */
#top .hayashi-hero-eyebrow,
body .hayashi-hero-eyebrow {
    margin: 0 0 8px !important;
    color: #7A0F0F !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

#top .hayashi-button,
#top .hayashi-filter-actions .hayashi-button,
#top .hayashi-map-card-actions .hayashi-button,
body .hayashi-button,
body .hayashi-filter-actions .hayashi-button,
body .hayashi-map-card-actions .hayashi-button {
    min-height: 40px;
    border-radius: 5px !important;
    background: #7A0F0F !important;
    border: 1px solid #7A0F0F !important;
    color: #FFFFFF !important;
    font-weight: 700;
    text-decoration: none !important;
}

#top .hayashi-button:hover,
#top .hayashi-button:focus,
body .hayashi-button:hover,
body .hayashi-button:focus {
    background: #5A0A0A !important;
    border-color: #5A0A0A !important;
    color: #FFFFFF !important;
}

#top .hayashi-button-secondary,
body .hayashi-button-secondary {
    background: #FFFDF7 !important;
    border: 1px solid #D8CCBA !important;
    color: #7A0F0F !important;
}

#top .hayashi-button-secondary:hover,
#top .hayashi-button-secondary:focus,
body .hayashi-button-secondary:hover,
body .hayashi-button-secondary:focus {
    background: #F5EFE4 !important;
    border-color: #7A0F0F !important;
    color: #5A0A0A !important;
}

#top .hayashi-tag,
#top .hayashi-term-chip,
#top .hayashi-card-badges span,
#top .term-badge,
body .hayashi-tag,
body .hayashi-term-chip,
body .hayashi-card-badges span,
body .term-badge {
    border-radius: 5px !important;
    background: #F5EFE4 !important;
    border: 1px solid #D8CCBA !important;
    color: #7A0F0F !important;
}

#top .hayashi-tag:hover,
#top .hayashi-term-chip:hover,
body .hayashi-tag:hover,
body .hayashi-term-chip:hover {
    background: #FFFDF7 !important;
    border-color: #7A0F0F !important;
    color: #5A0A0A !important;
}

#top .hayashi-card-facts-rich,
body .hayashi-card-facts-rich {
    gap: 8px;
}

#top .hayashi-card-facts-rich div,
body .hayashi-card-facts-rich div {
    border-radius: 5px !important;
    background: #FFFDF7 !important;
}

#top .hayashi-single-hero a.hayashi-button:not(.hayashi-button-secondary),
body .hayashi-single-hero a.hayashi-button:not(.hayashi-button-secondary),
#top .hayashi-card a.hayashi-button:not(.hayashi-button-secondary),
body .hayashi-card a.hayashi-button:not(.hayashi-button-secondary) {
    color: #FFFFFF !important;
}

#top .hayashi-single-hero a.hayashi-button-secondary,
body .hayashi-single-hero a.hayashi-button-secondary {
    color: #7A0F0F !important;
}

/* Group detail/list refinement: clearer reading rhythm and separated media blocks. */
#top .hayashi-single-layout,
body .hayashi-single-layout {
    gap: 34px;
    padding-bottom: 72px;
}

#top .hayashi-single-layout > div > .hayashi-panel,
body .hayashi-single-layout > div > .hayashi-panel {
    margin-top: 0;
}

#top .hayashi-single-layout > div > .hayashi-panel + .hayashi-panel,
body .hayashi-single-layout > div > .hayashi-panel + .hayashi-panel,
#top .hayashi-single-layout > div > .hayashi-panel + div[id^="hayashi-"],
body .hayashi-single-layout > div > .hayashi-panel + div[id^="hayashi-"],
#top .hayashi-single-layout > div > div[id^="hayashi-"] + .hayashi-panel,
body .hayashi-single-layout > div > div[id^="hayashi-"] + .hayashi-panel {
    margin-top: 30px;
}

#top #hayashi-videos,
body #hayashi-videos {
    margin-bottom: 34px;
}

#top #hayashi-related-videos,
body #hayashi-related-videos {
    display: block;
    margin: 34px 0;
}

#top #hayashi-related-videos + #hayashi-events,
body #hayashi-related-videos + #hayashi-events,
#top #hayashi-videos + #hayashi-events,
body #hayashi-videos + #hayashi-events {
    margin-top: 34px;
}

#top .hayashi-video-grid,
body .hayashi-video-grid {
    gap: 18px;
}

#top .hayashi-video-card,
body .hayashi-video-card {
    border-radius: 6px;
}

#top .hayashi-panel h2,
body .hayashi-panel h2 {
    margin-bottom: 16px;
}

#top .hayashi-card-body,
body .hayashi-card-body {
    gap: 12px;
}

#top .hayashi-card h2,
body .hayashi-card h2 {
    margin-top: 4px;
}

#top .hayashi-card-facts,
body .hayashi-card-facts {
    margin-top: 4px;
}

#top .hayashi-card .hayashi-button,
body .hayashi-card .hayashi-button {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* Shrine/festival archive profile: align category pages with the group detail tone. */
#top .hayashi-term-profile,
body .hayashi-term-profile {
    margin: 22px 0 28px !important;
    padding: 24px !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #7A0F0F !important;
    border-left: 1px solid #D8CCBA !important;
    border-radius: 6px !important;
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
    box-shadow: none !important;
}

#top .hayashi-term-profile p:first-child,
body .hayashi-term-profile p:first-child {
    color: #7A0F0F !important;
    font-size: 13px;
    letter-spacing: 0;
}

#top .hayashi-term-profile h2,
body .hayashi-term-profile h2 {
    margin-bottom: 16px;
    color: #5A0F12 !important;
}

#top .hayashi-term-summary,
#top .hayashi-term-facts,
body .hayashi-term-summary,
body .hayashi-term-facts {
    gap: 10px;
}

#top .hayashi-term-summary div,
#top .hayashi-term-facts div,
body .hayashi-term-summary div,
body .hayashi-term-facts div {
    border-radius: 5px !important;
    border-color: #D8CCBA !important;
    background: #F7F3EA !important;
}

#top .hayashi-term-summary span,
#top .hayashi-term-facts dt,
#top .hayashi-term-group-preview > strong,
#top .hayashi-term-related-events strong,
#top .hayashi-term-related-groups strong,
body .hayashi-term-summary span,
body .hayashi-term-facts dt,
body .hayashi-term-group-preview > strong,
body .hayashi-term-related-events strong,
body .hayashi-term-related-groups strong {
    color: #7A0F0F !important;
}

#top .hayashi-term-facts a,
#top .hayashi-map-link,
body .hayashi-term-facts a,
body .hayashi-map-link {
    color: #7A0F0F !important;
}

#top .hayashi-map-embed,
body .hayashi-map-embed {
    border-color: #D8CCBA !important;
    border-radius: 6px !important;
}

#top .hayashi-term-group-preview,
#top .hayashi-term-guidance,
#top .hayashi-term-related-events,
#top .hayashi-term-related-groups,
body .hayashi-term-group-preview,
body .hayashi-term-guidance,
body .hayashi-term-related-events,
body .hayashi-term-related-groups {
    margin-top: 24px;
}

#top .hayashi-term-group-preview > div,
body .hayashi-term-group-preview > div {
    gap: 12px;
}

#top .hayashi-term-group-preview a,
#top .hayashi-term-related-events a,
#top .hayashi-term-related-groups a,
body .hayashi-term-group-preview a,
body .hayashi-term-related-events a,
body .hayashi-term-related-groups a {
    border-radius: 5px !important;
    border-color: #D8CCBA !important;
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
}

#top .hayashi-term-group-preview a:hover,
#top .hayashi-term-related-events a:hover,
#top .hayashi-term-related-groups a:hover,
body .hayashi-term-group-preview a:hover,
body .hayashi-term-related-events a:hover,
body .hayashi-term-related-groups a:hover {
    border-color: #7A0F0F !important;
    background: #F5EFE4 !important;
}

/* Reduce remaining pill-like search/result chips. */
#top .hayashi-active-filters a,
#top .hayashi-keyword-matches a,
#top .hayashi-term-children a,
#top .hayashi-video-related-chips span,
#top .hayashi-video-relation-card,
#top .hayashi-pagination a,
#top .hayashi-pagination span,
body .hayashi-active-filters a,
body .hayashi-keyword-matches a,
body .hayashi-term-children a,
body .hayashi-video-related-chips span,
body .hayashi-video-relation-card,
body .hayashi-pagination a,
body .hayashi-pagination span {
    border-radius: 5px !important;
}

/* Video archive: thumbnail-first, YouTube-like browsing layout. */
#top .hayashi-video-archive .hayashi-video-archive-grid,
body .hayashi-video-archive .hayashi-video-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    align-items: start;
}

#top .hayashi-video-archive .hayashi-video-archive-card,
body .hayashi-video-archive .hayashi-video-archive-card {
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#top .hayashi-video-archive .hayashi-video-thumb,
body .hayashi-video-archive .hayashi-video-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #041E42;
    color: #fff;
    box-shadow: 0 8px 18px rgba(4, 30, 66, 0.08);
}

#top .hayashi-video-archive .hayashi-video-thumb img,
body .hayashi-video-archive .hayashi-video-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#top .hayashi-video-archive .hayashi-video-play-mark,
body .hayashi-video-archive .hayashi-video-play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    border-radius: 50% !important;
    background: rgba(122, 15, 15, 0.9);
    transform: translate(-50%, -50%);
}

#top .hayashi-video-archive .hayashi-video-play-mark::before,
body .hayashi-video-archive .hayashi-video-play-mark::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

#top .hayashi-video-archive .hayashi-video-archive-card:hover .hayashi-video-thumb img,
body .hayashi-video-archive .hayashi-video-archive-card:hover .hayashi-video-thumb img {
    transform: scale(1.03);
    opacity: 0.92;
}

#top .hayashi-video-archive .hayashi-video-card-body,
body .hayashi-video-archive .hayashi-video-card-body {
    display: grid;
    gap: 7px;
    padding: 10px 2px 0;
}

#top .hayashi-video-archive .hayashi-video-card-body h2,
body .hayashi-video-archive .hayashi-video-card-body h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

#top .hayashi-video-archive .hayashi-video-card-body h2 a,
body .hayashi-video-archive .hayashi-video-card-body h2 a {
    color: #201918;
    text-decoration: none;
}

#top .hayashi-video-archive .hayashi-video-card-body h2 a:hover,
body .hayashi-video-archive .hayashi-video-card-body h2 a:hover {
    color: #7A0F0F;
}

#top .hayashi-video-archive .hayashi-video-card-meta,
body .hayashi-video-archive .hayashi-video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    color: #6E6258 !important;
    font-size: 12px;
    line-height: 1.5;
}

#top .hayashi-video-archive .hayashi-video-card-meta span,
body .hayashi-video-archive .hayashi-video-card-meta span {
    color: #6E6258 !important;
}

#top .hayashi-video-archive .hayashi-video-card-meta span + span::before,
body .hayashi-video-archive .hayashi-video-card-meta span + span::before {
    content: "・";
    margin-right: 8px;
    color: #A08F7E;
}

#top .hayashi-video-archive .hayashi-video-related-chips,
body .hayashi-video-archive .hayashi-video-related-chips {
    gap: 5px;
    margin: 2px 0 0;
}

#top .hayashi-video-archive .hayashi-video-related-chips span,
body .hayashi-video-archive .hayashi-video-related-chips span {
    min-height: 24px;
    padding: 0 7px;
    border-radius: 4px !important;
    font-size: 11px;
}

@media (max-width: 980px) {
    #top .hayashi-video-archive .hayashi-video-archive-grid,
    body .hayashi-video-archive .hayashi-video-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #top .hayashi-video-archive .hayashi-video-archive-grid,
    body .hayashi-video-archive .hayashi-video-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Video detail pages should feel like a watch page, not an archive hero. */
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header {
    max-width: 1120px !important;
    margin: 0 auto 16px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3F3A34 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after {
    display: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1 {
    max-width: 980px !important;
    margin: 0 0 8px !important;
    color: #3F3A34 !important;
    font-size: clamp(22px, 2.4vw, 34px) !important;
    line-height: 1.38 !important;
    text-shadow: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child {
    max-width: 980px !important;
    margin: 0 0 6px !important;
    color: #8A8175 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single .hayashi-video-watch-panel,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single .hayashi-video-watch-panel {
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header {
        margin: 0 auto 12px !important;
        padding: 8px 0 0 !important;
    }

    .hayashi-map-heading {
        display: block;
    }

    .hayashi-map-type-switch {
        display: block;
    }

    .hayashi-map-type-switch div {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .hayashi-map-heading span {
        display: block;
        margin-top: 8px;
        white-space: normal;
    }

    .hayashi-leaflet-map {
        min-height: 420px;
    }
}

.hayashi-area-prefecture-picker {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--hayashi-border, #d8ccba);
    border-top: 4px solid var(--hayashi-red, #7a0f0f);
    background: #fffdf7;
    color: var(--hayashi-text, #3f3a34);
}

.hayashi-area-prefecture-picker strong {
    display: block;
    margin-bottom: 10px;
    color: var(--hayashi-red-dark, #5a0a0a);
    font-size: 1rem;
}

.hayashi-area-prefecture-picker div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hayashi-area-prefecture-picker a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--hayashi-border, #d8ccba);
    border-radius: 6px;
    background: var(--hayashi-cream-alt, #f5efe4);
    color: var(--hayashi-red, #7a0f0f);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

.hayashi-area-prefecture-picker a:hover,
.hayashi-area-prefecture-picker a:focus,
.hayashi-area-prefecture-picker a.is-active {
    border-color: var(--hayashi-red, #7a0f0f);
    background: var(--hayashi-red, #7a0f0f);
    color: #fff;
}

.hayashi-area-filter-select small {
    display: block;
    margin-top: 5px;
    color: var(--hayashi-muted, #8a8175);
    font-size: 0.82rem;
    line-height: 1.5;
}

#top .hayashi-google-calendar-add-button,
body .hayashi-google-calendar-add-button {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    overflow: hidden !important;
    border: 1px solid #dadce0 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #3c4043 !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16) !important;
    font-family: Arial, "Noto Sans JP", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

#top .hayashi-google-calendar-add-button:hover,
#top .hayashi-google-calendar-add-button:focus,
body .hayashi-google-calendar-add-button:hover,
body .hayashi-google-calendar-add-button:focus {
    border-color: #c6c9ce !important;
    background: #f8fafd !important;
    color: #202124 !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.22) !important;
    text-decoration: none !important;
}

#top .hayashi-google-calendar-add-button:focus-visible,
body .hayashi-google-calendar-add-button:focus-visible {
    outline: 2px solid #1a73e8 !important;
    outline-offset: 2px !important;
}

#top .hayashi-google-calendar-add-button-ripple,
body .hayashi-google-calendar-add-button-ripple {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

#top .hayashi-google-calendar-add-button-icon,
body .hayashi-google-calendar-add-button-icon {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #1a73e8 !important;
    border-radius: 4px !important;
    background:
        linear-gradient(#1a73e8, #1a73e8) 0 0 / 100% 5px no-repeat,
        #ffffff !important;
    box-sizing: border-box !important;
}

#top .hayashi-google-calendar-add-button-icon::before,
body .hayashi-google-calendar-add-button-icon::before {
    content: "" !important;
    position: absolute !important;
    top: -4px !important;
    left: 3px !important;
    width: 2px !important;
    height: 5px !important;
    border-radius: 2px !important;
    background: #1a73e8 !important;
    box-shadow: 8px 0 0 #1a73e8 !important;
}

#top .hayashi-google-calendar-add-button-icon span,
body .hayashi-google-calendar-add-button-icon span {
    position: absolute !important;
    right: 2px !important;
    bottom: 2px !important;
    width: 8px !important;
    height: 8px !important;
}

#top .hayashi-google-calendar-add-button-icon span::before,
#top .hayashi-google-calendar-add-button-icon span::after,
body .hayashi-google-calendar-add-button-icon span::before,
body .hayashi-google-calendar-add-button-icon span::after {
    content: "" !important;
    position: absolute !important;
    background: #34a853 !important;
    border-radius: 1px !important;
}

#top .hayashi-google-calendar-add-button-icon span::before,
body .hayashi-google-calendar-add-button-icon span::before {
    top: 3px !important;
    left: 0 !important;
    width: 8px !important;
    height: 2px !important;
}

#top .hayashi-google-calendar-add-button-icon span::after,
body .hayashi-google-calendar-add-button-icon span::after {
    top: 0 !important;
    left: 3px !important;
    width: 2px !important;
    height: 8px !important;
}

#top .hayashi-google-calendar-add-button-label,
body .hayashi-google-calendar-add-button-label {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 640px) {
    #top .hayashi-google-calendar-add-button,
    body .hayashi-google-calendar-add-button {
        width: 100% !important;
        min-height: 44px !important;
    }
}

#top .hayashi-next-occurrence-card,
body .hayashi-next-occurrence-card {
    max-width: 760px !important;
    margin: 18px 0 0 !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(216, 204, 186, 0.95) !important;
    border-top: 4px solid #7a0f0f !important;
    border-radius: 8px !important;
    background: rgba(255, 253, 247, 0.96) !important;
    color: #3f3a34 !important;
    box-shadow: 0 10px 28px rgba(4, 30, 66, 0.10) !important;
}

#top .hayashi-event-profile-has-hero .hayashi-next-occurrence-card,
body .hayashi-event-profile-has-hero .hayashi-next-occurrence-card,
#top .hayashi-single-hero .hayashi-next-occurrence-card,
body .hayashi-single-hero .hayashi-next-occurrence-card {
    background: rgba(255, 253, 247, 0.92) !important;
    color: #3f3a34 !important;
}

#top .hayashi-next-occurrence-card > p,
body .hayashi-next-occurrence-card > p {
    margin: 0 0 8px !important;
    color: #7a0f0f !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

#top .hayashi-next-occurrence-card h2,
body .hayashi-next-occurrence-card h2 {
    margin: 0 0 12px !important;
    color: #5a0f12 !important;
    font-size: clamp(1.25rem, 2.1vw, 1.7rem) !important;
    line-height: 1.35 !important;
}

#top .hayashi-next-occurrence-card h2 a,
body .hayashi-next-occurrence-card h2 a {
    color: inherit !important;
    text-decoration: none !important;
}

#top .hayashi-next-occurrence-card h2 a:hover,
body .hayashi-next-occurrence-card h2 a:hover {
    color: #7a0f0f !important;
}

#top .hayashi-next-occurrence-card dl,
body .hayashi-next-occurrence-card dl {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 10px 14px !important;
    margin: 0 0 14px !important;
}

#top .hayashi-next-occurrence-card dl div,
body .hayashi-next-occurrence-card dl div {
    min-width: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(216, 204, 186, 0.78) !important;
    border-radius: 6px !important;
    background: #f7f3ea !important;
}

#top .hayashi-next-occurrence-card dt,
body .hayashi-next-occurrence-card dt {
    margin: 0 0 4px !important;
    color: #8a8175 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

#top .hayashi-next-occurrence-card dd,
body .hayashi-next-occurrence-card dd {
    margin: 0 !important;
    color: #3f3a34 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}

#top .hayashi-next-occurrence-link,
body .hayashi-next-occurrence-link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    background: #7a0f0f !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#top .hayashi-next-occurrence-link:hover,
body .hayashi-next-occurrence-link:hover {
    background: #5a0a0a !important;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    #top .hayashi-next-occurrence-card,
    body .hayashi-next-occurrence-card {
        padding: 16px !important;
    }

    #top .hayashi-next-occurrence-card dl,
    body .hayashi-next-occurrence-card dl {
        grid-template-columns: 1fr !important;
    }
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row,
#top .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row,
body .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row,
body .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row {
    align-items: flex-start !important;
    gap: 16px !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row p,
#top .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row p,
body .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row p,
body .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row p {
    margin: 4px 0 0 !important;
    color: #8a8175 !important;
    line-height: 1.7 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-panel-eyebrow,
#top .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-panel-eyebrow,
body .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-panel-eyebrow,
body .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-panel-eyebrow {
    margin: 0 0 4px !important;
    color: #7a0f0f !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-same-event h2,
#top .template-hayashi-occurrence-single .hayashi-occurrence-nearby h2,
body .template-hayashi-occurrence-single .hayashi-occurrence-same-event h2,
body .template-hayashi-occurrence-single .hayashi-occurrence-nearby h2 {
    margin: 0 !important;
}

@media (max-width: 640px) {
    #top .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row,
    #top .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row,
    body .template-hayashi-occurrence-single .hayashi-occurrence-same-event .hayashi-section-heading-row,
    body .template-hayashi-occurrence-single .hayashi-occurrence-nearby .hayashi-section-heading-row {
        align-items: stretch !important;
    }
}

/* Video detail pages intentionally break out of Enfold's centered container. */
#top .container_wrap.av-hayashi-no-sidebar .container.template-hayashi-db.template-hayashi-single:has(.hayashi-video-single),
body .container_wrap.av-hayashi-no-sidebar .container.template-hayashi-db.template-hayashi-single:has(.hayashi-video-single),
#top .container_wrap.av-hayashi-no-sidebar .template-hayashi-db.template-hayashi-single:has(.hayashi-video-single),
body .container_wrap.av-hayashi-no-sidebar .template-hayashi-db.template-hayashi-single:has(.hayashi-video-single),
#top .container_wrap.av-hayashi-no-sidebar .content:has(.hayashi-video-single),
body .container_wrap.av-hayashi-no-sidebar .content:has(.hayashi-video-single),
#top .container_wrap.av-hayashi-no-sidebar .post-entry:has(.hayashi-video-single),
body .container_wrap.av-hayashi-no-sidebar .post-entry:has(.hayashi-video-single),
#top .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper:has(.hayashi-video-single),
body .container_wrap.av-hayashi-no-sidebar .entry-content-wrapper:has(.hayashi-video-single) {
    max-width: none !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single {
    max-width: none !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    padding-right: clamp(12px, 1.6vw, 24px) !important;
    padding-left: clamp(12px, 1.6vw, 24px) !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout {
    grid-template-columns: minmax(0, calc(100% - clamp(360px, 28vw, 440px) - 20px)) clamp(360px, 28vw, 440px) !important;
    gap: 20px !important;
    width: 100% !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout .hayashi-video-player iframe,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout .hayashi-video-player iframe {
    min-height: clamp(420px, 42vw, 780px) !important;
}

@media (max-width: 1020px) {
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-video-watch-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Video archive refinement: denser YouTube-like browsing. */
#top .hayashi-video-archive,
body .hayashi-video-archive {
    max-width: 1480px !important;
}

#top .hayashi-video-archive .hayashi-video-archive-grid,
body .hayashi-video-archive .hayashi-video-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px 18px !important;
}

#top .hayashi-video-archive .hayashi-video-archive-card,
body .hayashi-video-archive .hayashi-video-archive-card {
    border-top: 0 !important;
}

#top .hayashi-video-archive .hayashi-video-thumb,
body .hayashi-video-archive .hayashi-video-thumb {
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

#top .hayashi-video-archive .hayashi-video-card-body,
body .hayashi-video-archive .hayashi-video-card-body {
    padding-top: 9px !important;
}

#top .hayashi-video-archive .hayashi-video-card-body h2,
body .hayashi-video-archive .hayashi-video-card-body h2 {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

#top .hayashi-video-archive .hayashi-video-card-meta,
body .hayashi-video-archive .hayashi-video-card-meta {
    color: #706A63 !important;
    font-size: 12px !important;
}

@media (max-width: 1180px) {
    #top .hayashi-video-archive .hayashi-video-archive-grid,
    body .hayashi-video-archive .hayashi-video-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    #top .hayashi-video-archive .hayashi-video-archive-grid,
    body .hayashi-video-archive .hayashi-video-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 540px) {
    #top .hayashi-video-archive .hayashi-video-archive-grid,
    body .hayashi-video-archive .hayashi-video-archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Final video watch layout: wide player with a YouTube-like recommendation rail. */
#top .hayashi-video-single,
body .hayashi-video-single {
    max-width: none !important;
    width: min(100%, 1680px) !important;
    padding-right: clamp(12px, 2vw, 28px) !important;
    padding-left: clamp(12px, 2vw, 28px) !important;
}

#top .hayashi-video-watch-layout,
body .hayashi-video-watch-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 420px) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 auto 20px !important;
}

#top .hayashi-video-watch-main,
body .hayashi-video-watch-main,
#top .hayashi-video-watch-sidebar,
body .hayashi-video-watch-sidebar {
    min-width: 0 !important;
}

#top .hayashi-video-watch-layout .hayashi-video-watch-panel,
body .hayashi-video-watch-layout .hayashi-video-watch-panel {
    margin: 0 !important;
}

#top .hayashi-video-watch-sidebar,
body .hayashi-video-watch-sidebar {
    display: grid !important;
    gap: 14px !important;
}

#top .hayashi-video-watch-sidebar .hayashi-video-side-panel,
body .hayashi-video-watch-sidebar .hayashi-video-side-panel {
    margin: 0 !important;
    padding: 12px !important;
}

#top .hayashi-video-watch-sidebar .hayashi-video-mini-card,
body .hayashi-video-watch-sidebar .hayashi-video-mini-card {
    grid-template-columns: 132px minmax(0, 1fr) !important;
}

#top .hayashi-video-watch-below,
body .hayashi-video-watch-below {
    display: block !important;
    margin-top: 18px !important;
}

#top .hayashi-video-watch-layout > .hayashi-video-watch-below,
body .hayashi-video-watch-layout > .hayashi-video-watch-below {
    grid-column: 1 / 2 !important;
}

#top .hayashi-video-watch-below summary,
body .hayashi-video-watch-below summary {
    display: none;
}

#top .hayashi-video-watch-below-inner,
body .hayashi-video-watch-below-inner {
    display: grid !important;
    gap: 18px !important;
}

#top .hayashi-video-watch-below-inner > *,
body .hayashi-video-watch-below-inner > * {
    max-width: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#top .hayashi-video-watch-below .hayashi-video-group-side-panel .hayashi-video-mini-list,
body .hayashi-video-watch-below .hayashi-video-group-side-panel .hayashi-video-mini-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#top .hayashi-video-trace-grid,
body .hayashi-video-trace-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

#top .hayashi-video-single .hayashi-video-relations > h2,
#top .hayashi-video-single .hayashi-video-comments > h2,
#top .hayashi-video-single .hayashi-video-profile > h2,
#top .hayashi-video-single .hayashi-video-trace-panel > h2,
#top .hayashi-video-single .hayashi-video-group-profile-panel > h2,
#top .hayashi-video-watch-below .hayashi-panel > h2,
body .hayashi-video-single .hayashi-video-relations > h2,
body .hayashi-video-single .hayashi-video-comments > h2,
body .hayashi-video-single .hayashi-video-profile > h2,
body .hayashi-video-single .hayashi-video-trace-panel > h2,
body .hayashi-video-single .hayashi-video-group-profile-panel > h2,
body .hayashi-video-watch-below .hayashi-panel > h2 {
    margin: 0 0 16px !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #D8CCBA !important;
    background: transparent !important;
    color: #5A0F12 !important;
    font-size: clamp(20px, 2.2vw, 26px) !important;
    line-height: 1.45 !important;
}

#top .hayashi-video-single .hayashi-video-relations h3,
body .hayashi-video-single .hayashi-video-relations h3 {
    margin: 18px 0 10px !important;
    color: #5A0F12 !important;
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
}

#top .hayashi-video-single .hayashi-video-comments .hayashi-panel-eyebrow,
body .hayashi-video-single .hayashi-video-comments .hayashi-panel-eyebrow {
    display: none !important;
}

#top .hayashi-video-single .hayashi-video-comments,
body .hayashi-video-single .hayashi-video-comments {
    padding-top: 24px !important;
}

/* Video page headings: align database panels with the Enfold test heading tone. */
#top .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2,
#top .hayashi-video-single .hayashi-video-body > h2,
body .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2,
body .hayashi-video-single .hayashi-video-body > h2 {
    position: relative !important;
    display: block !important;
    margin: 0 0 20px !important;
    padding: 0 0 13px !important;
    border: 0 !important;
    background: transparent !important;
    color: #7A0F0F !important;
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

#top .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2::after,
#top .hayashi-video-single .hayashi-video-body > h2::after,
body .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2::after,
body .hayashi-video-single .hayashi-video-body > h2::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(220px, 46%) !important;
    height: 1px !important;
    background: #D8CCBA !important;
}

#top .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2::before,
#top .hayashi-video-single .hayashi-video-body > h2::before,
body .hayashi-video-single .hayashi-video-watch-below .hayashi-panel > h2::before,
body .hayashi-video-single .hayashi-video-body > h2::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -1px !important;
    width: 42px !important;
    height: 3px !important;
    background: #7A0F0F !important;
}

#top .hayashi-video-single .hayashi-video-relations h3,
body .hayashi-video-single .hayashi-video-relations h3 {
    margin: 20px 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #7A0F0F !important;
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif !important;
    font-size: clamp(18px, 1.8vw, 22px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
}

#top .hayashi-video-single .hayashi-video-comments .hayashi-panel-eyebrow,
#top .hayashi-video-single .hayashi-video-trace-panel .hayashi-panel-eyebrow,
#top .hayashi-video-single .hayashi-video-group-profile-panel .hayashi-panel-eyebrow,
body .hayashi-video-single .hayashi-video-comments .hayashi-panel-eyebrow,
body .hayashi-video-single .hayashi-video-trace-panel .hayashi-panel-eyebrow,
body .hayashi-video-single .hayashi-video-group-profile-panel .hayashi-panel-eyebrow {
    display: none !important;
}

@media (max-width: 1020px) {
    #top .hayashi-video-watch-layout,
    body .hayashi-video-watch-layout {
        grid-template-columns: 1fr !important;
    }

    #top .hayashi-video-watch-sidebar,
    body .hayashi-video-watch-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #top .hayashi-video-trace-grid,
    body .hayashi-video-trace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    #top .hayashi-video-single,
    body .hayashi-video-single {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    #top .hayashi-video-watch-sidebar,
    body .hayashi-video-watch-sidebar,
    #top .hayashi-video-watch-sidebar .hayashi-video-mini-card,
    body .hayashi-video-watch-sidebar .hayashi-video-mini-card {
        grid-template-columns: 1fr !important;
    }

    #top .hayashi-video-watch-below summary,
    body .hayashi-video-watch-below summary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        padding: 0 14px !important;
        border: 1px solid #D8CCBA !important;
        border-radius: 5px !important;
        background: #FFFDF7 !important;
        color: #7A0F0F !important;
        font-weight: 700 !important;
        cursor: pointer !important;
    }

    #top .hayashi-video-watch-below-inner,
    body .hayashi-video-watch-below-inner {
        margin-top: 12px !important;
    }

    #top .hayashi-video-watch-below .hayashi-video-group-side-panel .hayashi-video-mini-list,
    body .hayashi-video-watch-below .hayashi-video-group-side-panel .hayashi-video-mini-list {
        grid-template-columns: 1fr !important;
    }

    #top .hayashi-video-trace-grid,
    body .hayashi-video-trace-grid {
        grid-template-columns: 1fr !important;
    }
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-single,
body .template-hayashi-occurrence-single .hayashi-occurrence-single {
    display: block;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
    gap: clamp(22px, 4vw, 42px);
    align-items: stretch;
    margin: 0 0 30px !important;
    padding: clamp(24px, 4vw, 42px) !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #7A0F0F !important;
    border-radius: 6px !important;
    background: #FFFDF7 !important;
    color: #3F3A34 !important;
    box-shadow: 0 14px 34px rgba(47, 31, 18, 0.08) !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile h1,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile h1 {
    margin: 0 0 18px !important;
    color: #5A0F12 !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(30px, 4vw, 46px) !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-summary,
body .template-hayashi-occurrence-single .hayashi-occurrence-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-summary div,
body .template-hayashi-occurrence-single .hayashi-occurrence-summary div {
    min-height: 92px;
    border-radius: 6px !important;
    background: #F7F3EA !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-summary strong,
body .template-hayashi-occurrence-single .hayashi-occurrence-summary strong {
    color: #7A0F0F !important;
    font-size: clamp(20px, 2.4vw, 30px) !important;
    line-height: 1.25 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 18px 0 0 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts div,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts div {
    padding: 12px 0 !important;
    border-bottom: 1px solid #E5DACB !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts dt,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts dt {
    margin: 0 0 4px !important;
    color: #8A8175 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts dd,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts dd {
    margin: 0 !important;
    color: #3F3A34 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-media,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-media {
    overflow: hidden;
    min-height: 260px;
    border-radius: 6px;
    background: #F5EFE4;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-profile-media img,
body .template-hayashi-occurrence-single .hayashi-occurrence-profile-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info,
body .template-hayashi-occurrence-single .hayashi-occurrence-info {
    padding: 22px !important;
    border: 1px solid #D8CCBA !important;
    border-left: 5px solid #D8CCBA !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
    box-shadow: 0 10px 28px rgba(47, 31, 18, 0.06) !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info h2,
body .template-hayashi-occurrence-single .hayashi-occurrence-info h2 {
    margin: 0 0 14px !important;
    color: #5A0F12 !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: 22px !important;
    line-height: 1.45 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list,
body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 0 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list > div,
body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list > div {
    display: grid;
    align-content: start;
    min-height: 112px;
    padding: 18px 20px !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #D8CCBA !important;
    border-radius: 6px !important;
    background: #FFFDF7 !important;
    box-shadow: none !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-side,
body .template-hayashi-occurrence-single .hayashi-occurrence-side {
    padding: 20px !important;
    border: 1px solid #D8CCBA !important;
    border-top: 4px solid #041E42 !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
    box-shadow: 0 10px 28px rgba(47, 31, 18, 0.06) !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-side h2,
body .template-hayashi-occurrence-single .hayashi-occurrence-side h2 {
    margin: 0 0 14px !important;
    color: #5A0F12 !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: 20px !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-side .hayashi-info-group,
body .template-hayashi-occurrence-single .hayashi-occurrence-side .hayashi-info-group {
    padding-top: 12px !important;
    border-top: 1px solid #E5DACB !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dt,
body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dt {
    margin: 0 0 8px !important;
    color: #7A0F0F !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dd,
body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dd {
    margin: 0 !important;
    color: #3F3A34 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    word-break: break-word;
}

#top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dd a,
body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list dd a {
    color: #7A0F0F !important;
    font-weight: 700 !important;
}

#top .template-hayashi-occurrence-single .hayashi-single-layout,
body .template-hayashi-occurrence-single .hayashi-single-layout {
    align-items: start;
}

@media (max-width: 820px) {
    #top .template-hayashi-occurrence-single .hayashi-occurrence-profile,
    body .template-hayashi-occurrence-single .hayashi-occurrence-profile {
        grid-template-columns: 1fr;
    }

    #top .template-hayashi-occurrence-single .hayashi-occurrence-summary,
    #top .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts,
    #top .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list,
    body .template-hayashi-occurrence-single .hayashi-occurrence-summary,
    body .template-hayashi-occurrence-single .hayashi-occurrence-profile-facts,
    body .template-hayashi-occurrence-single .hayashi-occurrence-info .hayashi-info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    #top .template-hayashi-group-single .hayashi-group-layout,
    #top .hayashi-builder-db-content-hayashi_group .hayashi-group-layout,
    #top .hayashi-group-layout,
    body .template-hayashi-group-single .hayashi-group-layout,
    body .hayashi-builder-db-content-hayashi_group .hayashi-group-layout,
    body .hayashi-group-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    #top .template-hayashi-group-single .hayashi-group-side,
    #top .hayashi-builder-db-content-hayashi_group .hayashi-group-side,
    #top .hayashi-group-side,
    body .template-hayashi-group-single .hayashi-group-side,
    body .hayashi-builder-db-content-hayashi_group .hayashi-group-side,
    body .hayashi-group-side {
        order: -1;
    }

    #top .template-hayashi-group-single .hayashi-group-main,
    #top .hayashi-builder-db-content-hayashi_group .hayashi-group-main,
    #top .hayashi-group-main,
    body .template-hayashi-group-single .hayashi-group-main,
    body .hayashi-builder-db-content-hayashi_group .hayashi-group-main,
    body .hayashi-group-main {
        order: 1;
    }
}

#top .hayashi-month-nav,
body .hayashi-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

#top .hayashi-section-heading-row,
body .hayashi-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

#top .hayashi-section-heading-row h2,
body .hayashi-section-heading-row h2 {
    margin: 0 !important;
}

#top .hayashi-upcoming-strip-grid,
body .hayashi-upcoming-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#top .hayashi-upcoming-strip-grid article,
body .hayashi-upcoming-strip-grid article {
    padding: 15px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .hayashi-upcoming-strip-grid time,
body .hayashi-upcoming-strip-grid time {
    display: block;
    margin-bottom: 8px;
    color: #7A0F0F;
    font-weight: 700;
    white-space: pre-line;
}

#top .hayashi-upcoming-strip-grid h3,
body .hayashi-upcoming-strip-grid h3 {
    margin: 0 0 8px !important;
    font-size: 1.05rem !important;
}

#top .hayashi-upcoming-strip-grid h3 a,
body .hayashi-upcoming-strip-grid h3 a {
    color: #5A0F12 !important;
    text-decoration: none !important;
}

#top .hayashi-upcoming-strip-grid p,
body .hayashi-upcoming-strip-grid p {
    margin: 0 0 8px;
    color: #5f574d;
}

#top .hayashi-upcoming-strip-grid span,
body .hayashi-upcoming-strip-grid span {
    display: inline-flex;
    padding: 3px 8px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    color: #7A0F0F;
    background: #F5EFE4;
    font-size: 0.82rem;
}

#top .hayashi-month-nav h2,
body .hayashi-month-nav h2 {
    margin: 0 !important;
    color: #5A0F12 !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(22px, 3vw, 32px) !important;
    text-align: center;
}

#top .hayashi-month-form,
body .hayashi-month-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin: 0 0 18px;
}

#top .hayashi-month-form input,
body .hayashi-month-form input {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #FFFDF7;
}

#top .hayashi-event-month-guide,
body .hayashi-event-month-guide {
    margin-top: 24px;
}

#top .hayashi-event-month-guide > p,
body .hayashi-event-month-guide > p {
    margin: 0 0 18px;
    color: #5f574d;
}

#top .hayashi-event-month-grid,
body .hayashi-event-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

#top .hayashi-event-month-grid article,
body .hayashi-event-month-grid article {
    background: #FFFDF7;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    padding: 16px;
}

#top .hayashi-event-month-grid h3,
body .hayashi-event-month-grid h3 {
    margin: 0 0 12px;
    color: #5A0F12;
    font-size: 1.12rem;
}

#top .hayashi-event-month-grid ul,
body .hayashi-event-month-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#top .hayashi-event-month-grid li,
body .hayashi-event-month-grid li {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(216, 204, 186, 0.72);
}

#top .hayashi-event-month-grid li:last-child,
body .hayashi-event-month-grid li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

#top .hayashi-event-month-grid a,
body .hayashi-event-month-grid a {
    color: #7A0F0F;
    font-weight: 700;
    text-decoration: none;
}

#top .hayashi-event-month-grid span,
#top .hayashi-event-month-grid p,
body .hayashi-event-month-grid span,
body .hayashi-event-month-grid p {
    margin: 0;
    color: #756b60;
    font-size: 0.9rem;
    line-height: 1.55;
}

#top .hayashi-event-result-bar,
body .hayashi-event-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
}

#top .hayashi-event-result-bar .hayashi-result-count,
body .hayashi-event-result-bar .hayashi-result-count {
    margin: 0;
}

#top .hayashi-view-switch,
body .hayashi-view-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #FFFDF7;
}

#top .hayashi-view-switch a,
body .hayashi-view-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 13px;
    color: #7A0F0F;
    text-decoration: none;
    border-right: 1px solid #D8CCBA;
    font-weight: 700;
}

#top .hayashi-view-switch a:last-child,
body .hayashi-view-switch a:last-child {
    border-right: 0;
}

#top .hayashi-view-switch a.is-active,
body .hayashi-view-switch a.is-active {
    color: #fff;
    background: #7A0F0F;
}

#top .hayashi-event-list-wrap,
body .hayashi-event-list-wrap {
    overflow-x: auto;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .hayashi-event-list-table,
body .hayashi-event-list-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

#top .hayashi-event-list-table th,
#top .hayashi-event-list-table td,
body .hayashi-event-list-table th,
body .hayashi-event-list-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #D8CCBA;
    text-align: left;
    vertical-align: top;
    color: #3F3A34;
    line-height: 1.55;
}

#top .hayashi-event-list-table th,
body .hayashi-event-list-table th {
    color: #5A0F12;
    background: #F5EFE4;
    font-size: 0.92rem;
    white-space: nowrap;
}

#top .hayashi-event-list-table tr:last-child td,
body .hayashi-event-list-table tr:last-child td {
    border-bottom: 0;
}

#top .hayashi-event-list-table strong,
#top .hayashi-event-list-table span,
#top .hayashi-event-list-table small,
body .hayashi-event-list-table strong,
body .hayashi-event-list-table span,
body .hayashi-event-list-table small {
    display: block;
}

#top .hayashi-event-list-table a,
body .hayashi-event-list-table a {
    color: #7A0F0F;
    text-decoration: none;
    font-weight: 700;
}

#top .hayashi-event-list-table small,
body .hayashi-event-list-table small {
    margin-top: 3px;
    color: #756b60;
    font-size: 0.88rem;
}

#top .hayashi-calendar-grid,
body .hayashi-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #D8CCBA;
}

#top .hayashi-occurrence-filter-panel,
body .hayashi-occurrence-filter-panel {
    border-top: 4px solid #D8CCBA;
}

#top .hayashi-occurrence-filter-grid,
body .hayashi-occurrence-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

#top .hayashi-occurrence-filter-grid label,
body .hayashi-occurrence-filter-grid label {
    display: grid;
    gap: 6px;
    color: #7A0F0F;
    font-weight: 700;
}

#top .hayashi-occurrence-filter-grid input,
#top .hayashi-occurrence-filter-grid select,
body .hayashi-occurrence-filter-grid input,
body .hayashi-occurrence-filter-grid select {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #FFFDF7;
    color: #3F3A34;
    font-weight: 400;
}

#top .hayashi-filter-actions,
body .hayashi-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#top .hayashi-occurrence-scope-strip,
body .hayashi-occurrence-scope-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

#top .hayashi-occurrence-scope-strip a,
body .hayashi-occurrence-scope-strip a {
    display: grid;
    gap: 2px;
    padding: 14px 12px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
    color: #3F3A34 !important;
    text-align: center;
    text-decoration: none !important;
}

#top .hayashi-occurrence-scope-strip a.is-active,
body .hayashi-occurrence-scope-strip a.is-active {
    border-top-color: #7A0F0F;
    background: #F5EFE4;
}

#top .hayashi-occurrence-scope-strip strong,
body .hayashi-occurrence-scope-strip strong {
    color: #7A0F0F;
    font-size: 1.5rem;
    line-height: 1.1;
}

#top .hayashi-occurrence-scope-strip span,
body .hayashi-occurrence-scope-strip span {
    color: #756b60;
    font-size: 0.9rem;
}

#top .hayashi-occurrence-view-bar,
body .hayashi-occurrence-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .hayashi-occurrence-view-bar p,
body .hayashi-occurrence-view-bar p {
    margin: 0;
    color: #756b60;
    font-size: 0.92rem;
    line-height: 1.6;
}

#top .hayashi-ical-panel,
body .hayashi-ical-panel {
    border-top: 4px solid #7A0F0F;
}

#top .hayashi-ical-panel p,
body .hayashi-ical-panel p {
    margin: 6px 0 0;
    color: #6f665c;
}

#top .hayashi-ical-url-field,
body .hayashi-ical-url-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

#top .hayashi-ical-url-field span,
body .hayashi-ical-url-field span {
    color: #5A0F12;
    font-weight: 700;
}

#top .hayashi-ical-url-field input,
body .hayashi-ical-url-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #FFFDF7;
    color: #3F3A34;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

#top .hayashi-ical-actions,
body .hayashi-ical-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

#top button.hayashi-button,
body button.hayashi-button {
    cursor: pointer;
    font: inherit;
}

#top .hayashi-copy-feedback,
body .hayashi-copy-feedback {
    min-height: 1.5em;
    margin: 9px 0 0 !important;
    color: #7A0F0F !important;
    font-weight: 700;
}

#top .hayashi-ical-note,
body .hayashi-ical-note {
    padding: 10px 12px;
    border: 1px solid rgba(216, 204, 186, 0.75);
    border-radius: 5px;
    background: #F7F3EA;
    font-size: 0.92rem;
}

#top .hayashi-calendar-grid > strong,
body .hayashi-calendar-grid > strong {
    padding: 9px 6px;
    background: #F5EFE4;
    color: #7A0F0F;
    text-align: center;
    font-size: 13px;
}

#top .hayashi-calendar-grid > div,
body .hayashi-calendar-grid > div {
    min-height: 112px;
    padding: 8px;
    background: #FFFDF7;
}

#top .hayashi-calendar-grid > div.is-empty,
body .hayashi-calendar-grid > div.is-empty {
    background: #F7F3EA;
}

#top .hayashi-calendar-grid > div.is-today,
body .hayashi-calendar-grid > div.is-today {
    box-shadow: inset 0 0 0 2px #7A0F0F;
}

#top .hayashi-calendar-grid time,
body .hayashi-calendar-grid time {
    display: block;
    margin-bottom: 6px;
    color: #8A8175;
    font-weight: 700;
}

#top .hayashi-occurrence-summary strong,
body .hayashi-occurrence-summary strong,
#top .hayashi-occurrence-info dd,
body .hayashi-occurrence-info dd {
    white-space: pre-line;
}

#top .hayashi-calendar-grid a,
body .hayashi-calendar-grid a {
    display: block;
    margin: 4px 0;
    padding: 4px 6px;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
}

#top .hayashi-calendar-grid a.hayashi-calendar-more-link,
body .hayashi-calendar-grid a.hayashi-calendar-more-link {
    background: #FFFDF7;
    border: 1px solid #D8CCBA;
    color: #5A0F12 !important;
    font-size: 11px;
    text-align: center;
}

#top .hayashi-schedule-list,
body .hayashi-schedule-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#top .hayashi-schedule-list li,
body .hayashi-schedule-list li {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #D8CCBA;
    border-left: 0;
    border-top: 3px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .hayashi-schedule-list time,
body .hayashi-schedule-list time {
    color: #7A0F0F;
    font-weight: 700;
    white-space: pre-line;
}

#top .hayashi-schedule-title,
body .hayashi-schedule-title,
#top .hayashi-schedule-list a.hayashi-schedule-title,
body .hayashi-schedule-list a.hayashi-schedule-title {
    display: inline-block;
    color: #5A0F12 !important;
    font-weight: 700;
    line-height: 1.55;
    text-decoration: none !important;
}

#top .hayashi-schedule-body,
body .hayashi-schedule-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

#top .hayashi-schedule-meta,
body .hayashi-schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

#top .hayashi-schedule-meta span,
body .hayashi-schedule-meta span {
    color: #756b60;
    font-size: 13px;
    line-height: 1.55;
}

#top .hayashi-status-badge,
body .hayashi-status-badge {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

#top .hayashi-schedule-list span,
#top .hayashi-schedule-list em:not(.hayashi-status-badge),
body .hayashi-schedule-list span,
body .hayashi-schedule-list em:not(.hayashi-status-badge) {
    color: #8A8175;
    font-size: 13px;
    font-style: normal;
}

#top .hayashi-month-schedule-list,
body .hayashi-month-schedule-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

#top .hayashi-day-schedule,
body .hayashi-day-schedule {
    overflow: hidden;
    border: 1px solid #D8CCBA;
    border-radius: 6px;
    background: #FFFDF7;
}

#top .hayashi-day-schedule-header,
body .hayashi-day-schedule-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border-bottom: 1px solid #D8CCBA;
    background: #F5EFE4;
}

#top .hayashi-day-schedule-header time,
body .hayashi-day-schedule-header time {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    min-height: 56px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #FFFDF7;
    color: #7A0F0F;
}

#top .hayashi-day-schedule-header time span,
body .hayashi-day-schedule-header time span {
    color: #7A0F0F;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

#top .hayashi-day-schedule-header time em,
body .hayashi-day-schedule-header time em {
    color: #756b60;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
}

#top .hayashi-day-schedule-header h3,
body .hayashi-day-schedule-header h3 {
    margin: 0 0 3px !important;
    color: #5A0F12 !important;
    font-size: 1.12rem !important;
}

#top .hayashi-day-schedule-header p,
body .hayashi-day-schedule-header p,
#top .hayashi-schedule-panel .hayashi-section-heading-row p,
body .hayashi-schedule-panel .hayashi-section-heading-row p {
    margin: 0;
    color: #756b60;
    font-size: 0.92rem;
}

#top .hayashi-schedule-list-grouped,
body .hayashi-schedule-list-grouped {
    gap: 0;
    margin: 0 !important;
}

#top .hayashi-schedule-list-grouped li,
body .hayashi-schedule-list-grouped li {
    border-width: 0 0 1px;
    border-radius: 0;
}

#top .hayashi-schedule-list-grouped li:last-child,
body .hayashi-schedule-list-grouped li:last-child {
    border-bottom: 0;
}

#top .hayashi-current-strip,
body .hayashi-current-strip {
    border-top: 4px solid #7A0F0F;
    background: #fffdf7;
}

#top .hayashi-event-date-history,
body .hayashi-event-date-history {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

#top .hayashi-event-date-history li,
body .hayashi-event-date-history li {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #d8ccba;
    border-radius: 6px;
    background: #fffdf7;
}

#top .hayashi-event-date-history time,
body .hayashi-event-date-history time {
    color: #7A0F0F;
    font-weight: 700;
}

#top .hayashi-event-date-history span,
body .hayashi-event-date-history span,
#top .hayashi-subnote,
body .hayashi-subnote {
    color: #756b60;
    font-size: 0.92rem;
    line-height: 1.7;
}

#top .hayashi-event-occurrence-panel .hayashi-section-heading-row p,
body .hayashi-event-occurrence-panel .hayashi-section-heading-row p,
#top .hayashi-group-occurrence-panel .hayashi-section-heading-row p,
body .hayashi-group-occurrence-panel .hayashi-section-heading-row p {
    margin: 4px 0 0;
    color: #756b60;
}

#top .hayashi-occurrence-subsection,
body .hayashi-occurrence-subsection {
    margin-top: 22px;
}

#top .hayashi-occurrence-subsection h3,
body .hayashi-occurrence-subsection h3 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D8CCBA;
    color: #5A0F12;
    font-size: 1.15rem;
}

@media (max-width: 760px) {
    #top .hayashi-section-heading-row,
    body .hayashi-section-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    #top .hayashi-upcoming-strip-grid,
    body .hayashi-upcoming-strip-grid {
        grid-template-columns: 1fr;
    }

    #top .hayashi-month-nav,
    body .hayashi-month-nav {
        align-items: stretch;
        flex-direction: column;
    }

    #top .hayashi-occurrence-filter-grid,
    body .hayashi-occurrence-filter-grid,
    #top .hayashi-occurrence-scope-strip,
    body .hayashi-occurrence-scope-strip {
        grid-template-columns: 1fr;
    }

    #top .hayashi-occurrence-view-bar,
    body .hayashi-occurrence-view-bar {
        align-items: stretch;
        flex-direction: column;
    }

    #top .hayashi-occurrence-view-bar .hayashi-view-switch,
    body .hayashi-occurrence-view-bar .hayashi-view-switch {
        width: 100%;
    }

    #top .hayashi-occurrence-view-bar .hayashi-view-switch a,
    body .hayashi-occurrence-view-bar .hayashi-view-switch a {
        justify-content: center;
        flex: 1 1 0;
    }

    #top .hayashi-event-month-grid,
    body .hayashi-event-month-grid {
        grid-template-columns: 1fr;
    }

    #top .hayashi-calendar-grid,
    body .hayashi-calendar-grid {
        font-size: 12px;
    }

    #top .hayashi-calendar-grid > div,
    body .hayashi-calendar-grid > div {
        min-height: 86px;
        padding: 6px;
    }

    #top .hayashi-schedule-list li,
    body .hayashi-schedule-list li {
        grid-template-columns: 1fr;
    }

    #top .hayashi-status-badge,
    body .hayashi-status-badge {
        justify-self: start;
    }

    #top .hayashi-day-schedule-header,
    body .hayashi-day-schedule-header {
        align-items: flex-start;
    }
}

.hayashi-home-db {
    display: grid;
    gap: 30px;
}

.hayashi-home-term-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hayashi-home-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.hayashi-home-search-form label {
    min-width: 0;
}

.hayashi-home-search-form input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #fff;
    color: #3F3A34;
}

.hayashi-home-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-home-link-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #D8CCBA;
    border-left: 4px solid #7A0F0F;
    border-radius: 5px;
    background: #FFFDF7;
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-home-link-card strong {
    color: #5A0A0A;
    font-size: 1rem;
    line-height: 1.5;
}

.hayashi-home-link-card span {
    color: #8A8175;
    font-size: 0.9rem;
    line-height: 1.65;
}

.hayashi-home-link-card:hover {
    border-color: #7A0F0F;
    background: #F5EFE4;
}

.hayashi-term-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-term-directory-card a {
    display: grid;
    gap: 7px;
    min-height: 100%;
    padding: 14px;
    border: 1px solid #D8CCBA;
    border-top: 3px solid #7A0F0F;
    border-radius: 5px;
    background: #FFFDF7;
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-term-directory-card strong {
    color: #5A0A0A;
    font-size: 1rem;
    line-height: 1.55;
}

.hayashi-term-directory-card span {
    width: max-content;
    padding: 2px 8px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.hayashi-term-directory-card em {
    color: #3F3A34;
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.7;
}

.hayashi-term-directory-card a:hover {
    border-color: #7A0F0F;
    background: #F5EFE4;
}

@media (max-width: 900px) {
    .hayashi-home-search-form,
    .hayashi-home-link-grid,
    .hayashi-home-term-sections,
    .hayashi-term-directory-grid {
        grid-template-columns: 1fr;
    }
}

.hayashi-landing {
    --hayashi-landing-red: var(--enfold-main-color-primary, #7A0F0F);
    --hayashi-landing-red-dark: var(--enfold-main-color-heading, #5A0F11);
    --hayashi-landing-cream: var(--enfold-main-color-bg, #F7F3EA);
    --hayashi-landing-paper: #FFFDF7;
    --hayashi-landing-gold: var(--enfold-main-color-secondary, #B0893C);
    --hayashi-landing-ink: var(--enfold-main-color-color, #2D2926);
    --hayashi-landing-overlay: 0.72;
    --hayashi-landing-overlay-mid: 0.42;
    --hayashi-landing-hero-height: 430px;
    --hayashi-landing-hero-position: center center;
    color: var(--hayashi-landing-ink);
    background: var(--hayashi-landing-cream);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    overflow-x: hidden;
}

#top .entry-content-wrapper > .hayashi-landing:first-child,
#top .template-page .entry-content-wrapper > .hayashi-landing:first-child {
    margin-top: -50px;
}

#top .container_wrap:has(.hayashi-landing),
#top .template-page:has(.hayashi-landing),
#top .content:has(.hayashi-landing),
#top .post-entry:has(.hayashi-landing),
#top .entry-content-wrapper:has(.hayashi-landing) {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
}

#top .entry-content-wrapper:has(.hayashi-landing) > .hr:first-child,
#top .entry-content-wrapper:has(.hayashi-landing) > .av_hr:first-child,
#top .entry-content-wrapper:has(.hayashi-landing) > .av-special-heading:first-child + .hr,
#top .entry-content-wrapper:has(.hayashi-landing) > .av-special-heading:first-child + .av_hr {
    display: none !important;
}

#top .entry-content-wrapper .hayashi-landing:first-child,
#top .post-entry .hayashi-landing:first-child,
#top .content .hayashi-landing:first-child,
#top .template-page .hayashi-landing:first-child {
    margin-top: 0 !important;
}

.hayashi-landing-hero {
    min-height: max(var(--hayashi-landing-hero-height), 460px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, var(--hayashi-landing-overlay)), rgba(0, 0, 0, var(--hayashi-landing-overlay-mid)), rgba(0, 0, 0, 0.16)),
        var(--hayashi-landing-hero-image, linear-gradient(135deg, #180606, #4A0707 52%, #0D1117));
    background-position: var(--hayashi-landing-hero-position);
    background-size: cover;
    border-top: 0;
}

.hayashi-landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 25%, rgba(184, 137, 53, 0.24), transparent 24%),
        linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.55));
}

.hayashi-landing-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(72px, 8vw, 112px) 0 clamp(84px, 9vw, 128px);
    color: #fff;
}

.hayashi-landing-kicker {
    margin: 0 0 12px;
    color: #F5EFE4;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.hayashi-landing-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff !important;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.hayashi-landing-hero p:not(.hayashi-landing-kicker) {
    max-width: 640px;
    margin: 18px 0 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.9;
}

.hayashi-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hayashi-landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-landing-button-primary {
    border: 1px solid #9E1717;
    background: var(--hayashi-landing-red);
    color: #fff !important;
}

.hayashi-landing-button-light {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 253, 247, 0.94);
    color: var(--hayashi-landing-red-dark) !important;
}

.hayashi-landing-nav {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border: 1px solid #D8CCBA;
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 10px 24px rgba(40, 20, 10, 0.08);
}

.hayashi-landing-nav-card {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 138px;
    padding: 18px 16px;
    border-right: 1px solid #D8CCBA;
    border-bottom: 1px solid #D8CCBA;
    color: var(--hayashi-landing-ink);
    text-align: center;
    text-decoration: none;
}

.hayashi-landing-nav-card:last-child {
    border-right: 0;
}

.hayashi-landing-nav-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 2px;
    color: var(--hayashi-landing-red);
    fill: none;
    stroke: currentColor;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hayashi-landing-nav-icon-image {
    display: block;
    width: 76px;
    height: 62px;
    background-image: url("landing-icons.png");
    background-repeat: no-repeat;
    background-size: 560px 373px;
    border-radius: 3px;
    filter: saturate(1.15) contrast(1.08);
}

.hayashi-landing-nav-icon-groups {
    background-position: -20px -88px;
}

.hayashi-landing-nav-icon-events {
    background-position: -130px -88px;
}

.hayashi-landing-nav-icon-shrines {
    background-position: -239px -88px;
}

.hayashi-landing-nav-icon-styles {
    background-position: -347px -88px;
}

.hayashi-landing-nav-icon-map {
    background-position: -450px -88px;
}

.hayashi-landing-nav-icon-fallback {
    color: var(--hayashi-landing-red);
    font-size: 1.6rem;
    font-weight: 700;
}

.hayashi-landing-nav-card strong {
    color: var(--hayashi-landing-red-dark);
    font-size: 1.05rem;
}

.hayashi-landing-nav-card em {
    color: #6F6256;
    font-size: 0.86rem;
    font-style: normal;
    line-height: 1.55;
}

.hayashi-landing-nav-card:hover {
    background: #F5EFE4;
}

.hayashi-landing-search {
    width: min(1180px, calc(100% - 36px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.55fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid #D8CCBA;
    border-left: 5px solid var(--hayashi-landing-red);
    border-radius: 5px;
    background: #FFFDF7;
    box-shadow: 0 8px 24px rgba(40, 20, 10, 0.08);
}

.hayashi-landing-search h2 {
    margin: 0 0 6px;
    color: var(--hayashi-landing-red-dark) !important;
    font-family: "Noto Serif JP", serif;
    font-size: 1.22rem;
    letter-spacing: 0;
}

.hayashi-landing-search p {
    margin: 0;
    color: #6F6256;
    line-height: 1.7;
}

.hayashi-landing-search form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 160px auto auto;
    gap: 10px;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.hayashi-landing-search input,
.hayashi-landing-search select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #fff;
    color: var(--hayashi-landing-ink);
}

.hayashi-landing-search button,
.hayashi-landing-search a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hayashi-landing-search button {
    border: 1px solid var(--hayashi-landing-red);
    background: var(--hayashi-landing-red);
    color: #fff;
}

.hayashi-landing-search a {
    border: 1px solid #D8CCBA;
    background: #F5EFE4;
    color: var(--hayashi-landing-red-dark);
}

.hayashi-landing-counts {
    margin-top: 28px;
    padding: 28px 0;
    background: linear-gradient(180deg, #7A0F0F, #510707);
    color: #FFFDF7;
}

.hayashi-landing-counts h2 {
    margin: 0 0 18px;
    color: #FFFDF7 !important;
    text-align: center;
    font-family: "Noto Serif JP", serif;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
}

.hayashi-landing-count-grid {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
}

.hayashi-landing-count {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: baseline;
    padding: 10px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.34);
}

.hayashi-landing-count:last-child {
    border-right: 0;
}

.hayashi-landing .hayashi-landing-count span {
    color: #FFF8EC !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.hayashi-landing .hayashi-landing-count strong {
    color: #FFFFFF !important;
    font-size: 2rem;
    font-family: Georgia, serif;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.42);
}

.hayashi-landing .hayashi-landing-count em {
    color: #FFF8EC !important;
    font-style: normal;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.hayashi-landing-lower {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    padding: 34px 0 48px;
}

.hayashi-landing-lower > div {
    min-width: 0;
    padding: 20px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid var(--hayashi-landing-red);
    border-radius: 5px;
    background: var(--hayashi-landing-paper);
}

.hayashi-landing-lower h2 {
    margin: 0 0 16px;
    color: var(--hayashi-landing-red-dark) !important;
    font-family: "Noto Serif JP", serif;
    font-size: 1.24rem;
    letter-spacing: 0;
}

.hayashi-landing-news ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hayashi-landing-news li {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #D8CCBA;
}

.hayashi-landing-news time {
    color: #6F6256;
    font-size: 0.88rem;
}

.hayashi-landing-news li span {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--hayashi-landing-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.hayashi-landing-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-landing-featured-grid a,
.hayashi-landing-media-grid a {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #fff;
    color: var(--hayashi-landing-ink);
    text-align: center;
    text-decoration: none;
}

.hayashi-landing-featured-grid img,
.hayashi-landing-media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #F5EFE4;
}

.hayashi-landing-featured-grid strong,
.hayashi-landing-media-grid strong {
    color: var(--hayashi-landing-red-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hayashi-landing-featured-grid time,
.hayashi-landing-media-grid span {
    color: var(--hayashi-landing-red);
    font-size: 0.86rem;
    font-weight: 700;
}

.hayashi-landing-featured-grid span {
    color: #6F6256;
    font-size: 0.82rem;
}

.hayashi-landing-empty {
    margin: 0 0 16px;
    color: #6F6256;
}

.hayashi-landing-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hayashi-landing-schedule,
.hayashi-landing-article-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hayashi-landing-schedule li,
.hayashi-landing-article-list li {
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #D8CCBA;
}

.hayashi-landing-schedule time,
.hayashi-landing-article-list time {
    color: var(--hayashi-landing-red);
    font-size: 0.86rem;
    font-weight: 700;
}

.hayashi-landing-schedule a,
.hayashi-landing-article-list a {
    color: var(--hayashi-landing-red-dark);
    font-weight: 700;
    text-decoration: none;
}

.hayashi-landing-schedule span {
    color: #6F6256;
    font-size: 0.88rem;
}

.hayashi-landing-map {
    background:
        linear-gradient(rgba(255, 253, 247, 0.82), rgba(255, 253, 247, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(184, 137, 53, 0.2), transparent 36%),
        #FFFDF7 !important;
}

.hayashi-landing-map p {
    margin: 0 0 20px;
    line-height: 1.8;
}

.hayashi-landing-area-links {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.hayashi-landing-area-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #fff;
    color: var(--hayashi-landing-ink);
    text-decoration: none;
}

.hayashi-landing-area-links a:hover {
    background: #F5EFE4;
}

.hayashi-landing-area-links strong {
    color: var(--hayashi-landing-red-dark);
}

.hayashi-landing-area-links span {
    color: #6F6256;
    font-size: 0.86rem;
    white-space: nowrap;
}

.hayashi-landing-more {
    margin: 16px 0 0;
}

.hayashi-landing-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: var(--hayashi-landing-red) !important;
    font-weight: 700;
    text-decoration: none;
}

.hayashi-landing-more a:hover {
    background: #fff;
    color: var(--hayashi-landing-red-dark) !important;
}

.hayashi-landing-map a,
.hayashi-landing-featured > p a {
    color: var(--hayashi-landing-red);
    font-weight: 700;
}

@media (max-width: 980px) {
    .hayashi-landing-count-grid {
        grid-template-columns: 1fr;
    }

    .hayashi-landing-search,
    .hayashi-landing-search form {
        grid-template-columns: 1fr;
    }

    .hayashi-landing-count {
        border-right: 0;
        border-bottom: 1px solid #D8CCBA;
    }

    .hayashi-landing-count {
        grid-template-columns: 1fr auto auto;
    }
}

@media (max-width: 640px) {
    #top .entry-content-wrapper > .hayashi-landing:first-child,
    #top .template-page .entry-content-wrapper > .hayashi-landing:first-child {
        margin-top: -28px;
    }

    .hayashi-landing-hero {
        min-height: 390px;
    }

    .hayashi-landing-actions,
    .hayashi-landing-button {
        width: 100%;
    }

    .hayashi-landing-news li,
    .hayashi-landing-featured-grid,
    .hayashi-landing-media-grid {
        grid-template-columns: 1fr;
    }
}

/* Cross database search results */
.hayashi-search-results-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px auto;
    gap: 12px;
    align-items: end;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #D8CCBA;
    border-left: 5px solid #7A0F0F;
    border-radius: 5px;
    background: #FFFDF7;
    min-width: 0;
}

.hayashi-search-results-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.hayashi-search-results-form label span {
    color: #5A0A0A;
    font-weight: 700;
}

.hayashi-search-results-form input,
.hayashi-search-results-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #fff;
    color: #3F3A34;
}

.hayashi-search-results-form button {
    min-height: 44px;
}

.hayashi-search-section {
    margin: 26px 0;
    padding: 20px;
    border: 1px solid #D8CCBA;
    border-top: 4px solid #7A0F0F;
    border-radius: 5px;
    background: #FFFDF7;
}

.hayashi-search-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.hayashi-search-section-heading h2 {
    margin: 0;
    color: #5A0A0A !important;
    font-family: "Noto Serif JP", serif;
    font-size: 1.28rem;
    letter-spacing: 0;
}

.hayashi-search-section-heading p {
    margin: 0;
    color: #6F6256;
}

.hayashi-search-section-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hayashi-search-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.hayashi-search-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #fff;
    min-width: 0;
}

.hayashi-search-card-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #F5EFE4;
}

.hayashi-search-type {
    display: inline-flex;
    margin-bottom: 4px;
    padding: 2px 7px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #7A0F0F;
    font-size: 0.78rem;
    font-weight: 700;
}

.hayashi-search-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.5;
}

.hayashi-search-card h3 a {
    color: #5A0A0A;
    text-decoration: none;
}

.hayashi-search-card p {
    margin: 0;
    color: #5E554B;
    font-size: 0.9rem;
    line-height: 1.65;
}

.hayashi-search-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.hayashi-search-term-box {
    padding: 14px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #fff;
}

.hayashi-search-term-box h3 {
    margin: 0 0 10px;
    color: #5A0A0A;
    font-size: 1rem;
}

.hayashi-search-term-links {
    display: grid;
    gap: 7px;
}

.hayashi-search-term-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #D8CCBA;
    border-radius: 4px;
    background: #F5EFE4;
    color: #3F3A34;
    text-decoration: none;
}

.hayashi-search-term-links em {
    color: #7A0F0F;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.hayashi-search-empty {
    padding: 18px;
    border: 1px solid #D8CCBA;
    border-radius: 5px;
    background: #FFFDF7;
    color: #5E554B;
}

@media (max-width: 760px) {
    .hayashi-db-wrap.hayashi-search-results,
    .template-hayashi-search .hayashi-db-wrap {
        width: min(100%, calc(100vw - 24px));
        margin-left: auto;
        margin-right: auto;
    }

    .hayashi-search-results-form,
    .hayashi-search-section-heading,
    .hayashi-search-card {
        grid-template-columns: 1fr;
    }

    .hayashi-search-results-form {
        padding: 14px;
        gap: 10px;
    }

    .hayashi-search-results-form input,
    .hayashi-search-results-form select,
    .hayashi-search-results-form button {
        width: 100%;
        min-width: 0;
    }

    .hayashi-search-section {
        margin: 18px 0;
        padding: 14px;
    }

    .hayashi-search-section-heading {
        display: grid;
        gap: 8px;
        align-items: start;
    }

    .hayashi-search-section-heading a {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hayashi-search-card {
        gap: 10px;
    }

    .hayashi-search-card-thumb img {
        aspect-ratio: 16 / 9;
    }

    .hayashi-search-term-links a {
        align-items: center;
    }
}

@media (max-width: 520px) {
    .hayashi-landing {
        overflow-x: hidden;
    }

    .hayashi-landing-search {
        width: min(100%, calc(100vw - 24px));
        margin-top: 18px;
        padding: 14px;
        border-left-width: 4px;
    }

    .hayashi-landing-search form {
        gap: 9px;
    }

    .hayashi-landing-search input,
    .hayashi-landing-search select,
    .hayashi-landing-search button,
    .hayashi-landing-search a {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .hayashi-search-term-grid,
    .hayashi-search-card-grid {
        grid-template-columns: 1fr;
    }

    .hayashi-search-term-links a {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .hayashi-search-card h3 {
        overflow-wrap: anywhere;
    }
}

#top .hayashi-source-panel .hayashi-source-card,
body .hayashi-source-panel .hayashi-source-card {
    border-top: 4px solid #041E42 !important;
    background: #FFFDF7;
}

#top .hayashi-source-panel .hayashi-source-card h3 a,
body .hayashi-source-panel .hayashi-source-card h3 a {
    color: #5A0F12;
}

#top.single-hayashi_source .post-meta-infos,
body.single-hayashi_source .post-meta-infos,
#top.single-hayashi_source .blog-meta,
body.single-hayashi_source .blog-meta,
#top.single-hayashi_source .entry-footer,
body.single-hayashi_source .entry-footer {
    display: none !important;
}

/* Targeted polish: map colors, event cards, and archive cards. */
#top .template-hayashi-map .hayashi-map-hero h1,
body .template-hayashi-map .hayashi-map-hero h1,
#top .template-hayashi-map .hayashi-map-card h2,
body .template-hayashi-map .hayashi-map-card h2 {
    color: #5A0F12 !important;
}

#top .template-hayashi-map .hayashi-map-hero p,
body .template-hayashi-map .hayashi-map-hero p,
#top .template-hayashi-map .hayashi-map-card p,
body .template-hayashi-map .hayashi-map-card p,
#top .template-hayashi-map .hayashi-map-card small,
body .template-hayashi-map .hayashi-map-card small {
    color: #3F3A34 !important;
}

#top .template-hayashi-map .hayashi-button,
body .template-hayashi-map .hayashi-button {
    color: #FFFFFF !important;
}

#top .template-hayashi-map .hayashi-button-secondary,
body .template-hayashi-map .hayashi-button-secondary {
    background: #F5EFE4 !important;
    color: #7A0F0F !important;
    border-color: #D8CCBA !important;
}

#top .template-hayashi-event-archive .hayashi-event-card,
body .template-hayashi-event-archive .hayashi-event-card {
    border-left: 1px solid #D8CCBA !important;
    border-top: 4px solid #7A0F0F !important;
}

#top .template-hayashi-event-archive .hayashi-event-archive-header::before,
body .template-hayashi-event-archive .hayashi-event-archive-header::before {
    display: none !important;
}

#top .template-hayashi-event-archive .hayashi-event-archive-header,
body .template-hayashi-event-archive .hayashi-event-archive-header {
    border-left: 1px solid #D8CCBA !important;
}

#top .template-hayashi-event-archive .hayashi-event-card,
body .template-hayashi-event-archive .hayashi-event-card {
    border-left-width: 1px !important;
}

#top .hayashi-source-archive-card,
body .hayashi-source-archive-card {
    gap: 6px !important;
    padding: 14px !important;
}

#top .hayashi-source-archive-card h2,
body .hayashi-source-archive-card h2 {
    font-size: 17px !important;
    line-height: 1.32 !important;
}

#top .hayashi-source-archive-card p,
body .hayashi-source-archive-card p,
#top .hayashi-source-archive-card .hayashi-source-subtitle,
body .hayashi-source-archive-card .hayashi-source-subtitle,
#top .hayashi-source-archive-card .hayashi-source-meta,
body .hayashi-source-archive-card .hayashi-source-meta,
#top .hayashi-source-archive-card .hayashi-source-id,
body .hayashi-source-archive-card .hayashi-source-id {
    margin: 0 !important;
    line-height: 1.45 !important;
}

#top .hayashi-source-archive-card .hayashi-source-summary,
body .hayashi-source-archive-card .hayashi-source-summary {
    margin-top: 4px !important;
    padding-top: 7px !important;
    line-height: 1.55 !important;
}

#top .hayashi-source-video-grid,
body .hayashi-source-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#top .hayashi-source-video-card,
body .hayashi-source-video-card {
    border-top: 0 !important;
}

#top .hayashi-source-video-card .hayashi-video-card-body h3,
body .hayashi-source-video-card .hayashi-video-card-body h3 {
    font-size: 15px;
    line-height: 1.38;
}

@media (max-width: 900px) {
    #top .hayashi-source-video-grid,
    body .hayashi-source-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    #top .hayashi-source-video-grid,
    body .hayashi-source-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Enfold footer polish for Hayashi database pages: keep theme background, adjust text only. */
body.post-type-archive-hayashi_group #footer,
body.post-type-archive-hayashi #footer,
body.single-hayashi_group #footer,
body.tax-hayashi_area #footer,
body.tax-hayashi_style #footer,
body.tax-hayashi_festival #footer,
body.tax-hayashi_shrine #footer,
body.tax-hayashi_status #footer,
body.post-type-archive-hayashi_event #footer,
body.single-hayashi_event #footer,
body.post-type-archive-hayashi_occurrence #footer,
body.single-hayashi_occurrence #footer,
body.post-type-archive-hayashi_source #footer,
body.single-hayashi_source #footer,
body.post-type-archive-hayashi_video #footer,
body.single-hayashi_video #footer,
body.post-type-archive-hayashi_person #footer,
body.single-hayashi_person #footer,
body.post-type-archive-hayashi_artisan #footer,
body.single-hayashi_artisan #footer {
    color: #F7F3EA !important;
}

body.post-type-archive-hayashi_group #socket,
body.post-type-archive-hayashi #socket,
body.single-hayashi_group #socket,
body.tax-hayashi_area #socket,
body.tax-hayashi_style #socket,
body.tax-hayashi_festival #socket,
body.tax-hayashi_shrine #socket,
body.tax-hayashi_status #socket,
body.post-type-archive-hayashi_event #socket,
body.single-hayashi_event #socket,
body.post-type-archive-hayashi_occurrence #socket,
body.single-hayashi_occurrence #socket,
body.post-type-archive-hayashi_source #socket,
body.single-hayashi_source #socket,
body.post-type-archive-hayashi_video #socket,
body.single-hayashi_video #socket,
body.post-type-archive-hayashi_person #socket,
body.single-hayashi_person #socket,
body.post-type-archive-hayashi_artisan #socket,
body.single-hayashi_artisan #socket {
    color: #F7F3EA !important;
}

body.post-type-archive-hayashi_group #footer a,
body.post-type-archive-hayashi_group #socket a,
body.post-type-archive-hayashi #footer a,
body.post-type-archive-hayashi #socket a,
body.single-hayashi_group #footer a,
body.single-hayashi_group #socket a,
body.tax-hayashi_area #footer a,
body.tax-hayashi_area #socket a,
body.tax-hayashi_style #footer a,
body.tax-hayashi_style #socket a,
body.tax-hayashi_festival #footer a,
body.tax-hayashi_festival #socket a,
body.tax-hayashi_shrine #footer a,
body.tax-hayashi_shrine #socket a,
body.tax-hayashi_status #footer a,
body.tax-hayashi_status #socket a,
body.post-type-archive-hayashi_event #footer a,
body.post-type-archive-hayashi_event #socket a,
body.single-hayashi_event #footer a,
body.single-hayashi_event #socket a,
body.post-type-archive-hayashi_occurrence #footer a,
body.post-type-archive-hayashi_occurrence #socket a,
body.single-hayashi_occurrence #footer a,
body.single-hayashi_occurrence #socket a,
body.post-type-archive-hayashi_source #footer a,
body.post-type-archive-hayashi_source #socket a,
body.single-hayashi_source #footer a,
body.single-hayashi_source #socket a,
body.post-type-archive-hayashi_video #footer a,
body.post-type-archive-hayashi_video #socket a,
body.single-hayashi_video #footer a,
body.single-hayashi_video #socket a,
body.post-type-archive-hayashi_person #footer a,
body.post-type-archive-hayashi_person #socket a,
body.single-hayashi_person #footer a,
body.single-hayashi_person #socket a,
body.post-type-archive-hayashi_artisan #footer a,
body.post-type-archive-hayashi_artisan #socket a,
body.single-hayashi_artisan #footer a,
body.single-hayashi_artisan #socket a {
    color: #F5EFE4 !important;
}

body.post-type-archive-hayashi_group #footer p,
body.post-type-archive-hayashi_group #footer li,
body.post-type-archive-hayashi_group #footer h3,
body.post-type-archive-hayashi #footer p,
body.post-type-archive-hayashi #footer li,
body.post-type-archive-hayashi #footer h3,
body.single-hayashi_group #footer p,
body.single-hayashi_group #footer li,
body.single-hayashi_group #footer h3,
body.tax-hayashi_area #footer p,
body.tax-hayashi_area #footer li,
body.tax-hayashi_area #footer h3,
body.tax-hayashi_style #footer p,
body.tax-hayashi_style #footer li,
body.tax-hayashi_style #footer h3,
body.tax-hayashi_festival #footer p,
body.tax-hayashi_festival #footer li,
body.tax-hayashi_festival #footer h3,
body.tax-hayashi_shrine #footer p,
body.tax-hayashi_shrine #footer li,
body.tax-hayashi_shrine #footer h3,
body.tax-hayashi_status #footer p,
body.tax-hayashi_status #footer li,
body.tax-hayashi_status #footer h3 {
    color: #F7F3EA !important;
}

body.post-type-archive-hayashi_group #footer a:hover,
body.post-type-archive-hayashi_group #socket a:hover,
body.post-type-archive-hayashi #footer a:hover,
body.post-type-archive-hayashi #socket a:hover,
body.single-hayashi_group #footer a:hover,
body.single-hayashi_group #socket a:hover,
body.tax-hayashi_area #footer a:hover,
body.tax-hayashi_area #socket a:hover,
body.tax-hayashi_style #footer a:hover,
body.tax-hayashi_style #socket a:hover,
body.tax-hayashi_festival #footer a:hover,
body.tax-hayashi_festival #socket a:hover,
body.tax-hayashi_shrine #footer a:hover,
body.tax-hayashi_shrine #socket a:hover,
body.tax-hayashi_status #footer a:hover,
body.tax-hayashi_status #socket a:hover {
    color: #FFFDF7 !important;
}

body.post-type-archive-hayashi_group #socket .copyright,
body.post-type-archive-hayashi #socket .copyright,
body.single-hayashi_group #socket .copyright,
body.tax-hayashi_area #socket .copyright,
body.tax-hayashi_style #socket .copyright,
body.tax-hayashi_festival #socket .copyright,
body.tax-hayashi_shrine #socket .copyright,
body.tax-hayashi_status #socket .copyright,
body.post-type-archive-hayashi_event #socket .copyright,
body.single-hayashi_event #socket .copyright,
body.post-type-archive-hayashi_occurrence #socket .copyright,
body.single-hayashi_occurrence #socket .copyright,
body.post-type-archive-hayashi_source #socket .copyright,
body.single-hayashi_source #socket .copyright,
body.post-type-archive-hayashi_video #socket .copyright,
body.single-hayashi_video #socket .copyright,
body.post-type-archive-hayashi_person #socket .copyright,
body.single-hayashi_person #socket .copyright,
body.post-type-archive-hayashi_artisan #socket .copyright,
body.single-hayashi_artisan #socket .copyright {
    color: #F7F3EA !important;
}

/* Refined festival/event landing hero with a registered background image. */
#top .template-hayashi-event-single .hayashi-event-profile-has-hero,
body .template-hayashi-event-single .hayashi-event-profile-has-hero {
    width: 100vw !important;
    max-width: none !important;
    min-height: clamp(480px, 58vw, 720px);
    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 38px !important;
    margin-left: calc(50% - 50vw) !important;
    padding: clamp(86px, 10vw, 148px) max(22px, calc((100vw - 1180px) / 2 + 22px)) clamp(72px, 8vw, 110px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 760px) minmax(280px, 380px);
    grid-template-areas:
        "kicker stats"
        "title stats"
        "summary stats"
        "actions facts";
    column-gap: clamp(28px, 5vw, 76px);
    row-gap: 18px;
    align-content: end;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    isolation: isolate;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero::before,
body .template-hayashi-event-single .hayashi-event-profile-has-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(193, 18, 31, 0.28), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(40, 8, 8, 0.58) 48%, rgba(4, 30, 66, 0.34));
    pointer-events: none;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero::after,
body .template-hayashi-event-single .hayashi-event-profile-has-hero::after {
    grid-area: summary;
    width: min(520px, 100%);
    margin: 6px 0 0 !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero > *,
body .template-hayashi-event-single .hayashi-event-profile-has-hero > * {
    max-width: none;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero > p:first-child,
body .template-hayashi-event-single .hayashi-event-profile-has-hero > p:first-child {
    grid-area: kicker;
    align-self: end;
    width: max-content;
    padding: 5px 10px;
    border: 1px solid rgba(245, 239, 228, 0.38);
    background: rgba(122, 15, 15, 0.48);
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero h1,
body .template-hayashi-event-single .hayashi-event-profile-has-hero h1 {
    grid-area: title;
    max-width: 760px !important;
    font-size: clamp(38px, 5.4vw, 72px) !important;
    font-weight: 700 !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary {
    grid-area: stats;
    align-self: end;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-width: none !important;
    margin: 0 !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary div,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary div {
    min-height: 88px;
    align-content: center;
    padding: 18px 20px !important;
    border-radius: 6px !important;
    background: rgba(255, 253, 247, 0.16) !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary strong,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary strong {
    font-size: 34px !important;
    font-family: Georgia, serif;
    line-height: 1;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-link-list,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-link-list {
    grid-area: actions;
    align-self: start;
    max-width: 760px;
    gap: 10px !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-description,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-description {
    grid-area: summary;
    max-width: 720px !important;
    margin: 0 !important;
    font-size: 1.04rem;
    line-height: 1.9;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-event-profile-facts,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-event-profile-facts {
    grid-area: facts;
    align-self: start;
    grid-template-columns: 1fr !important;
    gap: 10px;
    max-width: none;
    margin: 0 !important;
}

#top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-event-profile-facts div,
body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-event-profile-facts div {
    padding: 14px 16px !important;
    border-radius: 6px !important;
}

@media (max-width: 900px) {
    #top .template-hayashi-event-single .hayashi-event-profile-has-hero,
    body .template-hayashi-event-single .hayashi-event-profile-has-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "kicker"
            "title"
            "summary"
            "stats"
            "facts"
            "actions";
        padding: 64px 20px 58px !important;
    }

    #top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary,
    body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    #top .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary,
    body .template-hayashi-event-single .hayashi-event-profile-has-hero .hayashi-term-summary {
        grid-template-columns: 1fr !important;
    }
}

/* Event single hero: used only when a per-event background image URL is registered. */
#top .hayashi-event-profile-has-hero,
body .hayashi-event-profile-has-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    margin: 0 calc(50% - 50vw) 28px !important;
    padding: clamp(72px, 9vw, 132px) max(22px, calc((100vw - 1180px) / 2 + 22px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(11, 6, 6, 0.78), rgba(75, 9, 9, 0.58), rgba(4, 30, 66, 0.22)),
        var(--hayashi-event-hero-image) !important;
    background-position: center center !important;
    background-size: cover !important;
    box-shadow: none !important;
    color: #FFFDF7 !important;
}

#top .hayashi-event-profile-has-hero::after,
body .hayashi-event-profile-has-hero::after {
    content: "";
    display: block;
    width: min(460px, 62%);
    height: 3px;
    margin-top: 8px;
    border-top: 1px solid rgba(245, 239, 228, 0.72);
    border-bottom: 1px solid rgba(245, 239, 228, 0.36);
}

#top .hayashi-event-profile-has-hero > *,
body .hayashi-event-profile-has-hero > * {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

#top .hayashi-event-profile-has-hero p:first-child,
body .hayashi-event-profile-has-hero p:first-child {
    margin: 0 !important;
    color: #F5EFE4 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.46);
}

#top .hayashi-event-profile-has-hero h1,
body .hayashi-event-profile-has-hero h1 {
    max-width: 860px;
    margin: 0 !important;
    color: #FFFFFF !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(34px, 4.5vw, 58px) !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

#top .hayashi-event-profile-has-hero .hayashi-term-summary,
body .hayashi-event-profile-has-hero .hayashi-term-summary {
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 0 !important;
}

#top .hayashi-event-profile-has-hero .hayashi-term-summary div,
body .hayashi-event-profile-has-hero .hayashi-term-summary div,
#top .hayashi-event-profile-has-hero .hayashi-term-facts div,
body .hayashi-event-profile-has-hero .hayashi-term-facts div {
    border-color: rgba(245, 239, 228, 0.28) !important;
    background: rgba(255, 253, 247, 0.12) !important;
    backdrop-filter: blur(3px);
}

#top .hayashi-event-profile-has-hero .hayashi-term-summary strong,
#top .hayashi-event-profile-has-hero .hayashi-term-summary span,
#top .hayashi-event-profile-has-hero .hayashi-term-facts dt,
#top .hayashi-event-profile-has-hero .hayashi-term-facts dd,
body .hayashi-event-profile-has-hero .hayashi-term-summary strong,
body .hayashi-event-profile-has-hero .hayashi-term-summary span,
body .hayashi-event-profile-has-hero .hayashi-term-facts dt,
body .hayashi-event-profile-has-hero .hayashi-term-facts dd {
    color: #FFFDF7 !important;
}

#top .hayashi-event-profile-has-hero .hayashi-link-list,
body .hayashi-event-profile-has-hero .hayashi-link-list {
    justify-content: flex-start !important;
    margin-top: 0 !important;
}

#top .hayashi-event-profile-has-hero .hayashi-button-secondary,
body .hayashi-event-profile-has-hero .hayashi-button-secondary {
    border-color: rgba(245, 239, 228, 0.72) !important;
    background: rgba(255, 253, 247, 0.92) !important;
    color: #7A0F0F !important;
}

#top .hayashi-event-profile-has-hero .hayashi-term-description,
body .hayashi-event-profile-has-hero .hayashi-term-description {
    max-width: 760px;
    color: #FFFDF7 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
}

#top .hayashi-event-profile-has-hero .hayashi-event-profile-image,
body .hayashi-event-profile-has-hero .hayashi-event-profile-image {
    display: none;
}

/* Enfold-like archive heading: make the database header visibly match the theme page heading. */
#top .container_wrap.av-hayashi-no-sidebar,
body .container_wrap.av-hayashi-no-sidebar {
    border-top: 0 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-map-page .hayashi-db-wrap > header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-map-page .hayashi-db-wrap > header {
    position: relative;
    overflow: hidden;
    margin: 0 calc(50% - 50vw) 28px !important;
    padding: clamp(72px, 8vw, 118px) max(22px, calc((100vw - 1180px) / 2 + 22px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(15, 5, 5, 0.78), rgba(47, 8, 8, 0.56), rgba(4, 30, 66, 0.26)),
        var(--hayashi-archive-hero-image, linear-gradient(135deg, #180606, #7A0F0F 56%, #041E42)) !important;
    background-position: var(--hayashi-archive-hero-position, center center) !important;
    background-size: cover !important;
    box-shadow: none !important;
    text-align: left !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header::before,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header::before,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header::before,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header::before,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before {
    display: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header::after,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header::after,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header::after,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header::after,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after {
    content: "";
    display: block;
    width: min(420px, 60%);
    height: 3px;
    margin: 22px 0 0;
    border-top: 1px solid rgba(245, 239, 228, 0.72);
    border-bottom: 1px solid rgba(245, 239, 228, 0.36);
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header h1,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header h1,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header h1,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header h1,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1 {
    max-width: 820px;
    margin: 0 0 12px !important;
    color: #FFFFFF !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: clamp(32px, 4vw, 52px) !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.46) !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header p,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header p,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header p,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header p,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p {
    max-width: 820px;
    margin: 0 0 10px !important;
    color: #FFFDF7 !important;
    line-height: 1.9 !important;
    text-align: left !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42) !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header p:first-child,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header p:first-child,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header p:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header p:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child {
    margin-bottom: 12px !important;
    color: #F5EFE4 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header .hayashi-link-list,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header .hayashi-link-list,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header .hayashi-link-list,
body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header .hayashi-link-list {
    justify-content: flex-start !important;
    margin-top: 16px !important;
}

@media (max-width: 640px) {
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header,
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header,
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header {
        margin-right: calc(50% - 50vw) !important;
        margin-left: calc(50% - 50vw) !important;
        padding: 54px 20px 62px !important;
    }

    #top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header h1,
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header h1,
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap > header h1,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-archive-header h1,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1 {
        font-size: 30px !important;
    }
}

/* Final override: video detail pages are watch pages, while archives keep the photo hero. */
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header {
    max-width: 1120px !important;
    margin: 0 auto 16px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3F3A34 !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::before,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header::after {
    display: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header h1 {
    max-width: 980px !important;
    margin: 0 0 8px !important;
    color: #3F3A34 !important;
    font-size: clamp(22px, 2.4vw, 34px) !important;
    line-height: 1.38 !important;
    text-shadow: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p,
#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header p:first-child {
    max-width: 980px !important;
    margin: 0 0 6px !important;
    color: #8A8175 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

#top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single .hayashi-video-watch-panel,
body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single .hayashi-video-watch-panel {
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-video-single-header {
        margin: 0 auto 12px !important;
        padding: 8px 0 0 !important;
    }
}

/* Final override: map page controls must stay readable over Enfold link colors. */
#top .template-hayashi-map .hayashi-map-type-switch,
body .template-hayashi-map .hayashi-map-type-switch {
    background: #fffdf7 !important;
    color: #3f3a34 !important;
    border: 1px solid #d8ccba !important;
    border-top: 4px solid #7a0f0f !important;
}

#top .template-hayashi-map .hayashi-map-type-switch strong,
body .template-hayashi-map .hayashi-map-type-switch strong {
    color: #5a0a0a !important;
}

#top .template-hayashi-map .hayashi-map-type-switch a,
body .template-hayashi-map .hayashi-map-type-switch a,
#top .template-hayashi-map .hayashi-area-prefecture-picker a,
body .template-hayashi-map .hayashi-area-prefecture-picker a {
    background: #f5efe4 !important;
    color: #7a0f0f !important;
    border: 1px solid #d8ccba !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

#top .template-hayashi-map .hayashi-map-type-switch a:hover,
#top .template-hayashi-map .hayashi-map-type-switch a:focus,
body .template-hayashi-map .hayashi-map-type-switch a:hover,
body .template-hayashi-map .hayashi-map-type-switch a:focus,
#top .template-hayashi-map .hayashi-area-prefecture-picker a:hover,
#top .template-hayashi-map .hayashi-area-prefecture-picker a:focus,
body .template-hayashi-map .hayashi-area-prefecture-picker a:hover,
body .template-hayashi-map .hayashi-area-prefecture-picker a:focus {
    background: #fffdf7 !important;
    color: #5a0a0a !important;
    border-color: #7a0f0f !important;
}

#top .template-hayashi-map .hayashi-map-type-switch a.is-active,
body .template-hayashi-map .hayashi-map-type-switch a.is-active,
#top .template-hayashi-map .hayashi-area-prefecture-picker a.is-active,
body .template-hayashi-map .hayashi-area-prefecture-picker a.is-active {
    background: #7a0f0f !important;
    color: #ffffff !important;
    border-color: #7a0f0f !important;
}

#top .template-hayashi-map .hayashi-map-type-switch a.is-active:hover,
#top .template-hayashi-map .hayashi-map-type-switch a.is-active:focus,
body .template-hayashi-map .hayashi-map-type-switch a.is-active:hover,
body .template-hayashi-map .hayashi-map-type-switch a.is-active:focus,
#top .template-hayashi-map .hayashi-area-prefecture-picker a.is-active:hover,
#top .template-hayashi-map .hayashi-area-prefecture-picker a.is-active:focus,
body .template-hayashi-map .hayashi-area-prefecture-picker a.is-active:hover,
body .template-hayashi-map .hayashi-area-prefecture-picker a.is-active:focus {
    background: #5a0a0a !important;
    color: #ffffff !important;
    border-color: #5a0a0a !important;
}

#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button {
    background: #7a0f0f !important;
    color: #ffffff !important;
    border-color: #7a0f0f !important;
}

#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button:hover,
#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button:focus,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button:hover,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button:focus {
    background: #5a0a0a !important;
    color: #ffffff !important;
    border-color: #5a0a0a !important;
}

#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary {
    background: #fffdf7 !important;
    color: #7a0f0f !important;
    border-color: #d8ccba !important;
}

#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary:hover,
#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary:focus,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary:hover,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary:focus {
    background: #f5efe4 !important;
    color: #5a0a0a !important;
    border-color: #7a0f0f !important;
}

#top .template-hayashi-map .hayashi-map-popup a,
body .template-hayashi-map .hayashi-map-popup a {
    color: #ffffff !important;
}


/* v1.5.191 — reusable [hayashi_footer] */
.hayashi-site-footer{margin-top:48px;background:var(--hayashi-footer-bg,#5a0a0a);color:#fffdf7;border-top:1px solid rgba(213,177,122,.55)}
.hayashi-site-footer__inner{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:46px 0 38px;display:grid;grid-template-columns:minmax(240px,1.15fr) minmax(0,2fr);gap:56px}
.hayashi-site-footer__brand{display:flex;gap:18px;align-items:flex-start}
.hayashi-site-footer__mark{flex:0 0 58px;width:58px;height:58px;border:1px solid rgba(213,177,122,.75);display:grid;place-items:center;font-family:serif;font-size:31px;line-height:1}
.hayashi-site-footer__name{font-family:serif;font-size:25px;font-weight:700;letter-spacing:.12em;margin:2px 0 8px}
.hayashi-site-footer__brand p{margin:0;max-width:340px;line-height:1.85;color:rgba(255,253,247,.78)}
.hayashi-site-footer__nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.hayashi-site-footer__group h2{margin:0 0 14px;padding:0 0 9px;border-bottom:1px solid rgba(213,177,122,.4);color:#d5b17a;font-size:14px;letter-spacing:.1em}
.hayashi-site-footer__group ul{list-style:none;margin:0;padding:0}
.hayashi-site-footer__group li{margin:8px 0}
.hayashi-site-footer__group a{color:#fffdf7;text-decoration:none}
.hayashi-site-footer__group a:hover{text-decoration:underline;text-underline-offset:4px}
.hayashi-site-footer__bottom{padding:15px 20px;text-align:center;background:rgba(18,9,9,.55);color:rgba(255,253,247,.68);font-size:12px;letter-spacing:.03em}
@media (max-width:767px){.hayashi-site-footer__inner{width:min(100% - 28px,1180px);grid-template-columns:1fr;gap:32px;padding:36px 0 30px}.hayashi-site-footer__nav{grid-template-columns:1fr 1fr;gap:26px 20px}}
@media (max-width:480px){.hayashi-site-footer__nav{grid-template-columns:1fr}}


/* v1.5.192 — footer refinement */
.hayashi-site-footer{
    margin-top:42px;
}
.hayashi-site-footer__inner{
    padding:34px 0 28px;
    gap:46px;
    align-items:start;
}
.hayashi-site-footer__brand{
    gap:14px;
}
.hayashi-site-footer__mark{
    flex-basis:48px;
    width:48px;
    height:48px;
    font-size:26px;
    border-color:rgba(213,177,122,.58);
}
.hayashi-site-footer__name{
    font-size:27px;
    margin:0 0 6px;
    letter-spacing:.1em;
}
.hayashi-site-footer__brand p{
    line-height:1.7;
    font-size:13px;
    max-width:320px;
}
.hayashi-site-footer__nav{
    gap:28px;
}
.hayashi-site-footer__group h2{
    margin-bottom:11px;
    padding-bottom:7px;
    border-bottom-color:rgba(213,177,122,.28);
    color:rgba(213,177,122,.92);
    font-size:13px;
    letter-spacing:.09em;
}
.hayashi-site-footer__group li{
    margin:7px 0;
    line-height:1.55;
}
.hayashi-site-footer__group a{
    font-size:13px;
    opacity:.92;
}
.hayashi-site-footer__group a:hover{
    opacity:1;
}
.hayashi-site-footer__bottom{
    padding:12px 20px;
    font-size:11px;
}
@media (max-width:767px){
    .hayashi-site-footer__inner{
        padding:30px 0 24px;
        gap:28px;
    }
    .hayashi-site-footer__brand{
        align-items:center;
    }
}


/* v1.5.193 — full-width shortcode footer inside Enfold av-section-cont-open */
.av-section-cont-open:has(.hayashi-site-footer){
    max-width:none !important;
    width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
}
.av-section-cont-open:has(.hayashi-site-footer) > .container,
.av-section-cont-open:has(.hayashi-site-footer) .container{
    max-width:none !important;
    width:100% !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
.av-section-cont-open:has(.hayashi-site-footer),
.av-section-cont-open:has(.hayashi-site-footer) .content,
.av-section-cont-open:has(.hayashi-site-footer) .entry-content-wrapper,
.av-section-cont-open:has(.hayashi-site-footer) .avia_textblock{
    padding-bottom:0 !important;
    margin-bottom:0 !important;
}
.av-section-cont-open:has(.hayashi-site-footer) .hayashi-site-footer{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
}
.av-section-cont-open:has(.hayashi-site-footer) + .avia-section{
    margin-top:0 !important;
}


/* v1.5.194 — footer palette aligned with Hayashi Enfold theme */
.hayashi-site-footer{
    background:#5a0a0a;
    color:#f7f3ea;
    border-top:3px solid #d5b17a;
}
.hayashi-site-footer__mark{
    color:#f7f3ea;
    background:#7a0f0f;
    border-color:#d5b17a;
}
.hayashi-site-footer__name{
    color:#fffdf7;
}
.hayashi-site-footer__brand p{
    color:rgba(247,243,234,.78);
}
.hayashi-site-footer__group h2{
    color:#d5b17a;
    border-bottom-color:rgba(213,177,122,.34);
}
.hayashi-site-footer__group a{
    color:#f7f3ea;
}
.hayashi-site-footer__group a:hover,
.hayashi-site-footer__group a:focus{
    color:#d5b17a;
}
.hayashi-site-footer__bottom{
    background:#120909;
    color:rgba(247,243,234,.68);
    border-top:1px solid rgba(213,177,122,.18);
}


/* v1.5.195 — remove the obsolete footer element above [hayashi_footer].
   The shortcode footer is now the single footer presentation. */
.av-section-cont-open:has(.hayashi-site-footer) > .container > .content > .post-entry > .entry-content-wrapper > *:not(.avia_textblock:has(.hayashi-site-footer)),
.av-section-cont-open:has(.hayashi-site-footer) .entry-content-wrapper > .flex_column:not(:has(.hayashi-site-footer)) {
    display:none !important;
}
.av-section-cont-open:has(.hayashi-site-footer) .entry-content-wrapper,
.av-section-cont-open:has(.hayashi-site-footer) .avia_textblock:has(.hayashi-site-footer) {
    margin:0 !important;
    padding:0 !important;
}


/* v1.5.196 — when [hayashi_footer] exists, hide Enfold's native footer/socket.
   This does not rely on a body class; it detects the custom footer itself. */
body:has(.hayashi-site-footer) #footer,
body:has(.hayashi-site-footer) #socket,
body:has(.hayashi-site-footer) footer#footer,
body:has(.hayashi-site-footer) .footer_color#footer,
body:has(.hayashi-site-footer) .socket_color#socket {
    display:none !important;
}

/* Remove any spacing Enfold leaves around the hidden native footer. */
body:has(.hayashi-site-footer) #main,
body:has(.hayashi-site-footer) .container_wrap:last-of-type {
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}


/* Remove an empty Avia wrapper left behind by the legacy footer block. */
body:has(.hayashi-site-footer) .avia_textblock:has(.hayashi-landing-footer),
body:has(.hayashi-site-footer) .flex_column:has(.hayashi-landing-footer) {
    display:none !important;
    margin:0 !important;
    padding:0 !important;
}


/* v1.5.200 — footer contrast and Hayashi palette cleanup */
.hayashi-site-footer{
    background:#5a0a0a !important;
    color:#f7f3ea !important;
    border-top:3px solid #d5b17a !important;
}
.hayashi-site-footer,
.hayashi-site-footer p,
.hayashi-site-footer li,
.hayashi-site-footer span{
    color:#f7f3ea !important;
}
.hayashi-site-footer__mark{
    background:#f7f3ea !important;
    color:#7a0f0f !important;
    border-color:#d5b17a !important;
}
.hayashi-site-footer__name{
    color:#fffdf7 !important;
}
.hayashi-site-footer__brand p{
    color:#efe5d7 !important;
}
.hayashi-site-footer__group h2{
    color:#f0c98d !important;
    border-bottom-color:rgba(240,201,141,.42) !important;
}
.hayashi-site-footer__group a,
#top .hayashi-site-footer__group a,
.hayashi-site-footer a{
    color:#fffdf7 !important;
    opacity:1 !important;
    text-decoration:none !important;
}
.hayashi-site-footer__group a:hover,
.hayashi-site-footer__group a:focus,
#top .hayashi-site-footer__group a:hover,
#top .hayashi-site-footer__group a:focus{
    color:#f0c98d !important;
    text-decoration:underline !important;
    text-underline-offset:4px;
}
.hayashi-site-footer__bottom{
    background:#120909 !important;
    color:#d9ccbd !important;
    border-top:1px solid rgba(213,177,122,.24) !important;
}

/* Keep the general DB palette aligned with Enfold's current theme colors. */
.hayashi-db-home,
.hayashi-db-wrap{
    --hayashi-primary:#7a0f0f;
    --hayashi-primary-dark:#5a0a0a;
    --hayashi-gold:#d5b17a;
    --hayashi-paper:#fffdf7;
    --hayashi-main-bg:#f7f3ea;
    --hayashi-alt-bg:#f5efe4;
    --hayashi-text:#3f3a34;
    --hayashi-border:#d8ccba;
}


/* v1.5.201 — unified Hayashi palette and contrast pass */
.hayashi-db-home,
.hayashi-db-wrap{
    --hayashi-red:#7a0f0f;
    --hayashi-red-dark:#5a0a0a;
    --hayashi-gold:#d5b17a;
    --hayashi-gold-light:#f0c98d;
    --hayashi-paper:#fffdf7;
    --hayashi-cream:#f7f3ea;
    --hayashi-cream-alt:#f5efe4;
    --hayashi-ink:#2d2926;
    --hayashi-text:#3f3a34;
    --hayashi-muted:#6f675e;
    --hayashi-border:#d8ccba;
}

/* General top-page readability */
.hayashi-db-home{
    color:var(--hayashi-text) !important;
}
.hayashi-db-home h1,
.hayashi-db-home h2,
.hayashi-db-home h3,
.hayashi-db-home h4{
    color:var(--hayashi-red-dark) !important;
}
.hayashi-db-home p,
.hayashi-db-home li,
.hayashi-db-home dd,
.hayashi-db-home dt{
    color:var(--hayashi-text);
}
.hayashi-db-home .hayashi-muted,
.hayashi-db-home [class*="meta"],
.hayashi-db-home [class*="summary"]{
    color:var(--hayashi-muted) !important;
}

/* Main links: dark red on light surfaces, never pale gold on cream. */
#top .hayashi-db-home a:not(.hayashi-site-footer a){
    color:var(--hayashi-red) !important;
}
#top .hayashi-db-home a:not(.hayashi-site-footer a):hover,
#top .hayashi-db-home a:not(.hayashi-site-footer a):focus{
    color:var(--hayashi-red-dark) !important;
}

/* Light cards / panels */
.hayashi-db-home [class*="card"],
.hayashi-db-home [class*="panel"],
.hayashi-db-home [class*="stat"],
.hayashi-db-home [class*="search"]{
    border-color:var(--hayashi-border);
}
.hayashi-db-home input,
.hayashi-db-home select,
.hayashi-db-home textarea{
    background:#ffffff !important;
    color:var(--hayashi-ink) !important;
    border-color:#bfb4a3 !important;
}
.hayashi-db-home input::placeholder,
.hayashi-db-home textarea::placeholder{
    color:#756d64 !important;
    opacity:1;
}

/* Buttons */
#top .hayashi-db-home button,
#top .hayashi-db-home input[type="submit"],
#top .hayashi-db-home .button,
#top .hayashi-db-home a[class*="button"]{
    background:var(--hayashi-red) !important;
    color:#ffffff !important;
    border-color:var(--hayashi-red) !important;
}
#top .hayashi-db-home button:hover,
#top .hayashi-db-home input[type="submit"]:hover,
#top .hayashi-db-home .button:hover,
#top .hayashi-db-home a[class*="button"]:hover{
    background:var(--hayashi-red-dark) !important;
    color:#ffffff !important;
    border-color:var(--hayashi-red-dark) !important;
}

/* Footer: force high contrast against Enfold inherited link styles. */
#top .hayashi-site-footer{
    background:var(--hayashi-red-dark,#5a0a0a) !important;
    color:#fffdf7 !important;
}
#top .hayashi-site-footer .hayashi-site-footer__mark{
    background:#fffdf7 !important;
    color:var(--hayashi-red,#7a0f0f) !important;
    border-color:var(--hayashi-gold,#d5b17a) !important;
}
#top .hayashi-site-footer .hayashi-site-footer__name{
    color:#ffffff !important;
}
#top .hayashi-site-footer .hayashi-site-footer__brand p{
    color:#efe5d7 !important;
}
#top .hayashi-site-footer .hayashi-site-footer__group h2{
    color:var(--hayashi-gold-light,#f0c98d) !important;
}
#top .hayashi-site-footer a,
#top .hayashi-site-footer .hayashi-site-footer__group a,
#top .hayashi-site-footer a:visited{
    color:#ffffff !important;
    opacity:1 !important;
}
#top .hayashi-site-footer a:hover,
#top .hayashi-site-footer a:focus{
    color:var(--hayashi-gold-light,#f0c98d) !important;
}
#top .hayashi-site-footer .hayashi-site-footer__bottom{
    background:#120909 !important;
    color:#e4d9cc !important;
}

/* Avoid invisible text caused by inherited Enfold alternate-color rules. */
#top .hayashi-db-home .main_color,
#top .hayashi-db-home .alternate_color{
    color:var(--hayashi-text) !important;
}

/* v1.5.202 — full-width archive UI, unified icon system, map workspace */
:root{
    --hayashi-ui-red:#7a0f0f;
    --hayashi-ui-red-dark:#5a0a0a;
    --hayashi-ui-gold:#d5b17a;
    --hayashi-ui-paper:#fffdf7;
    --hayashi-ui-cream:#f7f3ea;
    --hayashi-ui-cream-alt:#f5efe4;
    --hayashi-ui-ink:#2d2926;
    --hayashi-ui-muted:#6f675e;
    --hayashi-ui-border:#d8ccba;
    --hayashi-ui-shadow:0 14px 34px rgba(55,31,20,.08);
}

/* Give database pages more horizontal room without changing normal Enfold pages. */
#top .container_wrap.av-hayashi-no-sidebar .container,
body .container_wrap.av-hayashi-no-sidebar .container{
    width:min(1640px,calc(100% - 36px)) !important;
    max-width:1640px !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
#top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap,
body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap{
    width:100%;
    max-width:1600px !important;
    padding-left:18px;
    padding-right:18px;
}

/* Unified line icons across landing and utility controls. */
.hayashi-landing-nav-icon,
.hayashi-ui-icon{
    color:var(--hayashi-ui-red);
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.hayashi-landing-nav-icon{
    width:46px;
    height:46px;
    padding:8px;
    border:1px solid rgba(122,15,15,.16);
    border-radius:14px;
    background:linear-gradient(145deg,#fffdf7,#f5efe4);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.hayashi-ui-icon{
    width:20px;
    height:20px;
    flex:0 0 20px;
}
.hayashi-ui-icon svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hayashi-landing-nav{
    width:min(1500px,calc(100% - 36px));
    gap:12px;
    padding:12px;
    border-radius:18px;
    border:1px solid rgba(216,204,186,.92);
    background:rgba(255,253,247,.96);
}
.hayashi-landing-nav-card{
    min-height:132px;
    border:1px solid transparent;
    border-radius:14px;
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.hayashi-landing-nav-card:hover{
    transform:translateY(-2px);
    border-color:rgba(122,15,15,.18);
    background:#fff;
    box-shadow:0 10px 26px rgba(55,31,20,.08);
}
.hayashi-landing-search,
.hayashi-landing-counts,
.hayashi-landing-lower{
    width:min(1500px,calc(100% - 36px));
}

/* Map page: sidebar + large map/results workspace. */
.hayashi-map-page{
    max-width:1600px !important;
}
.hayashi-map-workspace{
    display:grid;
    grid-template-columns:minmax(260px,320px) minmax(0,1fr);
    gap:24px;
    align-items:start;
    margin-top:22px;
}
.hayashi-map-sidebar{
    position:sticky;
    top:110px;
    display:grid;
    gap:14px;
    max-height:calc(100vh - 132px);
    overflow:auto;
    padding:18px;
    border:1px solid var(--hayashi-ui-border);
    border-radius:18px;
    background:rgba(255,253,247,.97);
    box-shadow:var(--hayashi-ui-shadow);
    scrollbar-width:thin;
}
.hayashi-map-sidebar-head{
    display:flex;
    align-items:center;
    gap:11px;
    padding-bottom:12px;
    border-bottom:1px solid var(--hayashi-ui-border);
}
.hayashi-map-sidebar-head .hayashi-ui-icon{
    width:34px;height:34px;flex-basis:34px;padding:7px;
    border-radius:10px;background:var(--hayashi-ui-cream-alt);
}
.hayashi-map-sidebar-head small,
.hayashi-map-results-head small{
    display:block;
    color:var(--hayashi-ui-muted);
    font-size:10px;
    font-weight:800;
    letter-spacing:.16em;
}
.hayashi-map-sidebar-head strong{display:block;color:var(--hayashi-ui-red-dark);font-size:16px}
.hayashi-map-sidebar .hayashi-area-picker,
.hayashi-map-sidebar .hayashi-map-type-switch,
.hayashi-map-sidebar .hayashi-map-filter-panel{
    margin:0 !important;
}
.hayashi-map-sidebar .hayashi-map-type-switch{
    display:grid;
    gap:8px;
    padding:14px;
    border:1px solid var(--hayashi-ui-border);
    border-radius:14px;
    background:#fff;
}
.hayashi-map-sidebar .hayashi-map-type-switch div{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
}
.hayashi-map-sidebar .hayashi-map-type-switch a{
    justify-content:center;
    min-height:36px;
    padding:7px 8px;
    border-radius:9px;
}
.hayashi-map-sidebar .hayashi-map-filter-panel{
    display:grid;
    grid-template-columns:1fr !important;
    gap:11px;
    padding:0;
    border:0;
    background:transparent;
}
.hayashi-map-sidebar .hayashi-map-filter-panel .hayashi-filter-keyword,
.hayashi-map-sidebar .hayashi-map-filter-panel .hayashi-filter-actions{
    grid-column:auto !important;
}
.hayashi-map-sidebar .hayashi-filter-actions{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
}
.hayashi-map-sidebar .hayashi-result-count{
    display:flex;
    align-items:baseline;
    gap:5px;
    margin:0;
    padding:12px 14px;
    border-radius:12px;
    background:var(--hayashi-ui-red-dark);
    color:#fffdf7 !important;
}
.hayashi-map-sidebar .hayashi-result-count strong{font-size:28px;line-height:1;color:#fff!important}
.hayashi-map-sidebar .hayashi-result-count span{color:#f1e6d7!important;font-size:12px;font-weight:700}
.hayashi-map-main{min-width:0;display:grid;gap:20px}
.hayashi-map-main .hayashi-leaflet-panel{
    margin:0;
    padding:18px;
    border-radius:18px;
    box-shadow:var(--hayashi-ui-shadow);
}
.hayashi-map-main .hayashi-leaflet-map{
    min-height:clamp(520px,68vh,760px);
    border-radius:14px;
    overflow:hidden;
}
.hayashi-map-results-head{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:end;
    padding:2px 2px 0;
}
.hayashi-map-results-head>div{display:flex;align-items:center;gap:10px}
.hayashi-map-results-head .hayashi-ui-icon{width:34px;height:34px;flex-basis:34px;padding:7px;border-radius:10px;background:var(--hayashi-ui-cream-alt)}
.hayashi-map-results-head h2{margin:0;color:var(--hayashi-ui-red-dark);font-size:1.45rem}
.hayashi-map-results-head p{margin:0;color:var(--hayashi-ui-muted);font-size:12px;text-align:right}
.hayashi-map-results{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.hayashi-map-card{
    position:relative;
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding:18px;
    border-radius:16px;
    border-color:var(--hayashi-ui-border);
    box-shadow:0 5px 16px rgba(55,31,20,.045);
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease;
}
.hayashi-map-card:hover{
    transform:translateY(-1px);
    border-color:rgba(122,15,15,.35);
    box-shadow:0 12px 28px rgba(55,31,20,.08);
}
.hayashi-map-card.is-map-active{
    border-color:var(--hayashi-ui-red) !important;
    background:#fffaf1;
    box-shadow:0 0 0 3px rgba(122,15,15,.10),0 14px 30px rgba(55,31,20,.10);
}
.hayashi-map-card.is-map-active::before{
    content:"地図で選択中";
    position:absolute;
    top:12px;
    right:12px;
    padding:4px 8px;
    border-radius:999px;
    background:var(--hayashi-ui-red);
    color:#fff;
    font-size:10px;
    font-weight:800;
    letter-spacing:.04em;
}
.hayashi-map-card h2{padding-right:72px}
.hayashi-map-card-actions{justify-content:flex-start}
.hayashi-map-card-actions .hayashi-button,
.hayashi-map-focus-button{
    display:inline-flex !important;
    align-items:center;
    gap:6px;
    min-height:38px;
    border-radius:10px !important;
}
.hayashi-map-focus-button{cursor:pointer}
.hayashi-map-focus-button .hayashi-ui-icon{color:currentColor;width:17px;height:17px;flex-basis:17px}
.hayashi-map-note{padding:10px 12px;border-radius:10px;background:var(--hayashi-ui-cream-alt)}

/* Better density on very wide displays. */
@media (min-width:1500px){
    .hayashi-map-results{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1050px){
    .hayashi-map-workspace{grid-template-columns:1fr}
    .hayashi-map-sidebar{position:static;max-height:none;overflow:visible}
    .hayashi-map-sidebar .hayashi-map-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .hayashi-map-sidebar .hayashi-map-filter-panel .hayashi-filter-keyword{grid-column:1/-1 !important}
    .hayashi-map-sidebar .hayashi-map-filter-panel .hayashi-filter-actions{grid-column:1/-1 !important}
}
@media (max-width:740px){
    #top .container_wrap.av-hayashi-no-sidebar .container,
    body .container_wrap.av-hayashi-no-sidebar .container{width:100% !important}
    #top .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap,
    body .container_wrap.av-hayashi-no-sidebar .hayashi-db-wrap{padding-left:12px;padding-right:12px}
    .hayashi-map-sidebar{padding:14px;border-radius:14px}
    .hayashi-map-sidebar .hayashi-map-filter-panel{grid-template-columns:1fr !important}
    .hayashi-map-results{grid-template-columns:1fr}
    .hayashi-map-results-head{align-items:flex-start;flex-direction:column}
    .hayashi-map-results-head p{text-align:left}
    .hayashi-map-main .hayashi-leaflet-panel{padding:10px;border-radius:14px}
    .hayashi-map-main .hayashi-leaflet-map{min-height:58vh}
    .hayashi-landing-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
    .hayashi-landing-nav-card{min-height:118px;padding:14px 9px}
}
.hayashi-map-heading-meta{display:grid;justify-items:end;gap:7px}
.hayashi-map-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 10px;color:var(--hayashi-ui-muted);font-size:10px;font-weight:700}
.hayashi-map-legend i{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:-3px;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.08)}
.hayashi-map-legend .is-group{background:#7a0f0f}.hayashi-map-legend .is-event{background:#c1121f}.hayashi-map-legend .is-occurrence{background:#041e42}.hayashi-map-legend .is-other{background:#7a3f0f}
@media(max-width:740px){.hayashi-map-heading{align-items:flex-start;flex-direction:column}.hayashi-map-heading-meta{justify-items:start}.hayashi-map-legend{justify-content:flex-start}}


/* v1.5.203 — restore top landing balance and previous icon feel */

/* Top landing: prevent global full-width/map rules from breaking the stats block. */
.hayashi-db-home .hayashi-landing-stats,
.hayashi-db-home [class*="landing-stats"],
.hayashi-db-home [class*="stats-grid"]{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
.hayashi-db-home .hayashi-landing-stats > *,
.hayashi-db-home [class*="landing-stats"] > *,
.hayashi-db-home [class*="stats-grid"] > *{
    min-width:0 !important;
    width:auto !important;
    margin:0 !important;
}

/* Restore the previous softer icon treatment on the top navigation cards. */
.hayashi-db-home .hayashi-landing-entry-icon,
.hayashi-db-home [class*="entry-icon"],
.hayashi-db-home [class*="menu-icon"]{
    width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    background:#f5efe4 !important;
    border:1px solid #d8ccba !important;
    color:#7a0f0f !important;
    box-shadow:none !important;
}
.hayashi-db-home .hayashi-landing-entry-icon svg,
.hayashi-db-home [class*="entry-icon"] svg,
.hayashi-db-home [class*="menu-icon"] svg{
    width:24px !important;
    height:24px !important;
    stroke-width:1.8 !important;
}

/* Stat cards: compact icon + number + label. */
.hayashi-db-home .hayashi-stat-card,
.hayashi-db-home [class*="stat-card"],
.hayashi-db-home [class*="stats-grid"] > *{
    position:relative;
    padding:18px 16px 16px 54px !important;
    background:#fffdf7 !important;
    border:1px solid #d8ccba !important;
    border-radius:12px !important;
    box-shadow:0 4px 14px rgba(90,10,10,.06) !important;
}
.hayashi-db-home .hayashi-stat-card::before,
.hayashi-db-home [class*="stat-card"]::before,
.hayashi-db-home [class*="stats-grid"] > *::before{
    content:"";
    position:absolute;
    left:16px;
    top:18px;
    width:24px;
    height:24px;
    border-radius:8px;
    background:#f5efe4;
    border:1px solid #d8ccba;
}

/* Simple category glyphs for common stat positions */
.hayashi-db-home [class*="stats-grid"] > *:nth-child(1)::after,
.hayashi-db-home .hayashi-landing-stats > *:nth-child(1)::after{
    content:"囃";
}
.hayashi-db-home [class*="stats-grid"] > *:nth-child(2)::after,
.hayashi-db-home .hayashi-landing-stats > *:nth-child(2)::after{
    content:"祭";
}
.hayashi-db-home [class*="stats-grid"] > *:nth-child(3)::after,
.hayashi-db-home .hayashi-landing-stats > *:nth-child(3)::after{
    content:"社";
}
.hayashi-db-home [class*="stats-grid"] > *:nth-child(4)::after,
.hayashi-db-home .hayashi-landing-stats > *:nth-child(4)::after{
    content:"地";
}
.hayashi-db-home [class*="stats-grid"] > *::after,
.hayashi-db-home .hayashi-landing-stats > *::after{
    position:absolute;
    left:21px;
    top:19px;
    width:14px;
    height:22px;
    display:grid;
    place-items:center;
    color:#7a0f0f;
    font-size:13px;
    font-weight:700;
    line-height:1;
}

@media (max-width:900px){
    .hayashi-db-home .hayashi-landing-stats,
    .hayashi-db-home [class*="landing-stats"],
    .hayashi-db-home [class*="stats-grid"]{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width:520px){
    .hayashi-db-home .hayashi-landing-stats,
    .hayashi-db-home [class*="landing-stats"],
    .hayashi-db-home [class*="stats-grid"]{
        grid-template-columns:1fr !important;
    }
}


/* v1.5.204 — exact top landing restoration + count icons */
.hayashi-landing-nav-card .hayashi-landing-nav-icon-image{
    display:block !important;
    width:76px !important;
    height:62px !important;
    margin:0 auto 2px !important;
    background-image:url("landing-icons.png") !important;
    background-repeat:no-repeat !important;
    background-size:560px 373px !important;
    background-color:transparent !important;
    border:0 !important;
    border-radius:3px !important;
    box-shadow:none !important;
    filter:saturate(1.15) contrast(1.08) !important;
}
.hayashi-landing-nav-icon-groups{background-position:-20px -88px !important}
.hayashi-landing-nav-icon-events{background-position:-130px -88px !important}
.hayashi-landing-nav-icon-shrines{background-position:-239px -88px !important}
.hayashi-landing-nav-icon-styles{background-position:-347px -88px !important}
.hayashi-landing-nav-icon-map{background-position:-450px -88px !important}

/* Restore the original count band layout. */
.hayashi-landing-counts{
    margin-top:28px !important;
    padding:28px 0 !important;
    background:linear-gradient(180deg,#7A0F0F,#510707) !important;
    color:#FFFDF7 !important;
}
.hayashi-landing-count-grid{
    width:min(1180px,calc(100% - 44px)) !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:0 !important;
}
.hayashi-landing-count{
    position:relative !important;
    display:grid !important;
    grid-template-columns:34px 1fr auto auto !important;
    gap:7px !important;
    align-items:center !important;
    min-width:0 !important;
    width:auto !important;
    margin:0 !important;
    padding:10px 14px !important;
    background:transparent !important;
    border:0 !important;
    border-right:1px solid rgba(255,255,255,.30) !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
.hayashi-landing-count:last-child{border-right:0 !important}
.hayashi-landing-count::before,
.hayashi-landing-count::after{content:none !important;display:none !important}
.hayashi-landing-count-icon{
    display:block;
    width:30px;
    height:30px;
    flex:none;
}
.hayashi-landing-count-icon-image{
    background-image:url("landing-icons.png");
    background-repeat:no-repeat;
    background-size:280px 186.5px;
    filter:brightness(0) invert(1) opacity(.9);
}
.hayashi-landing-count-icon-groups{background-position:-10px -44px}
.hayashi-landing-count-icon-events{background-position:-65px -44px}
.hayashi-landing-count-icon-shrines{background-position:-119.5px -44px}
.hayashi-landing-count-icon-styles{background-position:-173.5px -44px}
.hayashi-landing-count-icon-map{background-position:-225px -44px}
.hayashi-landing-count-icon-source{
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.65);
    border-radius:6px;
    color:#fff;
    font-family:"Noto Serif JP",serif;
    font-size:15px;
    font-weight:700;
}
.hayashi-landing .hayashi-landing-count span{
    color:#FFF8EC !important;
    font-weight:700 !important;
    white-space:nowrap;
}
.hayashi-landing .hayashi-landing-count strong{
    color:#FFFFFF !important;
    font-size:1.72rem !important;
    font-family:Georgia,serif !important;
    font-weight:700 !important;
    line-height:1 !important;
}
.hayashi-landing .hayashi-landing-count em{
    color:#FFF8EC !important;
    font-style:normal !important;
    font-weight:700 !important;
}
@media(max-width:1100px){
    .hayashi-landing-count-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
    .hayashi-landing-count:nth-child(3){border-right:0 !important}
    .hayashi-landing-count:nth-child(-n+3){border-bottom:1px solid rgba(255,255,255,.22) !important}
}
@media(max-width:640px){
    .hayashi-landing-count-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .hayashi-landing-count{grid-template-columns:30px 1fr auto auto !important;padding:10px 10px !important}
    .hayashi-landing-count:nth-child(odd){border-right:1px solid rgba(255,255,255,.30) !important}
    .hayashi-landing-count:nth-child(even){border-right:0 !important}
    .hayashi-landing-count:nth-child(-n+4){border-bottom:1px solid rgba(255,255,255,.22) !important}
    .hayashi-landing .hayashi-landing-count strong{font-size:1.45rem !important}
}


/* v1.5.205 — top landing: full-width count band + complete icon restoration */

/* The count section itself spans the full viewport-width landing area.
   Only the inner six-count grid is constrained and centered. */
.hayashi-landing .hayashi-landing-counts{
    width:100% !important;
    max-width:none !important;
    margin:28px 0 0 !important;
    padding:28px 0 !important;
    box-sizing:border-box !important;
}
.hayashi-landing .hayashi-landing-counts h2{
    width:min(1500px,calc(100% - 40px)) !important;
    margin:0 auto 18px !important;
    text-align:center !important;
}
.hayashi-landing .hayashi-landing-count-grid{
    width:min(1500px,calc(100% - 40px)) !important;
    max-width:1500px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:0 !important;
    box-sizing:border-box !important;
}

/* Restore the original photographic/sprite icons completely.
   v1.5.202 added padding/background/borders to the icon element; reset all of it. */
.hayashi-landing .hayashi-landing-nav-icon-image{
    display:block !important;
    box-sizing:border-box !important;
    width:82px !important;
    height:68px !important;
    min-width:82px !important;
    min-height:68px !important;
    margin:0 auto 4px !important;
    padding:0 !important;
    border:0 !important;
    outline:0 !important;
    border-radius:0 !important;
    background-color:transparent !important;
    background-image:url("landing-icons.png") !important;
    background-repeat:no-repeat !important;
    background-size:560px 373px !important;
    box-shadow:none !important;
    filter:saturate(1.15) contrast(1.08) !important;
    overflow:visible !important;
}
.hayashi-landing .hayashi-landing-nav-icon-groups{
    background-position:-17px -84px !important;
}
.hayashi-landing .hayashi-landing-nav-icon-events{
    background-position:-127px -84px !important;
}
.hayashi-landing .hayashi-landing-nav-icon-shrines{
    background-position:-236px -84px !important;
}
.hayashi-landing .hayashi-landing-nav-icon-styles{
    background-position:-344px -84px !important;
}
.hayashi-landing .hayashi-landing-nav-icon-map{
    background-position:-447px -84px !important;
}

/* Keep the main cards centred and prevent icon clipping. */
.hayashi-landing .hayashi-landing-nav-card{
    overflow:visible !important;
}
.hayashi-landing .hayashi-landing-nav{
    margin-left:auto !important;
    margin-right:auto !important;
}

/* Count icons: restore all five sprite icons and the source icon. */
.hayashi-landing .hayashi-landing-count-icon{
    display:block !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
}
.hayashi-landing .hayashi-landing-count-icon-image{
    background-color:transparent !important;
    background-image:url("landing-icons.png") !important;
    background-repeat:no-repeat !important;
    background-size:280px 186.5px !important;
    filter:brightness(0) invert(1) opacity(.96) !important;
}
.hayashi-landing .hayashi-landing-count-icon-groups{
    background-position:-9px -42px !important;
}
.hayashi-landing .hayashi-landing-count-icon-events{
    background-position:-64px -42px !important;
}
.hayashi-landing .hayashi-landing-count-icon-shrines{
    background-position:-118px -42px !important;
}
.hayashi-landing .hayashi-landing-count-icon-styles{
    background-position:-172px -42px !important;
}
.hayashi-landing .hayashi-landing-count-icon-map{
    background-position:-224px -42px !important;
}
.hayashi-landing .hayashi-landing-count-icon-source{
    display:grid !important;
    place-items:center !important;
    border:1px solid rgba(255,255,255,.72) !important;
    border-radius:6px !important;
    color:#fff !important;
    background:rgba(255,255,255,.08) !important;
    font-family:"Noto Serif JP",serif !important;
    font-size:15px !important;
    font-weight:700 !important;
}

/* Six balanced columns on desktop; keep the band centred at every breakpoint. */
@media (min-width:1101px){
    .hayashi-landing .hayashi-landing-count-grid{
        grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    }
}
@media (max-width:1100px){
    .hayashi-landing .hayashi-landing-count-grid{
        width:min(100% - 32px,1000px) !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media (max-width:640px){
    .hayashi-landing .hayashi-landing-count-grid{
        width:calc(100% - 24px) !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    .hayashi-landing .hayashi-landing-count{
        grid-template-columns:32px minmax(0,1fr) auto auto !important;
    }
}


/* ==========================================================
   v1.5.206 — Unified archive / detail / map / blog UI
   ========================================================== */

:root{
    --hy-red:#7a0f0f;
    --hy-red-dark:#5a0a0a;
    --hy-gold:#d5b17a;
    --hy-gold-light:#f0c98d;
    --hy-paper:#fffdf7;
    --hy-cream:#f7f3ea;
    --hy-cream-alt:#f5efe4;
    --hy-ink:#2d2926;
    --hy-text:#3f3a34;
    --hy-muted:#70675e;
    --hy-border:#d8ccba;
    --hy-border-soft:#e8dfd2;
    --hy-shadow:0 8px 26px rgba(74,42,28,.08);
    --hy-shadow-hover:0 14px 34px rgba(74,42,28,.14);
    --hy-radius:16px;
}

/* ---------- Common page width ---------- */
#top .hayashi-db-wrap,
#top .hayashi-single,
#top .hayashi-group-pr-page{
    width:min(1580px,calc(100% - 40px)) !important;
    max-width:1580px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
#top .hayashi-db-wrap{
    padding-top:24px;
    padding-bottom:42px;
}

/* ---------- Unified panels ---------- */
#top .hayashi-panel,
#top .hayashi-info-group,
#top .hayashi-term-profile,
#top .hayashi-single-hero{
    background:var(--hy-paper);
    border:1px solid var(--hy-border-soft);
    border-radius:var(--hy-radius);
    box-shadow:var(--hy-shadow);
}
#top .hayashi-panel,
#top .hayashi-info-group{
    padding:24px 26px;
}
#top .hayashi-panel + .hayashi-panel,
#top .hayashi-info-group + .hayashi-info-group{
    margin-top:20px;
}
#top .hayashi-panel h2,
#top .hayashi-info-group h2{
    margin:0 0 18px;
    padding:0 0 12px 14px;
    border-bottom:1px solid var(--hy-border-soft);
    border-left:4px solid var(--hy-red);
    color:var(--hy-red-dark);
    font-size:21px;
    line-height:1.45;
}
#top .hayashi-panel h3,
#top .hayashi-info-group h3{
    color:var(--hy-ink);
    font-size:17px;
}

/* ---------- Archive headers ---------- */
#top .hayashi-archive-header,
#top .hayashi-map-hero{
    position:relative;
    overflow:hidden;
    padding:30px 34px;
    background:
        linear-gradient(120deg,rgba(122,15,15,.97),rgba(90,10,10,.96)),
        var(--hy-red-dark);
    color:#fff;
    border:0;
}
#top .hayashi-archive-header::after,
#top .hayashi-map-hero::after{
    content:"";
    position:absolute;
    right:-70px;
    top:-90px;
    width:260px;
    height:260px;
    border:1px solid rgba(213,177,122,.22);
    border-radius:50%;
}
#top .hayashi-archive-header h1,
#top .hayashi-map-hero h1{
    color:#fff !important;
    margin-bottom:10px;
}
#top .hayashi-archive-header p,
#top .hayashi-map-hero p{
    color:#f0e7dc !important;
}
#top .hayashi-archive-header .hayashi-button,
#top .hayashi-map-hero .hayashi-button{
    background:#fffdf7 !important;
    color:var(--hy-red) !important;
    border-color:#fffdf7 !important;
}

/* ---------- Buttons ---------- */
#top .hayashi-button{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:9px 15px;
    border-radius:9px;
    font-weight:700;
    line-height:1.2;
    transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
#top .hayashi-button:hover{
    transform:translateY(-1px);
}
#top .hayashi-button-secondary{
    background:var(--hy-paper) !important;
    color:var(--hy-red) !important;
    border-color:var(--hy-border) !important;
}

/* ---------- Cards ---------- */
#top .hayashi-card,
#top .hayashi-related-card,
#top .hayashi-map-card{
    background:#fff;
    border:1px solid var(--hy-border-soft);
    border-radius:14px;
    box-shadow:0 4px 16px rgba(74,42,28,.06);
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
#top .hayashi-card:hover,
#top .hayashi-related-card:hover,
#top .hayashi-map-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--hy-shadow-hover);
    border-color:#cdbda7;
}
#top .hayashi-card-body{
    padding:20px;
}
#top .hayashi-card h2,
#top .hayashi-card h3,
#top .hayashi-map-card h2{
    color:var(--hy-ink) !important;
}

/* ---------- Filters ---------- */
#top .hayashi-filter-panel{
    background:#fff;
    border:1px solid var(--hy-border-soft);
    border-radius:14px;
    box-shadow:0 5px 18px rgba(74,42,28,.05);
}
#top .hayashi-filter-panel label{
    color:var(--hy-ink);
    font-weight:700;
}
#top .hayashi-filter-panel input,
#top .hayashi-filter-panel select{
    min-height:43px;
    border:1px solid #cfc2b0 !important;
    border-radius:8px !important;
    background:#fff !important;
    color:var(--hy-ink) !important;
}

/* ---------- Detail pages unified ---------- */
#top .hayashi-single-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 330px !important;
    gap:28px !important;
    align-items:start;
}
#top .hayashi-single-main,
#top .hayashi-group-main{
    min-width:0;
}
#top .hayashi-single-side,
#top .hayashi-group-side,
#top .hayashi-occurrence-side{
    position:sticky;
    top:110px;
    align-self:start;
}
#top .hayashi-term-profile,
#top .hayashi-single-hero,
#top .hayashi-alb-hero{
    margin-bottom:28px;
}
#top .hayashi-term-facts,
#top .hayashi-hero-facts,
#top .hayashi-info-list{
    margin:0;
}
#top .hayashi-info-list > div,
#top .hayashi-term-facts > div,
#top .hayashi-hero-facts > div{
    display:grid;
    grid-template-columns:minmax(120px,180px) minmax(0,1fr);
    gap:16px;
    padding:12px 0;
    border-bottom:1px solid #eee6db;
}
#top .hayashi-info-list > div:last-child,
#top .hayashi-term-facts > div:last-child,
#top .hayashi-hero-facts > div:last-child{
    border-bottom:0;
}
#top .hayashi-info-list dt,
#top .hayashi-term-facts dt,
#top .hayashi-hero-facts dt{
    color:var(--hy-muted);
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
}
#top .hayashi-info-list dd,
#top .hayashi-term-facts dd,
#top .hayashi-hero-facts dd{
    margin:0;
    color:var(--hy-ink);
    line-height:1.7;
}
#top .hayashi-map-embed{
    overflow:hidden;
    border-radius:12px;
    border:1px solid var(--hy-border-soft);
}
#top .hayashi-map-embed iframe{
    min-height:320px;
}

/* ---------- Tags / chips ---------- */
#top .hayashi-tag,
#top .hayashi-term-chip{
    border-radius:999px;
    border:1px solid #ddcfbd;
    background:#faf5ed;
    color:var(--hy-red) !important;
    font-size:12px;
    font-weight:700;
}

/* ---------- MAP: high-volume layout ---------- */
#top .hayashi-map-page{
    width:min(1740px,calc(100% - 28px)) !important;
    max-width:1740px !important;
}
#top .hayashi-map-workspace{
    display:grid !important;
    grid-template-columns:310px minmax(0,1fr) !important;
    gap:24px !important;
    align-items:start;
}
#top .hayashi-map-sidebar{
    position:sticky;
    top:96px;
    max-height:calc(100vh - 118px);
    overflow:auto;
    padding:20px;
    border:1px solid var(--hy-border-soft);
    border-radius:16px;
    background:#fffdf7;
    box-shadow:var(--hy-shadow);
    scrollbar-width:thin;
}
#top .hayashi-map-sidebar-head{
    padding-bottom:13px;
    margin-bottom:14px;
    border-bottom:1px solid var(--hy-border-soft);
}
#top .hayashi-map-main{
    min-width:0;
}
#top .hayashi-google-map-panel{
    padding:16px !important;
}
#top .hayashi-google-map{
    height:clamp(520px,68vh,780px) !important;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #d5c7b5;
}
#top .hayashi-map-heading{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-end;
    padding:6px 4px 14px;
}
#top .hayashi-map-legend{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
}
#top .hayashi-map-results-head{
    position:sticky;
    top:82px;
    z-index:12;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:26px 0 14px;
    padding:13px 16px;
    background:rgba(247,243,234,.96);
    backdrop-filter:blur(8px);
    border:1px solid var(--hy-border-soft);
    border-radius:12px;
}
#top .hayashi-map-results{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:15px !important;
}
#top .hayashi-map-card{
    position:relative;
    padding:18px !important;
    min-width:0;
}
#top .hayashi-map-card.is-map-active{
    border-color:var(--hy-red) !important;
    box-shadow:0 0 0 3px rgba(122,15,15,.12),var(--hy-shadow-hover);
    background:#fffaf4;
}
#top .hayashi-map-card.is-map-active::before{
    content:"地図で選択中";
    position:absolute;
    right:12px;
    top:12px;
    padding:4px 8px;
    border-radius:999px;
    background:var(--hy-red);
    color:#fff;
    font-size:10px;
    font-weight:800;
}
#top .hayashi-map-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}
#top .hayashi-map-card-actions .hayashi-button{
    min-height:35px;
    padding:7px 10px;
    font-size:12px;
}
#top .hayashi-map-card p{
    margin-bottom:7px;
    color:var(--hy-muted);
}
#top .hayashi-result-count{
    display:flex;
    align-items:baseline;
    gap:5px;
}
#top .hayashi-result-count strong{
    color:var(--hy-red);
    font-size:25px;
}

/* Map floating jump button */
.hayashi-map-jump{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:80;
    display:none;
    align-items:center;
    gap:7px;
    padding:10px 14px;
    border:0;
    border-radius:999px;
    background:var(--hy-red);
    color:#fff;
    box-shadow:0 8px 22px rgba(90,10,10,.26);
    font-weight:800;
    cursor:pointer;
}
.hayashi-map-jump.is-visible{
    display:flex;
}

/* ---------- Blog detail ---------- */
body.single-post #main .container{
    max-width:1480px !important;
}
body.single-post #main .content{
    max-width:940px;
}
body.single-post .post-entry{
    background:transparent;
}
body.single-post .entry-content{
    color:var(--hy-text);
    font-size:16px;
    line-height:2.02;
}
body.single-post .entry-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote{
    max-width:860px;
}
body.single-post .entry-content h2{
    margin:46px 0 22px;
    padding:12px 16px;
    border-left:5px solid var(--hy-red);
    border-bottom:1px solid var(--hy-border);
    background:#fbf7f0;
    color:var(--hy-red-dark);
    font-size:25px;
    line-height:1.45;
}
body.single-post .entry-content h3{
    margin:34px 0 16px;
    padding-bottom:8px;
    border-bottom:2px solid #eadfce;
    color:var(--hy-ink);
    font-size:20px;
}
body.single-post .entry-content blockquote{
    margin:28px 0;
    padding:18px 22px;
    border-left:4px solid var(--hy-gold);
    background:#faf4e9;
    color:#4d443c;
    border-radius:0 10px 10px 0;
}
body.single-post .entry-content img{
    border-radius:12px;
}
body.single-post .entry-content table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    border:1px solid var(--hy-border);
    border-radius:10px;
    overflow:hidden;
}
body.single-post .entry-content th{
    background:#f3eadc;
    color:var(--hy-red-dark);
}
body.single-post .entry-content th,
body.single-post .entry-content td{
    padding:11px 13px;
    border-bottom:1px solid #e8dfd2;
}
body.single-post .sidebar{
    width:310px;
}
body.single-post .sidebar .widget{
    padding:20px;
    margin-bottom:18px;
    border:1px solid var(--hy-border-soft);
    border-radius:14px;
    background:#fffdf7;
    box-shadow:0 4px 16px rgba(74,42,28,.05);
}

/* Auto-generated blog TOC */
.hayashi-article-toc{
    max-width:860px;
    margin:26px 0 34px;
    padding:20px 22px;
    border:1px solid var(--hy-border);
    border-radius:14px;
    background:#fffaf3;
}
.hayashi-article-toc__title{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 12px;
    color:var(--hy-red-dark);
    font-size:14px;
    font-weight:900;
    letter-spacing:.06em;
}
.hayashi-article-toc ol{
    margin:0;
    padding-left:22px;
}
.hayashi-article-toc li{
    margin:6px 0;
    line-height:1.5;
}
.hayashi-article-toc li.is-h3{
    margin-left:18px;
    font-size:13px;
}
.hayashi-article-toc a{
    color:var(--hy-ink) !important;
    text-decoration:none;
}
.hayashi-article-toc a:hover{
    color:var(--hy-red) !important;
    text-decoration:underline;
}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
    #top .hayashi-map-results{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    #top .hayashi-single-layout{
        grid-template-columns:minmax(0,1fr) 290px !important;
    }
}
@media (max-width:900px){
    #top .hayashi-db-wrap,
    #top .hayashi-single,
    #top .hayashi-group-pr-page{
        width:calc(100% - 24px) !important;
    }
    #top .hayashi-single-layout,
    #top .hayashi-map-workspace{
        grid-template-columns:1fr !important;
    }
    #top .hayashi-single-side,
    #top .hayashi-group-side,
    #top .hayashi-occurrence-side,
    #top .hayashi-map-sidebar{
        position:static;
        max-height:none;
    }
    #top .hayashi-google-map{
        height:58vh !important;
        min-height:430px;
    }
    body.single-post #main .content{
        max-width:none;
    }
}
@media (max-width:620px){
    #top .hayashi-panel,
    #top .hayashi-info-group{
        padding:19px 17px;
        border-radius:12px;
    }
    #top .hayashi-info-list > div,
    #top .hayashi-term-facts > div,
    #top .hayashi-hero-facts > div{
        grid-template-columns:1fr;
        gap:4px;
    }
    #top .hayashi-map-results{
        grid-template-columns:1fr !important;
    }
    #top .hayashi-map-heading{
        align-items:flex-start;
        flex-direction:column;
    }
    body.single-post .entry-content{
        font-size:15px;
        line-height:1.9;
    }
    body.single-post .entry-content h2{
        font-size:21px;
    }
}


/* ==========================================================
   v1.5.207 — Hayashi group detail: cleaner + lower full width
   ========================================================== */

/* Let the database detail use the browser width instead of Enfold's narrow content column. */
body.single-hayashi_group #main > .container{
    width:100% !important;
    max-width:none !important;
    padding-left:22px !important;
    padding-right:22px !important;
}
body.single-hayashi_group #main > .container > .content,
body.single-hayashi_group #main .template-page.content{
    width:100% !important;
    max-width:none !important;
    float:none !important;
    border:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
body.single-hayashi_group #main .sidebar{
    display:none !important;
}

/* Main group-detail canvas */
#top .hayashi-group-detail-page{
    width:min(1680px,100%) !important;
    max-width:1680px !important;
    margin:0 auto !important;
    padding:10px 0 42px;
}

/* Hero: cleaner editorial profile card */
#top .hayashi-group-detail-page > .hayashi-single-hero{
    display:grid !important;
    grid-template-columns:minmax(260px,360px) minmax(0,1fr) !important;
    gap:32px !important;
    align-items:stretch !important;
    margin:0 0 20px !important;
    padding:0 !important;
    overflow:hidden;
    border:1px solid var(--hy-border-soft,#e8dfd2);
    border-radius:18px;
    background:#fffdf7;
    box-shadow:0 10px 30px rgba(74,42,28,.09);
}
#top .hayashi-group-detail-page > .hayashi-single-hero > img{
    width:100% !important;
    height:100% !important;
    min-height:280px !important;
    max-height:420px !important;
    object-fit:cover !important;
    margin:0 !important;
    border-radius:0 !important;
}
#top .hayashi-group-detail-page > .hayashi-single-hero > div{
    min-width:0;
    padding:30px 34px 30px 0 !important;
    align-self:center;
}
#top .hayashi-group-detail-page .hayashi-hero-eyebrow{
    margin-bottom:7px;
    color:#7a0f0f !important;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
}
#top .hayashi-group-detail-page > .hayashi-single-hero h1{
    margin:0 0 18px !important;
    color:#2d2926 !important;
    font-size:clamp(28px,3vw,44px) !important;
    line-height:1.3 !important;
    letter-spacing:.025em;
}
#top .hayashi-group-detail-page .hayashi-hero-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px 22px;
    margin:0 0 16px;
}
#top .hayashi-group-detail-page .hayashi-hero-summary > div{
    padding:9px 0;
    border-bottom:1px solid #eee5d8;
}
#top .hayashi-group-detail-page .hayashi-hero-summary dt{
    margin-bottom:3px;
    color:#756b60;
    font-size:11px;
    font-weight:800;
    letter-spacing:.05em;
}
#top .hayashi-group-detail-page .hayashi-hero-summary dd{
    margin:0;
    color:#2d2926;
    font-weight:700;
}

/* Section navigation: full width, compact, sticky on desktop */
#top .hayashi-group-detail-page > .hayashi-section-nav{
    position:sticky;
    top:72px;
    z-index:30;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    width:100%;
    margin:0 0 22px !important;
    padding:10px 12px !important;
    border:1px solid #e2d7c8;
    border-radius:12px;
    background:rgba(255,253,247,.95);
    backdrop-filter:blur(10px);
    box-shadow:0 5px 16px rgba(74,42,28,.06);
}
#top .hayashi-group-detail-page > .hayashi-section-nav a{
    padding:7px 11px;
    border-radius:999px;
    color:#5a0a0a !important;
    background:#f7f3ea;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}
#top .hayashi-group-detail-page > .hayashi-section-nav a:hover{
    color:#fff !important;
    background:#7a0f0f;
}

/*
 * Upper content:
 * - body/history at left
 * - registration information at right
 *
 * Lower content:
 * - occurrences, relations, videos, events, related groups,
 *   articles and sources span the full available width.
 */
#top .hayashi-group-detail-page .hayashi-group-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 360px !important;
    gap:22px 26px !important;
    align-items:start;
    width:100% !important;
    max-width:none !important;
}
#top .hayashi-group-detail-page .hayashi-group-main{
    display:contents !important;
}
#top .hayashi-group-detail-page .hayashi-group-side{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    position:sticky !important;
    top:132px !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:18px !important;
    border-radius:15px;
}

/* Introductory text stays next to registration info. */
#top .hayashi-group-detail-page .hayashi-group-main > #hayashi-body,
#top .hayashi-group-detail-page .hayashi-group-main > #hayashi-history{
    grid-column:1 !important;
    width:100% !important;
    margin:0 !important;
}

/* Everything else below becomes full width. */
#top .hayashi-group-detail-page .hayashi-group-main > :not(#hayashi-body):not(#hayashi-history){
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
}

/* If one of the introductory blocks is absent, avoid a visually empty tall sidebar area. */
#top .hayashi-group-detail-page .hayashi-group-layout:not(:has(#hayashi-body)) .hayashi-group-side,
#top .hayashi-group-detail-page .hayashi-group-layout:not(:has(#hayashi-history)) .hayashi-group-side{
    grid-row:1 !important;
}

/* Panels have a lighter, cleaner hierarchy */
#top .hayashi-group-detail-page .hayashi-panel{
    padding:25px 28px !important;
    border:1px solid #e8dfd2 !important;
    border-radius:15px !important;
    background:#fff !important;
    box-shadow:0 5px 18px rgba(74,42,28,.055) !important;
}
#top .hayashi-group-detail-page .hayashi-panel > h2{
    margin:-2px 0 20px !important;
    padding:0 0 11px 13px !important;
    border-left:4px solid #7a0f0f;
    border-bottom:1px solid #e8dfd2;
    color:#5a0a0a !important;
    font-size:21px !important;
}
#top .hayashi-group-detail-page .hayashi-panel p{
    line-height:1.9;
}

/* Registration information: visually compact */
#top .hayashi-group-detail-page .hayashi-group-side > h2{
    margin:0 0 12px !important;
    padding:0 0 10px !important;
    border-left:0 !important;
    color:#5a0a0a !important;
    font-size:18px !important;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-info-group{
    padding:0 !important;
    margin:0 0 16px !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-info-group h3{
    margin:0 0 7px;
    padding:7px 10px;
    border-radius:7px;
    background:#f7f3ea;
    color:#5a0a0a !important;
    font-size:12px;
    font-weight:900;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-info-list > div{
    grid-template-columns:92px minmax(0,1fr) !important;
    gap:10px !important;
    padding:8px 2px !important;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-info-list dt{
    font-size:11px !important;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-info-list dd{
    font-size:13px;
    line-height:1.65;
}
#top .hayashi-group-detail-page .hayashi-group-side .hayashi-map-embed iframe{
    min-height:230px !important;
}

/* Related content takes advantage of the full width */
#top .hayashi-group-detail-page .hayashi-related-cards{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
}
#top .hayashi-group-detail-page .hayashi-related-list{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:12px !important;
}
#top .hayashi-group-detail-page .hayashi-related-card{
    min-width:0;
    border-radius:12px !important;
    overflow:hidden;
}
#top .hayashi-group-detail-page .hayashi-related-card img{
    width:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
}
#top .hayashi-group-detail-page .hayashi-video-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
}

/* Source / migration URLs should not dominate the page */
#top .hayashi-group-detail-page #hayashi-source p,
#top .hayashi-group-detail-page #hayashi-body p,
#top .hayashi-group-detail-page #hayashi-history p{
    overflow-wrap:anywhere;
}

/* Bottom adjacent-post links from Enfold: use the same full canvas */
body.single-hayashi_group .avia-post-nav{
    max-width:none !important;
}

/* Responsive */
@media (max-width:1200px){
    #top .hayashi-group-detail-page .hayashi-group-layout{
        grid-template-columns:minmax(0,1fr) 310px !important;
    }
    #top .hayashi-group-detail-page .hayashi-related-list{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
    #top .hayashi-group-detail-page .hayashi-related-cards,
    #top .hayashi-group-detail-page .hayashi-video-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media (max-width:900px){
    body.single-hayashi_group #main > .container{
        padding-left:12px !important;
        padding-right:12px !important;
    }
    #top .hayashi-group-detail-page > .hayashi-single-hero{
        grid-template-columns:1fr !important;
    }
    #top .hayashi-group-detail-page > .hayashi-single-hero > img{
        min-height:220px !important;
        max-height:360px !important;
    }
    #top .hayashi-group-detail-page > .hayashi-single-hero > div{
        padding:24px !important;
    }
    #top .hayashi-group-detail-page > .hayashi-section-nav{
        position:static;
    }
    #top .hayashi-group-detail-page .hayashi-group-layout{
        display:block !important;
    }
    #top .hayashi-group-detail-page .hayashi-group-main{
        display:block !important;
    }
    #top .hayashi-group-detail-page .hayashi-group-main > *,
    #top .hayashi-group-detail-page .hayashi-group-side{
        width:100% !important;
        margin:0 0 18px !important;
    }
    #top .hayashi-group-detail-page .hayashi-group-side{
        position:static !important;
    }
    #top .hayashi-group-detail-page .hayashi-related-list,
    #top .hayashi-group-detail-page .hayashi-related-cards,
    #top .hayashi-group-detail-page .hayashi-video-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width:560px){
    #top .hayashi-group-detail-page .hayashi-hero-summary{
        grid-template-columns:1fr;
    }
    #top .hayashi-group-detail-page .hayashi-panel{
        padding:20px 17px !important;
    }
    #top .hayashi-group-detail-page .hayashi-related-list,
    #top .hayashi-group-detail-page .hayashi-related-cards,
    #top .hayashi-group-detail-page .hayashi-video-grid{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   v1.5.208 — creative cultural archive refinement
   ========================================================== */

/* Undo the overly rigid v1.5.207 group-detail experiment */
body.hayashi-creative-group #main > .container{
    width:min(1520px,calc(100% - 34px)) !important;
    max-width:1520px !important;
    margin:0 auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
}
body.hayashi-creative-group #main > .container > .content,
body.hayashi-creative-group #main .template-page.content{
    width:100% !important;
    max-width:none !important;
    float:none !important;
    border:0 !important;
    padding:0 !important;
}
body.hayashi-creative-group #main .sidebar{
    display:none !important;
}

/* Group hero: creative but restrained */
body.hayashi-creative-group .hayashi-single-hero{
    position:relative;
    overflow:hidden;
    display:grid !important;
    grid-template-columns:minmax(260px,420px) minmax(0,1fr) !important;
    gap:0 !important;
    margin:22px 0 18px !important;
    padding:0 !important;
    border-radius:20px !important;
    border:1px solid #e8ddcf !important;
    background:
      radial-gradient(circle at 82% 18%,rgba(213,177,122,.16),transparent 24%),
      linear-gradient(135deg,#fffdf7 0%,#f7f3ea 100%) !important;
    box-shadow:0 14px 40px rgba(76,42,28,.10) !important;
}
body.hayashi-creative-group .hayashi-single-hero::after{
    content:"";
    position:absolute;
    right:-78px;
    bottom:-112px;
    width:280px;
    height:280px;
    border:1px solid rgba(122,15,15,.10);
    border-radius:50%;
    pointer-events:none;
}
body.hayashi-creative-group .hayashi-single-hero > img{
    width:100% !important;
    height:100% !important;
    min-height:300px !important;
    max-height:440px !important;
    object-fit:cover !important;
    margin:0 !important;
    border-radius:0 !important;
}
body.hayashi-creative-group .hayashi-single-hero > div{
    position:relative;
    z-index:1;
    align-self:center;
    padding:34px 38px !important;
}
body.hayashi-creative-group .hayashi-hero-eyebrow{
    display:inline-block;
    margin:0 0 10px !important;
    padding:5px 10px;
    border:1px solid rgba(122,15,15,.16);
    border-radius:999px;
    background:#fffaf3;
    color:#7a0f0f !important;
    font-size:11px !important;
    font-weight:900 !important;
    letter-spacing:.12em;
}
body.hayashi-creative-group .hayashi-single-hero h1{
    margin:0 0 18px !important;
    color:#2d2926 !important;
    font-size:clamp(30px,3.2vw,46px) !important;
    line-height:1.25 !important;
    letter-spacing:.02em;
}
body.hayashi-creative-group .hayashi-hero-summary{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px 12px !important;
    margin:0 0 18px !important;
}
body.hayashi-creative-group .hayashi-hero-summary > div{
    min-width:150px;
    padding:9px 12px !important;
    border:1px solid #e9dfd2 !important;
    border-radius:10px;
    background:rgba(255,255,255,.72);
}
body.hayashi-creative-group .hayashi-hero-summary dt{
    margin:0 0 2px !important;
    color:#7c7166 !important;
    font-size:10px !important;
    font-weight:800 !important;
}
body.hayashi-creative-group .hayashi-hero-summary dd{
    margin:0 !important;
    color:#342d28 !important;
    font-weight:800;
}
body.hayashi-creative-group .hayashi-single-hero .hayashi-button{
    border-radius:999px !important;
}

/* Section nav behaves like a visual chapter strip */
body.hayashi-creative-group .hayashi-section-nav{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:7px !important;
    margin:0 0 22px !important;
    padding:10px 0 2px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}
body.hayashi-creative-group .hayashi-section-nav a{
    padding:7px 12px !important;
    border:1px solid #dfd2c2 !important;
    border-radius:999px !important;
    background:#fffdf7 !important;
    color:#6a1717 !important;
    font-size:12px !important;
    font-weight:800 !important;
    text-decoration:none !important;
}
body.hayashi-creative-group .hayashi-section-nav a:hover{
    background:#7a0f0f !important;
    border-color:#7a0f0f !important;
    color:#fff !important;
}

/* Restore a balanced 2-column upper layout */
body.hayashi-creative-group .hayashi-group-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 340px !important;
    gap:24px !important;
    align-items:start !important;
}
body.hayashi-creative-group .hayashi-group-main{
    display:block !important;
    min-width:0 !important;
}
body.hayashi-creative-group .hayashi-group-side{
    position:sticky !important;
    top:96px !important;
    width:auto !important;
    margin:0 !important;
    padding:18px !important;
    border:1px solid #e7dccf !important;
    border-radius:16px !important;
    background:#fffdf7 !important;
    box-shadow:0 8px 24px rgba(74,42,28,.07) !important;
}

/* Panels get editorial rhythm, not dashboard-box styling */
body.hayashi-creative-group .hayashi-panel{
    margin:0 0 20px !important;
    padding:26px 28px !important;
    border:1px solid #ece2d6 !important;
    border-radius:16px !important;
    background:
      linear-gradient(180deg,#fff 0%,#fffdf9 100%) !important;
    box-shadow:0 6px 20px rgba(74,42,28,.055) !important;
}
body.hayashi-creative-group .hayashi-panel > h2{
    position:relative;
    margin:0 0 18px !important;
    padding:0 0 12px 18px !important;
    border:0 !important;
    color:#5a0a0a !important;
    font-size:21px !important;
    line-height:1.4 !important;
}
body.hayashi-creative-group .hayashi-panel > h2::before{
    content:"";
    position:absolute;
    left:0;
    top:.22em;
    width:6px;
    height:1.15em;
    border-radius:999px;
    background:linear-gradient(#7a0f0f,#d5b17a);
}
body.hayashi-creative-group .hayashi-panel > h2::after{
    content:"";
    position:absolute;
    left:18px;
    right:0;
    bottom:0;
    height:1px;
    background:linear-gradient(90deg,#d9c6af,transparent);
}
body.hayashi-creative-group .hayashi-panel p{
    line-height:1.92 !important;
}

/* Sidebar */
body.hayashi-creative-group .hayashi-group-side > h2{
    margin:0 0 14px !important;
    color:#5a0a0a !important;
    font-size:18px !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-info-group{
    margin:0 0 15px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-info-group h3{
    margin:0 0 8px !important;
    padding:7px 10px !important;
    border-radius:8px;
    background:#f5efe4 !important;
    color:#6a1717 !important;
    font-size:12px !important;
    font-weight:900 !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-info-list > div{
    grid-template-columns:90px minmax(0,1fr) !important;
    gap:9px !important;
    padding:8px 2px !important;
}

/* Lower content gets a wide visual stage */
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3){
    width:calc(100vw - 34px) !important;
    max-width:1520px !important;
    margin-left:50% !important;
    transform:translateX(-50%) !important;
}
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3) .hayashi-related-cards,
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3) .hayashi-video-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
}
body.hayashi-creative-group .hayashi-related-card{
    overflow:hidden;
    border-radius:14px !important;
    border:1px solid #eadfd3 !important;
    background:#fff !important;
    box-shadow:0 5px 16px rgba(74,42,28,.05) !important;
}
body.hayashi-creative-group .hayashi-related-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(74,42,28,.11) !important;
}

/* Responsive group detail */
@media (max-width:980px){
    body.hayashi-creative-group .hayashi-single-hero{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group .hayashi-single-hero > img{
        max-height:360px !important;
    }
    body.hayashi-creative-group .hayashi-group-layout{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group .hayashi-group-side{
        position:static !important;
    }
    body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3){
        width:100% !important;
        margin-left:0 !important;
        transform:none !important;
    }
}
@media (max-width:720px){
    body.hayashi-creative-group #main > .container{
        width:calc(100% - 20px) !important;
    }
    body.hayashi-creative-group .hayashi-single-hero > div{
        padding:24px 20px !important;
    }
    body.hayashi-creative-group .hayashi-panel{
        padding:20px 18px !important;
    }
    body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3) .hayashi-related-cards,
    body.hayashi-creative-group .hayashi-group-main > .hayashi-panel:nth-of-type(n+3) .hayashi-video-grid{
        grid-template-columns:1fr !important;
    }
}

/* ==========================================================
   Footer is a standalone component everywhere
   ========================================================== */
.hayashi-site-footer{
    width:100% !important;
    max-width:none !important;
    margin:44px 0 0 !important;
    background:#5a0a0a !important;
    color:#fffdf7 !important;
    border-top:3px solid #d5b17a !important;
}
.hayashi-site-footer *{
    box-sizing:border-box;
}
.hayashi-site-footer__inner{
    width:min(1500px,calc(100% - 40px)) !important;
    max-width:1500px !important;
    margin:0 auto !important;
    padding:34px 0 28px !important;
    display:grid !important;
    grid-template-columns:minmax(260px,1.1fr) minmax(0,2fr) !important;
    gap:46px !important;
}
.hayashi-site-footer__brand{
    display:flex !important;
    align-items:flex-start !important;
    gap:14px !important;
}
.hayashi-site-footer__mark{
    flex:0 0 48px !important;
    width:48px !important;
    height:48px !important;
    display:grid !important;
    place-items:center !important;
    border:1px solid #d5b17a !important;
    border-radius:10px !important;
    background:#fffdf7 !important;
    color:#7a0f0f !important;
    font-size:26px !important;
}
.hayashi-site-footer__name{
    margin:0 0 6px !important;
    color:#fff !important;
    font-size:27px !important;
    font-weight:800 !important;
    letter-spacing:.08em !important;
}
.hayashi-site-footer__brand p{
    margin:0 !important;
    color:#efe5d7 !important;
    font-size:13px !important;
    line-height:1.7 !important;
}
.hayashi-site-footer__nav{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:28px !important;
}
.hayashi-site-footer__group h2{
    margin:0 0 11px !important;
    padding:0 0 7px !important;
    border:0 !important;
    border-bottom:1px solid rgba(240,201,141,.35) !important;
    color:#f0c98d !important;
    font-size:13px !important;
    letter-spacing:.08em !important;
}
.hayashi-site-footer__group ul{
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}
.hayashi-site-footer__group li{
    margin:7px 0 !important;
}
#top .hayashi-site-footer a,
#top .hayashi-site-footer a:visited,
.hayashi-site-footer a,
.hayashi-site-footer a:visited{
    color:#fffdf7 !important;
    text-decoration:none !important;
    opacity:1 !important;
}
#top .hayashi-site-footer a:hover,
#top .hayashi-site-footer a:focus,
.hayashi-site-footer a:hover,
.hayashi-site-footer a:focus{
    color:#f0c98d !important;
    text-decoration:underline !important;
    text-underline-offset:4px !important;
}
.hayashi-site-footer__bottom{
    padding:12px 20px !important;
    border-top:1px solid rgba(213,177,122,.22) !important;
    background:#120909 !important;
    color:#e4d9cc !important;
    text-align:center !important;
    font-size:11px !important;
}

/* Remove Enfold textblock/container constraints when the shortcode footer is inserted */
.avia_textblock:has(> .hayashi-site-footer),
.entry-content-wrapper:has(.hayashi-site-footer),
.av-section-cont-open:has(.hayashi-site-footer),
.av-section-cont-open:has(.hayashi-site-footer) > .container,
.av-section-cont-open:has(.hayashi-site-footer) .content{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-bottom:0 !important;
}
.avia_textblock:has(> .hayashi-site-footer){
    margin-bottom:0 !important;
}

/* Blog + standard pages: footer is full bleed */
body.single-post .hayashi-site-footer,
body.page .hayashi-site-footer,
body.single .hayashi-site-footer{
    width:100vw !important;
    margin-left:50% !important;
    transform:translateX(-50%) !important;
}

@media (max-width:767px){
    .hayashi-site-footer__inner{
        width:calc(100% - 28px) !important;
        grid-template-columns:1fr !important;
        gap:28px !important;
        padding:30px 0 24px !important;
    }
    .hayashi-site-footer__nav{
        grid-template-columns:1fr 1fr !important;
    }
}
@media (max-width:480px){
    .hayashi-site-footer__nav{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   v1.5.209 — group detail master design
   Kamihirano-style information-rich pages are the baseline.
   ========================================================== */

/* Main readable stage */
body.hayashi-creative-group .hayashi-group-layout{
    grid-template-columns:minmax(0,1fr) 330px !important;
    gap:30px !important;
}
body.hayashi-creative-group .hayashi-group-main{
    min-width:0;
}

/* Intro/history are editorial reading sections, not dashboard cards */
body.hayashi-creative-group #hayashi-body,
body.hayashi-creative-group #hayashi-history{
    position:relative;
    padding:30px 34px 32px !important;
    background:#fffdf9 !important;
}
body.hayashi-creative-group #hayashi-body::before,
body.hayashi-creative-group #hayashi-history::before{
    content:"";
    position:absolute;
    left:0;
    top:28px;
    bottom:28px;
    width:3px;
    border-radius:4px;
    background:linear-gradient(180deg,#7a0f0f,#d5b17a);
}
body.hayashi-creative-group #hayashi-body p,
body.hayashi-creative-group #hayashi-history p{
    max-width:980px;
    font-size:15.5px;
    line-height:2.05 !important;
}

/* Database facts feel like a compact archive catalogue */
body.hayashi-creative-group .hayashi-group-side{
    padding:20px !important;
}
body.hayashi-creative-group .hayashi-group-side::before{
    content:"ARCHIVE DATA";
    display:block;
    margin:0 0 13px;
    color:#a78962;
    font-size:9px;
    font-weight:900;
    letter-spacing:.18em;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-map-embed{
    margin-top:12px;
    border-radius:11px;
    overflow:hidden;
}

/* From the related-content area onward, break out of the upper two-column layout. */
body.hayashi-creative-group #hayashi-occurrences,
body.hayashi-creative-group #hayashi-relations,
body.hayashi-creative-group #hayashi-videos,
body.hayashi-creative-group #hayashi-events,
body.hayashi-creative-group #hayashi-related,
body.hayashi-creative-group #hayashi-articles,
body.hayashi-creative-group #hayashi-source{
    width:min(1520px,calc(100vw - 34px)) !important;
    max-width:1520px !important;
    margin-left:50% !important;
    transform:translateX(-50%) !important;
}

/* Full-width lower section headings */
body.hayashi-creative-group #hayashi-occurrences > h2,
body.hayashi-creative-group #hayashi-relations > h2,
body.hayashi-creative-group #hayashi-videos > h2,
body.hayashi-creative-group #hayashi-events > h2,
body.hayashi-creative-group #hayashi-related > h2,
body.hayashi-creative-group #hayashi-articles > h2,
body.hayashi-creative-group #hayashi-source > h2{
    font-size:22px !important;
}

/* Rich related-data grids */
body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
body.hayashi-creative-group #hayashi-related .hayashi-related-cards,
body.hayashi-creative-group #hayashi-articles .hayashi-related-cards{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:17px !important;
}
body.hayashi-creative-group #hayashi-videos .hayashi-video-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
}

/* Related cards: photographic archive tile */
body.hayashi-creative-group .hayashi-related-card{
    position:relative;
    transition:transform .18s ease,box-shadow .18s ease;
}
body.hayashi-creative-group .hayashi-related-card:hover{
    transform:translateY(-3px);
}
body.hayashi-creative-group .hayashi-related-card img{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
}

/* Source area is visually quieter */
body.hayashi-creative-group #hayashi-source{
    background:#f8f3eb !important;
    border-style:dashed !important;
    box-shadow:none !important;
}
body.hayashi-creative-group #hayashi-source p,
body.hayashi-creative-group #hayashi-source li{
    color:#675e55 !important;
    font-size:13px;
    line-height:1.75;
    overflow-wrap:anywhere;
}

/* Give long history text a little more typographic hierarchy */
body.hayashi-creative-group #hayashi-history h3,
body.hayashi-creative-group #hayashi-body h3{
    margin:30px 0 13px;
    color:#4a3027 !important;
    font-size:18px;
}
body.hayashi-creative-group #hayashi-history blockquote,
body.hayashi-creative-group #hayashi-body blockquote{
    margin:24px 0;
    padding:16px 20px;
    border-left:3px solid #d5b17a;
    background:#faf5ec;
    color:#544b43;
}

/* Responsive */
@media (max-width:1180px){
    body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-related .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-articles .hayashi-related-cards{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media (max-width:980px){
    body.hayashi-creative-group #hayashi-occurrences,
    body.hayashi-creative-group #hayashi-relations,
    body.hayashi-creative-group #hayashi-videos,
    body.hayashi-creative-group #hayashi-events,
    body.hayashi-creative-group #hayashi-related,
    body.hayashi-creative-group #hayashi-articles,
    body.hayashi-creative-group #hayashi-source{
        width:100% !important;
        margin-left:0 !important;
        transform:none !important;
    }
}
@media (max-width:720px){
    body.hayashi-creative-group #hayashi-body,
    body.hayashi-creative-group #hayashi-history{
        padding:22px 19px 24px !important;
    }
    body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-related .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-articles .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-videos .hayashi-video-grid{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   v1.5.210 — actual-data responsive group detail layout
   ========================================================== */

body.hayashi-creative-group .hayashi-group-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 340px !important;
    gap:22px 28px !important;
    align-items:start !important;
}

/* Let each real content section participate in the grid directly. */
body.hayashi-creative-group .hayashi-group-main{
    display:contents !important;
}

/* Registration information always occupies the upper-right archive rail. */
body.hayashi-creative-group .hayashi-group-side{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    position:sticky !important;
    top:96px !important;
    align-self:start !important;
}

/* Editorial body/history occupy the upper-left when available. */
body.hayashi-creative-group #hayashi-body,
body.hayashi-creative-group #hayashi-history{
    grid-column:1 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
}

/* If editorial text exists, performance and relation data begin below the two-column intro. */
body.hayashi-creative-group .hayashi-group-layout:has(#hayashi-body) #hayashi-occurrences,
body.hayashi-creative-group .hayashi-group-layout:has(#hayashi-history) #hayashi-occurrences,
body.hayashi-creative-group .hayashi-group-layout:has(#hayashi-body) #hayashi-relations,
body.hayashi-creative-group .hayashi-group-layout:has(#hayashi-history) #hayashi-relations{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
}

/* When body/history are empty (as on 上平野囃子連), use the upper-left space efficiently. */
body.hayashi-creative-group .hayashi-group-layout:not(:has(#hayashi-body)):not(:has(#hayashi-history)) #hayashi-occurrences{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
}
body.hayashi-creative-group .hayashi-group-layout:not(:has(#hayashi-body)):not(:has(#hayashi-history)) #hayashi-relations{
    grid-column:1 !important;
    grid-row:2 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
}

/* Everything after the upper information stage is genuinely full width. */
body.hayashi-creative-group #hayashi-videos,
body.hayashi-creative-group #hayashi-related-videos,
body.hayashi-creative-group #hayashi-events,
body.hayashi-creative-group #hayashi-related,
body.hayashi-creative-group #hayashi-articles,
body.hayashi-creative-group #hayashi-sources,
body.hayashi-creative-group #hayashi-source{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
}

/* Wide sections use the whole canvas instead of looking like a narrow text column. */
body.hayashi-creative-group #hayashi-events,
body.hayashi-creative-group #hayashi-related,
body.hayashi-creative-group #hayashi-videos,
body.hayashi-creative-group #hayashi-related-videos,
body.hayashi-creative-group #hayashi-articles,
body.hayashi-creative-group #hayashi-sources,
body.hayashi-creative-group #hayashi-source{
    padding:28px 30px !important;
}

/* Schedule list: clearer columns for information-heavy groups */
body.hayashi-creative-group .hayashi-group-occurrence-list li{
    display:grid !important;
    grid-template-columns:150px minmax(220px,1.25fr) minmax(150px,.8fr) auto !important;
    gap:10px 16px !important;
    align-items:center !important;
    padding:12px 6px !important;
    border-bottom:1px solid #eee4d8 !important;
}
body.hayashi-creative-group .hayashi-group-occurrence-list time{
    color:#7a0f0f !important;
    font-weight:800 !important;
    font-variant-numeric:tabular-nums;
}
body.hayashi-creative-group .hayashi-group-occurrence-list em{
    justify-self:end;
    padding:4px 8px;
    border-radius:999px;
    background:#f5efe4;
    color:#6a1717;
    font-size:11px;
    font-style:normal;
    font-weight:800;
}

/* Relation blocks become visual archive cards. */
body.hayashi-creative-group .hayashi-relation-group{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
body.hayashi-creative-group .hayashi-relation-group > h3{
    grid-column:1 / -1;
    margin:4px 0 2px !important;
}
body.hayashi-creative-group .hayashi-relation{
    display:grid !important;
    grid-template-columns:72px minmax(0,1fr) !important;
    gap:13px !important;
    align-items:center;
    padding:13px !important;
    border:1px solid #e8ddcf !important;
    border-radius:12px !important;
    background:#fff !important;
    text-decoration:none !important;
}
body.hayashi-creative-group .hayashi-relation-no-image{
    grid-template-columns:1fr !important;
}
body.hayashi-creative-group .hayashi-relation img{
    width:72px !important;
    height:72px !important;
    object-fit:cover;
    border-radius:9px;
}

/* Hide truly empty panels/wrappers so they don't create blank chapter headings. */
body.hayashi-creative-group .hayashi-panel:not(:has(h2)):not(:has(h3)):not(:has(p)):not(:has(a)):not(:has(img)),
body.hayashi-creative-group #hayashi-related-videos:empty,
body.hayashi-creative-group #hayashi-articles:empty,
body.hayashi-creative-group #hayashi-sources:empty{
    display:none !important;
}

/* Related-data grids */
body.hayashi-creative-group #hayashi-events .hayashi-related-cards{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
body.hayashi-creative-group #hayashi-related .hayashi-related-list{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}
body.hayashi-creative-group #hayashi-videos .hayashi-video-grid,
body.hayashi-creative-group #hayashi-related-videos .hayashi-video-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

/* Registration rail: a little calmer and more compact */
body.hayashi-creative-group .hayashi-group-side{
    padding:18px !important;
    border-radius:15px !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-info-group{
    margin-bottom:13px !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-info-list > div{
    grid-template-columns:86px minmax(0,1fr) !important;
    gap:8px !important;
}
body.hayashi-creative-group .hayashi-group-side .hayashi-map-embed iframe{
    min-height:235px !important;
}

/* Responsive */
@media (max-width:1100px){
    body.hayashi-creative-group .hayashi-group-layout{
        grid-template-columns:minmax(0,1fr) 300px !important;
    }
    body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-videos .hayashi-video-grid,
    body.hayashi-creative-group #hayashi-related-videos .hayashi-video-grid{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    body.hayashi-creative-group #hayashi-related .hayashi-related-list{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
}
@media (max-width:900px){
    body.hayashi-creative-group .hayashi-group-layout{
        display:block !important;
    }
    body.hayashi-creative-group .hayashi-group-main{
        display:block !important;
    }
    body.hayashi-creative-group .hayashi-group-side{
        position:static !important;
        width:100% !important;
        margin:0 0 18px !important;
    }
    body.hayashi-creative-group #hayashi-body,
    body.hayashi-creative-group #hayashi-history,
    body.hayashi-creative-group #hayashi-occurrences,
    body.hayashi-creative-group #hayashi-relations,
    body.hayashi-creative-group #hayashi-videos,
    body.hayashi-creative-group #hayashi-related-videos,
    body.hayashi-creative-group #hayashi-events,
    body.hayashi-creative-group #hayashi-related,
    body.hayashi-creative-group #hayashi-articles,
    body.hayashi-creative-group #hayashi-sources,
    body.hayashi-creative-group #hayashi-source{
        width:100% !important;
        margin:0 0 18px !important;
        transform:none !important;
    }
}
@media (max-width:680px){
    body.hayashi-creative-group .hayashi-group-occurrence-list li{
        grid-template-columns:1fr !important;
        gap:4px !important;
    }
    body.hayashi-creative-group .hayashi-group-occurrence-list em{
        justify-self:start;
    }
    body.hayashi-creative-group .hayashi-relation-group{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-related .hayashi-related-list,
    body.hayashi-creative-group #hayashi-videos .hayashi-video-grid,
    body.hayashi-creative-group #hayashi-related-videos .hayashi-video-grid{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   v1.5.211 — stable group-detail structure
   Profile / primary archive data / full-width related archive
   ========================================================== */

/* Stop previous display:contents experiments from flattening the document. */
body.hayashi-creative-group .hayashi-group-layout-v2{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 340px !important;
    grid-template-areas:"primary rail" !important;
    gap:28px !important;
    align-items:start !important;
}
body.hayashi-creative-group .hayashi-group-primary{
    display:block !important;
    grid-area:primary !important;
    min-width:0 !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail{
    grid-area:rail !important;
    position:sticky !important;
    top:96px !important;
    align-self:start !important;
}

/* Main content follows one visual rhythm. */
body.hayashi-creative-group .hayashi-group-primary > .hayashi-panel{
    width:100% !important;
    max-width:none !important;
    margin:0 0 20px !important;
    transform:none !important;
}

/* Body/history read like cultural documentation. */
body.hayashi-creative-group .hayashi-group-primary > #hayashi-body,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-history{
    padding:30px 34px !important;
}
body.hayashi-creative-group .hayashi-group-primary > #hayashi-body p,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-history p{
    max-width:none !important;
}

/* Occurrences and lineage are prominent primary information. */
body.hayashi-creative-group #hayashi-occurrences,
body.hayashi-creative-group #hayashi-relations{
    background:
      linear-gradient(180deg,#fff 0%,#fffdf8 100%) !important;
}
body.hayashi-creative-group #hayashi-occurrences > h2,
body.hayashi-creative-group #hayashi-relations > h2{
    font-size:22px !important;
}

/* Archive rail: registration data + map */
body.hayashi-creative-group .hayashi-group-archive-rail{
    padding:20px !important;
    border:1px solid #e4d7c7 !important;
    border-radius:17px !important;
    background:
      radial-gradient(circle at 100% 0,rgba(213,177,122,.13),transparent 25%),
      #fffdf7 !important;
    box-shadow:0 9px 28px rgba(74,42,28,.075) !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail > h2{
    margin:0 0 14px !important;
    padding:0 0 11px !important;
    border-bottom:1px solid #e5d9ca !important;
    color:#5a0a0a !important;
    font-size:18px !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail > h2::before{
    content:"DATABASE";
    display:block;
    margin-bottom:4px;
    color:#b18d61;
    font-size:8px;
    font-weight:900;
    letter-spacing:.19em;
}
body.hayashi-creative-group .hayashi-group-archive-rail .hayashi-info-group{
    margin:0 0 16px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail .hayashi-info-group h3{
    margin:0 0 7px !important;
    padding:6px 9px !important;
    border-radius:7px !important;
    background:#f5efe4 !important;
    color:#6a1717 !important;
    font-size:11px !important;
    letter-spacing:.03em;
}
body.hayashi-creative-group .hayashi-group-archive-rail .hayashi-info-list > div{
    display:grid !important;
    grid-template-columns:88px minmax(0,1fr) !important;
    gap:9px !important;
    padding:8px 2px !important;
    border-bottom:1px solid #eee5d9 !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail .hayashi-map-embed{
    margin-top:12px !important;
    border-radius:12px !important;
    overflow:hidden !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail .hayashi-map-embed iframe{
    min-height:245px !important;
}

/*
 * Full-width related archive:
 * the panels stay inside primary in the markup, but visually break out below
 * the upper two-column stage without using display:contents.
 */
body.hayashi-creative-group .hayashi-group-primary > #hayashi-events,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-videos,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related-videos,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-articles,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-sources,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-source{
    width:min(1520px,calc(100vw - 34px)) !important;
    max-width:1520px !important;
    margin-left:0 !important;
    transform:none !important;
}

/* Empty sections should disappear completely if the template emitted no payload. */
body.hayashi-creative-group .hayashi-panel:has(> h2:only-child),
body.hayashi-creative-group .hayashi-panel:has(> h3:only-child){
    display:none !important;
}

/* Full archive grids */
body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
body.hayashi-creative-group #hayashi-related .hayashi-related-cards,
body.hayashi-creative-group #hayashi-articles .hayashi-related-cards{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
}
body.hayashi-creative-group #hayashi-videos .hayashi-video-grid,
body.hayashi-creative-group #hayashi-related-videos .hayashi-video-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
}

/* Mobile/tablet */
@media (max-width:980px){
    body.hayashi-creative-group .hayashi-group-layout-v2{
        display:flex !important;
        flex-direction:column !important;
    }
    body.hayashi-creative-group .hayashi-group-archive-rail{
        position:static !important;
        width:100% !important;
        order:-1;
    }
    body.hayashi-creative-group .hayashi-group-primary{
        width:100% !important;
    }
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-events,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-related,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-videos,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-related-videos,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-articles,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-sources,
    body.hayashi-creative-group .hayashi-group-primary > #hayashi-source{
        width:100% !important;
    }
}
@media (max-width:700px){
    body.hayashi-creative-group #hayashi-events .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-related .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-articles .hayashi-related-cards,
    body.hayashi-creative-group #hayashi-videos .hayashi-video-grid,
    body.hayashi-creative-group #hayashi-related-videos .hayashi-video-grid{
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   v1.5.212 — final group detail cleanup
   Clear upper two-column composition + hide empty related areas.
   ========================================================== */

/* Make the upper composition unmistakable. */
body.hayashi-creative-group .hayashi-group-layout-v2{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 350px !important;
    grid-template-areas:"primary rail" !important;
    column-gap:30px !important;
    align-items:start !important;
}
body.hayashi-creative-group .hayashi-group-primary{
    grid-area:primary !important;
    min-width:0 !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail{
    grid-area:rail !important;
    position:sticky !important;
    top:92px !important;
    z-index:4;
}

/* Give the archive rail a distinct visual identity. */
body.hayashi-creative-group .hayashi-group-archive-rail{
    border-top:4px solid #7a0f0f !important;
}
body.hayashi-creative-group .hayashi-group-archive-rail::after{
    content:"";
    display:block;
    height:1px;
    margin-top:16px;
    background:linear-gradient(90deg,transparent,#d5b17a,transparent);
}

/* Left-side primary blocks stay clean and readable. */
body.hayashi-creative-group .hayashi-group-primary > #hayashi-occurrences,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-relations,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-body,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-history{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
}

/* Hide common empty states completely. */
body.hayashi-creative-group .hayashi-panel:has(> h2 + p:only-of-type:empty),
body.hayashi-creative-group .hayashi-panel:has(> h2 + ul:empty),
body.hayashi-creative-group .hayashi-panel:has(> h2 + div:empty),
body.hayashi-creative-group .hayashi-panel:has(> h2 + .hayashi-related-cards:empty),
body.hayashi-creative-group .hayashi-panel:has(> h2 + .hayashi-related-list:empty),
body.hayashi-creative-group .hayashi-panel:has(> h2 + .hayashi-video-grid:empty){
    display:none !important;
}

/* Full-width lower archive has a clear chapter break. */
body.hayashi-creative-group .hayashi-group-primary > #hayashi-events:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-videos:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related-videos:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-articles:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-sources:not(:empty),
body.hayashi-creative-group .hayashi-group-primary > #hayashi-source:not(:empty){
    position:relative;
    margin-top:28px !important;
    padding-top:30px !important;
}
body.hayashi-creative-group .hayashi-group-primary > #hayashi-events:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-videos:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-related-videos:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-articles:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-sources:not(:empty)::before,
body.hayashi-creative-group .hayashi-group-primary > #hayashi-source:not(:empty)::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:1px;
    background:linear-gradient(90deg,#7a0f0f 0,#d5b17a 16%,#e8dfd2 45%,transparent 100%);
}

/* Tablet/mobile: archive data moves naturally above content. */
@media (max-width:980px){
    body.hayashi-creative-group .hayashi-group-layout-v2{
        display:flex !important;
        flex-direction:column !important;
        gap:18px !important;
    }
    body.hayashi-creative-group .hayashi-group-archive-rail{
        position:static !important;
        order:-1 !important;
        width:100% !important;
    }
}


/* ==========================================================
   v1.5.215 — group detail layout reset
   One width system, one column system, one footer system.
   ========================================================== */

:root{
    --hy-page-max:1480px;
    --hy-page-gutter:24px;
    --hy-rail:330px;
    --hy-gap:28px;
}

/* ---------- PAGE WIDTH RESET ---------- */
body.hayashi-creative-group #main,
body.hayashi-creative-group #main > .container,
body.hayashi-creative-group #main > .container > .content,
body.hayashi-creative-group #main .template-page.content,
body.hayashi-creative-group .post-entry,
body.hayashi-creative-group .entry-content-wrapper{
    width:100% !important;
    max-width:none !important;
    float:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    border:0 !important;
}
body.hayashi-creative-group #main > .container{
    padding-top:0 !important;
}
body.hayashi-creative-group #main .sidebar{
    display:none !important;
}

/* All visible group content shares this single width. */
body.hayashi-creative-group .hayashi-single-hero,
body.hayashi-creative-group .hayashi-section-nav,
body.hayashi-creative-group .hayashi-group-layout,
body.hayashi-creative-group .hayashi-group-detail-page,
body.hayashi-creative-group article > .hayashi-single-hero,
body.hayashi-creative-group article > .hayashi-section-nav,
body.hayashi-creative-group article > .hayashi-group-layout{
    width:min(var(--hy-page-max),calc(100% - (var(--hy-page-gutter) * 2))) !important;
    max-width:var(--hy-page-max) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

/* ---------- HERO ---------- */
body.hayashi-creative-group .hayashi-single-hero{
    display:grid !important;
    grid-template-columns:minmax(300px,420px) minmax(0,1fr) !important;
    gap:0 !important;
    margin-top:24px !important;
    margin-bottom:18px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #e4d8ca !important;
    border-radius:18px !important;
    background:#fffdf7 !important;
    box-shadow:0 10px 28px rgba(74,42,28,.08) !important;
}
body.hayashi-creative-group .hayashi-single-hero > img{
    width:100% !important;
    height:100% !important;
    min-height:300px !important;
    max-height:420px !important;
    object-fit:cover !important;
    margin:0 !important;
    border-radius:0 !important;
}
body.hayashi-creative-group .hayashi-single-hero > div{
    padding:32px 36px !important;
    align-self:center !important;
}
body.hayashi-creative-group .hayashi-single-hero h1{
    margin:0 0 16px !important;
    color:#2d2926 !important;
    font-size:clamp(30px,3vw,44px) !important;
    line-height:1.28 !important;
}
body.hayashi-creative-group .hayashi-hero-summary{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px 16px !important;
}
body.hayashi-creative-group .hayashi-hero-summary > div{
    padding:9px 11px !important;
    border:1px solid #eadfd2 !important;
    border-radius:9px !important;
    background:#faf6ef !important;
}

/* ---------- SECTION NAV ---------- */
body.hayashi-creative-group .hayashi-section-nav{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin-top:0 !important;
    margin-bottom:20px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}
body.hayashi-creative-group .hayashi-section-nav a{
    padding:7px 11px !important;
    border:1px solid #dfd2c2 !important;
    border-radius:999px !important;
    background:#fffdf7 !important;
    color:#6a1717 !important;
    font-size:12px !important;
    font-weight:800 !important;
}

/* ---------- TWO-COLUMN CORE ---------- */
body.hayashi-creative-group .hayashi-group-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) var(--hy-rail) !important;
    gap:var(--hy-gap) !important;
    align-items:start !important;
}
body.hayashi-creative-group .hayashi-group-main{
    display:block !important;
    min-width:0 !important;
}
body.hayashi-creative-group .hayashi-group-side,
body.hayashi-creative-group .hayashi-group-archive-rail{
    position:sticky !important;
    top:92px !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:18px !important;
    border:1px solid #e4d8ca !important;
    border-radius:15px !important;
    background:#fffdf7 !important;
    box-shadow:0 7px 22px rgba(74,42,28,.06) !important;
}

/* ---------- PANEL RESET ---------- */
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel{
    width:100% !important;
    max-width:none !important;
    margin:0 0 18px !important;
    padding:24px 26px !important;
    transform:none !important;
    border:1px solid #e9dfd3 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 4px 14px rgba(74,42,28,.045) !important;
    box-sizing:border-box !important;
}
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel > h2{
    position:relative !important;
    margin:0 0 17px !important;
    padding:0 0 10px 16px !important;
    border:0 !important;
    color:#5a0a0a !important;
    font-size:20px !important;
}
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel > h2::before{
    content:"";
    position:absolute;
    left:0;
    top:.18em;
    width:5px;
    height:1.2em;
    border-radius:4px;
    background:#7a0f0f;
}
body.hayashi-creative-group .hayashi-group-main > .hayashi-panel > h2::after{
    content:"";
    position:absolute;
    left:16px;
    right:0;
    bottom:0;
    height:1px;
    background:linear-gradient(90deg,#d5b17a,#eadfd2 55%,transparent);
}

/* ---------- LOWER SECTIONS STAY INSIDE SAME WIDTH ---------- */
/* Remove all prior breakout/full-viewport tricks. */
body.hayashi-creative-group #hayashi-occurrences,
body.hayashi-creative-group #hayashi-relations,
body.hayashi-creative-group #hayashi-videos,
body.hayashi-creative-group #hayashi-related-videos,
body.hayashi-creative-group #hayashi-events,
body.hayashi-creative-group #hayashi-related,
body.hayashi-creative-group #hayashi-articles,
body.hayashi-creative-group #hayashi-sources,
body.hayashi-creative-group #hayashi-source{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
}

/* Related grids */
body.hayashi-creative-group .hayashi-related-cards,
body.hayashi-creative-group .hayashi-video-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:14px !important;
}
body.hayashi-creative-group .hayashi-related-list{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
}

/* ---------- ARCHIVE RAIL ---------- */
body.hayashi-creative-group .hayashi-group-side > h2,
body.hayashi-creative-group .hayashi-group-archive-rail > h2{
    margin:0 0 12px !important;
    padding:0 0 9px !important;
    border-bottom:1px solid #e4d8ca !important;
    color:#5a0a0a !important;
    font-size:17px !important;
}
body.hayashi-creative-group .hayashi-info-group{
    margin:0 0 14px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
body.hayashi-creative-group .hayashi-info-group h3{
    margin:0 0 7px !important;
    padding:6px 9px !important;
    border-radius:7px !important;
    background:#f5efe4 !important;
    color:#6a1717 !important;
    font-size:11px !important;
}
body.hayashi-creative-group .hayashi-info-list > div{
    display:grid !important;
    grid-template-columns:86px minmax(0,1fr) !important;
    gap:8px !important;
    padding:8px 2px !important;
    border-bottom:1px solid #eee6db !important;
}
body.hayashi-creative-group .hayashi-map-embed{
    margin-top:10px !important;
    overflow:hidden !important;
    border-radius:10px !important;
}
body.hayashi-creative-group .hayashi-map-embed iframe{
    min-height:230px !important;
}

/* ---------- FOOTER RESET / UNIVERSAL ---------- */
.hayashi-site-footer{
    width:100% !important;
    max-width:none !important;
    margin:42px 0 0 !important;
    transform:none !important;
    background:#5a0a0a !important;
    color:#fffdf7 !important;
    border-top:3px solid #d5b17a !important;
}
.hayashi-site-footer__inner{
    width:min(var(--hy-page-max),calc(100% - (var(--hy-page-gutter) * 2))) !important;
    max-width:var(--hy-page-max) !important;
    margin:0 auto !important;
    padding:32px 0 26px !important;
    display:grid !important;
    grid-template-columns:minmax(260px,1fr) minmax(0,2fr) !important;
    gap:40px !important;
}
.hayashi-site-footer__nav{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:24px !important;
}
.hayashi-site-footer__bottom{
    width:100% !important;
    margin:0 !important;
    padding:11px 20px !important;
    background:#120909 !important;
    color:#e4d9cc !important;
    text-align:center !important;
}
#top .hayashi-site-footer a,
#top .hayashi-site-footer a:visited,
.hayashi-site-footer a,
.hayashi-site-footer a:visited{
    color:#fffdf7 !important;
}
#top .hayashi-site-footer a:hover,
#top .hayashi-site-footer a:focus,
.hayashi-site-footer a:hover,
.hayashi-site-footer a:focus{
    color:#f0c98d !important;
}

/* Remove previous full-viewport footer transforms everywhere. */
body.single-post .hayashi-site-footer,
body.page .hayashi-site-footer,
body.single .hayashi-site-footer{
    width:100% !important;
    margin-left:0 !important;
    transform:none !important;
}

/* Enfold wrappers around shortcode footer */
.av-section-cont-open:has(.hayashi-site-footer),
.av-section-cont-open:has(.hayashi-site-footer) > .container,
.av-section-cont-open:has(.hayashi-site-footer) .content,
.entry-content-wrapper:has(.hayashi-site-footer),
.avia_textblock:has(.hayashi-site-footer){
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-bottom:0 !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
    :root{
        --hy-page-gutter:14px;
    }
    body.hayashi-creative-group .hayashi-single-hero{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group .hayashi-single-hero > img{
        max-height:360px !important;
    }
    body.hayashi-creative-group .hayashi-group-layout{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group .hayashi-group-side,
    body.hayashi-creative-group .hayashi-group-archive-rail{
        position:static !important;
    }
    body.hayashi-creative-group .hayashi-related-cards,
    body.hayashi-creative-group .hayashi-video-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
    body.hayashi-creative-group .hayashi-related-list{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width:640px){
    body.hayashi-creative-group .hayashi-single-hero > div{
        padding:22px 18px !important;
    }
    body.hayashi-creative-group .hayashi-hero-summary{
        grid-template-columns:1fr !important;
    }
    body.hayashi-creative-group .hayashi-group-main > .hayashi-panel{
        padding:20px 17px !important;
    }
    body.hayashi-creative-group .hayashi-related-cards,
    body.hayashi-creative-group .hayashi-video-grid,
    body.hayashi-creative-group .hayashi-related-list{
        grid-template-columns:1fr !important;
    }
    .hayashi-site-footer__inner{
        grid-template-columns:1fr !important;
        gap:26px !important;
    }
    .hayashi-site-footer__nav{
        grid-template-columns:1fr !important;
    }
}

/* v1.5.216 width tuning */
body.hayashi-creative-group{--hy-page-max:1560px;--hy-page-gutter:28px;--hy-rail:360px;--hy-gap:30px}
body.hayashi-creative-group .hayashi-single-hero,
body.hayashi-creative-group .hayashi-section-nav,
body.hayashi-creative-group .hayashi-group-layout{
 width:min(1560px,calc(100% - 56px))!important;max-width:1560px!important;margin-left:auto!important;margin-right:auto!important
}
body.hayashi-creative-group .hayashi-group-layout{grid-template-columns:minmax(0,1fr) 360px!important;gap:30px!important}
body.hayashi-creative-group .hayashi-single-hero{grid-template-columns:minmax(320px,400px) minmax(0,1fr)!important}
body.hayashi-creative-group .hayashi-single-hero>div{padding:34px 40px!important}
body.hayashi-creative-group .hayashi-group-main>.hayashi-panel{padding:26px 30px!important}
body.hayashi-creative-group .hayashi-group-side,
body.hayashi-creative-group .hayashi-group-archive-rail{width:360px!important;box-sizing:border-box!important}
body.hayashi-creative-group .hayashi-info-list>div{grid-template-columns:96px minmax(0,1fr)!important}
body.hayashi-creative-group .hayashi-related-cards,
body.hayashi-creative-group .hayashi-related-list,
body.hayashi-creative-group .hayashi-video-grid{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
body.hayashi-creative-group .hayashi-site-footer__inner{width:min(1560px,calc(100% - 56px))!important;max-width:1560px!important}
@media(max-width:1180px){
 body.hayashi-creative-group .hayashi-single-hero,
 body.hayashi-creative-group .hayashi-section-nav,
 body.hayashi-creative-group .hayashi-group-layout,
 body.hayashi-creative-group .hayashi-site-footer__inner{width:calc(100% - 40px)!important}
 body.hayashi-creative-group .hayashi-group-layout{grid-template-columns:minmax(0,1fr) 320px!important;gap:24px!important}
 body.hayashi-creative-group .hayashi-group-side,
 body.hayashi-creative-group .hayashi-group-archive-rail{width:320px!important}
}
@media(max-width:980px){
 body.hayashi-creative-group .hayashi-single-hero,
 body.hayashi-creative-group .hayashi-section-nav,
 body.hayashi-creative-group .hayashi-group-layout,
 body.hayashi-creative-group .hayashi-site-footer__inner{width:calc(100% - 28px)!important}
 body.hayashi-creative-group .hayashi-group-side,
 body.hayashi-creative-group .hayashi-group-archive-rail{width:100%!important}
}

/* Dashi / cultural property database foundation */
#top .hayashi-dashi-archive,
#top .hayashi-property-archive,
body .hayashi-dashi-archive,
body .hayashi-property-archive{
 background:#F7F3EA!important;
 color:#3F3A34;
}

.hayashi-dashi-archive .hayashi-card-grid,
.hayashi-property-archive .hayashi-card-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
 gap:20px;
 width:min(1180px,calc(100% - 32px));
 margin:24px auto;
}

.hayashi-dashi-archive .hayashi-card,
.hayashi-property-archive .hayashi-card{
 display:flex;
 min-height:100%;
 border:1px solid #D8CCBA;
 border-top:4px solid #7A0F0F;
 border-radius:6px;
 background:#FFFDF7;
 box-shadow:0 8px 22px rgba(63,58,52,.06);
 transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.hayashi-dashi-archive .hayashi-card:hover,
.hayashi-property-archive .hayashi-card:hover{
 border-color:#C7B9A6;
 border-top-color:#5A0A0A;
 box-shadow:0 14px 30px rgba(63,58,52,.1);
 transform:translateY(-1px);
}

.hayashi-dashi-card .hayashi-card-link,
.hayashi-property-card .hayashi-card-link{
 display:flex;
 flex-direction:column;
 height:100%;
 width:100%;
 color:inherit;
 text-decoration:none;
}
.hayashi-card-thumb img,
.hayashi-single-thumb img{
 width:100%;
 height:auto;
 display:block;
 border-radius:4px;
}

.hayashi-dashi-card .hayashi-card-body,
.hayashi-property-card .hayashi-card-body{
 display:flex;
 flex:1;
 flex-direction:column;
 gap:12px;
 padding:18px;
}

.hayashi-dashi-card h2,
.hayashi-property-card h2{
 margin:0;
 color:#5A0F12;
 font-size:20px;
 line-height:1.45;
}

.hayashi-dashi-card .hayashi-card-excerpt,
.hayashi-property-card .hayashi-card-excerpt{
 margin:0;
 color:#3F3A34;
 line-height:1.75;
}

.hayashi-mini-list,
.hayashi-detail-list{
 display:grid;
 gap:10px;
 margin:14px 0 0;
}
.hayashi-mini-list div,
.hayashi-detail-list div{
 display:grid;
 grid-template-columns:92px minmax(0,1fr);
 gap:12px;
 border-top:1px solid rgba(122,15,15,.14);
 padding-top:10px;
}
.hayashi-mini-list dt,
.hayashi-detail-list dt{
 color:#7A0F0F;
 font-weight:700;
}
.hayashi-mini-list dd,
.hayashi-detail-list dd{
 margin:0;
 color:#3F3A34;
}
.hayashi-read-more{
 display:inline-block;
 margin-top:16px;
 color:#7A0F0F;
 font-weight:700;
}

.hayashi-dashi-card .hayashi-card-button,
.hayashi-property-card .hayashi-card-button{
 margin-top:auto;
 min-height:38px;
 border-radius:5px;
 color:#fff;
 text-decoration:none;
}

.hayashi-dashi-archive .hayashi-card-badges span,
.hayashi-property-archive .hayashi-card-badges span{
 border-radius:5px;
 background:#F5EFE4;
 color:#7A0F0F;
 border-color:#D8CCBA;
}
.hayashi-related-thumb{
 display:block;
 margin:0 0 12px;
}
.hayashi-related-thumb img{
 width:100%;
 height:auto;
 display:block;
 border-radius:6px;
}
.hayashi-dashi-archive .hayashi-filter-panel,
.hayashi-property-archive .hayashi-filter-panel{
  width:min(1180px,calc(100% - 32px));
  margin:18px auto;
  border:1px solid #D8CCBA;
  border-radius:6px;
  background:#FFFDF7;
  box-shadow:0 8px 22px rgba(63,58,52,.05);
}
.hayashi-dashi-archive .hayashi-result-count,
.hayashi-property-archive .hayashi-result-count{
  width:min(1180px,calc(100% - 32px));
  margin:12px auto 0;
  color:#7A0F0F;
  font-weight:700;
}
.hayashi-map-legend .is-dashi{background:#5A0F12}
.hayashi-map-legend .is-property{background:#6B5B2A}
#top .template-hayashi-map .hayashi-map-type-switch a.is-active,
body .template-hayashi-map .hayashi-map-type-switch a.is-active{
 background:#7A0F0F!important;
 color:#fff!important;
 border-color:#7A0F0F!important;
}
#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button{
 color:#fff!important;
 background:#7A0F0F!important;
 border-color:#7A0F0F!important;
}
#top .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary,
body .template-hayashi-map .hayashi-map-card-actions .hayashi-button-secondary{
 color:#7A0F0F!important;
 background:#FFFDF7!important;
 border-color:#D8CCBA!important;
}
.hayashi-related-list{
 display:grid;
 gap:8px;
 margin:10px 0 18px;
 padding-left:1.2em;
}
.hayashi-asset-layout{
 display:grid;
 grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);
 gap:24px;
 align-items:start;
}
.hayashi-asset-layout-rich{
 margin-top:24px;
}
.hayashi-asset-side-panel{
 position:sticky;
 top:24px;
}
.hayashi-asset-main-panel,
.hayashi-asset-side-panel,
.hayashi-asset-craft-panel,
.hayashi-asset-related-panel{
 border-top:4px solid #7A0F0F;
}
.hayashi-asset-craft-panel,
.hayashi-property-story-panel{
 margin-top:24px;
}
.hayashi-detail-list-rich{
 display:grid;
 grid-template-columns:1fr;
 gap:0;
}
.hayashi-detail-list-two{
 grid-template-columns:repeat(2,minmax(0,1fr));
 column-gap:28px;
}
.hayashi-detail-list-rich div{
 border-bottom:1px solid #E2D8C8;
 padding:14px 0;
}
.hayashi-detail-list-rich dt{
 color:#7A0F0F;
 font-weight:700;
}
.hayashi-detail-list-rich dd{
 color:#3F3A34;
 line-height:1.85;
}
.hayashi-detail-list-compact{
 grid-template-columns:1fr;
}
.hayashi-detail-list-compact div{
 padding:12px 0;
}
.hayashi-asset-side-panel .hayashi-map-embed{
 margin-top:16px;
 min-height:260px;
}
.hayashi-asset-related-panel>h3{
 color:#5A0F12;
 border-bottom:1px solid #D8CCBA;
 padding-bottom:8px;
 margin-top:26px;
}
.hayashi-related-unified-panel{
 margin-top:28px;
}
.hayashi-related-unified-panel>h2{
 margin-bottom:18px;
}
.hayashi-related-set{
 margin-top:22px;
}
.hayashi-related-set>h3{
 color:#5A0F12;
 border-left:4px solid #7A0F0F;
 border-bottom:1px solid #D8CCBA;
 padding:0 0 8px 12px;
 margin:0 0 14px;
 font-size:20px;
}
.hayashi-related-cards-unified{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px;
}
.hayashi-related-card-unified{
 background:#FFFDF7;
 border:1px solid #D8CCBA;
 border-radius:6px;
 overflow:hidden;
 box-shadow:0 8px 20px rgba(63,58,52,.045);
}
.hayashi-related-card-unified .hayashi-related-thumb{
 display:block;
 aspect-ratio:16/9;
 overflow:hidden;
 background:#F5EFE4;
}
.hayashi-related-card-unified .hayashi-related-thumb img{
 width:100%;
 height:100%;
 object-fit:cover;
 display:block;
}
.hayashi-related-card-body{
 padding:14px 15px 16px;
}
.hayashi-related-card-type{
 display:inline-flex;
 width:auto;
 margin:0 0 8px;
 padding:3px 8px;
 border:1px solid #D8CCBA;
 border-radius:4px;
 background:#F5EFE4;
 color:#7A0F0F;
 font-size:12px;
 font-weight:700;
}
.hayashi-related-card-unified h4{
 margin:0 0 8px;
 color:#5A0F12;
 font-size:18px;
 line-height:1.45;
}
.hayashi-related-card-unified h4 a{
 color:inherit;
 text-decoration:none;
}
.hayashi-related-card-unified p{
 margin:0 0 12px;
 color:#5B544B;
 line-height:1.75;
}
.hayashi-landing-count-icon-dashi,
.hayashi-landing-count-icon-property{
 background:#F5EFE4;
 color:#7A0F0F;
 border:1px solid rgba(255,255,255,.36);
}
@media(max-width:820px){
 .hayashi-asset-layout{
  grid-template-columns:1fr;
 }
 .hayashi-asset-side-panel{
  position:static;
 }
 .hayashi-detail-list-two,
 .hayashi-related-cards-unified{
  grid-template-columns:1fr;
 }
}
@media(max-width:640px){
 .hayashi-mini-list div,
 .hayashi-detail-list div{
  grid-template-columns:1fr;
  gap:4px;
 }
}

/* Festival / event detail: PR hero above, database sections below. */
#top .template-hayashi-event-single .hayashi-event-db-layout,
body .template-hayashi-event-single .hayashi-event-db-layout{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 360px!important;
 gap:28px!important;
 width:min(1180px,calc(100% - 32px))!important;
 margin:32px auto!important;
 align-items:start!important;
 padding:0!important;
 background:transparent!important;
}

#top .template-hayashi-event-single .hayashi-event-db-layout .hayashi-single-main,
body .template-hayashi-event-single .hayashi-event-db-layout .hayashi-single-main{
 display:grid;
 gap:18px;
 min-width:0;
}

#top .template-hayashi-event-single .hayashi-event-side,
body .template-hayashi-event-single .hayashi-event-side{
 position:sticky;
 top:24px;
 max-width:none!important;
 min-width:0;
}

#top .template-hayashi-event-single .hayashi-event-db-layout .hayashi-info-group,
body .template-hayashi-event-single .hayashi-event-db-layout .hayashi-info-group{
 border-color:#D8CCBA;
 border-radius:6px;
 background:#FFFDF7;
 box-shadow:0 8px 22px rgba(63,58,52,.055);
}

#top .template-hayashi-event-single .hayashi-event-db-layout .hayashi-info-group h2,
body .template-hayashi-event-single .hayashi-event-db-layout .hayashi-info-group h2,
#top .template-hayashi-event-single .hayashi-event-db-layout .hayashi-map-section h3,
body .template-hayashi-event-single .hayashi-event-db-layout .hayashi-map-section h3{
 margin:-16px -16px 16px!important;
 padding:12px 16px!important;
 border:0!important;
 border-left:4px solid #7A0F0F!important;
 border-radius:0!important;
 background:#F5EFE4!important;
 color:#5A0F12!important;
 font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif!important;
 font-size:19px!important;
 letter-spacing:0!important;
}

#top .template-hayashi-event-single .hayashi-event-section,
body .template-hayashi-event-single .hayashi-event-section{
 margin:0 calc(50% - 50vw)!important;
 padding:44px 0!important;
}

#top .template-hayashi-event-single .hayashi-event-related-section,
body .template-hayashi-event-single .hayashi-event-related-section{
 background:#FFFDF7;
 border-top:1px solid rgba(216,204,186,.8);
 border-bottom:1px solid rgba(216,204,186,.8);
}

#top .template-hayashi-event-single .hayashi-event-source-section,
body .template-hayashi-event-single .hayashi-event-source-section{
 background:#F5EFE4;
 border-top:1px solid rgba(216,204,186,.8);
}

#top .template-hayashi-event-single .hayashi-event-section-inner,
body .template-hayashi-event-single .hayashi-event-section-inner{
 display:grid;
 gap:22px;
 width:min(1180px,calc(100% - 32px));
 margin:0 auto;
}

#top .template-hayashi-event-single .hayashi-event-section .hayashi-info-group,
body .template-hayashi-event-single .hayashi-event-section .hayashi-info-group,
#top .template-hayashi-event-single .hayashi-event-section .hayashi-panel,
body .template-hayashi-event-single .hayashi-event-section .hayashi-panel{
 border:1px solid #D8CCBA;
 border-radius:6px;
 background:#FFFDF7;
 box-shadow:0 8px 22px rgba(63,58,52,.055);
}

#top .template-hayashi-event-single .hayashi-event-related-section .hayashi-panel,
body .template-hayashi-event-single .hayashi-event-related-section .hayashi-panel{
 background:#FFFFFF;
}

#top .template-hayashi-event-single .hayashi-event-source-section .hayashi-panel,
body .template-hayashi-event-single .hayashi-event-source-section .hayashi-panel,
#top .template-hayashi-event-single .hayashi-event-source-section .hayashi-info-group,
body .template-hayashi-event-single .hayashi-event-source-section .hayashi-info-group{
 background:#FFFDF7;
}

@media(max-width:980px){
 #top .template-hayashi-event-single .hayashi-event-db-layout,
 body .template-hayashi-event-single .hayashi-event-db-layout{
  grid-template-columns:1fr!important;
  width:min(100% - 24px,1180px)!important;
  margin:24px auto!important;
 }
 #top .template-hayashi-event-single .hayashi-event-side,
 body .template-hayashi-event-single .hayashi-event-side{
  position:static;
 }
 #top .template-hayashi-event-single .hayashi-event-section,
 body .template-hayashi-event-single .hayashi-event-section{
  padding:32px 0!important;
 }
 #top .template-hayashi-event-single .hayashi-event-section-inner,
 body .template-hayashi-event-single .hayashi-event-section-inner{
  width:min(100% - 24px,1180px);
 }
}

/* Regular Enfold pages: keep Hayashi footer and related blocks readable. */
body.page .hayashi-site-footer,
body.blog .hayashi-site-footer,
body.home .hayashi-site-footer,
#top .hayashi-site-footer{
 background:#5A0A0A!important;
 color:#FFFDF7!important;
 border-top:3px solid #D5B17A!important;
}

body.page .hayashi-site-footer *,
body.blog .hayashi-site-footer *,
body.home .hayashi-site-footer *,
#top .hayashi-site-footer *{
 color:inherit;
}

body.page .hayashi-site-footer p,
body.page .hayashi-site-footer li,
body.page .hayashi-site-footer span,
body.blog .hayashi-site-footer p,
body.blog .hayashi-site-footer li,
body.blog .hayashi-site-footer span,
body.home .hayashi-site-footer p,
body.home .hayashi-site-footer li,
body.home .hayashi-site-footer span,
#top .hayashi-site-footer p,
#top .hayashi-site-footer li,
#top .hayashi-site-footer span{
 color:#F7F3EA!important;
}

body.page .hayashi-site-footer a,
body.page .hayashi-site-footer a:visited,
body.blog .hayashi-site-footer a,
body.blog .hayashi-site-footer a:visited,
body.home .hayashi-site-footer a,
body.home .hayashi-site-footer a:visited,
#top .hayashi-site-footer a,
#top .hayashi-site-footer a:visited{
 color:#FFFDF7!important;
 opacity:1!important;
 text-decoration:none!important;
}

body.page .hayashi-site-footer a:hover,
body.page .hayashi-site-footer a:focus,
body.blog .hayashi-site-footer a:hover,
body.blog .hayashi-site-footer a:focus,
body.home .hayashi-site-footer a:hover,
body.home .hayashi-site-footer a:focus,
#top .hayashi-site-footer a:hover,
#top .hayashi-site-footer a:focus{
 color:#F0C98D!important;
 text-decoration:underline!important;
 text-underline-offset:4px;
}

body.page .hayashi-site-footer__group h2,
body.blog .hayashi-site-footer__group h2,
body.home .hayashi-site-footer__group h2,
#top .hayashi-site-footer__group h2{
 color:#F0C98D!important;
 border-bottom-color:rgba(240,201,141,.45)!important;
}

body.page .hayashi-site-footer__bottom,
body.blog .hayashi-site-footer__bottom,
body.home .hayashi-site-footer__bottom,
#top .hayashi-site-footer__bottom{
 background:#120909!important;
 color:rgba(247,243,234,.72)!important;
}

body.page .hayashi-panel,
body.page .hayashi-article-related,
body.page .hayashi-related-posts-panel,
body.page .hayashi-source-panel,
body.page .hayashi-video-panel,
#top.page .hayashi-panel,
#top.page .hayashi-article-related,
#top.page .hayashi-related-posts-panel,
#top.page .hayashi-source-panel,
#top.page .hayashi-video-panel{
 background:#FFFDF7!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
 border-radius:6px!important;
 box-shadow:0 8px 22px rgba(63,58,52,.055);
}

body.page .hayashi-panel h2,
body.page .hayashi-panel h3,
body.page .hayashi-article-related h2,
body.page .hayashi-related-posts-panel h2,
body.page .hayashi-source-panel h2,
body.page .hayashi-video-panel h2,
#top.page .hayashi-panel h2,
#top.page .hayashi-panel h3,
#top.page .hayashi-article-related h2,
#top.page .hayashi-related-posts-panel h2,
#top.page .hayashi-source-panel h2,
#top.page .hayashi-video-panel h2{
 color:#5A0F12!important;
 background:#F5EFE4!important;
 border-left:4px solid #7A0F0F!important;
 padding:10px 14px!important;
 border-radius:4px!important;
 letter-spacing:0!important;
}

body.page .hayashi-panel p,
body.page .hayashi-panel li,
body.page .hayashi-panel dd,
body.page .hayashi-article-related p,
body.page .hayashi-related-posts-panel p,
body.page .hayashi-source-panel p,
body.page .hayashi-video-panel p,
#top.page .hayashi-panel p,
#top.page .hayashi-panel li,
#top.page .hayashi-panel dd,
#top.page .hayashi-article-related p,
#top.page .hayashi-related-posts-panel p,
#top.page .hayashi-source-panel p,
#top.page .hayashi-video-panel p{
 color:#3F3A34!important;
}

body.page .hayashi-panel a:not(.hayashi-button),
body.page .hayashi-article-related a:not(.hayashi-button),
body.page .hayashi-related-posts-panel a:not(.hayashi-button),
body.page .hayashi-source-panel a:not(.hayashi-button),
body.page .hayashi-video-panel a:not(.hayashi-button),
#top.page .hayashi-panel a:not(.hayashi-button),
#top.page .hayashi-article-related a:not(.hayashi-button),
#top.page .hayashi-related-posts-panel a:not(.hayashi-button),
#top.page .hayashi-source-panel a:not(.hayashi-button),
#top.page .hayashi-video-panel a:not(.hayashi-button){
 color:#7A0F0F!important;
}

body.page .hayashi-related-cards article,
body.page .hayashi-video-card,
#top.page .hayashi-related-cards article,
#top.page .hayashi-video-card{
 background:#FFFFFF!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
}

/* Blog/article ALB pages: prevent Enfold heading colors from clashing with Hayashi blocks. */
body.single-post .hayashi-article-related-wrap .hayashi-panel,
#top.single-post .hayashi-article-related-wrap .hayashi-panel,
#top .template-page .hayashi-article-related-wrap .hayashi-panel{
 background:#FFFDF7!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
 border-radius:6px!important;
 box-shadow:0 8px 22px rgba(63,58,52,.055)!important;
}

body.single-post .hayashi-article-related-wrap .hayashi-panel h2,
#top.single-post .hayashi-article-related-wrap .hayashi-panel h2,
#top .template-page .hayashi-article-related-wrap .hayashi-panel h2{
 background:#7A0F0F!important;
 color:#FFFDF7!important;
 border-left:4px solid #D5B17A!important;
 border-bottom:0!important;
 padding:11px 16px!important;
 border-radius:4px 4px 0 0!important;
 letter-spacing:0!important;
 line-height:1.45!important;
}

body.single-post .hayashi-article-related-wrap .hayashi-panel p,
body.single-post .hayashi-article-related-wrap .hayashi-panel li,
body.single-post .hayashi-article-related-wrap .hayashi-panel span,
#top.single-post .hayashi-article-related-wrap .hayashi-panel p,
#top.single-post .hayashi-article-related-wrap .hayashi-panel li,
#top.single-post .hayashi-article-related-wrap .hayashi-panel span,
#top .template-page .hayashi-article-related-wrap .hayashi-panel p,
#top .template-page .hayashi-article-related-wrap .hayashi-panel li,
#top .template-page .hayashi-article-related-wrap .hayashi-panel span{
 color:#3F3A34!important;
}

body.single-post .hayashi-article-related-wrap .hayashi-panel a:not(.hayashi-button),
#top.single-post .hayashi-article-related-wrap .hayashi-panel a:not(.hayashi-button),
#top .template-page .hayashi-article-related-wrap .hayashi-panel a:not(.hayashi-button){
 color:#7A0F0F!important;
}

body.single-post .hayashi-article-related-wrap .hayashi-related-cards article,
body.single-post .hayashi-article-related-wrap .hayashi-source-card,
#top.single-post .hayashi-article-related-wrap .hayashi-related-cards article,
#top.single-post .hayashi-article-related-wrap .hayashi-source-card,
#top .template-page .hayashi-article-related-wrap .hayashi-related-cards article,
#top .template-page .hayashi-article-related-wrap .hayashi-source-card{
 background:#FFFFFF!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
 border-radius:6px!important;
}

body.single-post .hayashi-site-footer .hayashi-site-footer__group h2,
body.page .hayashi-site-footer .hayashi-site-footer__group h2,
body.blog .hayashi-site-footer .hayashi-site-footer__group h2,
body.home .hayashi-site-footer .hayashi-site-footer__group h2,
#top .hayashi-site-footer .hayashi-site-footer__group h2{
 background:transparent!important;
 color:#F0C98D!important;
 border-left:0!important;
 border-radius:0!important;
 padding:0 0 9px!important;
 border-bottom:1px solid rgba(240,201,141,.45)!important;
 line-height:1.45!important;
}

/* Enfold Advanced Layout Editor pages/posts. */
#top .entry-content-wrapper .hayashi-article-related-wrap,
#top .avia_textblock .hayashi-article-related-wrap{
 color:#3F3A34!important;
}

#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-panel,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-panel{
 background:#FFFDF7!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
 border-radius:6px!important;
 overflow:hidden!important;
}

#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-panel > h2,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-panel > h2{
 margin:-1px -1px 18px!important;
 background:#7A0F0F!important;
 color:#FFFDF7!important;
 border-left:4px solid #D5B17A!important;
 border-bottom:0!important;
 padding:12px 16px!important;
 font-size:clamp(19px,2vw,24px)!important;
 line-height:1.45!important;
}

#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-panel > h3,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-panel > h3{
 margin:18px 20px 10px!important;
 background:transparent!important;
 color:#5A0F12!important;
 border-left:0!important;
 border-bottom:1px solid #D8CCBA!important;
 padding:0 0 8px!important;
 font-size:18px!important;
}

#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-article-relation-links,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-article-relation-links{
 margin:0 20px 18px!important;
}

#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-source-card,
#top .entry-content-wrapper .hayashi-article-related-wrap .hayashi-related-cards article,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-source-card,
#top .avia_textblock .hayashi-article-related-wrap .hayashi-related-cards article{
 background:#FFFFFF!important;
 color:#3F3A34!important;
 border:1px solid #D8CCBA!important;
 border-radius:6px!important;
}

#top .entry-content-wrapper .hayashi-site-footer,
#top .avia_textblock .hayashi-site-footer{
 background:#5A0A0A!important;
 color:#FFFDF7!important;
 border-top:3px solid #D5B17A!important;
}

#top .entry-content-wrapper .hayashi-site-footer .hayashi-site-footer__group h2,
#top .avia_textblock .hayashi-site-footer .hayashi-site-footer__group h2{
 margin:0 0 14px!important;
 background:transparent!important;
 color:#F0C98D!important;
 border-left:0!important;
 border-bottom:1px solid rgba(240,201,141,.45)!important;
 padding:0 0 9px!important;
 font-size:15px!important;
}

/* Keep shortcode footer full-wide even when placed inside Enfold ALB containers. */
#top .entry-content-wrapper .hayashi-site-footer,
#top .avia_textblock .hayashi-site-footer,
#top .post-entry .hayashi-site-footer,
#top .template-page .hayashi-site-footer{
 width:100%!important;
 max-width:none!important;
 margin-left:0!important;
 margin-right:0!important;
 box-sizing:border-box!important;
}

#top .entry-content-wrapper .hayashi-site-footer__inner,
#top .avia_textblock .hayashi-site-footer__inner,
#top .post-entry .hayashi-site-footer__inner,
#top .template-page .hayashi-site-footer__inner{
 width:min(1180px,calc(100% - 40px))!important;
 max-width:none!important;
 margin-left:auto!important;
 margin-right:auto!important;
}

#top .entry-content-wrapper .hayashi-site-footer__bottom,
#top .avia_textblock .hayashi-site-footer__bottom,
#top .post-entry .hayashi-site-footer__bottom,
#top .template-page .hayashi-site-footer__bottom{
 width:100%!important;
 box-sizing:border-box!important;
}

/* Blog archive should use paper-like body colors, not the Enfold header red. */
body.blog #main,
body.blog #main .all_colors,
body.blog #main .main_color,
body.blog #main .container_wrap,
body.blog #main .template-blog,
body.blog #main .content,
#top.blog #main,
#top.blog #main .all_colors,
#top.blog #main .main_color,
#top.blog #main .container_wrap,
#top.blog #main .template-blog,
#top.blog #main .content{
 background:#F7F3EA!important;
 color:#3F3A34!important;
}

body.blog #main article,
body.blog #main .post-entry,
body.blog #main .entry-content-wrapper,
#top.blog #main article,
#top.blog #main .post-entry,
#top.blog #main .entry-content-wrapper{
 background:transparent!important;
 color:#3F3A34!important;
}

body.blog #main .post-title,
body.blog #main .post-title a,
#top.blog #main .post-title,
#top.blog #main .post-title a{
 color:#5A0F12!important;
 background:transparent!important;
}

/* Enfold custom post detail pages: keep the main body paper-colored. */
body.hayashi-enfold-db-view #main,
body.hayashi-enfold-db-view #main.all_colors,
body.hayashi-enfold-db-view #main .main_color,
body.hayashi-enfold-db-view #main .container_wrap,
body.hayashi-enfold-db-view #main .template-page,
body.hayashi-enfold-db-view #main .content,
#top.hayashi-enfold-db-view #main,
#top.hayashi-enfold-db-view #main.all_colors,
#top.hayashi-enfold-db-view #main .main_color,
#top.hayashi-enfold-db-view #main .container_wrap,
#top.hayashi-enfold-db-view #main .template-page,
#top.hayashi-enfold-db-view #main .content{
 background:#F7F3EA!important;
 color:#3F3A34!important;
}

body.hayashi-enfold-db-view #main .hayashi-db-wrap,
body.hayashi-enfold-db-view #main .hayashi-single-layout,
body.hayashi-enfold-db-view #main .hayashi-event-db-layout,
#top.hayashi-enfold-db-view #main .hayashi-db-wrap,
#top.hayashi-enfold-db-view #main .hayashi-single-layout,
#top.hayashi-enfold-db-view #main .hayashi-event-db-layout{
 background:transparent!important;
}

/* v1.5.250: festival detail and PR page refinements */
#top .hayashi-event-highlight-section {
  background: rgba(255, 253, 247, 0.78);
  border-top: 1px solid rgba(122, 15, 15, 0.12);
  border-bottom: 1px solid rgba(122, 15, 15, 0.1);
  margin: 0;
  padding: 34px 0;
}

#top .hayashi-event-highlight-section .hayashi-event-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

#top .hayashi-event-highlight-section h2 {
  color: #5a0f12;
  font-family: "Noto Serif JP", serif;
  font-size: 1.55rem;
  line-height: 1.45;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(4, 30, 66, 0.18);
}

#top .hayashi-event-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#top .hayashi-event-highlight-card {
  background: #fffdf7;
  border: 1px solid #d8ccba;
  border-top: 4px solid #041e42;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(65, 52, 37, 0.07);
  padding: 18px 20px;
  overflow: hidden;
}

#top .hayashi-event-highlight-card figure {
  margin: -18px -20px 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #d8ccba;
}

#top .hayashi-event-highlight-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top .hayashi-event-highlight-card h3 {
  color: #7a0f0f;
  font-family: "Noto Serif JP", serif;
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

#top .hayashi-event-highlight-card p {
  color: #3f3a34;
  line-height: 1.85;
  margin: 0;
}

#top .hayashi-pr-cta-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1.25fr);
  gap: 20px;
  align-items: start;
  border-top: 4px solid #7a0f0f;
}

#top .hayashi-pr-cta-copy h2 {
  color: #5a0f12;
  margin-top: 0;
}

#top .hayashi-pr-cta-copy p:last-child {
  margin-bottom: 0;
}

#top .hayashi-pr-cta-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

#top .hayashi-pr-cta-facts div {
  background: #f7f3ea;
  border: 1px solid #d8ccba;
  border-radius: 6px;
  padding: 12px 14px;
}

#top .hayashi-pr-cta-facts dt {
  color: #7a0f0f;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 4px;
}

#top .hayashi-pr-cta-facts dd {
  color: #3f3a34;
  line-height: 1.65;
  margin: 0;
}

#top .hayashi-pr-cta-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

#top .hayashi-video-watch-actions,
body .hayashi-video-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#top .hayashi-video-watch-actions a,
body .hayashi-video-watch-actions a {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(245, 239, 228, 0.46);
  border-radius: 6px;
  color: #fffdf7 !important;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 12px;
  text-decoration: none;
}

#top .hayashi-video-watch-actions a:hover,
body .hayashi-video-watch-actions a:hover {
  background: #fffdf7;
  color: #7a0f0f !important;
}

@media (max-width: 780px) {
  #top .hayashi-event-highlight-grid,
  #top .hayashi-pr-cta-panel,
  #top .hayashi-pr-cta-facts {
    grid-template-columns: 1fr;
  }

  #top .hayashi-event-highlight-section {
    padding: 24px 0;
  }
}
