/*
Theme Name: HIROTA Corporate
Theme URI: https://www.the-hirota.co.jp/
Author: HIROTA
Description: 洋菓子のヒロタ向けのシンプルなコーポレートサイトテーマです。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hirota-corporate
*/

:root {
  --red: #b21f2d;
  --deep-red: #861824;
  --cream: #f6efe4;
  --paper: #fffaf3;
  --ink: #332720;
  --muted: #74675e;
  --line: rgba(51, 39, 32, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: .035em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 92px;
  display: grid;
  grid-template-columns: 260px 1fr 190px;
  align-items: center;
  padding: 0 4.5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.admin-bar .site-header { margin-top: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; width: fit-content; }
.brand-wrap { display: flex; align-items: center; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: auto; max-height: 56px; }
.brand-mark { color: var(--red); font: 800 27px/1 Georgia, serif; letter-spacing: .03em; }
.brand-ja { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.site-nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 52px); }
.site-nav-menu { display: flex; justify-content: center; gap: clamp(22px, 3vw, 52px); list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 12px; font-weight: 700; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.contact-link { justify-self: end; background: var(--red); color: white; padding: 14px 18px; border-radius: 100px; font-size: 12px; font-weight: 700; }

.hero { min-height: calc(100vh - 92px); display: grid; grid-template-columns: 50% 50%; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(70px, 10vh, 120px) 3vw 60px 7vw; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { color: var(--red); font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .18em; }
.hero h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(38px, 3.8vw, 60px); line-height: 1.4; font-weight: 500; letter-spacing: -.055em; margin: 34px 0 24px; }
.headline-line { display: block; white-space: nowrap; }
.hero h1 em { color: var(--red); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -3px; height: 7px; background: rgba(178,31,45,.16); border-radius: 100%; }
.hero-lead { color: var(--muted); font-size: 14px; line-height: 2; margin: 0; }
.round-link { margin-top: auto; display: flex; align-items: center; gap: 24px; font-size: 12px; font-weight: 700; }
.round-link b { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.round-link:hover b { background: var(--ink); color: white; }
.hero-visual { background: url('assets/images/hero-hirota.png') center/cover no-repeat; position: relative; min-height: 600px; }
.vertical-copy { position: absolute; right: 24px; bottom: 32px; color: white; font: 700 10px Arial; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero-stamp { position: absolute; left: calc(50% - 68px); top: 45%; width: 136px; height: 136px; color: white; background: var(--red); border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 8px 30px rgba(90,14,23,.25); }
.hero-stamp span { font-size: 10px; }
.hero-stamp strong { font: 800 23px Georgia, serif; letter-spacing: .04em; margin: 3px 0; }
.hero-stamp small { font: 700 8px Arial; letter-spacing: .15em; }

.section { padding: 120px 7vw; }
.section-index { min-width: 130px; display: flex; align-items: flex-start; gap: 14px; }
.section-index span { font: 700 11px Arial; color: var(--red); }
.section-index p { margin: 0; font: 700 10px Arial; letter-spacing: .15em; writing-mode: vertical-rl; }
.kicker { color: var(--red); font-size: 12px; font-weight: 700; margin: 0 0 22px; }
.story { display: grid; grid-template-columns: 18% 1fr; background: var(--cream); }
.story-main h2, .shops h2 { font: 500 clamp(38px, 5.2vw, 72px)/1.45 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: -.04em; margin: 0; }
.story-main h2 span { color: var(--red); }
.story-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; max-width: 820px; }
.story-grid p { line-height: 2.2; color: var(--muted); font-size: 14px; margin: 0; }

.products { background: var(--red); color: white; }
.section-heading { display: grid; grid-template-columns: 15% 1fr 36%; align-items: end; margin-bottom: 64px; }
.section-index.light span { color: #f1c8b9; }
.section-heading .kicker { color: #f1c8b9; }
.section-heading h2 { font: 500 clamp(38px, 4.4vw, 62px)/1.3 "Yu Mincho", serif; margin: 0; }
.products-note { font-size: 13px; line-height: 2; margin: 0 0 4px; color: rgba(255,255,255,.72); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid rgba(255,255,255,.25); }
.product-card { min-height: 520px; padding: 26px; border-right: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; transition: transform .25s, background .25s; overflow: hidden; }
.product-card:last-child { border-right: 0; }
.product-card:hover { background: rgba(255,255,255,.08); transform: translateY(-5px); }
.product-top { display: flex; justify-content: space-between; font: 700 10px Arial; letter-spacing: .13em; }
.product-top span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.puff { width: min(78%, 210px); aspect-ratio: 1; border-radius: 51% 49% 46% 54%; background: radial-gradient(circle at 50% 30%, #f4ca78 0 17%, #d49339 58%, #a65e20 100%); margin: 66px auto 38px; position: relative; box-shadow: 0 24px 30px rgba(73,13,17,.22); }
.puff::before, .puff::after { content: ""; position: absolute; border-radius: 50%; background: rgba(102,51,16,.18); }
.puff::before { width: 52%; height: 20%; left: 15%; top: 22%; transform: rotate(-20deg); }
.puff::after { width: 30%; height: 13%; right: 8%; top: 48%; transform: rotate(30deg); }
.product-card.chocolate .puff { background: radial-gradient(circle at 50% 30%, #c3894c, #7a4125 62%, #482519); }
.product-card.fresh .puff { background: radial-gradient(circle at 50% 30%, #f2d28c, #d89a44 62%, #ad6527); }
.product-card.seasonal .puff { background: radial-gradient(circle at 50% 30%, #f5c1b8, #c86b72 62%, #8d3542); }
.product-info { margin-top: auto; border-top: 1px solid rgba(255,255,255,.35); padding-top: 24px; }
.product-info h3 { font: 500 22px "Yu Mincho", serif; margin: 0 0 14px; }
.product-info p { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.72); margin: 0; }
.product-caption { text-align: right; color: rgba(255,255,255,.55); font-size: 10px; margin: 18px 0 0; }

.shops { background: var(--paper); }
.shop-intro { display: grid; grid-template-columns: 18% 1fr; align-items: start; margin-bottom: 72px; }
.shop-lead { color: var(--muted); line-height: 2; font-size: 13px; margin: 30px 0 0; }
.store-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.store-card { padding: 34px clamp(24px, 3vw, 48px) 42px; border-right: 1px solid var(--line); min-height: 520px; }
.store-card:last-child { border-right: 0; }
.store-card.featured { background: var(--cream); }
.store-head { display: flex; justify-content: space-between; align-items: center; }
.store-head span { color: var(--red); font-size: 11px; font-weight: 700; }
.store-head small { font: 700 9px Arial; color: var(--muted); letter-spacing: .16em; }
.store-card h3 { font: 500 clamp(23px, 2.2vw, 32px) "Yu Mincho", serif; margin: 52px 0 34px; }
.store-card dl { margin: 0; }
.store-card dl div { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.75; }
.store-card dt { color: var(--muted); }
.store-card dd { margin: 0; }
.store-card dd small { color: var(--muted); font-size: 9px; }
.store-card dd a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.store-action { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; padding: 15px 18px; background: #06c755; color: white; border-radius: 100px; font-size: 11px; font-weight: 700; transition: filter .2s; }
.store-action:hover { filter: brightness(.92); }
.store-note { margin: 16px 0 0; text-align: right; color: var(--muted); font-size: 10px; }

.news { display: grid; grid-template-columns: 30% 1fr; background: #fff; border-top: 1px solid var(--line); }
.news h2, .company h2 { font: 500 42px "Yu Mincho", serif; margin: 14px 0 0; }
.news-list { border-top: 1px solid var(--ink); }
.news-list a { display: grid; grid-template-columns: 110px 1fr 30px; gap: 20px; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); font-size: 13px; }
.news-list time { font: 700 10px Arial; color: var(--muted); }
.news-list b { color: var(--red); }
.news-empty { padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.company { background: var(--cream); }
.company h2 { font: 500 clamp(38px, 4.5vw, 64px) "Yu Mincho", serif; margin: 14px 0 0; }
.company-head { display: grid; grid-template-columns: 30% 1fr; align-items: end; margin-bottom: 70px; }
.company-head > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2.1; }
.company-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.company-values article { min-height: 390px; padding: 30px clamp(22px, 3vw, 46px) 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.company-values article:last-child { border-right: 0; }
.company-values article > span { color: var(--red); font: 700 10px Arial; }
.company-values article > small { margin-top: 8px; color: var(--muted); font: 700 9px Arial; letter-spacing: .18em; }
.company-values h3 { font: 500 clamp(24px, 2.5vw, 36px)/1.55 "Yu Mincho", serif; margin: 48px 0 20px; }
.company-values p { margin: auto 0 0; color: var(--muted); font-size: 12px; line-height: 2; }
.company-message { margin-top: 100px; padding: 70px; background: var(--ink); color: white; display: grid; grid-template-columns: 45% 1fr; gap: 8vw; }
.company-message .eyebrow { color: #e0b6a2; }
.company-message h3 { font: 500 clamp(28px, 3.6vw, 50px)/1.55 "Yu Mincho", serif; margin: 28px 0 0; }
.message-copy p { color: rgba(255,255,255,.72); font-size: 13px; line-height: 2.2; margin: 0 0 22px; }
.message-copy .signature { margin-top: 42px; text-align: right; color: white; }
.message-copy .signature strong { font: 500 19px "Yu Mincho", serif; margin-left: 10px; }
.company-history { margin-top: 100px; }
.history-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 38px; }
.history-heading h3, .company-profile h3 { font: 500 36px "Yu Mincho", serif; margin: 12px 0 0; }
.company-history ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.company-history li { min-height: 260px; padding: 28px 24px 32px 0; border-right: 1px solid var(--line); }
.company-history li:not(:first-child) { padding-left: 24px; }
.company-history li:last-child { border-right: 0; }
.company-history time { display: block; color: var(--red); font: 700 13px Arial; letter-spacing: .08em; }
.company-history strong { display: block; font: 500 18px "Yu Mincho", serif; margin: 30px 0 16px; }
.company-history li p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.company-profile { margin-top: 100px; display: grid; grid-template-columns: 30% 1fr; }
.company-profile dl { margin: 0; border-top: 1px solid var(--ink); }
.company-profile dl div { display: grid; grid-template-columns: 150px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.company-profile dt { color: var(--muted); }
.company-profile dd { margin: 0; line-height: 1.8; }
.company-profile dd a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { background: var(--deep-red); color: white; }
.footer-contact { padding: 100px 7vw 90px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-contact > p { color: #e3b7a8; font: 700 10px Arial; letter-spacing: .2em; }
.footer-contact h2 { font: 500 clamp(28px,4vw,52px) "Yu Mincho", serif; margin: 28px 0 40px; }
.footer-contact a { display: inline-flex; gap: 60px; align-items: center; padding: 18px 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 100px; font-size: 12px; }
.footer-bottom { padding: 46px 7vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.footer-brand .brand-mark { color: white; }
.footer-bottom p { text-align: center; margin: 0; font: 500 15px "Yu Mincho", serif; }
.footer-bottom small { text-align: right; color: rgba(255,255,255,.5); font: 9px Arial; letter-spacing: .12em; }

.content-page { max-width: 960px; min-height: 60vh; margin: 0 auto; padding: 100px 24px; }
.content-page h1 { font: 500 clamp(34px,5vw,60px) "Yu Mincho", serif; }
.content-page article { padding: 30px 0; border-bottom: 1px solid var(--line); }
.content-page .entry-content { line-height: 2; }

@media (max-width: 900px) {
  .admin-bar .site-header { margin-top: 46px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto; padding: 0 22px; }
  .brand-ja, .site-nav { display: none; }
  .contact-link { padding: 11px 14px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 610px; padding: 68px 24px 42px; }
  .hero h1 { font-size: clamp(29px, 8.6vw, 40px); line-height: 1.48; }
  .hero-visual { min-height: 62vw; order: -1; background-position: 62% center; }
  .hero-stamp { left: auto; right: 20px; top: calc(62vw - 58px); width: 116px; height: 116px; }
  .section { padding: 86px 24px; }
  .story, .news { grid-template-columns: 1fr; gap: 54px; }
  .section-index p { writing-mode: horizontal-tb; }
  .story-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .story-main h2, .shops h2 { font-size: clamp(29px, 9vw, 42px); line-height: 1.55; }
  .section-heading { grid-template-columns: 1fr; gap: 32px; }
  .section-heading .section-index { margin-bottom: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-card { min-height: 460px; }
  .product-card:nth-child(2) { border-right: 0; }
  .product-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .shop-intro { grid-template-columns: 1fr; gap: 48px; }
  .store-list { grid-template-columns: 1fr; }
  .store-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; padding: 30px 22px 38px; }
  .store-card:last-child { border-bottom: 0; }
  .store-card h3 { margin: 36px 0 26px; }
  .company-head, .company-message, .company-profile { grid-template-columns: 1fr; gap: 48px; }
  .company-values { grid-template-columns: 1fr; }
  .company-values article { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .company-values article:last-child { border-bottom: 0; }
  .company-message { margin-left: -24px; margin-right: -24px; padding: 60px 24px; }
  .company-history ol { grid-template-columns: 1fr; }
  .company-history li, .company-history li:not(:first-child) { min-height: auto; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-bottom { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand { margin: auto; }
  .footer-bottom small { text-align: center; }
}

@media (max-width: 560px) {
  .hero-visual { min-height: 78vw; }
  .hero-stamp { top: calc(78vw - 52px); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); min-height: 430px; }
  .puff { margin-top: 42px; }
  .news-list a { grid-template-columns: 1fr 24px; gap: 8px; padding: 20px 0; }
  .news-list time { grid-column: 1; }
  .news-list b { grid-column: 2; grid-row: 1 / 3; }
  .company-profile dl div { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
