/*
Theme Name: Theme (rename folder to change)
Description: Minimal starter theme — intentionally blank for custom design.
Version: 1.0
Author: Generated
*/
/* Styles intentionally left blank — add your styles in child or main stylesheet. */

/* ==========================
   Modern cross-browser CSS Reset
   - Desktop / Android / iOS / macOS touch browsers
   - Accessibility friendly
   - Keeps sensible defaults where appropriate
   ========================== */

/* 1) box-sizing を扱いやすく */
:root {
  --focus-ring: 3px; /* フォーカスリングの太さ調整用 */
  --focus-color: Highlight; /* 既定のフォーカス色（必要ならカスタム） */
}

/* 全要素で border-box に揃える */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) ブラウザ毎の基本余白をリセット */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, main, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

/* 3) html / body の基本設定 */
html {
  -webkit-text-size-adjust: 100%; /* iOS の自動テキスト拡大を無効化（必要なら100%） */
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* タッチ操作の既定を調整（必要に応じて上書きしてください） */
  touch-action: manipulation; /* タップでのダブルタップズーム等を制御 */
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: inherit;
  background: transparent;
  -webkit-tap-highlight-color: transparent; /* タップ時のハイライト（iOS / Android）を抑制 */
}

/* 4) 見出し／段落等のベーシックなラインハイト */
h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: 1.25;
}

/* 5) リストのスタイルリセット（必要なら復活） */
ol, ul {
  list-style: none;
}

/* 6) リンクの基本 */
a {
  background-color: transparent;
  color: inherit; /* デザインで色を指定する方針なら inherit に */
  text-decoration: none;
}
a:active, a:hover {
  outline: none;
}

/* 7) テーブルの基本 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 8) フォーム要素の一貫性（見た目はデザイナーで制御） */
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  vertical-align: middle;
  text-align: inherit;
}

/* 9) input[type="search"] のクリアボタン等の制御（ブラウザ差あり） */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* 10) type=number のスピンボタン除去（Chrome, Firefox）*/
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* 11) ボタンのフォーカスとキーボード操作に配慮（アクセシビリティ） */
button, [role="button"], input[type="button"], input[type="submit"] {
  cursor: pointer;
  background: transparent;
  border: none;
}
button:focus, [role="button"]:focus, input[type="button"]:focus, input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring) var(--focus-color);
  border-radius: 4px;
}

/* 12) フォーカス表示は :focus-visible を優先（キーボードでのみ表示） */
:focus {
  outline: none;
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring) var(--focus-color);
}

/* 13) 画像やメディアの扱い */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 14) iframe や埋め込みのレスポンシブ補助 */
iframe {
  max-width: 100%;
}

/* 15) selection のカスタム（任意のテーマカラーに置き換えてOK） */
::selection {
  background: rgba(20,130,200,0.25);
  color: inherit;
}

/* 16) アニメーションを減らす（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 17) WebKit系でタッチハンドラの遅延を抑えるヒント（必要時に上書き） */
a, button, input, label, textarea, select {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none; /* 長押し選択の挙動制御（iOS） */
}

/* 18) Hidden 属性のサポート */
[hidden] {
  display: none !important;
}

/* 19) SVG内のフォントスムージング (任意) */
svg { shape-rendering: geometricPrecision; }

/* 20) ユーティリティ（必要に応じて使用） */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

