/*
 * ヘッダー・フッターの新デザイン(全ページ共通)
 * 2026-10-24 kazuki「（ヘッダーとフッターは）新デザインにして」
 * 色・書体は rfdx-site.css の新デザインに合わせる: グレー #e3e7ea / ティール #00BDA3 / 見出し Noto Serif JP / 本文 Noto Sans JP / 角のない四角
 * フッターの中身は「フッター（PC）1〜3」のカスタム HTML ウィジェット(rf-ft-* のクラス。原本 drafts/_blocks/chrome/footer-*.html)
 * 2026-10-24 見比べ(drafts/_blocks/chrome/chrome-variants.css の A〜F)から kazuki が「ヘッダー：C フッター：A」を選択
 *   ヘッダー C = メニューの上に小さな英字を添え、上端にティールの線 / フッター A = 明るいグレー
 */

/* ---------- ヘッダー ---------- */
#header.l-header, #fix_header .l-fixHeader { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; border-bottom: 1px solid rgba(17,17,17,.08); }
#header .c-catchphrase { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; letter-spacing: .06em; color: #7a8681; }
#header .c-gnav > li > a, #fix_header .c-gnav > li > a { font-family: 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .04em; color: #111; }
#header .c-gnav > li > a .ttl, #fix_header .c-gnav > li > a .ttl { position: relative; padding-bottom: 4px; }
#header .c-gnav > li > a .ttl::after, #fix_header .c-gnav > li > a .ttl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #00BDA3; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
#header .c-gnav > li > a:hover .ttl::after, #header .c-gnav > .current-menu-item > a .ttl::after, #header .c-gnav > .current-menu-ancestor > a .ttl::after,
#fix_header .c-gnav > li > a:hover .ttl::after, #fix_header .c-gnav > .current-menu-item > a .ttl::after { transform: scaleX(1); }
/* SWELL の下線は使わない(上の .ttl の線に置き換える) */
#header .c-gnav > li > a::after, #fix_header .c-gnav > li > a::after { display: none; }
#header .c-gnav > li:hover > a, #fix_header .c-gnav > li:hover > a { background: none; color: #111; }
/* 最後の「お問い合わせ」はティールの四角いボタン */
#header .c-gnav > li.menu-item-101, #fix_header .c-gnav > li.menu-item-101 { margin-left: 14px; display: flex; align-items: center; }
#header .c-gnav > li.menu-item-101 > a, #fix_header .c-gnav > li.menu-item-101 > a { height: auto; padding: 12px 22px; background: #00BDA3; color: #111; font-weight: 700; transition: background .25s, color .25s; }
#header .c-gnav > li.menu-item-101 > a .ttl, #fix_header .c-gnav > li.menu-item-101 > a .ttl { padding: 0; }
#header .c-gnav > li.menu-item-101 > a .ttl::after, #fix_header .c-gnav > li.menu-item-101 > a .ttl::after { display: none; }
#header .c-gnav > li.menu-item-101 > a:hover, #fix_header .c-gnav > li.menu-item-101 > a:hover { background: #111; color: #fff; }
/* C 英字付き: メニューの上に小さな英字(メニュー項目の ID ごと)。上端にティールの線 */
#header.l-header { border-top: 4px solid #00BDA3; }
#header .c-gnav > li > a, #fix_header .c-gnav > li > a { flex-direction: column; justify-content: center; line-height: 1.2; }
#header .c-gnav > li > a .ttl::before, #fix_header .c-gnav > li > a .ttl::before { display: block; margin-bottom: 4px; font: 600 9.5px/1 'Noto Serif JP', serif; letter-spacing: .22em; color: #00897A; text-align: center; }
#header .menu-item-585 > a .ttl::before, #fix_header .menu-item-585 > a .ttl::before { content: "HOME"; }
#header .menu-item-1655 > a .ttl::before, #fix_header .menu-item-1655 > a .ttl::before { content: "SERVICE"; }
#header .menu-item-441 > a .ttl::before, #fix_header .menu-item-441 > a .ttl::before { content: "WORKS"; }
#header .menu-item-442 > a .ttl::before, #fix_header .menu-item-442 > a .ttl::before { content: "COLUMN"; }
#header .menu-item-1891 > a .ttl::before, #fix_header .menu-item-1891 > a .ttl::before { content: "COMPANY"; }
#header .menu-item-101 > a .ttl::before, #fix_header .menu-item-101 > a .ttl::before { content: "CONTACT"; color: #111; }
#header .c-gnav > li > a .ttl::after, #fix_header .c-gnav > li > a .ttl::after { bottom: -6px; }
#header .c-gnav .sub-menu a .ttl::before, #fix_header .c-gnav .sub-menu a .ttl::before { content: none; }
/* 事業内容の小メニュー */
#header .c-gnav .sub-menu, #fix_header .c-gnav .sub-menu { background: #fff; border: 1px solid rgba(17,17,17,.08); border-top: 2px solid #00BDA3; border-radius: 0; box-shadow: 0 24px 40px -24px rgba(13,13,13,.35); min-width: 220px; }
#header .c-gnav .sub-menu a, #fix_header .c-gnav .sub-menu a { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; color: #111; padding: 13px 20px; }
#header .c-gnav .sub-menu a:hover, #fix_header .c-gnav .sub-menu a:hover { background: #eef1f3; color: #00897A; }
#header .c-gnav .sub-menu a::before, #fix_header .c-gnav .sub-menu a::before { display: none; }
/* スマホ: 開閉ボタンとメニュー */
.l-header__menuBtn .c-iconBtn__icon, .l-header__menuBtn { color: #111; }
#sp_menu .p-spMenu__inner { background: #eef1f3; }
/* SWELL は背景を ::before に塗り、項目の前の印も消すため !important で上書きする(2026-10-24) */
#sp_menu .p-spMenu__inner::before { background: #eef1f3 !important; opacity: 1 !important; }
#sp_menu .c-widget__title.-spmenu { font-family: 'Noto Serif JP', serif; font-size: 13px; letter-spacing: .3em; color: #00897A; border: 0; }
#sp_menu .c-widget__title.-spmenu::before, #sp_menu .c-widget__title.-spmenu::after { display: none; }
#sp_menu .c-spnav a { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 500; color: #111; padding: 15px 4px; border-bottom: 1px solid rgba(17,17,17,.1); }
/* スマホのメニュー E(2026-10-24 kazuki「スマホメニュー開いたとき：E」): 項目の下に小さな英字。四角の印は出さない(追加 CSS でも消されている) */
html #sp_menu.p-spMenu .c-spnav > li > a::before { display: none !important; }
html #sp_menu.p-spMenu .c-spnav > li > a { font-size: 17px; font-weight: 700; padding: 16px 4px; }
html #sp_menu.p-spMenu .c-spnav > li > a::after { display: block; margin-top: 4px; font: 600 10px/1 'Noto Serif JP', serif; letter-spacing: .24em; color: #00897A; position: static; border: 0; width: auto; height: auto; transform: none; }
html #sp_menu.p-spMenu .menu-item-585 > a::after { content: "HOME"; }
html #sp_menu.p-spMenu .menu-item-1655 > a::after { content: "SERVICE"; }
html #sp_menu.p-spMenu .menu-item-441 > a::after { content: "WORKS"; }
html #sp_menu.p-spMenu .menu-item-442 > a::after { content: "COLUMN"; }
html #sp_menu.p-spMenu .menu-item-1891 > a::after { content: "COMPANY"; }
html #sp_menu.p-spMenu .menu-item-101 > a::after { content: "CONTACT"; }
#sp_menu .c-spnav .sub-menu a { font-size: 14px; color: #4d5a55; padding-left: 24px; }
#sp_menu .c-spnav .sub-menu a::before { display: none; }

/* プルダウン C(2026-10-24 kazuki「プルダウン：C」): 項目の下に短い説明 */
#header .c-gnav .sub-menu, #fix_header .c-gnav .sub-menu { min-width: 300px; padding: 8px 0; }
#header .c-gnav .sub-menu a, #fix_header .c-gnav .sub-menu a { padding: 14px 24px; }
#header .c-gnav .sub-menu a .ttl, #fix_header .c-gnav .sub-menu a .ttl { font-weight: 700; }
#header .c-gnav .sub-menu a .ttl::after, #fix_header .c-gnav .sub-menu a .ttl::after { display: block; margin-top: 4px; font-weight: 400; font-size: 11.5px; color: #7a8681; position: static; height: auto; background: none; transform: none; }
#header .c-gnav .sub-menu li + li, #fix_header .c-gnav .sub-menu li + li { border-top: 1px solid rgba(17,17,17,.06); }
#header .c-gnav .sub-menu .menu-item-1654 > a .ttl::after, #fix_header .c-gnav .sub-menu .menu-item-1654 > a .ttl::after { content: "業務の整理から、開発・定着まで"; }
#header .c-gnav .sub-menu .menu-item-1653 > a .ttl::after, #fix_header .c-gnav .sub-menu .menu-item-1653 > a .ttl::after { content: "システム・アプリ・クラウド"; }
#header .c-gnav .sub-menu .menu-item-1652 > a .ttl::after, #fix_header .c-gnav .sub-menu .menu-item-1652 > a .ttl::after { content: "AIスクール「Spark AI」"; }
#header .c-gnav .sub-menu .menu-item-1725 > a .ttl::after, #fix_header .c-gnav .sub-menu .menu-item-1725 > a .ttl::after { content: "毎月3社限定・無料"; }

/* 開閉ボタン C(2026-10-24 kazuki「ハンバーガー：C」): 長短の2本線。下の短い線はティール */
.l-header__menuBtn .c-iconBtn { position: relative; width: 48px; height: 48px; }
.l-header__menuBtn .c-iconBtn__icon { display: none !important; }
.l-header__menuBtn .c-iconBtn::before { content: ""; position: absolute; right: 12px; top: 19px; width: 24px; height: 2px; background: #111; pointer-events: none; }
.l-header__menuBtn .c-iconBtn::after { content: ""; position: absolute; right: 12px; bottom: 19px; width: 14px; height: 2px; background: #00BDA3; pointer-events: none; transition: width .3s; }
.l-header__menuBtn .c-iconBtn:hover::after { width: 24px; }

/* ---------- フッター(明るい版) ---------- */
#footer.l-footer { position: relative; overflow: hidden; background: #e3e7ea; color: #2b3632; font-family: 'Noto Sans JP', sans-serif; border-top: 1px solid rgba(17,17,17,.08); }
#footer.l-footer::before { content: "REFAST"; position: absolute; right: -.04em; bottom: 52px; font: 600 clamp(90px, 15vw, 220px)/1 'Noto Serif JP', serif; color: rgba(255,255,255,.6); letter-spacing: .02em; pointer-events: none; }
/* 追加 CSS に .l-footer__widgetArea { padding-top: 0 !important } があるため、ID 付きの !important で上の余白を確保する(2026-10-24 kazuki「上の若干余裕ほしい」) */
#footer .l-footer__widgetArea { position: relative; z-index: 1; background: none; padding: 96px 0 64px; padding-top: 96px !important; }
#footer .w-footer__box { padding: 0 28px; }
.rf-ft-logo img { display: block; width: 200px; height: auto; }
.rf-ft-text { margin: 22px 0 0; font-size: 13.5px; line-height: 1.95; color: #4d5a55; }
.rf-ft-addr { margin: 16px 0 0; font-size: 13px; line-height: 1.9; color: #4d5a55; font-style: normal; }
.rf-ft-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; padding: 0 0 14px; border-bottom: 1px solid rgba(17,17,17,.14); font: 700 15px/1.4 'Noto Serif JP', serif; color: #111; letter-spacing: .06em; }
.rf-ft-head::before { content: ""; width: 9px; height: 9px; background: #00BDA3; align-self: center; flex: none; }
.rf-ft-head span { font: 600 11px/1 'Noto Serif JP', serif; letter-spacing: .24em; color: #00897A; }
.rf-ft-sns-head { margin-top: 30px; }
.rf-ft-links { list-style: none; margin: 0; padding: 0; }
.rf-ft-links li { margin: 0 0 13px; }
.rf-ft-links a { position: relative; display: inline-block; font-size: 13.5px; color: #2b3632; text-decoration: none; transition: color .25s; }
.rf-ft-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #00BDA3; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.rf-ft-links a:hover { color: #00897A; } .rf-ft-links a:hover::after { transform: scaleX(1); }
.rf-ft-sns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rf-ft-sns a { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; color: #2b3632; border: 1px solid rgba(17,17,17,.1); transition: background .25s, color .25s, border-color .25s; }
.rf-ft-sns a:hover { background: #00BDA3; border-color: #00BDA3; color: #111; }
.rf-ft-sns svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.rf-ft-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rf-ft-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: #00BDA3; color: #111; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background .25s, color .25s; }
.rf-ft-btn:hover { background: #111; color: #fff; }
.rf-ft-btn.-line { background: transparent; color: #111; box-shadow: inset 0 0 0 1px #111; }
.rf-ft-btn.-line:hover { background: #111; color: #fff; }
#footer .l-footer__foot { position: relative; z-index: 1; background: #111; padding: 20px 0 22px; }
#footer .l-footer__foot .copyright { font-size: 11.5px; line-height: 1.9; letter-spacing: .04em; color: rgba(255,255,255,.7); }
#footer .refast-recaptcha-notice { color: rgba(255,255,255,.55) !important; }
#footer .refast-recaptcha-notice a { color: rgba(255,255,255,.55) !important; }
/* ページ上部へ戻るボタンも四角に */
#pagetop.c-fixBtn, .p-fixBtnWrap .c-fixBtn { border-radius: 0; background: #00BDA3; color: #111; border: 0; box-shadow: none; }

@media (max-width: 959px) {
  #footer .l-footer__widgetArea { padding: 64px 0 48px; padding-top: 64px !important; }
  #footer .w-footer__box { padding: 0; margin-bottom: 40px; }
  #footer.l-footer::before { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  #header .c-gnav > li > a .ttl::after, .rf-ft-links a::after { transition: none; }
}
