/* =========================================================
   零株式会社 共通ヘッダー/フッター
   トップ（/）と同じヘッダー・フッターを /blog・/blog/<slug>・
   /news・/news/<slug> で使うための最小CSS。
   自動生成ファイル。直接編集せず hp/rei/style.css を直してから
   python3 scripts/build-rei-chrome-css.py で再生成する。
   ========================================================= */
:root {
    /* --- ink --- */
    --reic-ink: #171818;
    --reic-ink-2: #2f3031;
    --reic-ink-3: #6b6f6d;
    --reic-ink-4: #9aa09c;

    /* --- brand green（anagrams の青の役割をそのまま置換） --- */
    --reic-green: #1e6b4b;        /* primary  ← #2980C3 */
    --reic-green-mid: #3e8c6a;    /* band     ← #4A9BD9 */
    --reic-green-deep: #16402e;   /* brand    */
    --reic-green-ink: #123527;    /* catch    ← #10334E */
    --reic-pale: #ffffff;         /* section  */
    --reic-hero: #ffffff;         /* hero     */
    --reic-dark: #0f1c16;         /* dark cta ← #171e26 */

    /* --- 背景の緑スケール（セクションは A→B→C を交互に敷く。隣接同色は禁止） --- */
    --reic-mint-1: #ffffff;
    --reic-mint-2: #ffffff;
    --reic-mint-3: #f8faf9;
    --reic-line-green: rgba(22, 64, 46, .14);

    /* --- accent（地図ピンのみ。背景色には使わない） --- */
    --reic-red: #c0392f;

    --reic-white: #fff;
    --reic-line: #c8cacb;
    --reic-line-soft: #e4e7e5;

    --reic-font: "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    --reic-font-en: "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

    /* 影は anagrams と同じ「輪郭を締めるだけ」の薄さに揃える。
       長距離のドロップシャドウは面が浮いて古く見えるので使わない。 */
    --reic-shadow-sm: 0 1px 3px 1px rgba(23, 24, 24, .03), 0 1px 2px 0 rgba(23, 24, 24, .06);
    --reic-shadow-md: 0 1px 3px 0 rgba(23, 24, 24, .10), 0 4px 8px 3px rgba(23, 24, 24, .08);

    --reic-header-h: 92px;
    --reic-content: 1120px;
    --reic-pad-x: clamp(20px, 5vw, 40px);
}

/* 記事ページ（hp/blog-article.css）は本文の上余白とスクロール位置を
   --bl-header-h で決めている。共通ヘッダーの高さに合わせて上書きする。 */
:root { --bl-header-h: 92px; }

body.menu-open { overflow: hidden; }
.rei-header a, .rei-mobile-nav a, .rei-footer a { color: inherit; text-decoration: none; }
.rei-header img, .rei-header svg, .rei-footer img, .rei-footer svg { display: block; max-width: 100%; }
.rei-header button, .rei-mobile-nav button { font: inherit; }
.rei-header em, .rei-footer em { font-style: normal; }
.rei-footer, .rei-header, .rei-mobile-nav {
    font-family: var(--reic-font);
    font-feature-settings: "palt";
    line-height: 1.8;
    color: var(--reic-ink);
}

.rei-site { overflow: clip; }
.rei-container { width: min(var(--reic-content), 100% - var(--reic-pad-x) * 2); margin-inline: auto; }
.rei-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: var(--reic-header-h);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(6px);
    transition: box-shadow .3s ease;
}
.rei-header.is-scrolled { box-shadow: 0 1px 0 rgba(23, 24, 24, .08), 0 8px 24px -20px rgba(23, 24, 24, .5); }
.rei-header__inner {
    width: min(1360px, 100% - 48px);
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
}
.rei-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-right: auto;
}
.rei-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.rei-logo__type {
    display: flex;
    flex-direction: column;
    font-family: var(--reic-font-en);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: .12em;
    color: var(--reic-green-deep);
}
.rei-logo__type i {
    font-family: var(--reic-font);
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    color: var(--reic-ink-4);
    margin-top: 7px;
    white-space: nowrap;
}
.rei-gnav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); }
.rei-gnav a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--reic-ink);
    white-space: nowrap;
    padding: 6px 0;
}
.rei-gnav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--reic-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.rei-gnav a:hover { color: var(--reic-green); }
.rei-gnav a:hover::after { transform: scaleX(1); }
.rei-gnav__search { display: grid; place-items: center; width: 34px; height: 34px; }
.rei-gnav__search svg { width: 22px; height: 22px; fill: none; stroke: var(--reic-ink); stroke-width: 1.6; }
.rei-gnav__search:hover svg { stroke: var(--reic-green); }
.rei-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--reic-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: background .25s ease, transform .25s ease;
}
.rei-header__cta svg {
    width: 18px; height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linejoin: round;
}
.rei-header__cta:hover { background: var(--reic-green-deep); transform: translateY(-1px); }
.rei-menu {
    display: none;
    place-content: center;
    gap: 5px;
    flex: none;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--reic-ink);
    padding: 0;
    cursor: pointer;
    transition: background .25s ease;
}
.rei-menu:hover { background: var(--reic-green-deep); }
.rei-menu span { display: block; width: 20px; height: 1.6px; background: #fff; margin: 0; }
.rei-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--reic-white);
    padding: 24px var(--reic-pad-x) 48px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.rei-mobile-nav.is-open { transform: none; }
.rei-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; }
.rei-mobile-nav__head span { font-family: var(--reic-font-en); font-size: 12px; letter-spacing: .1em; color: var(--reic-ink-4); }
.rei-mobile-nav__head button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--reic-ink); cursor: pointer; }
.rei-mobile-nav nav { display: flex; flex-direction: column; margin-top: 24px; }
.rei-mobile-nav nav a { padding: 20px 4px; border-bottom: 1px solid var(--reic-line-soft); font-size: 17px; font-weight: 600; }
.rei-mobile-nav nav a.is-contact { margin-top: 28px; border: 0; background: var(--reic-green); color: #fff; text-align: center; border-radius: 999px; }
.rei-footer {
    position: relative;
    background: #fff;
    color: var(--reic-ink);
    padding: clamp(44px, 5.4vw, 72px) 0 18px;
    border-top: 0;
}
.rei-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: clamp(48px, 9vw, 140px);
    align-items: start;
    padding-bottom: clamp(60px, 8vw, 92px);
}
.rei-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.rei-logo--footer { align-self: start; }
.rei-footer .rei-logo__type { color: var(--reic-ink); }
.rei-footer .rei-logo__type i { color: var(--reic-ink-4); }
.rei-footer__cta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 36px;
}
.rei-footer__cta {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--reic-line);
    border-radius: 999px;
    color: var(--reic-ink);
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.rei-footer__cta b {
    position: relative;
    font-family: var(--reic-font-en);
    font-size: 12px;
    letter-spacing: .02em;
}
.rei-footer__cta b::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 1px;
    height: 20px;
    background: var(--reic-line-soft);
    transform: translateY(-50%);
}
.rei-footer__cta span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}
.rei-footer__cta:hover {
    background: var(--reic-green);
    color: #fff;
    transform: translateY(-1px);
}
.rei-footer__tagline {
    margin: 42px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--reic-ink-3);
}
.rei-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 76px);
}
.rei-footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.rei-footer__col strong,
.rei-footer__col a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}
.rei-footer__col strong {
    margin-bottom: 4px;
    color: var(--reic-ink);
}
.rei-footer__col a {
    position: relative;
    padding-left: 22px;
    color: var(--reic-ink-3);
    line-height: 1.5;
    transition: color .2s ease;
}
.rei-footer__col a::before {
    content: "›";
    position: absolute;
    left: 0;
    top: .05em;
    display: grid;
    place-items: center;
    width: 12px;
    height: 12px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--reic-font-en);
    font-size: 11px;
    line-height: 1;
}
.rei-footer__col a:hover { color: var(--reic-green); }
.rei-footer__bottom {
    display: flex;
    justify-content: center;
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
}
.rei-footer__bottom p {
    margin: 0;
    font-family: var(--reic-font-en);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--reic-ink-4);
}
.rei-totop {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--reic-green);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 10px 24px -14px rgba(18, 53, 39, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
body.rei-scrolled .rei-totop { opacity: 1; visibility: visible; transform: none; }
.rei-totop:hover { background: var(--reic-green-deep); }
@media (max-width: 1180px) {
  .rei-menu { display: grid; }
  .rei-gnav { display: none; }
  .rei-gnav__search { display: none; }
  .rei-header__cta { margin-left: auto; }
  .rei-footer__main { gap: clamp(36px, 6vw, 72px); }
}
@media (max-width: 960px) {
  /* ヘッダー実高(--reic-header-h)と、本文側が使う --rei-header-h(76px) を揃える。
     ずれると固定ヘッダーの下に本文が潜り込む。 */
  :root { --reic-header-h: 76px; }
  .rei-footer__main { grid-template-columns: 1fr; }
  .rei-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rei-footer__nav { grid-template-columns: 1fr; }
  .rei-logo img { width: 38px; height: 38px; }
  .rei-logo__type { font-size: 20px; }
  .rei-logo__type i { font-size: 9px; letter-spacing: .06em; }
  .rei-footer {
        padding: 44px 0 16px;
    }
  .rei-footer__main {
        padding-bottom: 44px;
    }
}

/* スマホ幅ではロゴ・CTA・メニューが1行に収まらず、CTAがロゴに重なる。
   CTAはアイコンだけの正方形にして、ロゴは縮められるようにする。
   （rei/style.css と同じ指定。rei-chrome.css が後読みで上書きしてしまうため揃える） */
@media (max-width: 600px) {
  .rei-header__inner { width: min(1360px, 100% - 32px); gap: 10px; }
  .rei-logo { min-width: 0; gap: 10px; }
  .rei-logo img { width: 38px; height: 38px; }
  .rei-logo__type { font-size: 18px; letter-spacing: .08em; overflow: hidden; }
  .rei-logo__type i { font-size: 8.5px; letter-spacing: .04em; margin-top: 5px; }
  .rei-header__cta {
        flex: none;
        width: 46px;
        height: 46px;
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 8px;
        font-size: 0;
    }
  .rei-header__cta svg { width: 20px; height: 16px; stroke-width: 1.5; }
}

@media (max-width: 360px) {
  .rei-logo img { width: 34px; height: 34px; }
  .rei-logo__type { font-size: 17px; }
  .rei-logo__type i { display: none; }
}

@media print {
    .rei-header, .rei-mobile-nav, .rei-footer, .rei-totop { display: none !important; }
}
