/* ==========================================================================
   base.css — リセットと素の要素のデフォルト

   site.css（デザイン本体）が前提としている土台。旧サイトが読み込んでいた
   Webflow の normalize / base CSS のうち、このサイトが実際に依存している
   宣言だけを書き起こしたもの。値を変えると site.css 側の見え方がずれる。
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: #333;
  background-color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

/* 旧サイトの .body-2。ページ全体の下地色 */
.body-2 {
  display: flex;
  flex-flow: column;
  justify-content: center;
  background-color: #f6f1ec;
}

img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

/* すべての img に width / height 属性を入れてある。読み込み前から
   場所を確保させ、表示中のレイアウトのずれ（CLS）を抑えるため。

   ただしブラウザは、この属性を縦横比のヒントとしてだけでなく
   UA スタイルシート相当の実寸指定としても扱う。site.css が幅だけを
   指定している画像では、属性の高さがそのまま効いて崩れてしまう。

   そこで要素セレクタで auto に戻す。クラス指定（詳細度が高い）は
   そのまま生き残るのでデザイン側の寸法は保たれ、
   縦横比は属性から計算されるので場所の確保だけが残る。 */
img {
  width: auto;
  height: auto;
}

/* 見出しは Webflow のデフォルト値をそのまま踏襲する。
   site.css 側が font-size / line-height だけ上書きしている箇所があり、
   margin と font-weight はここの値が効いている。 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  margin-top: 20px;
  font-size: 38px;
  line-height: 44px;
}

h2 {
  margin-top: 20px;
  font-size: 32px;
  line-height: 36px;
}

h3 {
  margin-top: 20px;
  font-size: 24px;
  line-height: 30px;
}

h4 {
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
}

h5 {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
}

h6 {
  margin-top: 10px;
  font-size: 12px;
  line-height: 18px;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* 箇条書き。ブラウザ既定の margin-block-start は 1em（= 14px）あり、
   div から ul に変えた箇所で余白が増えてしまうため 0 に戻す。
   値は旧サイトの Webflow ベースと同じ。 */
ul,
ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

a {
  background-color: transparent;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

textarea {
  overflow: auto;
}

code {
  font-family: monospace;
  font-size: 1em;
}

/* 旧サイトの .w-inline-block 相当。リンクをブロック的に並べるため */
.link-block {
  display: inline-block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   フォーム部品の下地（旧 .w-input / .w-select 相当）
   -------------------------------------------------------------------------- */

.form-input {
  display: block;
  width: 100%;
  height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
  font-size: 14px;
  line-height: 1.42857;
}

/* --------------------------------------------------------------------------
   アクセシビリティ
   -------------------------------------------------------------------------- */

/* キーボード操作時だけフォーカスリングを出す */
:focus-visible {
  outline: 2px solid #bf6e4c;
  outline-offset: 2px;
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 「視差効果を減らす」設定の端末ではアニメーションを止める。
   delay も 0 にしないと、登場アニメーションの待機中は要素が
   隠れたままになり、その分だけ表示が遅れてしまう。 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
