/* =====================================================================
   白梅屋 凛 — 和のしつらえ（共通）
   本館トップ・サポート窓口・管理画面で読み込む（稼働状況ページは自己完結のため、同じ考え方を中に書いている）。
     ・梅鉢の地紋（家紋と同じ五つの丸を、ごく薄く）
     ・和紙の紙面（白い入力欄・ログイン欄など）
     ・ヘッダーの下に障子の桟
     ・塗りのボタンを木札に
     ・ページ表題を題簽（本の表紙に貼る細長い札）のように
   トップページだけの飾り（掛け軸・角印など）は wa.css。
   ===================================================================== */
:root{
  --wa-umebachi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23D9BE81' stroke-width='0.9'%3E%3Cg id='u'%3E%3Ccircle cx='18' cy='12.5' r='3.2'/%3E%3Ccircle cx='23.2' cy='16.3' r='3.2'/%3E%3Ccircle cx='21.2' cy='22.4' r='3.2'/%3E%3Ccircle cx='14.8' cy='22.4' r='3.2'/%3E%3Ccircle cx='12.8' cy='16.3' r='3.2'/%3E%3Ccircle cx='18' cy='18' r='1.4'/%3E%3C/g%3E%3Cuse href='%23u' x='36' y='36'/%3E%3C/g%3E%3C/svg%3E");
  --wa-washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.23 0 0 0 0 0.36 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E");
  --wa-kinran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='28' height='28' fill='%234A3B5C'/%3E%3Cpath d='M14 3 L25 14 L14 25 L3 14Z' fill='none' stroke='%23C9A24B' stroke-opacity='.35' stroke-width='.8'/%3E%3Ccircle cx='14' cy='14' r='1.6' fill='%23C9A24B' fill-opacity='.45'/%3E%3C/svg%3E");
  --wa-veil: linear-gradient(rgba(43,37,48,.976), rgba(43,37,48,.976));
  --wa-washi-bg: #F5F1F4;
  --wa-shoji: rgba(217,190,129,.5);
}

/* 地紋 */
body{ background-color:var(--ink); background-image: var(--wa-veil), var(--wa-umebachi); background-size:auto, 72px 72px; }

/* ヘッダー（サポート・管理画面の簡易ナビ）の下に障子の桟 */
nav.admin-nav{ position:relative; border-bottom:0; background:transparent; }
nav.admin-nav::after{
  content:""; position:absolute; left:0; right:0; bottom:-14px; height:14px; pointer-events:none; opacity:.55;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, var(--wa-shoji) 58px 60px),
    linear-gradient(var(--wa-shoji), var(--wa-shoji)) top / 100% 2px no-repeat,
    linear-gradient(var(--wa-shoji), var(--wa-shoji)) bottom / 100% 2px no-repeat;
}

/* 木札のボタン */
.btn{ border-radius:3px; }
.btn.solid{
  background:linear-gradient(#e2c98f, #cfae66);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 2px 0 #8d6e2c;
}
.btn.solid:active{ transform:translateY(1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 1px 0 #8d6e2c; }
.btn:focus-visible{ outline:2px solid var(--gold-soft); outline-offset:3px; }
.btn:disabled{ transform:none; }

/* 和紙の紙面（入力欄・ログイン欄・日記を書く欄） */
.contact-form, .admin-login, .diary-write{
  background-color:var(--wa-washi-bg); background-image:var(--wa-washi);
  box-shadow: 0 0 0 1px rgba(217,190,129,.35), 0 0 0 6px rgba(43,37,48,.6), 0 0 0 7px rgba(217,190,129,.18);
}
.contact-form input, .contact-form select, .contact-form textarea,
.admin-login input, .diary-write .diary-input, .diary-write .diary-textarea{ background-color:transparent; }

/* ページの表題を題簽のように（左に金の二本線） */
.support-wrap h1, .contact-wrap h1, .policy-wrap h1, .admin-wrap h1, .admin-wrap > h1.mincho{
  border-left:3px double var(--gold-soft); padding-left:18px; letter-spacing:.08em;
}

/* 規約・ポリシーの小見出しは、帳面の二重罫 */
.policy-wrap h2{ border-bottom:3px double var(--plum-line); }

/* サポート窓口の案内札: 梅鉢の小さな印を添える */
.support-card-title{ display:flex; align-items:center; gap:12px; }
.support-card-title::before{
  content:""; width:18px; height:18px; flex-shrink:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='none' stroke='%23D9BE81' stroke-width='1.6'/%3E%3Cg fill='%23D9BE81'%3E%3Ccircle cx='20' cy='9' r='3.6'/%3E%3Ccircle cx='29.5' cy='15' r='3.6'/%3E%3Ccircle cx='26' cy='26' r='3.6'/%3E%3Ccircle cx='14' cy='26' r='3.6'/%3E%3Ccircle cx='10.5' cy='15' r='3.6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.support-card{ background-color:rgba(43,37,48,.92); }
.support-card:hover{ background-color:rgba(61,53,70,.95); }
