/*
 * 当社の枠（ヘッダー・フッター・お問い合わせ・注記）の CSS。本文の CSS は base.css（取り込み元の Base CSS を取り込んだもの）。
 * 色と寸法は base.css の変数（--blue / --head / --muted / --line / --off / --soft / --r）を使う。
 */

/* 取り込み元の <style> にあった画像の既定。取り込んだ本文が <img data-astro-image> を持つ場合に備えて移した。 */
@layer astro.images {
  :where([data-astro-image]) {
    height: auto;
  }
  :where([data-astro-image="full-width"]) {
    width: 100%;
  }
  :where([data-astro-image="constrained"]) {
    max-width: 100%;
  }
  [data-astro-image-fit="fill"] {
    object-fit: fill;
  }
  [data-astro-image-fit="contain"] {
    object-fit: contain;
  }
  [data-astro-image-fit="cover"] {
    object-fit: cover;
  }
  [data-astro-image-fit="scale-down"] {
    object-fit: scale-down;
  }
}

/* ロゴ。site.json の logo が null のときは社名をテキストで描く。 */
.hd-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hd-logo img {
  display: block;
  width: auto;
  height: 40px;
}
@media (max-width: 860px) {
  .hd-logo img {
    height: 32px;
  }
}
.hd-logo-text {
  color: var(--head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.hd-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

.ft-name {
  color: var(--head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ft-brand a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ft-cols {
  grid-template-columns: repeat(2, 1fr);
}
.ft-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 本文の中のリンク（取り込み時に style 属性から置き換えたもの）。 */
.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 帰属の注記。TRUST の見出しの直後に差し込む。 */
.operator-note {
  background: var(--soft);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--head);
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0 20px;
  padding: 12px 16px;
}

/* 見つからないページ */
.notfound {
  padding-bottom: 96px;
  padding-top: 96px;
}

/* お問い合わせのフォーム。取り込み元のお問い合わせページの埋め込みスタイル（2026-11-05）から、Astro の属性セレクタを外して写した。 */
.sf{gap:18px;max-width:none;margin:32px 0 0;display:grid}
.sf-note{color:#52677a;margin:0;font-size:13.5px}
.sf-row{gap:6px;display:grid}
.sf-l{align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}
.sf-badge{color:#fff;letter-spacing:.04em;vertical-align:middle;background:#b3261e;border-radius:4px;margin-left:6px;padding:4px 7px;font-size:11px;font-weight:700;line-height:1;display:inline-block}
.sf-l .sf-badge,.sf-note .sf-badge{margin-left:0}
.sf-opt{color:#52677a;background:#e9eef3}
.sf input[type=text],.sf input[type=email],.sf input[type=tel],.sf select,.sf textarea{width:100%;font:inherit;box-sizing:border-box;background:#fff;border:1px solid #7b8794;border-radius:6px;padding:12px 14px;font-size:16px}
.sf [aria-invalid=true]{background:snow!important;border-color:#b3261e!important}
.sf-ferr{color:#b3261e;margin:0;font-size:13.5px;font-weight:600}
.sf-consent-wrap{gap:4px;display:grid}
.sf-consent{cursor:pointer;align-items:center;gap:10px;min-height:44px;font-size:15px;display:flex}
.sf-consent input{accent-color:#1e5a9f;flex:0 0 20px;width:20px;height:20px}
.sf-hp{opacity:0;width:1px;height:1px;position:absolute;left:-9999px}
.sf-err{color:#c22;margin:0;font-weight:700}
.sf button{cursor:pointer;border:0;justify-self:center;min-width:240px;min-height:48px;font-family:inherit}
.sf-thanks{background:#f3faf5;border:1px solid #cfe3d5;border-radius:8px;padding:24px}
.sf-thanks-h{margin:0 0 8px;font-size:18px;font-weight:700}
.sf-thanks:focus{outline-offset:3px;outline:3px solid #1e5a9f}
.sf-btn{justify-content:center;align-items:center;gap:10px;display:inline-flex}
.sf-btn:disabled{opacity:.75;cursor:wait}
.sf-spin{border:2px solid #ffffff73;border-top-color:#fff;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite sf-rot}
@keyframes sf-rot{to{transform:rotate(360deg)}
}
@media (prefers-reduced-motion:reduce){.sf-spin{border-top-color:#ffffff73;border-right-color:#fff;animation:none}
}
.sf-busy .sf-row,.sf-busy .sf-consent{opacity:.55;pointer-events:none}
.sf-status{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}
[hidden]{display:none!important}
.sf-prefill{color:#1d3b5c;background:#eef6fb;border-left:4px solid #1e5a9f;border-radius:8px;margin:28px 0 -12px;padding:12px 16px;font-size:14px}

@layer astro.images{:where([data-astro-image]){height:auto}
:where([data-astro-image=full-width]){width:100%}
:where([data-astro-image=constrained]){max-width:100%}
[data-astro-image-fit=fill]{object-fit:fill}
[data-astro-image-fit=contain]{object-fit:contain}
[data-astro-image-fit=cover]{object-fit:cover}
[data-astro-image-fit=scale-down]{object-fit:scale-down}
[data-astro-image-pos=top]{object-position:top}
[data-astro-image-pos=bottom]{object-position:bottom}
[data-astro-image-pos=left]{object-position:left}
[data-astro-image-pos=right]{object-position:right}
[data-astro-image-pos=center]{object-position:center}
[data-astro-image-pos=top-left]{object-position:top left}
[data-astro-image-pos=top-right]{object-position:top right}
[data-astro-image-pos=top-center]{object-position:top center}
[data-astro-image-pos=bottom-left]{object-position:bottom left}
[data-astro-image-pos=bottom-right]{object-position:bottom right}
[data-astro-image-pos=bottom-center]{object-position:bottom center}
[data-astro-image-pos=left-top]{object-position:left top}
[data-astro-image-pos=left-bottom]{object-position:left bottom}
[data-astro-image-pos=left-center]{object-position:left center}
[data-astro-image-pos=right-top]{object-position:right top}
[data-astro-image-pos=right-bottom]{object-position:right bottom}
[data-astro-image-pos=right-center]{object-position:right center}
[data-astro-image-pos=center-top]{object-position:center top}
[data-astro-image-pos=center-bottom]{object-position:center bottom}
[data-astro-image-pos=center-left]{object-position:center left}
[data-astro-image-pos=center-right]{object-position:center right}
}

.sf-pending{margin:0;padding:12px 14px;border:1px dashed #7b8794;border-radius:6px;color:#52677a;font-size:14px;text-align:center}
.sf button[aria-disabled="true"]{cursor:not-allowed;opacity:.55}
