/*
Theme Name: JAFLO Kumiai
Theme URI: 
Author: JAFLO外国人育成支援事業協同組合 設立準備事務局
Description: JAFLO外国人育成支援事業協同組合(設立準備中)のウェブサイト用テーマ。地球の4色(海・雲・大地・土)を基調にしたデザイン。メニューに対応する固定ページを備え、お知らせは投稿で更新します。
Version: 0.6.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaflo-kumiai
*/

:root {
  --sea: #173f6e;       /* 海色のネイビーブルー */
  --sea-deep: #0f2c4f;
  --cloud: #ffffff;     /* 雲色の白 */
  --land: #3f7f4c;      /* 大地の緑 */
  --soil: #c8963e;      /* 土の黄土色 */
  --ink: #1b2838;       /* 文字色 */
  --muted: #5b6877;
  --line: #e2e7ec;
  --font: "Manrope", "Zen Kaku Gothic New", "Noto Sans Bengali", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.95; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--land); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--soil); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cloud); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ボタン */
.btn, .read-more a {
  display: inline-block; padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--sea);
  color: var(--sea); background: transparent; font-weight: 700; font-size: .95rem; line-height: 1.4;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover, .read-more a:hover { background: var(--sea); color: var(--cloud); }
.btn-light { background: var(--cloud); border-color: var(--cloud); color: var(--sea); }
.btn-light:hover { background: var(--soil); border-color: var(--soil); color: var(--sea-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--cloud); }
.btn-ghost:hover { background: var(--cloud); color: var(--sea); border-color: var(--cloud); }
.read-more { margin: 36px 0 0; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-name { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.site-name a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.site-name svg { width: 34px; height: 34px; flex: none; }
.site-name-text { display: flex; flex-direction: column; }
.site-name-en { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; line-height: 1.5; }
.foot-name-en { margin: -4px 0 8px !important; font-size: .8rem; color: #a9c6e2; }
.name-en { font-size: .88rem; color: var(--muted); }

/* 言語の切り替え(国旗) */
.lang-switch { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; order: 2; }
.lang-switch button { display: block; padding: 3px; border: 2px solid transparent; border-radius: 7px; background: none; cursor: pointer; line-height: 0; transition: border-color .2s, transform .2s; }
.lang-switch button:hover { border-color: var(--line); transform: translateY(-1px); }
.lang-switch button[aria-pressed="true"] { border-color: var(--soil); }
.lang-switch svg { width: 27px; height: 18px; display: block; }
.lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav { order: 3; width: 100%; }
.site-nav ul { justify-content: flex-end; }
/* Googleの翻訳が表示するバーを隠す */
.skiptranslate iframe, iframe.skiptranslate, #goog-gt-tt, .goog-te-banner-frame, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
font[style] { background: none !important; box-shadow: none !important; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 0; transition: color .2s; }
.site-nav a:hover { color: var(--land); }
.site-nav li:last-child a { padding: 9px 20px; border-radius: 999px; background: var(--sea); color: var(--cloud); font-weight: 700; transition: background-color .2s; }
.site-nav li:last-child a:hover { background: var(--land); color: var(--cloud); }

/* 冒頭 */
.hero { position: relative; background: radial-gradient(900px 600px at 82% 40%, #21558f 0%, var(--sea) 45%, var(--sea-deep) 100%); color: var(--cloud); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 150px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 18px 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: .85rem; font-weight: 500; line-height: 1.5; }
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--soil); flex: none; }
.hero-title { font-weight: 900; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.35; letter-spacing: .03em; margin: 0 0 14px; }
.hero-title span { display: inline-block; }
.hero-en { margin: 0 0 28px; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; color: #a9c6e2; letter-spacing: .04em; }
.hero-lead { margin: 0 0 36px; max-width: 31em; color: #dbe7f2; }
.hero-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-globe { position: relative; margin-right: -60px; }
.hero-globe svg { display: block; width: 100%; max-width: 620px; }

/* 冒頭に重ねる基本情報 */
.facts { position: relative; margin: -74px 0 0; padding: 0; background: var(--cloud); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(15, 44, 79, .14); display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 26px 28px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: .8rem; font-weight: 700; color: var(--land); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.6; }

/* 本文の区切り */
.block { padding: 104px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block.first { padding-top: 96px; }
.block-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; line-height: 1.4; letter-spacing: .04em; margin: 0 0 44px; }
.block-title .en { font-size: .95rem; font-weight: 600; color: var(--land); letter-spacing: .06em; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1.5em; }
.prose p:last-child { margin-bottom: 0; }
.sub-title { font-size: 1.2rem; font-weight: 700; margin: 64px 0 20px; }
.block .sub-title:first-child { margin-top: 0; }
.plain-list { margin: 0; padding: 0; list-style: none; max-width: 42em; }
.plain-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.plain-list li::before { content: ""; position: absolute; left: 4px; top: 1.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--land); }
.prose + .plain-list { margin-top: 20px; }

/* 事業内容:海・大地・土の3色で見分ける */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.work { padding: 0 34px; border-left: 1px solid var(--line); }
.work:first-child { padding-left: 0; border-left: 0; }
.work:last-child { padding-right: 0; }
.work::before { content: ""; display: block; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 24px; background: var(--sea); }
.work:nth-child(2)::before { background: var(--land); }
.work:nth-child(3)::before { background: var(--soil); }
.work h3 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.6; }
.work p { margin: 0; color: var(--muted); font-size: .96rem; }

/* 二段階の計画 */
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage { padding: 34px 34px 32px; border-radius: var(--radius); border: 1.5px solid var(--sea); }
.stage + .stage { border: 1.5px dashed var(--soil); }
.stage h4 { margin: 0 0 2px; font-size: 1.25rem; }
.stage .when { margin: 0 0 16px; font-weight: 700; font-size: .9rem; color: var(--land); }
.stage + .stage .when { color: #8f6820; }
.stage ul { margin: 0; padding-left: 1.2em; }
.stage .note { margin: 16px 0 0; font-size: .9rem; font-weight: 700; line-height: 1.8; }

/* 表 */
.table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--sea); }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.table th { width: 12em; font-weight: 700; color: var(--sea); }
.table thead th { width: auto; font-size: .85rem; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.table-scroll { overflow-x: auto; }

/* 加入の流れ(実際に順序がある) */
.flow { list-style: none; counter-reset: flow; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow li { counter-increment: flow; position: relative; padding: 0 24px 0 0; }
.flow li::before { content: "0" counter(flow); display: block; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--land); margin-bottom: 18px; letter-spacing: 0; }
.flow li::after { content: ""; position: absolute; left: 3.4rem; right: 16px; top: 1.2rem; height: 1px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.flow span { font-size: .92rem; line-height: 1.8; display: block; color: var(--muted); }

/* 申込みフォーム */
.btn-solid, .read-more a.btn-solid { background: var(--sea); color: var(--cloud); border-color: var(--sea); cursor: pointer; font-family: inherit; }
.btn-solid:hover, .read-more a.btn-solid:hover { background: var(--land); border-color: var(--land); color: var(--cloud); }
button.btn { padding: 15px 34px; font-size: 1rem; }
.steps { list-style: none; counter-reset: step; margin: 0 0 56px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: var(--muted); }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.steps .is-current { color: var(--ink); font-weight: 700; }
.steps .is-current::before { background: var(--sea); border-color: var(--sea); color: var(--cloud); }
.steps .is-done::before { background: var(--land); border-color: var(--land); color: var(--cloud); }
.form { max-width: 640px; margin-top: 44px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #c3ccd6; border-radius: 10px; background: var(--cloud); color: var(--ink);
  font: inherit; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(23, 63, 110, .18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.req { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--soil); color: var(--sea-deep); font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.hint { margin: 6px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.field-error { margin: 6px 0 0; font-size: .9rem; font-weight: 700; color: #b3261e; line-height: 1.7; }
.checks label { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; margin: 0 0 12px; line-height: 1.8; }
.checks input { width: 20px; height: 20px; margin-top: 5px; flex: none; accent-color: var(--sea); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin: 36px 0 0; }
.form-alert { margin: 0 0 28px; padding: 16px 20px; border-radius: 10px; border: 1.5px solid #b3261e; color: #8c1d18; font-weight: 700; line-height: 1.8; }
.form-note { margin: 28px 0 0; font-weight: 700; }
.form-note.ok { color: var(--land); }
.table .total th, .table .total td { font-size: 1.25rem; font-weight: 900; color: var(--ink); border-bottom: 1.5px solid var(--sea); }
.pay-note { margin-top: 32px; }
.table-scroll + .form-alert { margin-top: 32px; }
.flow-note { margin: 28px 0 0; color: var(--muted); font-size: .92rem; }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--sea); }
.news li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-size: .92rem; }
.news a { text-decoration: none; font-weight: 500; color: var(--ink); }
.news a:hover { color: var(--land); }
.empty { margin: 0; padding: 26px 8px; border-top: 1.5px solid var(--sea); border-bottom: 1px solid var(--line); color: var(--muted); }

/* お問い合わせ(トップページ下部) */
.block.contact { border-top: 0; background: var(--sea-deep); color: var(--cloud); }
.contact .block-title .en { color: var(--soil); }
.contact a { color: var(--cloud); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.contact dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; gap: 10px 20px; max-width: 40em; }
.contact dt { font-weight: 700; color: #a9c6e2; font-size: .9rem; }
.contact dd { margin: 0; }
.contact .read-more { margin: 0; }
.contact .read-more a { border-color: var(--cloud); background: var(--cloud); color: var(--sea); }
.contact .read-more a:hover { background: var(--soil); border-color: var(--soil); color: var(--sea-deep); }

/* 下層ページの見出し帯 */
.page-head { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--sea-deep) 0%, var(--sea) 70%, #21558f 100%); color: var(--cloud); }
.page-head::after { content: ""; position: absolute; right: -90px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  background:
    radial-gradient(ellipse 22% 50% at 50% 50%, transparent 98.5%, rgba(255, 255, 255, .2) 99%, rgba(255, 255, 255, .2) 100%, transparent 100.5%),
    radial-gradient(ellipse 40% 50% at 50% 50%, transparent 98.8%, rgba(255, 255, 255, .2) 99.2%, rgba(255, 255, 255, .2) 100%, transparent 100.4%),
    linear-gradient(transparent calc(50% - .5px), rgba(255, 255, 255, .2) calc(50% - .5px), rgba(255, 255, 255, .2) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(transparent calc(26% - .5px), rgba(255, 255, 255, .16) calc(26% - .5px), rgba(255, 255, 255, .16) calc(26% + .5px), transparent calc(26% + .5px)),
    linear-gradient(transparent calc(74% - .5px), rgba(255, 255, 255, .16) calc(74% - .5px), rgba(255, 255, 255, .16) calc(74% + .5px), transparent calc(74% + .5px));
}
.page-head .wrap { position: relative; z-index: 1; padding-top: 76px; padding-bottom: 76px; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.4; letter-spacing: .04em; }
.page-head h1 .en { font-size: 1rem; font-weight: 600; color: var(--soil); letter-spacing: .06em; }
.page-head p { margin: 12px 0 0; color: #dbe7f2; max-width: 34em; }

/* フッター */
.site-footer { background: var(--sea-deep); color: #a9c6e2; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer p { margin: 0; }
.site-footer .foot-name { color: var(--cloud); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; max-width: 26em; }
.site-footer a { color: #dbe7f2; text-decoration: none; }
.site-footer a:hover { color: var(--soil); }

/* 投稿・エディターの本文 */
.entry-content { max-width: 42em; }
.entry-content h2 { font-size: 1.5rem; font-weight: 900; margin: 2.2em 0 .8em; }
.entry-content h3 { font-size: 1.15rem; margin: 1.8em 0 .6em; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; }
.editor-content { margin-top: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 120px; }
  .hero-globe { position: absolute; right: -180px; top: 20px; width: 460px; margin: 0; opacity: .35; pointer-events: none; }
  .hero-copy { position: relative; z-index: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .block { padding: 72px 0; }
  .works { grid-template-columns: 1fr; gap: 40px; }
  .work, .work:first-child, .work:last-child { padding: 0; border-left: 0; }
  .stages { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .flow li:nth-child(2)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .field-row { grid-template-columns: 1fr; }
  .page-head .wrap { padding-top: 56px; padding-bottom: 56px; }
  .page-head::after { opacity: .5; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-nav ul { gap: 4px 16px; justify-content: flex-start; }
  .lang-switch { margin: 0; order: 2; width: 100%; }
  .site-name-en { font-size: .6rem; }
  .site-nav a { font-size: .84rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .facts div:first-child { border-top: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .table th { width: 7.5em; }
  .news li { grid-template-columns: 1fr; gap: 0; }
  .contact dl { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: 12px; }
}
