/*
Theme Name: ふぐ食応援大使の会
Theme URI: https://fugufcaa.com/
Author: AICT Core
Description: NPO法人ふぐ食応援大使の会公式サイト専用テーマ。TOP・コンテスト事業をカスタマイザーで編集でき、新着情報・コラムを投稿できます。
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fugufcaa
*/

:root {
  --accent: #c86840;
  --ink: #222;
  --paper: #fff;
  --wash: #fdf8f6;
  --line: #eadbd4;
  --content: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f9f6f3 url("assets/images/bg_1.jpg") center top / 680px auto repeat;
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.4em; }
.container { width: min(90%, var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #ffebe3;
  background: #fff url("assets/images/head-foot-bg.png") center / auto 100% repeat;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(90%, 1280px); height: 70px; margin: auto; }
.site-branding { width: min(40%, 430px); }
.site-branding img { width: auto; max-width: 100%; max-height: 58px; }
.site-title { font-size: 18px; font-weight: 600; }
.primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; display: block; padding: 22px 0; }
.primary-menu a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 1px; content: ""; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after, .primary-menu .current_page_item > a::after { transform: scaleX(1); }
.primary-menu .menu-item-contact > a { padding: 10px 22px; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary-menu .menu-item-contact > a::after { display: none; }
.primary-menu .menu-item-contact > a:hover, .primary-menu .menu-item-contact > a:focus { background: #fff; color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 25px; height: 2px; margin: 6px auto; content: ""; background: #111; transition: .25s; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-8px) rotate(-45deg); }

.site-main { padding-top: 70px; }
.hero img { width: 100%; height: auto; }
.page-hero { display: grid; min-height: 240px; place-items: center; background: linear-gradient(rgba(255,255,255,.58),rgba(255,255,255,.58)), url("assets/images/page-hero.jpg") center / cover; }
.page-hero h1 { margin: 0; font-size: clamp(25px, 4vw, 38px); letter-spacing: .16em; }

.section { padding: 60px 0; }
.section:first-of-type { padding-top: 110px; }
.section-heading { margin: 0 0 50px; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .12em; }
.section-heading small { display: block; margin-top: 7px; color: var(--accent); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: lowercase; }
.section-description { margin: -22px 0 30px; }
.button { display: block; width: min(60%, 650px); margin: 0 auto; padding: 17px 22px; border: 1px solid var(--ink); background: #fff; text-align: center; transition: .25s; }
.button:hover, .button:focus { border-color: var(--accent); background: var(--accent); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 55px; }
.post-card { height: 100%; padding: 20px; background: #fff; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(68,35,22,.1); }
.post-card img, .post-card-placeholder { width: 100%; height: 200px; margin-bottom: 10px; object-fit: cover; background: #eee8e4; }
.post-card time { color: #999; font-size: 12px; }
.post-card h3 { margin: 3px 0 8px; color: var(--accent); font-size: 18px; line-height: 1.6; letter-spacing: .08em; }
.post-card p { margin: 0; font-size: 14px; }

.info-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.info-links a { display: grid; min-height: 70px; padding: 14px; place-items: center; border: 1px solid var(--ink); background: #fff; text-align: center; transition: .25s; }
.info-links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.info-links small { display: inline; font-size: 12px; }
.flyer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4%; margin-bottom: 30px; align-items: start; }
.flyer-grid img { width: 100%; }
.contest-copy { margin-bottom: 50px; }
.contact-section { background: url("assets/images/top-contact-bg.jpg") center / cover; }
.contact-box { padding: 30px; background: rgba(255,255,255,.94); }
.contact-box > :last-child { margin-bottom: 0; }
.contact-page-button { margin-top: 28px; }

.breadcrumbs { width: min(90%, var(--content)); margin: 22px auto 0; font-size: 13px; }
.archive-list { display: grid; gap: 25px; }
.archive-card a { display: grid; grid-template-columns: 280px 1fr; min-height: 205px; background: #fff; }
.archive-card img, .archive-placeholder { width: 100%; height: 100%; min-height: 205px; object-fit: cover; background: #eee8e4; }
.archive-card-body { padding: 25px 30px; }
.archive-card time { color: #999; font-size: 13px; }
.archive-card h2 { margin: 3px 0 10px; color: var(--accent); font-size: 21px; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-block; min-width: 38px; margin: 3px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; }
.pagination .current { border-color: var(--accent); background: var(--accent); color: #fff; }

.article-wrap { max-width: 900px; padding: 55px 0 80px; }
.article-header h1 { margin: 5px 0 24px; font-size: clamp(24px, 4vw, 34px); line-height: 1.5; }
.article-date { color: #888; font-size: 14px; }
.article-thumbnail { margin-bottom: 35px; }
.entry-content { padding: 35px; background: rgba(255,255,255,.9); }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--accent); }
.entry-content a { color: #9c4726; text-decoration: underline; }
.entry-content > :first-child { margin-top: 0; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; }

.contest-intro { text-align: center; }
.contest-lead { margin: 0 0 25px; font-size: clamp(22px, 3vw, 31px); line-height: 1.8; letter-spacing: .08em; }
.contest-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 45px; }
.contest-gallery img { width: 100%; height: 250px; object-fit: cover; }
.generic-content { min-height: 45vh; }
.contact-page { max-width: 900px; }
.contact-page-intro { margin-bottom: 35px; }
.contact-form-notice { margin: 0; padding: 18px; border: 1px solid var(--line); background: var(--wash); }
.contact-form .wpforms-container { margin: 0; }
.contact-form .wpforms-field-label { margin-bottom: 8px; }
.contact-form .wpforms-required-label { color: var(--accent); }
.contact-form .wpforms-container input[type="text"],
.contact-form .wpforms-container input[type="email"],
.contact-form .wpforms-container input[type="tel"],
.contact-form .wpforms-container input[type="url"],
.contact-form .wpforms-container select,
.contact-form .wpforms-container textarea { width: 100%; max-width: none; border: 1px solid #d8cec9; background: #fff; }
.contact-form .wpforms-container button[type="submit"] { min-width: 240px; padding: 14px 28px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; transition: .25s; }
.contact-form .wpforms-container button[type="submit"]:hover,
.contact-form .wpforms-container button[type="submit"]:focus { border-color: var(--accent); background: #fff; color: var(--accent); }

.site-footer { padding: 20px; background: #fff url("assets/images/head-foot-bg.png") center / auto 100% repeat; text-align: center; }
.site-footer p { margin: 0; }

@media (max-width: 1080px) {
  body.admin-bar .site-header { top: 32px; }
  .menu-toggle { display: block; position: relative; z-index: 1002; }
  .site-navigation { position: fixed; z-index: 1001; inset: 0 0 100% 0; overflow: hidden; background: rgba(253,248,246,.97); opacity: 0; transition: .35s; }
  .site-navigation.is-open { bottom: 0; opacity: 1; }
  .primary-menu { display: flex; height: 100%; flex-direction: column; justify-content: center; gap: 8px; }
  .primary-menu a { padding: 11px 20px; font-size: 17px; }
  .primary-menu .menu-item-contact > a { margin-top: 8px; padding: 10px 28px; }
  .primary-menu a::after { display: none; }
  .site-branding { position: relative; z-index: 1002; width: min(65%, 420px); }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 767px) {
  .section, .section:first-of-type { padding: 42px 0; }
  .section-heading { margin-bottom: 35px; font-size: 22px; }
  .section-description { margin-top: -15px; }
  .card-grid, .info-links, .flyer-grid, .contest-gallery { grid-template-columns: 1fr; gap: 20px; }
  .post-card img, .post-card-placeholder { height: min(58vw, 320px); }
  .button { width: 100%; }
  .archive-card a { grid-template-columns: 1fr; }
  .archive-card img, .archive-placeholder { height: 56vw; min-height: 200px; }
  .archive-card-body { padding: 20px; }
  .entry-content { padding: 24px 18px; }
  .contest-gallery img { height: 60vw; }
  .site-footer { font-size: 12px; }
}
