@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.5
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 記事末の筆者紹介（他のCocoon要素に影響しない固有クラス） */
.region-repo-author-box {
    --author-accent: #2d6a4f;
    --author-accent-rgb: 45, 106, 79;
    margin-top: 48px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.region-repo-author-box--akashiba {
    --author-accent: #9d503b;
    --author-accent-rgb: 157, 80, 59;
}

.region-repo-author-box--shiroshiba {
    --author-accent: #667169;
    --author-accent-rgb: 102, 113, 105;
}

/* ラベル帯 */
.region-repo-author-box__label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    background: var(--author-accent);
    color: #fff !important;
    font-size: 0.78em;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.5 !important;
}

/* アバター＋テキストの横並びエリア */
.region-repo-author-box__inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}

.region-repo-author-box__avatar {
    flex-shrink: 0;
}

.region-repo-author-box__avatar img,
.region-repo-author-box__avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(var(--author-accent-rgb), 0.18);
}

.region-repo-author-box__avatar img {
    object-fit: cover;
    display: block;
}

.region-repo-author-box__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--author-accent-rgb), 0.1);
    color: var(--author-accent);
    font-size: 1.1em;
    font-weight: 800;
}

.region-repo-author-box__body {
    display: flex;
    flex-direction: column;
}

.region-repo-author-box__name,
.region-repo-author-box__section-title,
.region-repo-author-box__bio {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.region-repo-author-box__name {
    font-weight: bold;
    font-size: 1.05em;
    margin: 0 0 8px !important;
}

.region-repo-author-box__name a,
.region-repo-author-box__name > span {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--author-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--author-accent) !important;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 2px 7px rgba(var(--author-accent-rgb), 0.1);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.region-repo-author-box__name a::after {
    padding-left: 9px;
    border-left: 1px solid rgba(var(--author-accent-rgb), 0.25);
    content: "プロフィールを見る →";
    font-size: 0.67em;
    font-weight: 600;
}

.region-repo-author-box__name a:hover,
.region-repo-author-box__name a:focus-visible {
    background: var(--author-accent);
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(var(--author-accent-rgb), 0.2);
}

.region-repo-author-box__name a:hover::after,
.region-repo-author-box__name a:focus-visible::after {
    border-left-color: rgba(255, 255, 255, 0.4);
}

.region-repo-author-box__name a:focus-visible {
    outline: 3px solid rgba(var(--author-accent-rgb), 0.22);
    outline-offset: 2px;
}

.region-repo-author-box__bio {
    margin: 0 !important;
    font-size: 0.9em;
    line-height: 1.7 !important;
    color: #555;
}

.region-repo-author-box__details {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--author-accent-rgb), 0.16);
    border-radius: 9px;
    background: #fff;
}

.region-repo-author-box__section-title {
    margin: 0 0 8px !important;
    color: var(--author-accent);
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.region-repo-author-box__section-title--common {
    margin-top: 2px !important;
}

.region-repo-author-box__profile-list {
    display: grid;
    gap: 5px;
    margin: 0;
}

.region-repo-author-box__profile-row {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 10px;
    font-size: 0.86em;
    line-height: 1.6;
}

.region-repo-author-box__profile-row dt,
.region-repo-author-box__profile-row dd {
    margin: 0;
}

.region-repo-author-box__profile-row dt {
    color: #667169;
    font-weight: 700;
}

.region-repo-author-box__profile-row dd {
    color: #333;
}

/* ── レスポンシブ対応 ── */
@media (max-width: 600px) {
    .region-repo-author-box__inner {
        flex-direction: column !important;
        /* 縦並びに切り替え */
        align-items: center !important;
        /* 中央揃え */
        padding: 16px;
        gap: 12px;
    }

    .region-repo-author-box__avatar img,
    .region-repo-author-box__avatar-fallback {
        width: 80px;
        /* スマホでは少し大きめに */
        height: 80px;
    }

    .region-repo-author-box__body {
        width: 100%;
        align-items: center;
        /* 名前・本文も中央揃え */
        text-align: center;
    }

    .region-repo-author-box__name {
        font-size: 1em;
        margin: 0 0 6px !important;
    }

    .region-repo-author-box__bio {
        font-size: 0.85em;
        text-align: left;
        /* 本文は左揃えの方が読みやすい */
    }

    .region-repo-author-box__profile-row {
        grid-template-columns: 6.5em minmax(0, 1fr);
        text-align: left;
    }
}

/* ヘッダー背景制御 */
#header-container,
.header-container {
    min-height: 200px !important;
    height: 200px !important;
    overflow: hidden !important;
    background-color: transparent !important;
}

#header,
.header {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-image: url("assets/images/header/header-background-pc.webp") !important;
}

#header-container-in,
.header-container-in {
    background: transparent !important;
}

/* モバイル */
@media screen and (max-width: 834px) {

    #header-container,
    .header-container,
    #header,
    .header {
        min-height: 140px !important;
        height: 140px !important;
    }
}

/* ロゴ画像サイズ制御・ヘッダー内レイアウト調整 */
.header-in {
    height: 200px !important;
    max-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
}

.logo-header {
    height: auto !important;
    max-height: 160px !important;
    width: auto !important;
    margin: 0 !important;
    transform: translateY(4px) !important;
}

.header-site-logo-image {
    width: auto !important;
    max-width: 90% !important;
    height: 160px !important;
    max-height: 160px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    content: url("assets/images/header/header-logo-pc.png");
}

.site-name-text {
    display: block !important;
    height: auto !important;
    line-height: 0 !important;
}

.tagline {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
    position: absolute !important;
    top: 6px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

@media screen and (max-width: 834px) {
    .logo-header {
        transform: translateY(3px) !important;
    }

    #header,
    .header {
        background-image: url("assets/images/header/header-background-sp.webp") !important;
    }

    .header-in {
        height: 140px !important;
        max-height: 140px !important;
    }

    .header-site-logo-image {
        height: 100px !important;
        max-height: 100px !important;
        content: url("assets/images/header/header-logo-sp.png");
    }

    .tagline {
        font-size: 0.95em !important;
        top: 4px !important;
    }
}

.author-info,
.post-author,
.article-author-name {
    display: none !important;
}

/* ==================================================
   TOPページ専用
   すべて .region-repo-home 配下に限定し、記事ページへ影響させない
================================================== */
.region-repo-home .rr-home,
.region-repo-home .rr-home * {
    box-sizing: border-box;
}

.region-repo-home .rr-home {
    --rr-ink: #17221d;
    --rr-muted: #637068;
    --rr-green: #245c45;
    --rr-green-dark: #173d2e;
    --rr-green-light: #dfeadf;
    --rr-paper: #f5f2e9;
    --rr-white: #fffdf8;
    --rr-line: #d8d8cc;
    --rr-heading-font: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--rr-ink);
    background: var(--rr-paper);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    overflow: hidden;
}

/* Cocoonの2カラム構成をTOPページだけ1カラムへ変更 */
.region-repo-home #content {
    margin-top: 0;
}

.region-repo-home #content-in {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.region-repo-home #main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.region-repo-home #sidebar {
    display: none;
}

/* TOPでは大きな既存ヘッダーを少し抑え、本文の入口を早く見せる */
.region-repo-home #header-container,
.region-repo-home .header-container,
.region-repo-home #header,
.region-repo-home .header,
.region-repo-home .header-in {
    min-height: 144px !important;
    height: 144px !important;
    max-height: 144px !important;
}

.region-repo-home .header-site-logo-image {
    height: 112px !important;
    max-height: 112px !important;
}

.region-repo-home .rr-home-shell,
.region-repo-home .rr-home-section {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.region-repo-home .rr-home-eyebrow {
    margin: 0 0 14px;
    color: var(--rr-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.5;
}

.region-repo-home .rr-home-notice {
    border-bottom: 1px solid rgba(36, 92, 69, 0.14);
    background: var(--rr-white);
}

.region-repo-home .rr-home-notice__link {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 62px;
    padding: 12px 0;
    color: var(--rr-ink);
    text-decoration: none;
}

.region-repo-home .rr-home-notice__label {
    padding: 5px 9px;
    border-radius: 999px;
    background: #b85e38;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.region-repo-home .rr-home-notice time {
    color: var(--rr-muted);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.region-repo-home .rr-home-notice__title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-repo-home .rr-home-notice__prefix {
    color: var(--rr-green);
}

.region-repo-home .rr-home-notice__more {
    color: var(--rr-green);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.region-repo-home .rr-home-notice__link:hover .rr-home-notice__title,
.region-repo-home .rr-home-notice__link:focus-visible .rr-home-notice__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.region-repo-home .rr-home-notice__link:focus-visible {
    outline: 3px solid #b85e38;
    outline-offset: 3px;
}

.region-repo-home .rr-home-hero {
    position: relative;
    padding: 88px 0 72px;
    background:
        linear-gradient(90deg, rgba(36, 92, 69, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(36, 92, 69, 0.055) 1px, transparent 1px),
        var(--rr-paper);
    background-size: 40px 40px;
}

.region-repo-home .rr-home-hero::before {
    position: absolute;
    top: -240px;
    right: -170px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(36, 92, 69, 0.18);
    border-radius: 50%;
    content: "";
}

.region-repo-home .rr-home-hero::after {
    position: absolute;
    right: 88px;
    bottom: -72px;
    width: 150px;
    height: 150px;
    border: 28px solid rgba(184, 94, 56, 0.1);
    border-radius: 50%;
    content: "";
}

.region-repo-home .rr-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.75fr);
    gap: 72px;
    align-items: center;
}

.region-repo-home .rr-home-hero__title {
    margin: 0;
    color: var(--rr-ink);
    font-family: var(--rr-heading-font);
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.region-repo-home .rr-home-hero__title span {
    color: #b85e38;
}

.region-repo-home .rr-home-hero__description {
    max-width: 700px;
    margin: 28px 0 0;
    color: #455149;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 2;
}

.region-repo-home .rr-home-search {
    display: flex;
    max-width: 700px;
    margin-top: 34px;
    padding: 7px;
    border: 1px solid rgba(23, 34, 29, 0.18);
    border-radius: 16px;
    background: var(--rr-white);
    box-shadow: 0 16px 40px rgba(23, 34, 29, 0.08);
}

.region-repo-home .rr-home-search__input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--rr-ink);
    font-size: 0.95rem;
    outline: none;
}

.region-repo-home .rr-home-search__input::placeholder {
    color: #89928c;
}

.region-repo-home .rr-home-search:focus-within {
    border-color: var(--rr-green);
    box-shadow: 0 0 0 3px rgba(36, 92, 69, 0.13), 0 16px 40px rgba(23, 34, 29, 0.08);
}

.region-repo-home .rr-home-search__button {
    flex-shrink: 0;
    min-width: 112px;
    padding: 13px 20px;
    border: 0;
    border-radius: 11px;
    background: var(--rr-green);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.region-repo-home .rr-home-search__button:hover,
.region-repo-home .rr-home-search__button:focus-visible {
    background: var(--rr-green-dark);
}

.region-repo-home .rr-home-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.region-repo-home .rr-home-stats p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(36, 92, 69, 0.1);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.48);
}

.region-repo-home .rr-home-stats strong {
    color: var(--rr-ink);
    font-size: 0.92rem;
}

.region-repo-home .rr-home-stats span {
    color: var(--rr-muted);
    font-size: 0.7rem;
}

.region-repo-home .rr-home-hero__note {
    position: relative;
    padding: 38px 34px 34px;
    border: 1px solid rgba(36, 92, 69, 0.16);
    border-top: 5px solid var(--rr-green);
    border-radius: 24px;
    background: var(--rr-white);
    box-shadow: 0 20px 48px rgba(36, 92, 69, 0.12);
}

.region-repo-home .rr-home-hero__note::before {
    content: none;
}

.region-repo-home .rr-home-hero__note-label {
    margin: 0 0 12px;
    color: #9c5b3e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.region-repo-home .rr-home-hero__note h2 {
    margin: 0;
    color: var(--rr-ink);
    font-family: var(--rr-heading-font);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    letter-spacing: 0.01em;
    line-height: 1.65;
}

.region-repo-home .rr-home-hero__note ol {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.region-repo-home .rr-home-hero__note li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-top: 1px solid var(--rr-line);
}

.region-repo-home .rr-home-hero__note li > span {
    padding-top: 2px;
    color: #a76143;
    font-family: Georgia, serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.region-repo-home .rr-home-hero__note li div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.region-repo-home .rr-home-hero__note strong {
    font-size: 0.9rem;
}

.region-repo-home .rr-home-hero__note small {
    color: var(--rr-muted);
    font-size: 0.72rem;
    line-height: 1.6;
}

.region-repo-home .rr-home-quick-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background: var(--rr-green-dark);
}

.region-repo-home .rr-home-quick-nav .rr-home-shell {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.region-repo-home .rr-home-quick-nav a {
    padding: 19px 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.region-repo-home .rr-home-quick-nav a:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.region-repo-home .rr-home-quick-nav a:hover,
.region-repo-home .rr-home-quick-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.region-repo-home .rr-home-section {
    padding-top: 104px;
    padding-bottom: 112px;
}

.region-repo-home .rr-home-section__heading {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.region-repo-home .rr-home-section__heading h2,
.region-repo-home .rr-home-method__lead h2 {
    margin: 0;
    color: var(--rr-ink);
    font-family: var(--rr-heading-font);
    font-size: clamp(1.9rem, 3.8vw, 3.15rem);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.region-repo-home .rr-home-section__heading > p {
    max-width: 430px;
    margin: 0 0 5px;
    color: var(--rr-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.region-repo-home .rr-home-featured__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
    grid-template-rows: repeat(2, minmax(240px, 1fr));
    gap: 18px;
}

.region-repo-home .rr-home-feature-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--rr-green-dark);
    box-shadow: 0 12px 30px rgba(23, 34, 29, 0.1);
}

.region-repo-home .rr-home-feature-card--primary {
    grid-row: span 2;
}

.region-repo-home .rr-home-feature-card > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    color: #fff;
    text-decoration: none;
}

.region-repo-home .rr-home-feature-card--primary > a {
    min-height: 560px;
}

.region-repo-home .rr-home-feature-card__image,
.region-repo-home .rr-home-latest-card__image {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.region-repo-home .rr-home-feature-card__image img,
.region-repo-home .rr-home-latest-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.region-repo-home .rr-home-feature-card__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 24, 19, 0.05) 22%, rgba(14, 24, 19, 0.9) 100%);
    content: "";
}

.region-repo-home .rr-home-feature-card__placeholder,
.region-repo-home .rr-home-latest-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #557462, #1c4534);
}

.region-repo-home .rr-home-feature-card__overlay {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
}

.region-repo-home .rr-home-feature-card--primary .rr-home-feature-card__overlay {
    padding: 42px;
}

.region-repo-home .rr-home-feature-card__overlay p {
    display: inline-block;
    margin: 0 0 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    color: var(--rr-green-dark);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.region-repo-home .rr-home-feature-card__overlay h3 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-family: var(--rr-heading-font);
    font-size: clamp(1.1rem, 2.25vw, 2rem);
    letter-spacing: 0.01em;
    line-height: 1.45;
}

.region-repo-home .rr-home-feature-card__overlay > span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    line-height: 1.6;
}

.region-repo-home .rr-home-feature-card a:hover img,
.region-repo-home .rr-home-feature-card a:focus-visible img,
.region-repo-home .rr-home-latest-card a:hover img,
.region-repo-home .rr-home-latest-card a:focus-visible img {
    transform: scale(1.035);
}

.region-repo-home .rr-home-feature-card a:focus-visible,
.region-repo-home .rr-home-latest-card a:focus-visible,
.region-repo-home .rr-home-discovery-card:focus-visible,
.region-repo-home .rr-home-profile-link--active:focus-visible,
.region-repo-home .rr-home-text-link:focus-visible {
    outline: 3px solid #b85e38;
    outline-offset: 3px;
}

.region-repo-home .rr-home-discovery {
    padding: 104px 0 112px;
    background: var(--rr-green-dark);
    color: #fff;
}

.region-repo-home .rr-home-section__heading--light h2,
.region-repo-home .rr-home-section__heading--light > p,
.region-repo-home .rr-home-section__heading--light .rr-home-eyebrow {
    color: #fff;
}

.region-repo-home .rr-home-section__heading--light > p {
    color: rgba(255, 255, 255, 0.68);
}

.region-repo-home .rr-home-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.region-repo-home .rr-home-discovery-card {
    position: relative;
    min-height: 210px;
    padding: 28px 28px 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.region-repo-home .rr-home-discovery-card:hover,
.region-repo-home .rr-home-discovery-card:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.region-repo-home .rr-home-discovery-card__count {
    color: rgba(255, 255, 255, 0.55);
    font-family: Georgia, serif;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
}

.region-repo-home .rr-home-discovery-card h3 {
    margin: 26px 0 9px;
    color: #fff;
    font-family: var(--rr-heading-font);
    font-size: 1.35rem;
}

.region-repo-home .rr-home-discovery-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.7;
}

.region-repo-home .rr-home-discovery-card__arrow {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: #d5bb84;
    font-size: 1.3rem;
}

.region-repo-home .rr-home-latest {
    padding-bottom: 128px;
}

.region-repo-home .rr-home-text-link {
    flex-shrink: 0;
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rr-ink);
    color: var(--rr-ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.region-repo-home .rr-home-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 22px;
}

.region-repo-home .rr-home-latest-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(36, 92, 69, 0.09);
    border-radius: 18px;
    background: var(--rr-white);
    box-shadow: 0 10px 28px rgba(23, 34, 29, 0.06);
}

.region-repo-home .rr-home-latest-card > a {
    display: block;
    height: 100%;
    color: var(--rr-ink);
    text-decoration: none;
}

.region-repo-home .rr-home-latest-card__image {
    aspect-ratio: 16 / 9;
    height: auto;
    background: var(--rr-green-dark);
}

.region-repo-home .rr-home-latest-card__body {
    padding: 20px 20px 22px;
}

.region-repo-home .rr-home-latest-card time {
    color: var(--rr-muted);
    font-family: Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.region-repo-home .rr-home-latest-card h3 {
    margin: 9px 0 10px;
    color: var(--rr-ink);
    font-size: 1rem;
    line-height: 1.65;
}

.region-repo-home .rr-home-latest-card p {
    margin: 0;
    color: var(--rr-muted);
    font-size: 0.76rem;
    line-height: 1.75;
}

.region-repo-home .rr-home-latest-card__more {
    display: block;
    margin-top: 14px;
    color: var(--rr-green);
    font-size: 0.72rem;
    font-weight: 700;
}

.region-repo-home .rr-home-method {
    padding: 100px 0 108px;
    background: #e9e5d9;
}

.region-repo-home .rr-home-method__grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
    gap: 90px;
}

.region-repo-home .rr-home-method__body {
    padding-top: 4px;
}

.region-repo-home .rr-home-method__intro {
    margin: 0;
    color: #414c45;
    font-size: 1rem;
    line-height: 2;
}

.region-repo-home .rr-home-method__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.region-repo-home .rr-home-method__points > div {
    padding: 20px;
    border: 1px solid rgba(36, 92, 69, 0.09);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.6);
}

.region-repo-home .rr-home-method__points span {
    display: block;
    margin-bottom: 14px;
    color: #a15d40;
    font-family: Georgia, serif;
    font-size: 0.72rem;
}

.region-repo-home .rr-home-method__points strong {
    display: block;
    font-size: 0.88rem;
}

.region-repo-home .rr-home-method__points p {
    margin: 8px 0 0;
    color: var(--rr-muted);
    font-size: 0.72rem;
    line-height: 1.7;
}

.region-repo-home .rr-home-profile-links {
    display: grid;
    gap: 12px;
    margin-top: 38px;
}

.region-repo-home .rr-home-profile-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    min-height: 104px;
    padding: 15px 19px;
    border: 1px solid rgba(36, 92, 69, 0.12);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.76);
    color: var(--rr-ink);
    text-decoration: none;
}

.region-repo-home .rr-home-profile-link--active {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.region-repo-home .rr-home-profile-link--active:hover,
.region-repo-home .rr-home-profile-link--active:focus-visible {
    border-color: rgba(36, 92, 69, 0.3);
    box-shadow: 0 10px 24px rgba(23, 34, 29, 0.08);
    transform: translateY(-1px);
}

.region-repo-home .rr-home-profile-link__media {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--rr-white);
    border-radius: 50%;
    background: var(--rr-green-light);
    box-shadow: 0 3px 10px rgba(23, 34, 29, 0.1);
}

.region-repo-home .rr-home-profile-link__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-repo-home .rr-home-profile-link__media--companions {
    width: 82px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.region-repo-home .rr-home-profile-avatar {
    display: flex;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--rr-white);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(23, 34, 29, 0.1);
}

.region-repo-home .rr-home-profile-avatar + .rr-home-profile-avatar {
    margin-left: -18px;
}

.region-repo-home .rr-home-profile-avatar--red {
    background: #d98a72;
    color: #662f24;
}

.region-repo-home .rr-home-profile-avatar--white {
    background: #f2f0e8;
    color: #5c625d;
}

.region-repo-home .rr-home-profile-link__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.region-repo-home .rr-home-profile-link__content small {
    margin-bottom: 3px;
    color: #a15d40;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.region-repo-home .rr-home-profile-link__content strong {
    color: var(--rr-ink);
    font-size: 0.86rem;
    line-height: 1.55;
}

.region-repo-home .rr-home-profile-link__content > span {
    margin-top: 3px;
    color: var(--rr-muted);
    font-size: 0.68rem;
    line-height: 1.55;
}

.region-repo-home .rr-home-profile-link__arrow {
    color: var(--rr-green);
    font-size: 1.15rem;
}

.region-repo-home .rr-home-profile-link--disabled {
    opacity: 0.67;
}

@media screen and (max-width: 1023px) {
    .region-repo-home .rr-home-hero__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
        gap: 42px;
    }

    .region-repo-home .rr-home-stats {
        gap: 18px;
    }

    .region-repo-home .rr-home-featured__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
    }

    .region-repo-home .rr-home-method__grid {
        gap: 54px;
    }
}

@media screen and (max-width: 834px) {
    .region-repo-home #header-container,
    .region-repo-home .header-container,
    .region-repo-home #header,
    .region-repo-home .header,
    .region-repo-home .header-in {
        min-height: 112px !important;
        height: 112px !important;
        max-height: 112px !important;
    }

    .region-repo-home .header-site-logo-image {
        height: 82px !important;
        max-height: 82px !important;
    }

    .region-repo-home .rr-home-shell,
    .region-repo-home .rr-home-section {
        width: min(100% - 36px, 720px);
    }

    .region-repo-home .rr-home-notice__link {
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 14px;
    }

    .region-repo-home .rr-home-notice__more {
        display: none;
    }

    .region-repo-home .rr-home-hero {
        padding: 64px 0 58px;
    }

    .region-repo-home .rr-home-hero__grid,
    .region-repo-home .rr-home-method__grid {
        grid-template-columns: 1fr;
    }

    .region-repo-home .rr-home-hero__grid {
        gap: 48px;
    }

    .region-repo-home .rr-home-hero__title {
        font-size: clamp(2.5rem, 9vw, 3.8rem);
    }

    .region-repo-home .rr-home-hero__note {
        max-width: 520px;
        margin: 0 auto;
    }

    .region-repo-home .rr-home-quick-nav .rr-home-shell {
        width: 100%;
    }

    .region-repo-home .rr-home-quick-nav a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.7rem;
    }

    .region-repo-home .rr-home-section,
    .region-repo-home .rr-home-discovery {
        padding-top: 82px;
        padding-bottom: 88px;
    }

    .region-repo-home .rr-home-section__heading {
        display: block;
    }

    .region-repo-home .rr-home-section__heading > p,
    .region-repo-home .rr-home-section__heading .rr-home-text-link {
        display: inline-block;
        margin-top: 18px;
    }

    .region-repo-home .rr-home-featured__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .region-repo-home .rr-home-feature-card--primary {
        grid-row: auto;
    }

    .region-repo-home .rr-home-feature-card > a,
    .region-repo-home .rr-home-feature-card--primary > a {
        min-height: 340px;
    }

    .region-repo-home .rr-home-feature-card--primary .rr-home-feature-card__overlay {
        padding: 28px;
    }

    .region-repo-home .rr-home-discovery__grid,
    .region-repo-home .rr-home-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .region-repo-home .rr-home-method {
        padding: 82px 0 88px;
    }

    .region-repo-home .rr-home-method__grid {
        gap: 40px;
    }
}

@media screen and (max-width: 600px) {
    .region-repo-home .rr-home-shell,
    .region-repo-home .rr-home-section {
        width: min(100% - 28px, 520px);
    }

    .region-repo-home .rr-home-notice__link {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        min-height: 56px;
        padding: 10px 0;
    }

    .region-repo-home .rr-home-notice time,
    .region-repo-home .rr-home-notice__prefix {
        display: none;
    }

    .region-repo-home .rr-home-notice__title {
        font-size: 0.76rem;
    }

    .region-repo-home .rr-home-hero {
        padding-top: 48px;
    }

    .region-repo-home .rr-home-hero::before {
        right: -320px;
    }

    .region-repo-home .rr-home-hero__title {
        font-size: clamp(2.2rem, 10.5vw, 3.1rem);
        line-height: 1.35;
    }

    .region-repo-home .rr-home-hero__description {
        margin-top: 22px;
        font-size: 0.94rem;
        line-height: 1.9;
    }

    .region-repo-home .rr-home-search {
        display: block;
        padding: 6px;
    }

    .region-repo-home .rr-home-search__input,
    .region-repo-home .rr-home-search__button {
        width: 100%;
    }

    .region-repo-home .rr-home-search__input {
        padding: 13px 12px;
        font-size: 0.82rem;
    }

    .region-repo-home .rr-home-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .region-repo-home .rr-home-stats p {
        padding: 9px 7px;
    }

    .region-repo-home .rr-home-stats strong {
        font-size: 0.74rem;
    }

    .region-repo-home .rr-home-stats span {
        font-size: 0.58rem;
        line-height: 1.5;
    }

    .region-repo-home .rr-home-hero__note {
        padding: 32px 24px 24px;
        transform: none;
    }

    .region-repo-home .rr-home-quick-nav {
        overflow-x: auto;
    }

    .region-repo-home .rr-home-quick-nav .rr-home-shell {
        display: flex;
        min-width: max-content;
    }

    .region-repo-home .rr-home-quick-nav a {
        min-width: 132px;
        padding: 17px 14px;
    }

    .region-repo-home .rr-home-section__heading h2,
    .region-repo-home .rr-home-method__lead h2 {
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    }

    .region-repo-home .rr-home-feature-card > a,
    .region-repo-home .rr-home-feature-card--primary > a {
        min-height: 300px;
    }

    .region-repo-home .rr-home-feature-card__overlay,
    .region-repo-home .rr-home-feature-card--primary .rr-home-feature-card__overlay {
        padding: 23px;
    }

    .region-repo-home .rr-home-feature-card__overlay h3 {
        font-size: 1.22rem;
    }

    .region-repo-home .rr-home-feature-card__overlay > span {
        display: none;
    }

    .region-repo-home .rr-home-discovery__grid,
    .region-repo-home .rr-home-latest__grid,
    .region-repo-home .rr-home-method__points {
        grid-template-columns: 1fr;
    }

    .region-repo-home .rr-home-discovery-card {
        min-height: 170px;
    }

    .region-repo-home .rr-home-latest__grid {
        gap: 34px;
    }

    .region-repo-home .rr-home-method__points {
        gap: 24px;
    }

    .region-repo-home .rr-home-profile-link {
        grid-template-columns: 60px minmax(0, 1fr) auto;
        gap: 13px;
        min-height: 92px;
        padding: 13px 14px;
    }

    .region-repo-home .rr-home-profile-link__media {
        width: 60px;
        height: 60px;
    }

    .region-repo-home .rr-home-profile-link__media--companions {
        width: 68px;
    }

    .region-repo-home .rr-home-profile-avatar {
        width: 45px;
        height: 45px;
    }

    .region-repo-home .rr-home-profile-avatar + .rr-home-profile-avatar {
        margin-left: -16px;
    }

    .region-repo-home .rr-home-profile-link__content > span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .region-repo-home .rr-home-feature-card__image img,
    .region-repo-home .rr-home-latest-card__image img,
    .region-repo-home .rr-home-search__button,
    .region-repo-home .rr-home-quick-nav a,
    .region-repo-home .rr-home-discovery-card,
    .region-repo-home .rr-home-profile-link--active {
        transition: none;
    }
}

/*
 * 鉄道主要年表の固定ページ
 * Web Component内部はShadow DOMで隔離し、ここではCocoonの外枠と
 * JavaScript無効時のフォールバックだけを調整する。
 */
.region-repo-railway-timeline #content-in {
    width: min(100% - 40px, 1440px);
    max-width: none;
}

.region-repo-railway-timeline #main {
    width: 100%;
    max-width: none;
    float: none;
    margin: 0 auto;
    padding: 32px 36px 56px;
}

.region-repo-railway-timeline #sidebar,
.region-repo-railway-timeline .article-header,
.region-repo-railway-timeline .sns-share,
.region-repo-railway-timeline .sns-follow,
.region-repo-railway-timeline .under-entry-content {
    display: none;
}

.region-repo-railway-timeline .entry-content {
    margin: 0;
}

.region-repo-railway-timeline .rr-timeline-page,
.region-repo-railway-timeline .rr-timeline-page * {
    box-sizing: border-box;
}

.region-repo-railway-timeline .rr-timeline-page {
    max-width: 1392px;
    margin: 0 auto;
    color: #203348;
}

.region-repo-railway-timeline .rr-timeline-page__a11y-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.region-repo-railway-timeline railway-timeline {
    display: block;
    min-width: 0;
}

.region-repo-railway-timeline .fallback {
    line-height: 1.8;
}

.region-repo-railway-timeline .fallback__eyebrow {
    margin: 0 0 6px;
    color: #176b9f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.region-repo-railway-timeline .fallback__title {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #203348;
    font-size: clamp(23px, 4vw, 32px);
    font-weight: 750;
    line-height: 1.4;
}

.region-repo-railway-timeline .fallback-group {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #d8e2eb;
    border-radius: 12px;
}

.region-repo-railway-timeline .fallback-group__title {
    margin: 0;
    padding: 12px 16px;
    border: 0;
    background: #edf3f7;
    color: #203348;
    font-size: 19px;
    font-weight: 700;
}

.region-repo-railway-timeline .fallback-group > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 14px;
    list-style: none;
}

.region-repo-railway-timeline .fallback-group li {
    padding: 12px 14px;
    overflow-wrap: anywhere;
    border-left: 4px solid var(--cat);
    border-radius: 6px;
    background: var(--tint);
}

.region-repo-railway-timeline .fallback-tag {
    font-size: 12px;
    font-weight: 700;
}

.region-repo-railway-timeline .fallback-event__title {
    display: block;
    margin: 8px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #203348;
    font-size: 16px;
    line-height: 1.7;
}

.region-repo-railway-timeline .fallback li p {
    margin: 8px 0;
    white-space: pre-line;
}

.region-repo-railway-timeline .fallback-related {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgb(32 51 72 / 7%);
}

.region-repo-railway-timeline .fallback-related > span {
    display: block;
    margin-bottom: 5px;
    color: #526779;
    font-size: 11px;
    font-weight: 700;
}

.region-repo-railway-timeline .fallback-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.region-repo-railway-timeline .fallback-related li {
    padding: 0;
    border: 0;
    background: transparent;
}

.region-repo-railway-timeline .fallback-related a {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid #b8ccd9;
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.region-repo-railway-timeline .fallback-related a:hover {
    background: #edf4f9;
    text-decoration: underline;
}

.region-repo-railway-timeline .fallback a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #176b9f;
}

@media screen and (max-width: 834px) {
    .region-repo-railway-timeline #content-in {
        width: 100%;
    }

    .region-repo-railway-timeline #main {
        padding: 24px 18px 44px;
        border-radius: 0;
    }
}

@media screen and (max-width: 480px) {
    .region-repo-railway-timeline #main {
        padding: 18px 12px 36px;
    }

    .region-repo-railway-timeline .fallback-group > ul {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .region-repo-railway-timeline .fallback-group__title {
        padding: 11px 12px;
        font-size: 17px;
    }
}
