/*
Theme Name: 福島就労支援センター
Description: 福島就労支援センター（npo-fssc.org）の旧サイトのデザインを再現した WordPress テーマです。オレンジのヘッダー、グローバルメニュー、パンくずリスト、サイトマップ付きフッターを備えています。データ取り込み後に管理画面を開くと、メニュー・トップページ・パーマリンクを自動で設定します。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
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: fssc
*/

/* ページ全体のレイアウト（ヘッダー・メニュー・パンくず・フッター）。
   本文のデザインは assets/css/content.css にあります。 */

:root {
  --fssc-orange: #FFA21A;
  --fssc-orange-dark: #e8910f;
  --fssc-menu-bg: #EBEBEB;
  --fssc-menu-line: #d1d1d1;
  --fssc-width: 1000px;
}

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

html { overflow-y: scroll; }
body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Yu Gothic", YuGothic, "游ゴシック体", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴシック Pro", Meiryo, "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; border: 0; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: #fff;
  color: #000;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- ヘッダー ---------- */
.site-header { background: var(--fssc-orange); }
.site-header .container {
  max-width: var(--fssc-width);
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  width: 400px;
  margin: 0;
  padding: 15px 0;
  line-height: 0;
  font-size: inherit;
}
.site-logo a { display: block; }
.site-logo img { width: 100%; height: auto; }
.site-header .contact {
  font-size: 18px;
  font-weight: bold;
  line-height: 2;
  color: #000;
}
.site-header .contact a { color: inherit; text-decoration: none; }
.menu-trigger { display: none; }

/* ---------- グローバルメニュー ---------- */
.gnav {
  position: relative;
  z-index: 100;
  background: var(--fssc-menu-bg);
}
.gnav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gnav-item { border-bottom: 1px solid var(--fssc-menu-line); }
.gnav-item + .gnav-item { border-left: 1px solid var(--fssc-menu-line); }
.gnav-item:nth-child(4n + 1) { border-left: 0; }
.gnav-link {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.gnav-link:hover,
.gnav-toggle[aria-expanded="true"] { background: #dedede; }

.gnav-sub {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--fssc-menu-bg);
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .12);
}
.has-sub.open .gnav-sub { display: grid; }
.gnav-sub li { border-bottom: 1px solid var(--fssc-menu-line); }
.gnav-sub a {
  display: block;
  padding: 15px;
  color: #000;
  text-decoration: none;
  line-height: 1.4;
}
.gnav-sub a::before { content: "> "; }
.gnav-sub a:hover { background: #dedede; }

/* ---------- パンくず ---------- */
.pankuzu {
  margin-bottom: 50px;
  background: var(--fssc-gray, #F7F7F7);
}
.pankuzu .contents {
  max-width: var(--fssc-width);
  margin: 0 auto;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}
.pankuzu a { color: inherit; }

/* ---------- メイン ---------- */
.site-main {
  max-width: var(--fssc-width);
  margin: 0 auto 50px;
}
.front { padding-top: 1px; }

/* お知らせ一覧ページ */
.news-list { width: 100%; border-collapse: collapse; }
.news-list tr { border-bottom: 1px solid #999; }
.news-list th,
.news-list td { padding: 12px 5px; line-height: 1.5; vertical-align: top; text-align: left; }
.news-list th { width: 120px; color: var(--fssc-orange); white-space: nowrap; font-weight: normal; }

.pagination { margin-top: 30px; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 2.4em;
  margin: 0 2px;
  padding: 6px 10px;
  border: 1px solid var(--fssc-orange);
  border-radius: 4px;
  color: var(--fssc-orange);
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--fssc-orange); color: #fff; }

/* お知らせ個別 */
.post-date { color: #777; font-size: 14px; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}
.post-nav > div { flex: 1; }
.post-nav .back { text-align: center; }
.post-nav .next { text-align: right; }

/* 検索フォーム */
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 8px; }
.search-form .search-submit {
  padding: 8px 16px;
  border: 0;
  background: var(--fssc-orange);
  color: #fff;
  cursor: pointer;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--fssc-orange); }
.site-footer .sitemap { background: #383838; }
.site-footer .sitemap .contents {
  max-width: var(--fssc-width);
  margin: 0 auto;
  padding: 40px 0 0;
  column-count: 5;
  column-gap: 2%;
}
.site-footer dl {
  break-inside: avoid;
  margin: 0;
  padding-bottom: 40px;
}
.site-footer dt {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}
.site-footer dt a { color: #fff; text-decoration: none; }
.site-footer dd { margin: 0; }
.site-footer dd ul { margin: 0; padding: 0; list-style: none; }
.site-footer dd li {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.3;
}
.site-footer dd a { color: #fff; text-decoration: none; }
.site-footer dd a::before { content: "> "; }
.site-footer dd a:hover,
.site-footer dt a:hover { text-decoration: underline; }

.site-footer .container {
  max-width: var(--fssc-width);
  margin: 0 auto;
  padding: 20px;
}
.site-footer .site-info p { margin: 0 0 20px; text-align: center; }
.site-footer .site-info a { color: #000; }
.site-footer .sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .sns img { display: block; width: 60px; height: 60px; }
.site-footer .copyright {
  margin: 0;
  padding: 0 16px 30px;
  text-align: center;
  font-size: 14px;
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1040px) {
  .site-header .container,
  .pankuzu .contents,
  .site-main,
  .site-footer .sitemap .contents { padding-left: 16px; padding-right: 16px; }
  .site-footer .sitemap .contents { column-count: 3; }
}

@media (max-width: 1024px) {
  .site-header .container { min-height: 90px; }
  .site-logo { width: 70%; max-width: 400px; }
  .site-header .contact { display: none; }

  /* ハンバーガーボタン */
  .menu-trigger {
    display: inline-block;
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 34px;
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #fff;
    transition: all .4s;
  }
  .menu-trigger span:nth-of-type(1) { top: 0; }
  .menu-trigger span:nth-of-type(2) { top: 15px; }
  .menu-trigger span:nth-of-type(3) { bottom: 0; }
  .menu-trigger::after {
    content: "MENU";
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
  }
  .menu-trigger[aria-expanded="true"]::after { content: "CLOSE"; }
  .menu-trigger[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(15px) rotate(-45deg); }
  .menu-trigger[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
  .menu-trigger[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-15px) rotate(45deg); }

  .gnav { display: none; }
  .gnav.display { display: block; }
  .gnav-list { display: block; }
  .gnav-item + .gnav-item { border-left: 0; }
  .gnav-link { text-align: left; position: relative; }
  .gnav-toggle::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .gnav-toggle[aria-expanded="true"]::after { content: "ー"; font-size: 12px; }
  .gnav-sub { position: static; box-shadow: none; background: #f4f4f4; }
  .has-sub.open .gnav-sub { display: block; }
  .gnav-sub li:last-child { border-bottom: 0; }
  .gnav-sub a { padding-left: 25px; }

  .pankuzu { margin-bottom: 30px; }
}

@media (max-width: 640px) {
  .pankuzu .contents { font-size: 12px; }
  .site-footer .sitemap .contents { column-count: 1; padding-top: 20px; }
  .site-footer dl { padding-bottom: 20px; }
  .news-list th { width: auto; display: block; padding-bottom: 0; }
  .news-list td { display: block; padding-top: 2px; }
  .post-nav { flex-direction: column; }
  .post-nav > div { text-align: left !important; }
}
