/* site-extra.css — 静的移植で追加したスタイル（site.css は Manus 版のコンパイル済み Tailwind をそのまま使用） */

[hidden] { display: none !important; }

/* スキップリンク */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #2e3b2c; color: #faf7f2; padding: .5rem 1rem; font-size: .875rem;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* 狭い画面での折り返し：word-break:keep-all の本文に <wbr>（BudouX の文節区切り）を入れたうえで、
   それでも収まらない長い語だけを折り返す安全網 */
@media (max-width: 767px) {
  body { overflow-wrap: anywhere; }
}

/* PC幅の見出しは元サイトと同じく句読点・スペースでのみ改行（文節 <wbr> を無効化） */
@media (min-width: 1280px) {
  h1 wbr:not(.wbr-keep), h2 wbr, h3 wbr, .page-hero-copy p wbr { display: none; }
  .page-hero-copy, .page-hero-title { max-width: none; }
}

/* 事業カード：5枚目（PARTNER）は md 以上で横長 1 枚にする */
@media (min-width: 768px) {
  .service-card-wide { grid-column: 1 / -1; }
  .service-card-wide article { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}

/* 画像スロット（実画像未設定の枠）。見た目は枠の背景色のまま */
[data-image-slot] { background-color: transparent; }

/* フォーム */
.hp-field { display: none !important; }
.form-control:focus-visible,
[data-contact-form] input[type="radio"]:focus-visible,
[data-contact-form] input[type="checkbox"]:focus-visible { outline: 2px solid #b5623e; outline-offset: 2px; }
.form-control[aria-invalid="true"] { border-color: #b5623e; }
[data-contact-form] button[type="submit"][disabled] { opacity: .6; pointer-events: none; }

/* 法務ページ（プライバシーポリシー・電子公告） */
.legal { color: rgb(46 59 44 / .85); font-size: 1rem; line-height: 2; }
.legal h2 {
  font-family: "Shippori Mincho B1", serif; font-size: 1.5rem; line-height: 1.5;
  color: #2e3b2c; margin-top: 3.5rem; margin-bottom: 1rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.5em; margin-top: 1rem; }
.legal li { margin-top: .5rem; }
.legal a { color: #b5623e; text-decoration: underline; text-underline-offset: 4px; }
.legal a:hover { color: #2e3b2c; }
.legal strong { font-weight: 500; color: #2e3b2c; }
.legal-dl { border-top: 1px solid rgb(200 193 184 / .7); }
.legal-dl > div { display: grid; gap: .25rem; padding: 1rem 0; border-bottom: 1px solid rgb(200 193 184 / .7); }
.legal-dl dt { font-size: .75rem; letter-spacing: .22em; color: rgb(107 90 74 / .8); }
.legal-dl dd { color: #2e3b2c; }
@media (min-width: 768px) { .legal-dl > div { grid-template-columns: 160px 1fr; gap: 2rem; } }
.legal-meta { margin-top: 3.5rem !important; padding-top: 1.5rem; border-top: 1px solid rgb(200 193 184 / .7); font-size: .875rem; color: rgb(107 90 74 / .9); }
.legal-empty { padding: 1.5rem; border: 1px solid rgb(200 193 184 / .7); background: rgb(250 247 242 / .8); }

.legal-table-wrap { margin-top: 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.8; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem; border: 1px solid rgb(200 193 184 / .8); }
.legal-table thead th { background: rgb(250 247 242 / .9); font-weight: 400; font-size: .75rem; letter-spacing: .12em; color: #6b5a4a; }
.legal-table tbody th { font-weight: 500; color: #2e3b2c; }
@media (max-width: 767px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid rgb(200 193 184 / .8); margin-bottom: 1rem; background: rgb(250 247 242 / .6); }
  .legal-table th, .legal-table td { border: 0; border-bottom: 1px solid rgb(200 193 184 / .5); }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td::before { display: block; font-size: .7rem; letter-spacing: .12em; color: #6b5a4a; }
  .legal-table td:nth-of-type(1)::before { content: "送信先"; }
  .legal-table td:nth-of-type(2)::before { content: "送信される情報"; }
  .legal-table td:nth-of-type(3)::before { content: "利用目的"; }
  .legal-table td:nth-of-type(4)::before { content: "オプトアウト・詳細"; }
}

/* フッター：法務リンク */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 1.5rem; row-gap: .5rem; }

/* image note for generated/composited images */
[data-image-slot]{position:relative}
[data-image-slot].absolute{position:absolute}
[data-image-slot] picture{display:block;width:100%;height:100%}
.image-note{position:absolute;right:.75rem;bottom:.6rem;z-index:2;font-size:11px;line-height:1;letter-spacing:.08em;
  color:#fff;background:rgba(0,0,0,.45);padding:.3rem .5rem;border-radius:2px;pointer-events:none}
/* トップ画像はイメージ図の表記なし（2026-10-14） */
/* hero legibility over a light, busy illustration */
[data-image-slot="home-hero"]{z-index:0}
[data-image-slot="home-hero"]::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(24,34,30,.86) 0%,rgba(24,34,30,.72) 38%,rgba(24,34,30,.28) 68%,rgba(24,34,30,.08) 100%)}
@media (max-width:767px){[data-image-slot="home-hero"]::after{background:rgba(24,34,30,.66)}}

/* ロゴ（2026-10-10 確定版。正本は Drive の curosor_unitarica/04_Marketing/brand/logo/current/） */
.site-logo{line-height:0}
.site-logo__img{display:block;height:26px;width:auto}
@media (min-width:768px){.site-logo__img{height:30px}}
.footer-logo{line-height:1}
.footer-logo__img{display:block;height:28px;width:auto}
.footer-logo__name{display:block;margin-top:14px;font-size:.75rem;letter-spacing:.12em;color:rgb(43 58 103 / .72)}
