@charset "utf-8";

/* ==================================
   リセット・ベース（モバイルファースト）
================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  /*font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;*/
  font-family: "Zen Old Mincho", serif !important;
  font-size: 1.6rem;
  line-height: 2;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-align: justify;
}
.noto {
  font-family: "Noto Sans JP", serif;
}
.mincho {
  font-family: "Zen Old Mincho", serif;
}
.roboto {
  font-family: "Roboto", sans-serif;
}
.outfit {
  font-family: "Outfit", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: 0.3s; display: inline-block; }

ul, ol { list-style: none; }

table { border-collapse: collapse; border-spacing: 0; }

/* フォーム要素のベース（リセット相当） */
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none; /* ↓後段の :focus-visible で視認性を復活 */
}

/* ==================================
   prefers-reduced-motion 配慮
================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==================================
   変数（スケール/トークン）
================================== */
:root {
  --container: 1200px;
  --gutter: 12px;

  /* spacing scale (8pxベース) */
  --space-1: .5rem;   /* 8px   */
  --space-2: .75rem;  /* 12px  */
  --space-3: 1rem;    /* 16px  */
  --space-4: 1.5rem;  /* 24px  */
  --space-5: 2rem;    /* 32px  */
  --space-6: 3rem;    /* 48px  */

  --radius: .75rem;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --lh: 1.7;
}

/* ==================================
   レイアウト・構造系
================================== */
#wrap {
  width: 100%;
  max-width: 2560px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

.clearfix::after { content: ""; display: block; clear: both; }

/* コンテナ（既存 .block と互換） */
.container, .block {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==================================
   ユーティリティ
================================== */
.rel   { position: relative; }
.z-in  { z-index: 100; }
.z-0   { z-index: 0; }
.z-10  { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000{ z-index: 1000; }
.flex { display: flex; }
.inline-flex{ display: inline-flex; }
.fww        { flex-wrap: wrap; }
.fwr        { flex-wrap: wrap-reverse; }
.col        { flex-direction: column; }
.aic        { align-items: center; }
.aifs       { align-items: flex-start; }
.aife       { align-items: flex-end; }
.jsc        { justify-content: center; }
.jsb        { justify-content: space-between; }
.jsa        { justify-content: space-around; }
.jse        { justify-content: space-evenly; }
.gap-1      { gap: var(--space-1); }
.gap-2      { gap: var(--space-2); }
.gap-3      { gap: var(--space-3); }
.gap-4      { gap: var(--space-4); }
.gap-5      { gap: var(--space-5); }

.grid       { display: grid; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-auto  { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-gap-3 { gap: var(--space-3); }
.grid-gap-4 { gap: var(--space-4); }

.tce, .ta-c { text-align: center; }
.ta-l { text-align: left; }
.ta-r { text-align: right; }

.fs-sm   { font-size: clamp(.875rem, .85rem + .2vw, .95rem); }
.fs-base { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.fs-lg   { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); }
.fs-xl   { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); }

.lh        { line-height: var(--lh); }
.lh-tight  { line-height: 1.3; }
.lh-loose  { line-height: 1.9; }
.fw-b      { font-weight: 700; }
.fw-m      { font-weight: 500; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ぶら下げインデント */
.ti      { text-indent: -1em;   padding-inline-start: 1em;   display: block; }
.ti1-5   { text-indent: -1.5em; padding-inline-start: 1.5em; display: block; }

/* 縦リズム（親に .flow を付与） */
.flow > * + * { margin-block-start: var(--flow-space, var(--space-4)); }

/* スペーシング（論理プロパティ） */
.mt-1 { margin-block-start: var(--space-1); }
.mt-2 { margin-block-start: var(--space-2); }
.mt-3 { margin-block-start: var(--space-3); }
.mt-4 { margin-block-start: var(--space-4); }
.mt-5 { margin-block-start: var(--space-5); }

.mb-1 { margin-block-end: var(--space-1); }
.mb-2 { margin-block-end: var(--space-2); }
.mb-3 { margin-block-end: var(--space-3); }
.mb-4 { margin-block-end: var(--space-4); }
.mb-5 { margin-block-end: var(--space-5); }

.my-3   { margin-block: var(--space-3); }
.mx-auto{ margin-inline: auto; }

/* 既存互換（固定値） */
.m20  { margin-block-start: 20px; }
.m50  { margin-block-start: 50px; }
.m100 { margin-block-start: 100px; }

/* サイズ・外観 */
.w-100   { width: 100%; }
.maxw-sm { max-width: 640px; }
.maxw-md { max-width: 768px; }
.maxw-lg { max-width: 1024px; }

.rounded { border-radius: var(--radius); }
.shadow  { box-shadow: var(--shadow); }
.border  { border: 1px solid rgba(0,0,0,.08); }

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1  { aspect-ratio: 1; }

/* 表示制御・ブレーク制御 */
.hidden { display: none !important; }
.vis-hidden { visibility: hidden; }
.pointer { cursor: pointer; }

.Pc_Br { display: none; }
.Sp_Br { display: block; }

.Pc { display: none; }

/* アクセシビリティ：スクリーンリーダー＆フォーカスリング */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:where(a, button, input, textarea, select, summary, [tabindex])\:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid CanvasText;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}

/* 固定ヘッダー用のスクロール余白 */
.scroll-mt-header { scroll-margin-top: 80px; }

/* クリック範囲拡張（小さなアイコン等） */
.hit-area { position: relative; }
.hit-area::before { content: ""; position: absolute; inset: -8px; }

/* ==================================
   レスポンシブ
================================== */
/* 768px以上（タブレット） */
@media (min-width: 768px) {
/* ==================================
   変数（スケール/トークン）
================================== */
:root {
  --gutter: 16px;
}	
	
	
  .block { padding-inline: 24px; }
  .md\:grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .md\:grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .md\:col    { flex-direction: row; }
  .md\:mt-0   { margin-block-start: 0; }
  body { font-family: "Zen Old Mincho", serif !important;}
}

/* 992px以上（ノートPC以上） */
@media (min-width: 992px) {
  .Pc_Br { display: block; }
  .Sp_Br { display: none; }
  .Pc { display: block; }
  .Sp    { display: none !important; }
}
