/* =========================================================
  style.css (starter template)
  - 最低限の土台とプレースホルダーのみ
  - reset.css は HTML 側で先に読み込み推奨
    例）
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
========================================================= */


/* --- カスケードレイヤ（順序制御） ---------------------- */
@layer reset, base, theme, components, utilities;

/* --- 変数（テーマ共通） -------------------------------- */
@layer base {
  :root {
    /* 色 */
    --color-bg: #ffffff;
    --color-fg: #222222;
    --color-accent: #2563eb;

    /* フォント */
    --jp-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Yu Gothic", "Meiryo", sans-serif;
    --base-fz: 16px;
    --lh: 1.7;

    /* レイアウト */
    --max-w: 72rem;       /* 1152px */
    --pad-x: 1rem;

    /* スペーシング（8pt系） */
    --space-1: .25rem;   /* 4px  */
    --space-2: .5rem;    /* 8px  */
    --space-3: .75rem;   /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-12: 3rem;    /* 48px */
  }
}

/* --- ベース（素の要素だけ、極力最小限） ---------------- */
@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

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

  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: var(--base-fz);
    line-height: var(--lh);
  }

  img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  /* アクセシブルなフォーカスリング（最低限） */
  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}

/* --- テーマ（ダークモードなど切替用。必要なら編集） ---- */
@layer theme {
  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg: #0b0b0f;
      --color-fg: #e7e7ea;
      --color-accent: #60a5fa;
    }
  }
}

/* --- コンポーネント（BEMやCSS Modules等の置き場） ------ */
@layer components {
  /* 例：.container（よく使うラッパー。不要なら削除可） */
  .container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
  }
}

/* --- ユーティリティ（小粒クラス。必要最低限の例） ------ */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .mt-0   { margin-top: 0 !important; }
  .mb-0   { margin-bottom: 0 !important; }
  .mt-4   { margin-top: var(--space-4) !important; }
  .mb-4   { margin-bottom: var(--space-4) !important; }
  .text-center { text-align: center !important; }
}

/* --- 動きの軽減（入れ物だけ） -------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* --- 印刷（最低限の例。不要なら削除） ------------------- */
@media print {
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .8em;
  }
}

/*
カラーコード
ネイビー
#27405b
青
#2772aa
ベージュ
#f9f5ec
*/
/* --- 記述ここから ------------------- */

html {
  font-family: var(--jp-sans);
  scroll-behavior: smooth;
}
body { font-weight: 400; line-height: 1.7; }
.only-sp{
  display: none;
}
.wrap{
  max-width:1200px;
  margin: auto;
}
.wrap a:hover{
  opacity: 0.7;
}

.head{
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 30px 100px;
  margin-bottom: 20px;
}

.top-s1{
  background-image:url(images/ch-top1.png);
  margin-bottom: 100px;
}


.top-s1-b1{
  margin-left: 100px;
}

.top-s1-b1 h2{
  color: #27405b;
  font-size: 40px;
  font-weight: 900;
  margin: 10px 0;
  line-height: 1.5;
  margin: 20px 0 40px;
}
.top-s1-b1 p{
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}
.top-s1-b1-u1{
  display: flex;
  margin-bottom: 20px;
}
.top-s1-b1-u1 li{
  margin-right: 10px;
}
.top-s2{

}

.top-s2-p1{
  font-size: 20px;
  color:#2772aa;
  text-align: center;
  font-weight: 700;
}

.top-s2 h2{
  font-size: 40px;
  color:#27405b;
  text-align: center;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.3;
}
.top-s2-p2{
  font-size: 18px;
  color:#2772aa;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}
.top-s2-p3{
  font-weight: 500;
}
.top-s2-d1{
  margin-top: -25px;
  background-color: #e5eaf0;
  text-align: center;
}
.top-s2-d1 p{
  text-align: center;
}
.top-s2-d1 p img{
  display: inline-block;
}
.top-s5{
background-color:#f9f5ec;
text-align: center;
padding: 30px 0 0px;
}
.top-s5 p{
  font-size: 28px;
  font-weight: bold;
  color: #27405b;
  margin-bottom: 15px;
}
.top-s5 p a{
display: inline-block;
}
.top-s8 h2{
  font-size: 40px;
  color:#27405b;
  text-align: center;
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.3;
  margin-bottom: 40px;
}
.top-s8 ul{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 20px auto;
}

.top-s8 ul li{
  width: 28%;
  margin-bottom: 30px;
}
/* フッター著作権 */
.site-footer {
  padding: 24px 16px;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  border-top: 1px solid #eee;
}

/* よくある質問 */
.faq { max-width: 760px; margin: 0 auto; padding: 24px; }
.faq-title { font-size: 1.5rem; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid #eee; padding: 12px 0; }

.faq-q {
  list-style: none; cursor: pointer; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  color:#27405b;
}

/* ▶/▼ アイコン風 */
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "▶"; display: inline-block; transform: translateY(1px);
  transition: transform .2s ease;
  aria-hidden: true;
}
details[open] .faq-q::before { transform: rotate(90deg) translateX(-1px); }

.faq-a { padding: 8px 8px 8px 24px; line-height: 1.8; color: #333;
background-color: #f9f5ec;
}
/* --- 記述ここまで ------------------- */


/* --- SP用 ------------------- */
  @media screen and (max-width: 767px) {
    .only-sp{
      display: block;
    }
    .head{
      padding: 20px 20px;
    }
    .head-l{
      width: 40%;
    }
    .head-r{
      width: 40%;
    }

.top-s1 {
  background-image: none;
  background-repeat: no-repeat;
  margin-bottom: 10px;
}

.top-s1-b1{
  margin-left: 20px;
}

.top-s1-b1 h2{
  font-size: 16px;
  margin: 0px;
  z-index: 999;
}
.top-s1-b1 p {
  font-size: 14px;
}
.top-s2 h2{
  font-size: 16px;
}
.top-s2-d1{
  margin-top: 5px;
}
.top-s5 p{
  font-size: 16px;
}
.top-s8 ul li{
  width: 90%;
  margin-bottom: 30px;
}
}
