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

:root {
  /* Official brand colors per "洋菓子のヒロタ ロゴ・ガイドライン ver.1.0.0" (2023.07).
     Web safe Color column: navy #000099 / red #cc0000 (brand motif — not the
     100th-anniversary logo's darker red #990000, which is reserved for
     100th-anniversary-specific materials). */
  --navy: #000099;
  --navy-deep: #000063;
  --brand-red: #cc0000;
  --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: "UD新ゴ コンデ90", "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-notice { background: var(--navy-deep); color: #fff; text-align: center; }
.site-notice p { margin: 0; padding: 10px 4.5vw; font-size: 12px; letter-spacing: .04em; line-height: 1.7; }
.site-notice a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; margin-left: 4px; }

.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;
}
.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-logo { display: block; height: 27px; width: auto; }
.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(--navy); transition: right .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.contact-link { justify-self: end; background: var(--navy); color: white; padding: 14px 18px; border-radius: 100px; font-size: 12px; font-weight: 700; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; margin-left: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: calc(100vh - 92px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-copy { position: relative; z-index: 2; width: 52%; min-height: calc(100vh - 92px); padding: clamp(100px, 16vh, 170px) 3vw 80px 4.8vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { color: var(--brand-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(40px, 4.5vw, 72px); line-height: 1.45; font-weight: 500; letter-spacing: -.055em; margin: 34px 0 46px; }
.headline-line { display: block; white-space: nowrap; }
.hero h1 em { color: var(--ink); font-style: normal; }
.hero-wordmark { display: block; height: clamp(34px, 4vw, 58px); width: auto; margin: 0; }
.hero-visual { position: absolute; inset: 0; z-index: 0; background-color: var(--paper); background-image: url('assets/images/hero-hirota.png'); background-position: center; background-size: cover; background-repeat: no-repeat; }

.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(--navy); }
.section-index p { margin: 0; font: 700 10px Arial; letter-spacing: .15em; writing-mode: vertical-rl; }
.kicker { color: var(--navy); 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(--navy); }
.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(--navy); 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; }
.mascot-duo { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-end; margin-top: 4px; }
.mascot-duo img { width: 56px; height: 56px; }
.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.pos-2 .puff { background: radial-gradient(circle at 50% 30%, #c3894c, #7a4125 62%, #482519); }
.product-card.pos-3 .puff { background: radial-gradient(circle at 50% 30%, #f2d28c, #d89a44 62%, #ad6527); }
.product-card.pos-4 .puff { background: radial-gradient(circle at 50% 30%, #f5c1b8, #c86b72 62%, #8d3542); }
.puff.has-image { border-radius: 0; background: transparent !important; box-shadow: none; }
.puff.has-image::before, .puff.has-image::after { content: none; }
.puff.has-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% center; border-radius: 12px; }
.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(--navy); 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(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.store-map { margin-top: 18px; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--cream); }
.store-map iframe { display: block; width: 100%; height: 100%; }
.company-profile .store-map { grid-column: 2; max-width: 560px; aspect-ratio: 16 / 9; margin-top: 26px; }
.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; }
.map-privacy-note { margin: 8px 0 0; text-align: right; color: var(--muted); font-size: 10px; line-height: 1.7; }
.map-privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.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(--navy); }
.news-empty { display: flex; align-items: center; gap: 14px; padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.news-empty img { flex: none; }

.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(--navy); 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; align-items: start; }
.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-block { margin-top: 42px; text-align: right; }
.message-copy .signature-block p { margin: 0; color: white; }
.message-copy .signature-block 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(--navy); 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(--navy); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { background: var(--navy-deep); color: white; }
.footer-contact { position: relative; padding: 100px 7vw 90px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-mascot { position: absolute; top: 34px; left: 50%; transform: translateX(-146px) rotate(-6deg); width: 64px; height: 64px; }
.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-social { padding: 34px 7vw; display: grid; grid-template-columns: 1fr 2fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-social > p { margin: 0; color: #e3b7a8; font: 700 10px Arial; letter-spacing: .2em; }
.footer-social > div { display: flex; justify-content: flex-end; gap: 16px; }
.footer-social a { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transition: background .2s; }
.footer-social a:hover { background: rgba(255,255,255,.1); }
.social-icon { display: block; object-fit: contain; }
.social-line { width: 40px; height: 40px; }
.social-instagram { width: 34px; height: 34px; }
.social-x { width: 30px; height: 31px; }
.footer-bottom { padding: 46px 7vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.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); }
.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.breadcrumbs .breadcrumb-sep { color: var(--line); }
.content-page .breadcrumbs { margin-top: -40px; }
.recruit-hero + .breadcrumbs { padding: 40px 7vw 0; }
.content-page .entry-content { line-height: 2; }

/* Contact Form 7 — brand styling so the form doesn't look out of place */
.entry-content .wpcf7-form p { margin: 0 0 28px; }
.entry-content .wpcf7-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; color: var(--ink); }
.entry-content .wpcf7-form-control-wrap { display: block; }
.entry-content .wpcf7-form input[type="text"],
.entry-content .wpcf7-form input[type="email"],
.entry-content .wpcf7-form input[type="tel"],
.entry-content .wpcf7-form input[type="url"],
.entry-content .wpcf7-form select,
.entry-content .wpcf7-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: var(--paper);
	font-family: inherit;
	font-size: 14px;
	color: var(--ink);
	border-radius: 2px;
	transition: border-color .2s ease;
}
.entry-content .wpcf7-form input:focus,
.entry-content .wpcf7-form textarea:focus,
.entry-content .wpcf7-form select:focus { outline: none; border-color: var(--navy); }
.entry-content .wpcf7-form textarea { min-height: 180px; resize: vertical; }
.entry-content .wpcf7-form .wpcf7-submit,
.entry-content .wpcf7-form input[type="submit"] {
	background: var(--navy);
	color: #fff;
	border: 0;
	padding: 15px 44px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
}
.entry-content .wpcf7-form .wpcf7-submit:hover,
.entry-content .wpcf7-form input[type="submit"]:hover { background: var(--navy-deep); }
.entry-content .wpcf7-not-valid-tip { display: block; color: var(--navy); font-size: 12px; margin-top: 8px; }
.entry-content .wpcf7-response-output {
	margin-top: 30px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	font-size: 13px;
	border-radius: 2px;
	color: var(--muted);
}
.entry-content form.sent .wpcf7-response-output { border-color: #3a7d44; color: #3a7d44; }
.entry-content form.failed .wpcf7-response-output,
.entry-content form.aborted .wpcf7-response-output,
.entry-content form.spam .wpcf7-response-output,
.entry-content form.invalid .wpcf7-response-output { border-color: var(--navy); color: var(--navy); }
.entry-content .wpcf7-spinner { margin-left: 10px; }

@media (max-width: 900px) {
  .site-notice p { padding: 10px 22px; font-size: 11px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto auto; column-gap: 10px; padding: 0 22px; }
  .brand-ja { display: none; }
  .nav-toggle { display: flex; }
  .contact-link { padding: 11px 14px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; justify-content: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .site-nav.is-open { max-height: 320px; opacity: 1; }
  .site-nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 13px; }
  .site-nav a::after { content: none; }
  .hero { min-height: 720px; }
  .hero-copy { width: 100%; min-height: 720px; justify-content: flex-start; padding: 74px 24px 40px; background: linear-gradient(180deg, rgba(255,250,243,.98) 0, rgba(255,250,243,.92) 32%, rgba(255,250,243,.45) 52%, rgba(255,250,243,0) 68%); }
  .hero h1 { font-size: clamp(29px, 8.6vw, 42px); line-height: 1.48; margin: 28px 0 28px; }
  .hero-wordmark { height: 32px; }
  .hero-visual { background-position: 70% center; }
  .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; }
  .footer-mascot { top: 24px; transform: translateX(-50%) rotate(-6deg); width: 52px; height: 52px; }
  .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; }
  .store-map, .company-profile .store-map { aspect-ratio: 16 / 10; max-width: none; }
  .company-head, .company-message, .company-profile { grid-template-columns: 1fr; gap: 48px; }
  .company-profile .store-map { grid-column: 1; }
  .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-social { grid-template-columns: 1fr; gap: 20px; padding: 30px 24px; }
  .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 { min-height: 660px; }
  .hero-copy { min-height: 660px; }
  .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; }
  .footer-social > div { justify-content: flex-start; }
}

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

/* Footer links row (added alongside the CONTACT block) */
.footer-links { display: flex; justify-content: center; gap: 28px; margin: 18px 0 22px; font-size: 12px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.footer-links a:hover { opacity: 1; }
.footer-links .footer-link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .85; cursor: pointer; }
.footer-links .footer-link-button:hover { opacity: 1; }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 980px; margin: 0 auto; padding: 18px 22px; background: var(--navy-deep); color: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.28); font-size: 12px; line-height: 1.8; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; }
.cookie-banner-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; flex: none; gap: 10px; }
.cookie-banner-actions button { min-width: 112px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 100px; background: transparent; color: #fff; font: 700 12px/1 inherit; font-family: inherit; cursor: pointer; }
.cookie-banner-actions button:hover { background: rgba(255,255,255,.14); }
.cookie-banner-actions button:focus-visible, .footer-links .footer-link-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions button { flex: 1; }
}

/* Recruit page */
.round-link {
	display: inline-flex; align-items: center; gap: 14px;
	background: var(--navy); color: #fff; padding: 16px 30px;
	border-radius: 100px; font-size: 13px; font-weight: 700;
	transition: background .2s ease;
}
.round-link:hover { background: var(--navy-deep); }
.round-link b { font-weight: 700; }

.recruit-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2); }
.recruit-value-card { background: var(--navy); color: #fff; padding: 40px 32px; }
.recruit-value-no { display: block; font: 800 13px Arial, sans-serif; color: #f1c8b9; margin-bottom: 18px; }
.recruit-value-card h3 { font: 500 22px/1.6 "秀英初号明朝", "Yu Mincho", serif; margin: 0 0 16px; }
.recruit-value-card p { margin: 0; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.85); }

.recruit-cta { border-top: 1px solid var(--line); }
.recruit-cta-action { margin-left: 30%; padding-top: 8px; }
.recruit-cta-note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .recruit-value-grid { grid-template-columns: 1fr; }
  .recruit-cta-action { margin-left: 0; }
  .footer-links { gap: 20px; flex-wrap: wrap; }
}
