/* 協会トップ：徳之島のページ（エミシ制作）と見た目をそろえる。
   色：濃紺 #082431（文字・暗い段）、RATA Ocean #007d99（アクセント）、明るい地 #f7f7f7。
   書体：ゴシック（和文はヒラギノ角ゴシック、欧文は Inter があれば Inter）。外部の書体は読み込まない（同意の前に外部へ送らないため）。 */
:root {
  --ink: #082431;
  --ink-muted: rgba(8, 36, 49, 0.72);
  --teal: #007d99;
  /* 明るい地の上の小さな文字は RATA Ai（青緑の #007d99 は 4.4:1 で基準の 4.5:1 に届かないため。ボタンの地と飾りは青緑のまま） */
  --accent-text: #084b7a;
  --bg: #f7f7f7;
  --bg-soft: #f0f7f7;
  --line: #cbd4d6;
  --gothic: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --pad-x: max(24px, calc((100% - 1120px) / 2));
}
:root:lang(zh) { --gothic: "Inter", "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }

body { max-width: none; background: var(--bg); color: var(--ink); font-family: var(--gothic); }

/* ヘッダー：画面の幅いっぱいに置き、濃紺の地にする（徳之島のページのスクロール後の形） */
nav:not(.menu-panel) {
  left: 0; transform: none; max-width: none; width: 100%;
  padding: 14px var(--pad-x);
  background: rgba(8, 36, 49, 0.92);
}
.menu-panel { background: var(--ink); }

/* 段：背景は画面の端まで、中身は 1120px の幅に収める */
section { padding: 72px var(--pad-x); }
.home-label { font-family: "Inter", var(--gothic); font-size: 13px; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 12px; }
.section-title { font-family: var(--gothic); font-weight: 700; font-size: 28px; line-height: 1.5; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 20px; }
.section-body { font-size: 15px; line-height: 1.9; color: var(--ink-muted); }
.text-link { color: var(--accent-text); }
.cta-note { color: var(--ink-muted); font-size: 13px; margin-top: 10px; }

/* ボタン：角の丸いボタンに、右の小さな矢印の丸 */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 50px; padding: 0 10px 0 24px; border-radius: 25px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; margin-top: 28px;
}
.btn-pill-icon { position: relative; flex-shrink: 0; width: 28px; height: 20px; border-radius: 10px; background: var(--teal); }
.btn-pill-icon::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px;
  border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: translate(-65%, -50%) rotate(45deg);
}
.btn-pill-white { background: #fff; color: var(--teal); }
.btn-pill-teal { background: var(--teal); color: #fff; }
.btn-pill-teal .btn-pill-icon { background: #fff; }
.btn-pill-teal .btn-pill-icon::before { border-color: var(--teal); }
.btn-pill-line { border-color: var(--ink); color: var(--ink); }
.btn-pill:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* フォームの送信ボタンも同じ形にする */
.btn-primary { border-radius: 25px; min-height: 50px; background: var(--teal); }

/* ヒーロー */
.hero-content { padding: 0 var(--pad-x) 44px; }
.hero .home-label { color: rgba(255, 255, 255, 0.85); }
.hero-title { font-family: var(--gothic); font-weight: 700; font-size: 40px; line-height: 1.35; color: #fff; }
.hero-sub { color: rgba(255, 255, 255, 0.85); font-size: 15px; margin-bottom: 0; max-width: 520px; }
.hero-credit { right: var(--pad-x); }

/* していること */
.home-what { background: var(--bg); }
.home-steps { list-style: none; margin: 28px 0 0; border-top: 1px solid var(--line); }
.home-steps li { display: grid; grid-template-columns: 3em 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.home-step-no { font-family: "Inter", var(--gothic); font-size: 14px; font-weight: 600; color: var(--accent-text); line-height: 1.8; }
.home-steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.6; color: var(--ink); }
.home-steps p { font-size: 14px; line-height: 1.9; color: var(--ink-muted); }

/* プロジェクト */
.home-projects { background: linear-gradient(to bottom, var(--bg-soft), var(--bg)); padding-top: 72px; }
.project-card { margin-top: 12px; }
.project-photo { margin: 0 0 24px; }
.project-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.project-photo figcaption { font-size: 11px; color: var(--ink-muted); text-align: right; margin-top: 6px; }
.project-place { font-size: 13px; color: var(--accent-text); margin-bottom: 4px; }
.project-title { font-family: var(--gothic); font-size: clamp(18px, 5.6vw, 24px); font-weight: 700; line-height: 1.45; color: var(--ink); margin-bottom: 12px; }
.project-lead { font-size: 16px; font-weight: 700; line-height: 1.8; color: var(--accent-text); margin-bottom: 14px; }
.spec-list { margin-top: 24px; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.spec-row dt { font-family: "Inter", var(--gothic); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.spec-row dd { color: var(--ink); }
.project-next { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.project-next-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }

/* アートパスポート：濃紺の帯（徳之島のページの「2027年3月までは…」の帯と同じ形） */
.home-pass { background: var(--ink); text-align: center; }
.home-pass .home-label { color: rgba(255, 255, 255, 0.75); }
.home-pass .section-title { color: #fff; }
.home-pass .section-body { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto; }
.home-pass .cta-note { color: rgba(255, 255, 255, 0.7); }

/* ご相談 */
.home-contact { background: #fff; }
.contact-list { display: grid; gap: 12px; }
.contact-item { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.contact-item dt { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-item dd { font-size: 14px; line-height: 1.8; color: var(--ink-muted); }
/* 地域からの2つの窓口（パスの導入・作家との作品づくり） */
.contact-lead { margin-bottom: 24px; }
.contact-offers { display: grid; gap: 16px; margin-bottom: 40px; }
.contact-offer { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 6px; background: var(--bg-soft); border-top: 3px solid var(--teal); }
.contact-offer .btn-pill { margin-top: auto; font-size: 14px; gap: 10px; padding-left: 20px; }
.contact-offer-no { font-family: "Inter", var(--gothic); font-size: 13px; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 8px; }
.contact-offer h3 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.contact-offer p:not(.contact-offer-no) { font-size: 14px; line-height: 1.8; color: var(--ink-muted); margin-bottom: 20px; }
.contact-other-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.contact-list + .btn-pill { margin-top: 24px; }
.home-pass .contact-from-pass { margin-top: 20px; }
.home-pass .contact-from-pass .text-link { color: #fff; }

/* お知らせ */
.home-news { background: var(--bg); }
.news-list { margin-top: 0; }
.news-list .spec-row { grid-template-columns: 5.5em 1fr; }

/* お知らせの登録：濃紺の段（入力欄は今までの暗い地の形のまま使う） */
.form-section { background: var(--ink); }
.form-section .home-label { color: rgba(255, 255, 255, 0.75); }
.form-section .section-title { color: #fff; }
.site-footer { margin-top: 0; background: var(--ink); }

@media (min-width: 1024px) {
  body, nav:not(.menu-panel) { max-width: none; }
  nav:not(.menu-panel) { padding: 18px var(--pad-x); }
  section { padding: 112px var(--pad-x); }
  .hero { padding-bottom: 72px; }
  .hero-content { padding: 0 var(--pad-x) 48px; max-width: none; }
  .hero-title { font-size: 64px; }
  .section-title { font-size: 40px; }
  .btn-primary { width: auto; }
  /* 見出しを左、本文を右 */
  .home-what, .home-contact, .home-news { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: 64px; align-items: start; }
  .home-body { max-width: 680px; }
  .home-projects .home-head { margin-bottom: 24px; }
  .project-card { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 56px; align-items: start; }
  .project-photo { margin: 0; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pass .section-title { font-size: 36px; }
  .project-title { font-size: 30px; }
  /* 登録の段：ラベルと見出しを左、フォームを右 */
  .form-section > .home-label { grid-column: 1; grid-row: 1; }
  .form-section > h2 { grid-column: 1; grid-row: 2 / span 20; }
}

/* お知らせの各行は、それぞれのページへのリンク */
.news-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.news-list a:hover { text-decoration-color: var(--ink); }
.project-next-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
/* 横向きのスマホ（高さが低い画面）では、ヒーローを中身の高さまで伸ばし、見出しを小さくしてヘッダーの下に隠れないようにする */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { height: auto; min-height: 100svh; padding-top: 88px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 14px; max-width: 420px; }
}
/* 段へ移ったとき、固定のヘッダーに見出しが隠れないようにする */
section[id] { scroll-margin-top: 72px; }
