/*
Theme Name: Marumi Foods
Theme URI: https://example.com/marumi
Author: Marumi Foods
Author URI: https://example.com
Description: あたたかく親しみやすいコーポレートサイト向けのクラシックテーマ。白基調・丸ゴシック・ウォームオレンジのやさしいデザイン。トップページ（front-page）、お知らせ（投稿）、固定ページに対応します。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marumi
*/

:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --cream: #f6efe3;
  --cream-2: #fbf5ec;
  --ink: #3b342b;
  --ink-soft: #756c5f;
  --ink-faint: #a59c8d;
  --line: #ece3d4;
  --accent: #ee8a4f;
  --accent-deep: #d9763c;
  --accent-soft: #fcefe2;
  --accent-2: #7aa367;
  --accent-2-soft: #eef3e7;
  --radius: 22px;
  --radius-lg: 34px;
  --font-head: "Zen Maru Gothic";
  --font-body: "Zen Kaku Gothic New";
  --maxw: 1180px;
  --shadow-soft: 0 18px 50px -28px rgba(86, 66, 38, 0.45);
  --shadow-card: 0 10px 34px -22px rgba(86, 66, 38, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body), system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4 {
  font-family: var(--font-head), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.02em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.en {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Media placeholders (画像枠) ───────────────── */
.media { overflow: hidden; background: var(--cream); border-radius: var(--radius); }
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center;
  padding: 18px; box-sizing: border-box;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint);
  background-image: repeating-linear-gradient(45deg, #efe7d8 0 10px, #f6efe3 10px 20px);
}

/* ── Section label ───────────────────────────── */
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-deep);
}
.sec-label::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-jp { margin-top: 14px; font-size: clamp(26px, 3.4vw, 38px); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px var(--accent-deep); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -12px var(--accent-deep); background: var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-deep); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Header ──────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(255, 253, 248, 0.88); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em;
}
.logo .mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 19px;
  box-shadow: inset 0 -6px 12px -6px var(--accent-deep);
}
.logo .logo-img { max-height: 44px; width: auto; }
.logo small { display: block; font-family: "Outfit", sans-serif; font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint); font-weight: 600; margin-top: -4px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links ul.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links ul.menu a, .nav-links a.nlink {
  font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; display: inline-block;
}
.nav-links ul.menu a::after, .nav-links a.nlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transition: width .25s ease;
}
.nav-links ul.menu a:hover, .nav-links a.nlink:hover { color: var(--accent-deep); }
.nav-links ul.menu a:hover::after, .nav-links a.nlink:hover::after { width: 100%; }
.nav-links ul.menu .current-menu-item > a { color: var(--accent-deep); }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .3s; }

/* ── Hero ────────────────────────────────────── */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: var(--accent-soft); top: -120px; right: -120px; }
.blob-2 { width: 300px; height: 300px; background: var(--accent-2-soft); bottom: -80px; left: -100px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow {
  display: inline-block; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 26px;
}
.hero-copy .eyebrow b { color: var(--accent-deep); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.32; letter-spacing: 0.03em; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 8%; height: 34%; background: var(--accent-soft); border-radius: 6px; z-index: -1; }
.hero p.lead { margin-top: 28px; font-size: 17px; color: var(--ink-soft); max-width: 30em; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.media-hero { height: 480px; border-radius: 28px; box-shadow: var(--shadow-soft); }
.hero-badge {
  position: absolute; left: -26px; bottom: 34px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.hero-badge .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-2-soft); display: grid; place-items: center; font-size: 22px; }
.hero-badge .num { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1; }
.hero-badge .lbl { font-size: 12px; color: var(--ink-soft); }

/* ── Marquee strip ───────────────────────────── */
.strip { background: var(--accent); color: #fff; overflow: hidden; padding: 16px 0; }
.strip-track {
  display: flex; gap: 48px; white-space: nowrap; width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.08em;
}
.strip-track span { display: inline-flex; align-items: center; gap: 48px; opacity: .95; }
.strip-track .sep { font-size: 13px; opacity: .7; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Section base ────────────────────────────── */
section.block { padding: 100px 0; }
.block.alt { background: var(--cream); }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .sec-label { justify-content: center; }

/* ── Services ────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.svc-card .media { height: 200px; border-radius: 0; }
.svc-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.svc-no { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--accent-deep); }
.svc-card h3 { font-size: 21px; margin-top: 10px; }
.svc-card p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.svc-tag { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent-deep); font-family: var(--font-head), sans-serif; }
.svc-tag .arrow { transition: transform .25s; }
.svc-card:hover .svc-tag .arrow { transform: translateX(4px); }

/* ── About ───────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.media-about { height: 460px; border-radius: 28px; box-shadow: var(--shadow-soft); }
.about-visual .stamp {
  position: absolute; right: -24px; top: -24px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--font-head), sans-serif; font-weight: 700; line-height: 1.4; font-size: 14px;
  box-shadow: var(--shadow-card); transform: rotate(-8deg);
}
.about-visual .stamp b { font-family: "Outfit", sans-serif; font-size: 30px; display: block; }
.about-copy h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.sign { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.sign .role { font-size: 13px; color: var(--ink-faint); }
.sign .name { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 19px; }

/* ── Values ──────────────────────────────────── */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.val { text-align: center; }
.val .icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; font-size: 34px; background: var(--accent-soft); }
.val:nth-child(2) .icon { background: var(--accent-2-soft); }
.val:nth-child(3) .icon { background: var(--cream); }
.val h3 { font-size: 20px; margin-bottom: 12px; }
.val p { color: var(--ink-soft); font-size: 15px; }

/* ── News ────────────────────────────────────── */
.news-wrap { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: 48px; align-items: start; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: flex; align-items: center; gap: 22px; padding: 22px 6px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.news-item:hover { background: var(--cream-2); padding-left: 16px; }
.news-date { font-family: "Outfit", sans-serif; font-weight: 600; color: var(--ink-faint); font-size: 14px; min-width: 96px; }
.news-cat { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap; font-family: var(--font-head), sans-serif; }
.news-cat.green { background: var(--accent-2-soft); color: #557a44; }
.news-cat.gray { background: var(--cream); color: var(--ink-soft); }
.news-title { font-weight: 500; flex: 1; }
.news-item:hover .news-title { color: var(--accent-deep); }

/* ── Recruit banner ──────────────────────────── */
.recruit { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; padding: 64px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.recruit::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.recruit::before { content: ""; position: absolute; left: 30%; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.recruit .r-copy { position: relative; z-index: 1; }
.recruit .sec-label { color: rgba(255, 255, 255, .9); }
.recruit .sec-label::before { background: #fff; }
.recruit h2 { font-size: clamp(26px, 3vw, 38px); margin: 14px 0 12px; }
.recruit p { opacity: .92; max-width: 34em; }
.recruit .btn-white { background: #fff; color: var(--accent-deep); position: relative; z-index: 1; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .4); }
.recruit .btn-white:hover { transform: translateY(-3px); }

/* ── Contact CTA ─────────────────────────────── */
.contact { text-align: center; }
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 18px 0; }
.contact p { color: var(--ink-soft); max-width: 32em; margin: 0 auto 34px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tel-box { margin-top: 40px; display: inline-flex; flex-direction: column; gap: 2px; }
.tel-box .tel { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 34px; color: var(--ink); }
.tel-box .tel-note { font-size: 13px; color: var(--ink-faint); }

/* ── Footer ──────────────────────────────────── */
.site-footer { background: #332d25; color: #d8d0c2; padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #9c9384; }
.foot-about { color: #a89f90; font-size: 14px; margin-top: 20px; max-width: 26em; }
.foot-col h4 { font-size: 13px; letter-spacing: 0.1em; color: #fff; margin-bottom: 18px; font-family: "Outfit", sans-serif; }
.foot-col a { display: block; color: #b7af9f; font-size: 14px; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8d8475; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 投稿・固定ページ（single / page） ──────────── */
.page-hero { padding: 150px 0 50px; background: var(--cream); text-align: center; }
.page-hero .sec-label { justify-content: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.page-hero .crumb { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
.entry { padding: 70px 0 100px; }
.entry-narrow { max-width: 760px; }
.entry-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; color: var(--ink-faint); font-size: 14px; }
.entry-content { font-size: 16.5px; }
.entry-content > * { margin-bottom: 1.4em; }
.entry-content h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 4px solid var(--accent); background: var(--cream-2); padding: 18px 24px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.post-card .media { height: 180px; border-radius: 0; }
.post-card .pc-body { padding: 22px 24px 26px; }
.post-card .pc-date { font-family: "Outfit", sans-serif; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.post-card h3 { font-size: 18px; margin-top: 8px; line-height: 1.5; }
.post-card:hover h3 { color: var(--accent-deep); }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); font-family: "Outfit", sans-serif; font-weight: 600; transition: .2s; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 700; color: var(--accent-deep); font-family: var(--font-head), sans-serif; }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .news-wrap { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .val-grid, .post-list { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .media-hero { height: 360px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--surface);
    flex-direction: column; align-items: flex-start; padding: 96px 32px 32px; gap: 8px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .5); z-index: 60;
  }
  .nav-links.open { transform: none; }
  .nav-links ul.menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links ul.menu li { width: 100%; }
  .nav-links ul.menu a, .nav-links a.nlink { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { width: 100%; justify-content: center; margin-top: 12px; }
  .hamburger { display: block; z-index: 70; }
  .recruit { padding: 44px 32px; }
  section.block { padding: 72px 0; }
}
