/*
Theme Name: まちの研修ナビ
Theme URI: https://example.com
Author: まちの研修ナビ運営事務局
Description: 中小企業向け研修会社の比較メディア「まちの研修ナビ」用テーマ。管理画面から企業情報・固定ページの文章や画像を編集できます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: machino-kensyu-navi
*/

:root{
  --bg: #FFFFFF;
  --bg-warm: #F2F6F8;
  --bg-warm-2: #E6EDF1;
  --line: #D8E2E7;
  --brown-900: #263238;
  --brown-700: #45606E;
  --brown-500: #5B9DB8;
  --brown-300: #A9D2E0;
  --brown-100: #DDEEF3;
  --gold: #C08B2E;
  --text-muted: #75868D;
  --white: #FFFFFF;
  --shadow: 0 8px 24px rgba(38, 50, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(38, 50, 56, 0.14);
  --radius: 14px;
  --gray-note-bg: #F3F4F5;
  --gray-note-border: #DDE1E3;
  --pr-bg: #F1EDE3;
  --pr-border: #C7B58E;
  --pr-text: #7A6A4E;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--brown-900);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4{ font-family: "Shippori Mincho", serif; line-height: 1.5; }
a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; }

.container{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section{ padding: 72px 0; }
.section-warm{ background: var(--bg-warm); }

/* ---------------- ボタン ---------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary{ background: var(--brown-700); color: var(--white); box-shadow: var(--shadow); }
.btn-outline{ background: transparent; color: var(--brown-700); border: 1.5px solid var(--brown-500); }
.btn-small{ padding: 10px 20px; font-size: 14.5px; }
.btn:hover{ transform: translateY(-1px); }

/* ---------------- ヘッダー ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px; max-width: 1180px; margin: 0 auto;
}
.brand{
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 22px;
  font-family: "Shippori Mincho", serif; font-weight: 700; color: var(--brown-900);
}
.brand small{ font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.pref-badge{
  display:inline-block; font-size: 11.5px; font-weight: 700; color: var(--brown-700);
  background: var(--brown-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 4px;
}
nav.main-nav{ display: flex; align-items: center; gap: 32px; }
nav.main-nav a{ font-size: 16px; font-weight: 600; color: var(--brown-900); padding: 6px 0; }
.header-cta{ display: flex; align-items: center; gap: 14px; }
.hamburger{
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px;
}
.hamburger span{ width: 22px; height: 2px; background: var(--brown-900); border-radius: 2px; }

/* ---------------- ヒーロー ---------------- */
.hero{ padding: 56px 0 64px; }
.hero-inner{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow{ font-size: 13px; font-weight: 700; color: var(--brown-500); letter-spacing: .04em; }
.hero h1{ font-size: 36px; font-weight: 800; color: var(--brown-900); margin: 14px 0 18px; }
.hero h1 .accent{ color: var(--brown-500); }
.hero .lead{ font-size: 15px; color: var(--text-muted); margin-bottom: 26px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats{ display: flex; gap: 32px; }
.stat-num{ font-family: "Shippori Mincho", serif; font-size: 30px; font-weight: 800; color: var(--brown-700); }
.stat-label{ font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.rail-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px;
}
.rail-card-head h3{ font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rail-card-head span{ font-size: 12px; color: var(--text-muted); }
.rail-line{ margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.rail-stop a{
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-warm); border-radius: 10px; padding: 14px 18px;
}
.rail-stop.is-main a{ background: var(--brown-100); }
.stop-name{ font-size: 14px; font-weight: 700; color: var(--brown-900); }
.stop-name small{ display: block; font-size: 11.5px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.stop-count{ font-size: 13px; font-weight: 800; color: var(--brown-700); }

/* ---------------- section-head ---------------- */
.section-head{ display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.tag{ font-size: 13px; font-weight: 700; color: var(--brown-500); letter-spacing: .04em; }
.section-head h2{ font-size: 26px; font-weight: 800; margin-top: 8px; }
.section-head p{ color: var(--text-muted); font-size: 16px; margin-top: 8px; }

/* ---------------- ランキング／会社カード（PICKUP） ---------------- */
.rank-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rank-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.rank-card img{ width: 100%; height: 150px; object-fit: cover; }
.rank-card-body{ padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rank-num{ font-family: "Shippori Mincho", serif; font-size: 13px; font-weight: 800; color: var(--brown-500); margin-bottom: 6px; }
.rank-card h3{ font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.rank-card .strength{ font-size: 13px; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.rank-card .tags{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.rank-card .tags span{
  font-size: 11px; font-weight: 700; color: var(--brown-700); background: var(--brown-100);
  padding: 3px 9px; border-radius: 999px;
}

/* ---------------- PR枠 ---------------- */
.section-pr{ background: var(--pr-bg); }
.pr-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pr-card{
  background: var(--white); border: 1px solid var(--pr-border); border-radius: 12px; padding: 16px;
  text-align: center;
}
.pr-badge{
  display:inline-block; font-size: 10.5px; font-weight: 800; color: var(--white);
  background: var(--pr-text); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.pr-card h4{ font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pr-card p{ font-size: 11.5px; color: var(--pr-text); }
.pr-disclosure{ text-align: center; font-size: 12px; color: var(--pr-text); margin-top: 18px; }

/* ---------------- 比較表 ---------------- */
.info-table{ width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td{ text-align: left; padding: 18px 22px; font-size: 16px; border-bottom: 1px solid var(--line); }
.info-table th{ background: var(--bg-warm); color: var(--brown-700); font-weight: 700; }
.info-table tr:last-child td{ border-bottom: none; }
.table-note{ font-size: 14.5px; color: var(--text-muted); margin-top: 12px; padding-left: 4px; }

/* ---------------- エリア一覧 ---------------- */
.area-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
}
.area-card h3{ font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.area-card .count{ font-size: 12.5px; color: var(--text-muted); }

/* ---------------- CTA帯 ---------------- */
.cta-band{
  background: linear-gradient(120deg, var(--brown-700), var(--brown-900));
  border-radius: var(--radius); padding: 40px 38px; color: var(--white);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.cta-band h3{ font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-band p{ font-size: 15.5px; opacity: .85; }
.cta-band .btn-primary{ background: var(--white); color: var(--brown-900); }

/* ---------------- フッター ---------------- */
footer{ background: var(--brown-900); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p{ font-size: 14px; margin-top: 14px; line-height: 1.9; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer-grid h5{ color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li a{ font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}

/* ---------------- 会社詳細ページ ---------------- */
.breadcrumb{ padding: 16px 0; font-size: 14px; color: var(--text-muted); }
.breadcrumb a{ color: var(--brown-700); font-weight: 600; }
.breadcrumb span.sep{ margin: 0 8px; color: var(--line); }

.detail-hero{ padding: 12px 0 8px; }
.detail-main h1{ font-size: 32px; font-weight: 800; color: var(--brown-900); margin-bottom: 12px; }
.detail-lead{ font-size: 17px; color: var(--text-muted); margin-bottom: 20px; max-width: 60ch; }
.detail-hero img{ width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

.notice-box{
  display:flex; gap: 14px; align-items: flex-start;
  background: var(--gray-note-bg); border: 1px solid var(--gray-note-border);
  border-radius: var(--radius); padding: 18px 22px; margin: 24px 0;
}
.notice-box p{ font-size: 15px; color: var(--brown-700); }

.brief-points{ display: flex; flex-direction: column; gap: 12px; }
.brief-point{
  display:flex; gap: 14px; align-items:flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brown-500); border-radius: 10px;
  padding: 17px 20px; font-size: 16px; font-weight: 500; box-shadow: var(--shadow);
}
.brief-point .icon-mark{
  flex-shrink:0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brown-100); color: var(--brown-700);
  display:flex; align-items:center; justify-content:center; font-size: 12px; font-weight: 800;
}

.curriculum-list{ display: flex; flex-direction: column; gap: 14px; }
.curriculum-item{
  display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
}
.curriculum-item .c-name{ font-size: 17px; font-weight: 700; color: var(--brown-700); }
.curriculum-item .c-name span{ display:block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.curriculum-item .c-desc{ font-size: 16px; color: var(--brown-900); }

.compare-nudge{
  display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg-warm-2); border: 1px dashed var(--brown-300);
  border-radius: var(--radius); padding: 20px 24px;
}
.compare-nudge p{ font-size: 15.5px; color: var(--brown-700); font-weight: 600; }

.mini-note{
  display:flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--bg-warm-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px;
}
.mini-note p{ font-size: 15px; color: var(--text-muted); margin: 0; }

/* ---------------- FAQ / 案内ページ共通 ---------------- */
.page-hero{ padding: 12px 0 8px; }
.page-hero h1{ font-size: 30px; font-weight: 800; color: var(--brown-900); margin-bottom: 12px; }
.page-hero p{ font-size: 15px; color: var(--text-muted); }

.faq-list{ display: flex; flex-direction: column; gap: 14px; }
.faq-item{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.faq-q{ display:flex; gap: 12px; font-size: 15.5px; font-weight: 700; color: var(--brown-900); margin-bottom: 10px; }
.faq-q .qa-tag{ flex-shrink:0; width: 26px; height: 26px; border-radius: 50%; background: var(--brown-700); color: var(--white); font-size: 13px; font-weight: 800; display:flex; align-items:center; justify-content:center; }
.faq-a{ display:flex; gap: 12px; font-size: 14.5px; color: var(--text-muted); line-height: 1.8; }
.faq-a .qa-tag{ flex-shrink:0; width: 26px; height: 26px; border-radius: 50%; background: var(--brown-100); color: var(--brown-700); font-size: 13px; font-weight: 800; display:flex; align-items:center; justify-content:center; }

.ad-plan-grid{ display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px auto; max-width: 640px; }
.ad-plan-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border-top: 3px solid var(--brown-500); }
.ad-plan-card.is-alt{ border-top-color: var(--gold); }
.ad-plan-icon{ width: 40px; height: 40px; border-radius: 10px; background: var(--brown-100); color: var(--brown-700); display:flex; align-items:center; justify-content:center; font-size: 18px; margin-bottom: 14px; }
.ad-plan-card.is-alt .ad-plan-icon{ background: #FBF0DC; color: var(--gold); }
.ad-plan-card h3{ font-size: 17px; font-weight: 700; color: var(--brown-900); margin-bottom: 10px; }
.ad-plan-card p{ font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.ad-price{ font-size: 13.5px; font-weight: 500; color: var(--text-muted); margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price-note-inline{ max-width: 900px; margin: 24px auto 0; text-align: center; word-break: keep-all; overflow-wrap: normal; font-size: 13px; color: var(--text-muted); padding-top: 18px; border-top: 1px solid var(--line); }

.step-list{ display: flex; flex-direction: column; margin: 24px 0; }
.step-item{ display:flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.step-item:last-child{ border-bottom: none; }
.step-num{ flex-shrink:0; width: 32px; height: 32px; border-radius: 50%; background: var(--brown-700); color: var(--white); font-weight: 800; font-size: 14px; display:flex; align-items:center; justify-content:center; }
.step-item h4{ font-size: 15px; font-weight: 700; color: var(--brown-900); margin-bottom: 4px; }
.step-item p{ font-size: 13.5px; color: var(--text-muted); }

.policy-section h2{ font-size: 22px; font-weight: 700; color: var(--brown-900); margin: 36px 0 14px; }
.policy-section h3{ font-size: 15.5px; font-weight: 700; color: var(--brown-700); margin: 20px 0 8px; }
.policy-section p, .policy-section li{ font-size: 14px; color: var(--text-muted); line-height: 1.9; }
.policy-section ul{ list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.policy-disclaimer{ background: var(--bg-warm-2); border: 1px dashed var(--brown-300); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: 13px; color: var(--brown-700); }

.about-table{ width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 24px 0; }
.about-table tr{ border-bottom: 1px solid var(--line); }
.about-table tr:last-child{ border-bottom: none; }
.about-table th, .about-table td{ text-align: left; padding: 18px 22px; font-size: 15px; vertical-align: middle; }
.about-table th{ width: 150px; background: var(--bg-warm); color: var(--brown-700); font-weight: 700; }
.about-table td{ color: var(--brown-900); word-break: keep-all; overflow-wrap: normal; line-height: 1.9; }

/* ---------------- お問い合わせフォーム ---------------- */
.form-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; max-width: 680px; margin: 0 auto; }
.form-group{ margin-bottom: 22px; }
.form-group label{ display:flex; align-items:center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--brown-700); margin-bottom: 8px; }
.req-tag{ font-size: 10.5px; font-weight: 700; color: var(--white); background: var(--brown-500); padding: 2px 8px; border-radius: 999px; }
.opt-tag{ font-size: 10.5px; font-weight: 700; color: var(--text-muted); background: var(--bg-warm-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea{
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: "Noto Sans JP", sans-serif; color: var(--brown-900); background: var(--bg-warm);
}
.form-group textarea{ min-height: 140px; resize: vertical; line-height: 1.7; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline: none; border-color: var(--brown-500); background: var(--white); }
.checkbox-list{ display: flex; flex-direction: column; gap: 10px; }
.checkbox-list label{ display:flex; align-items:center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--brown-900); }
.form-submit{ text-align: center; margin-top: 32px; }
.form-submit .btn{ width: 100%; max-width: 320px; padding: 15px 28px; font-size: 15.5px; }

/* ---------------- 404 / サンクスページ ---------------- */
.error-wrap, .thanks-wrap{ max-width: 640px; margin: 0 auto; text-align: center; padding: 80px 24px 100px; }
.error-code{ font-family: "Shippori Mincho", serif; font-size: 96px; font-weight: 800; color: var(--brown-300); line-height: 1; margin-bottom: 8px; }
.error-wrap h1, .thanks-wrap h1{ font-size: 26px; font-weight: 800; color: var(--brown-900); margin-bottom: 16px; }
.error-wrap p, .thanks-wrap p{ font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 8px; }
.error-actions, .thanks-actions{ display:flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.thanks-icon{ width: 68px; height: 68px; border-radius: 50%; background: var(--brown-100); color: var(--brown-700); display:flex; align-items:center; justify-content:center; font-size: 30px; font-weight: 800; margin: 0 auto 24px; }

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .area-grid{ grid-template-columns: repeat(2, 1fr); }
  .rank-grid{ grid-template-columns: repeat(2, 1fr); }
  .pr-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  section{ padding: 52px 0; }
  nav.main-nav{
    position: fixed; top: 66px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-140%); opacity: 0; transition: all .25s ease; pointer-events: none;
  }
  nav.main-nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.main-nav a{ width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .hamburger{ display: flex; }
  .rank-grid, .pr-grid, .area-grid, .footer-grid{ grid-template-columns: 1fr; }
  .curriculum-item{ grid-template-columns: 1fr; gap: 8px; }
  .cta-band{ flex-direction: column; text-align:left; padding: 28px 22px; }
  .compare-nudge{ flex-direction: column; align-items: flex-start; }
  .info-table{ display: block; overflow-x: auto; white-space: nowrap; }
}
