/*
Theme Name: KATOJYUKEN
Theme URI: https://katojyuken.com/
Author: 有限会社 加藤住建産業
Author URI: https://katojyuken.com/
Description: 建築雑誌 × ライフスタイルブランドの世界観で設計された、加藤住建産業のオフィシャルテーマ。流行ではなく、10年後も好きな家を届けるためのブランドサイト。Custom Post Types (Works / Magazine / Event) + ACF 対応。
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: katojyuken
Tags: editorial, minimal, custom-colors, custom-menu, featured-images, translation-ready, block-styles
*/

/* ====================================================================
   KATOJYUKEN — Theme Stylesheet
   Design system: #F5F1EB / #171717 / #6F6F6F / #B88A44 / #DDD5CB
   Fonts: Noto Serif JP, Playfair Display, Inter
   ==================================================================== */

:root {
  --bg: #F5F1EB;
  --ink: #171717;
  --sub: #6F6F6F;
  --accent: #B88A44;
  --line: #DDD5CB;
  --line-2: #ECE6DB;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: "Inter", "Noto Serif JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 500; }
::selection { background: var(--ink); color: var(--bg); }

.font-jp { font-family: "Noto Serif JP", serif; font-feature-settings: "palt"; }
.font-en { font-family: "Playfair Display", serif; }
.font-ui { font-family: "Inter", system-ui, sans-serif; }

/* Layout */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 140px 0; } }
.section-tone { background: var(--line-2); }

.grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid { gap: 40px; } }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 40px; height: 1px;
  background: var(--ink); margin-right: 14px;
}
.title-en { font-family: "Playfair Display", serif; font-style: italic; font-size: 20px; color: var(--sub); margin-top: 24px; }
@media (min-width: 768px) { .title-en { font-size: 28px; } }
.title-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 26px; line-height: 1.4; letter-spacing: 0.02em;
  margin-top: 12px;
}
@media (min-width: 768px) { .title-jp { font-size: 60px; line-height: 1.32; margin-top: 16px; } }
.lede { font-family: "Noto Serif JP", serif; font-size: 15px; line-height: 2.1; color: rgba(23,23,23,.85); margin-top: 32px; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; transition: all 480ms cubic-bezier(0.16,1,0.3,1); border: 1px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); }
.btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); gap: 22px; }
.btn-invert { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-invert:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-outline-invert { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-outline-invert:hover { background: var(--bg); color: var(--ink); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all 700ms cubic-bezier(0.16,1,0.3,1); border-bottom: 1px solid transparent; }
.site-header.on-hero { background: transparent; color: var(--bg); }
.site-header.scrolled, .site-header:not(.on-hero) { background: rgba(245,241,235,.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); color: var(--ink); }
/* モバイルメニュー展開中はヒーロー上でもヘッダーを不透明にし、×ボタン・ロゴの視認性を確保 */
.site-header.menu-open, .site-header.on-hero.menu-open { background: var(--bg); backdrop-filter: none; border-bottom-color: var(--line); color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.header-inner .brand { flex-shrink: 0; }
@media (min-width: 768px) { .header-inner { height: 88px; } }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-en { font-family: "Playfair Display", serif; letter-spacing: 0.16em; font-size: 15px; }
@media (min-width: 768px) { .brand-en { font-size: 17px; } }
.brand-jp { font-family: "Noto Serif JP", serif; font-size: 11px; letter-spacing: 0.2em; opacity: .7; display: none; }
@media (min-width: 768px) { .brand-jp { display: inline; } }
.nav-desktop { display: none; gap: 20px; min-width: 0; }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; } }
@media (min-width: 1280px) { .nav-desktop { gap: 32px; } }
.nav-desktop a { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; transition: color 300ms; white-space: nowrap; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }
.header-cta { display: none; align-items: center; gap: 16px; }
@media (min-width: 1024px) { .header-cta { display: flex; } }
.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 20px; font-size: 10px; white-space: nowrap; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: inherit; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 40; opacity: 0; visibility: hidden; transition: all 700ms cubic-bezier(0.16,1,0.3,1); overflow-y: auto; padding: 32px 24px; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul li { border-bottom: 1px solid var(--line); }
/* 和文タイトルと英字ラベルを左右に振り分け、行全体をタップ領域にする */
.mobile-menu ul li a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; padding: 20px 0; }
.mobile-menu ul li a:active { background: rgba(221,213,203,.35); }
.mobile-menu ul li .jp { font-family: "Noto Serif JP", serif; font-size: 20px; color: var(--ink); }
.mobile-menu ul li .en { font-family: "Playfair Display", serif; font-style: italic; font-size: 13px; letter-spacing: 0.16em; color: var(--accent); white-space: nowrap; }
.mobile-menu .cta-stack { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .cta-stack .btn { text-align: center; justify-content: center; padding: 16px 20px; font-size: 12px; }

/* Hero */
.hero { position: relative; width: 100%; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.2), rgba(0,0,0,.65)); }
.hero-top { position: absolute; top: 112px; left: 0; right: 0; z-index: 5; }
.hero-top .container { display: flex; justify-content: space-between; align-items: center; color: rgba(245,241,235,.85); }
.hero-top .eyebrow { color: rgba(245,241,235,.7); }
.hero-top .eyebrow::before { background: rgba(245,241,235,.7); }
.hero-copy { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 80px; max-width: 1440px; margin: 0 auto; padding-left: 24px; padding-right: 24px; color: var(--bg); }
@media (min-width: 768px) { .hero-copy { padding-left: 40px; padding-right: 40px; padding-bottom: 140px; } }
.hero-en { font-family: "Playfair Display", serif; font-style: italic; font-size: 13px; opacity: .85; margin-bottom: 16px; }
@media (min-width: 768px) { .hero-en { font-size: 28px; margin-bottom: 24px; } }
.hero-h1 { font-family: "Noto Serif JP", serif; font-size: 28px; line-height: 1.45; letter-spacing: 0.02em; max-width: 900px; font-weight: 500; }
@media (min-width: 768px) { .hero-h1 { font-size: 64px; line-height: 1.3; } }
@media (min-width: 1024px) { .hero-h1 { font-size: 76px; } }
.hero-sub { max-width: 420px; font-family: "Noto Serif JP", serif; font-size: 14px; line-height: 1.8; margin-top: 16px; opacity: .85; }
@media (min-width: 768px) { .hero-sub { font-size: 15px; line-height: 2; margin-top: 32px; } }
.hero-ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .hero-ctas { flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 48px; } }
.hero-ctas .btn { width: 100%; justify-content: center; }
@media (min-width: 768px) { .hero-ctas .btn { width: auto; justify-content: flex-start; } }
.scroll-indicator { position: absolute; bottom: 32px; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(245,241,235,.8); pointer-events: none; font-family: "Playfair Display", serif; font-style: italic; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 72px; background: rgba(245,241,235,.8); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--bg); animation: scroll-hint 2.4s cubic-bezier(0.6,0,0.2,1) infinite; }
@keyframes scroll-hint { 0% { transform: scaleY(0); transform-origin: top; } 40% { transform: scaleY(1); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Marquee */
.marquee { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
@media (min-width: 768px) { .marquee { padding: 48px 0; } }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font-family: "Noto Serif JP", serif; font-size: 24px; padding: 0 32px; letter-spacing: 0.04em; white-space: nowrap; color: rgba(23,23,23,.9); }
@media (min-width: 768px) { .marquee-track span { font-size: 40px; padding: 0 56px; } }
.marquee-dot { color: var(--accent); margin-right: 16px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Concept-like two-column */
.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* Image hover zoom */
.hover-zoom { overflow: hidden; }
.hover-zoom img { transition: transform 1200ms cubic-bezier(0.16,1,0.3,1); }
.hover-zoom:hover img { transform: scale(1.06); }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-16-10 { aspect-ratio: 16/10; }
.ratio-5-4 { aspect-ratio: 5/4; }
.ratio-square { aspect-ratio: 1/1; }
.obj-cover { object-fit: cover; width: 100%; height: 100%; }

/* Quality grid */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: 48px; }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); margin-top: 96px; } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 32px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 0; display: flex; flex-direction: column; justify-content: space-between; transition: background 500ms; gap: 24px; }
.pillar:nth-child(2n) { border-right: 0; }
.pillar:hover { background: rgba(221,213,203,.3); }
@media (min-width: 768px) { .pillar { padding: 56px 32px; min-height: 280px; gap: 0; } .pillar:nth-child(2n) { border-right: 0; } }
@media (min-width: 1024px) { .pillar { padding: 56px 32px; } .pillar:nth-child(2n) { border-right: 1px solid var(--line); } .pillar:nth-child(3n) { border-right: 0; } }
.pillar .num { font-family: "Playfair Display", serif; font-size: 11px; letter-spacing: 0.32em; color: var(--accent); }
.pillar .en { font-family: "Playfair Display", serif; font-style: italic; font-size: 14px; color: var(--sub); margin-top: 12px; }
.pillar h3 { font-family: "Noto Serif JP", serif; font-size: 18px; margin-top: 4px; }
.pillar p { font-family: "Noto Serif JP", serif; font-size: 12px; line-height: 1.9; color: rgba(23,23,23,.8); margin-top: 0; }
@media (min-width: 768px) {
  .pillar .num { font-size: 13px; }
  .pillar .en { font-size: 20px; margin-top: 32px; }
  .pillar h3 { font-size: 28px; margin-top: 8px; }
  .pillar p { font-size: 14px; line-height: 2; margin-top: 40px; }
}

/* Style collection horizontal scroll */
.hscroll { overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-track { display: flex; gap: 24px; padding: 0 24px 16px; }
@media (min-width: 768px) { .hscroll-track { gap: 40px; padding: 0 40px 16px; } }
.style-card { flex-shrink: 0; width: 80vw; }
@media (min-width: 640px) { .style-card { width: 52vw; } }
@media (min-width: 768px) { .style-card { width: 420px; } }
@media (min-width: 1024px) { .style-card { width: 460px; } }
.style-card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.style-card .en { font-family: "Playfair Display", serif; font-size: 28px; }
.style-card:hover .en { color: var(--accent); }

/* Works bento */
.bento { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(12, 1fr); gap: 32px; } }
.bento a { display: block; }
.bento .wm { display: flex; justify-content: space-between; margin-top: 24px; gap: 16px; }
.bento .wm .style { font-family: "Playfair Display", serif; font-style: italic; font-size: 12px; letter-spacing: 0.24em; color: var(--accent); }
.bento .wm .title { font-family: "Noto Serif JP", serif; font-size: 20px; margin-top: 8px; line-height: 1.3; }
.bento .wm .title.large { font-size: 24px; }
@media (min-width: 768px) { .bento .wm .title.large { font-size: 32px; } }
.bento a:hover .title { color: var(--accent); }
.bento .wm .loc { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sub); }
.col-8 { grid-column: span 1; } @media(min-width:768px){.col-8{grid-column: span 8;}}
.col-4 { grid-column: span 1; } @media(min-width:768px){.col-4{grid-column: span 4;}}
.col-5 { grid-column: span 1; } @media(min-width:768px){.col-5{grid-column: span 5;}}
.col-6 { grid-column: span 1; } @media(min-width:768px){.col-6{grid-column: span 6;}}
.col-7 { grid-column: span 1; } @media(min-width:768px){.col-7{grid-column: span 7;}}

/* Lifestyle bento */
.lifestyle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; max-width: 1600px; margin: 0 auto; padding: 0 8px; }
@media (min-width: 768px) { .lifestyle-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 24px; } }
@media (min-width: 1024px) { .lifestyle-grid { grid-template-columns: repeat(6, 1fr); } }
.lifestyle-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.lifestyle-tile img { position: absolute; inset: 0; transition: transform 1200ms cubic-bezier(0.16,1,0.3,1); }
.lifestyle-tile:hover img { transform: scale(1.06); }
.lifestyle-tile .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.42); transition: background 500ms; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bg); text-align: center; padding: 12px; }
.lifestyle-tile:hover .overlay { background: rgba(0,0,0,.55); }
@media(min-width:768px){ .lifestyle-tile .overlay { background: rgba(0,0,0,.25); } .lifestyle-tile:hover .overlay { background: rgba(0,0,0,.45); } }
.lifestyle-tile .en { font-family: "Playfair Display", serif; font-size: 16px; }
@media(min-width:768px){.lifestyle-tile .en { font-size: 32px; }}
.lifestyle-tile .jp { font-family: "Noto Serif JP", serif; font-size: 10px; margin-top: 4px; letter-spacing: 0.08em; opacity: 1; }
@media(min-width:768px){ .lifestyle-tile .jp { font-size: 12px; margin-top: 8px; letter-spacing: 0.14em; opacity: .9; } }

/* Event list */
.event-list { border-top: 1px solid var(--line); }
.event-row { display: flex; flex-direction: column; gap: 12px; padding: 32px 8px; border-bottom: 1px solid var(--line); align-items: flex-start; transition: background 500ms; }
.event-row:hover { background: rgba(221,213,203,.4); }
@media (min-width: 768px) { .event-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; padding: 40px 16px; align-items: center; flex-direction: row; } }
.event-row .tag { font-family: "Playfair Display", serif; font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.event-row .date { font-family: "Playfair Display", serif; font-size: 18px; margin-top: 4px; }
.event-row .time { font-size: 11px; letter-spacing: 0.16em; color: var(--sub); margin-top: 4px; }
.event-row .title { font-family: "Noto Serif JP", serif; font-size: 20px; line-height: 1.3; }
@media(min-width:768px){.event-row .title { font-size: 28px; }}
.event-row:hover .title { color: var(--accent); }
.event-row .place { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.ig-tile { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.ig-tile img { transition: transform 1200ms cubic-bezier(0.16,1,0.3,1); }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile .arrow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 24px; opacity: 0; background: rgba(0,0,0,0); transition: all 500ms; }
.ig-tile:hover .arrow { opacity: 1; background: rgba(0,0,0,.45); }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); margin-top: 96px; padding: 128px 0 40px; }
.site-footer h3 { font-family: "Noto Serif JP", serif; font-size: 28px; line-height: 1.4; margin-top: 24px; }
@media(min-width:768px){.site-footer h3 { font-size: 44px; }}
.site-footer .eyebrow { color: var(--accent); }
.site-footer .eyebrow::before { background: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 6fr 3fr 3fr; } }
.footer-links a { display: block; padding: 6px 0; font-family: "Noto Serif JP", serif; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 96px; padding-top: 32px; border-top: 1px solid #2b2b2b; display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
@media(min-width:768px){.footer-bottom{flex-direction: row; align-items: center;}}
.footer-bottom .brand-en { font-family: "Playfair Display", serif; letter-spacing: 0.24em; }
.footer-bottom .copy { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #8f8f8f; }

/* Reveal (JS-driven) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Skip link + a11y */
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; transition: top 300ms; }
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Section header: title + "All →" link — stack vertically on mobile */
@media (max-width: 767px) {
  .section .container > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
}

/* Event row: override inline grid-column and text-align on mobile */
@media (max-width: 767px) {
  .event-row > * { grid-column: unset !important; text-align: left !important; }
  .event-row .place { display: none; }
}

/* Magazine sub-article cards: stack vertically on mobile, side-by-side on tablet+ */
@media (max-width: 767px) {
  .bento .col-5 > a[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }
  .bento .col-5 > a[style*="grid-template-columns"] > .hover-zoom {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .bento .col-5 > a[style*="grid-template-columns"] .ratio-4-5 {
    aspect-ratio: 16/9;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none !important; transform: none !important; }
}

/* Grain overlay */
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>"); }

/* Page-hero (sub-pages) */
.page-hero { position: relative; height: 68vh; min-height: 520px; overflow: hidden; background: var(--ink); }
.page-hero img { position: absolute; inset: 0; opacity: .7; }
.page-hero::after { content:""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.3), rgba(0,0,0,.6)); }
.page-hero .container { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 96px; color: var(--bg); }
.page-hero .eyebrow { color: #DDD5CB; }
.page-hero .eyebrow::before { background: #DDD5CB; }
.page-hero h1 { font-family: "Noto Serif JP", serif; font-size: 36px; line-height: 1.2; margin-top: 24px; max-width: 900px; }
@media(min-width:768px){.page-hero h1 { font-size: 60px; }}

/* Form */
.form-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.field-label { display: block; font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sub); margin-bottom: 4px; }
.field { display: block; width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: "Inter", sans-serif; font-size: 15px; outline: none; transition: border-color 300ms; }
.field:focus { border-bottom-color: var(--ink); }
textarea.field { min-height: 120px; resize: vertical; }

/* Instagram feed grid */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.ig-grid .ig-item { display: block; aspect-ratio: 1/1; }

/* 記事本文（マガジン・施工事例・固定ページの入力コンテンツ）を新デザインに統一 */
.entry-body { font-family: "Noto Serif JP", serif; font-feature-settings: "palt"; font-size: 16px; line-height: 2.15; color: rgba(23,23,23,.9); overflow-wrap: break-word; }
.entry-body > * + * { margin-top: 1.5em; }
.entry-body h1, .entry-body h2 { font-size: 24px; line-height: 1.6; margin-top: 2.4em; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.entry-body h3 { font-size: 19px; line-height: 1.7; margin-top: 2.2em; padding-left: 14px; border-left: 2px solid var(--accent); font-weight: 500; }
.entry-body h4, .entry-body h5, .entry-body h6 { font-size: 16px; margin-top: 2em; font-weight: 600; }
.entry-body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.entry-body a:hover { opacity: .75; }
.entry-body ul { list-style: disc; padding-left: 1.5em; }
.entry-body ol { list-style: decimal; padding-left: 1.5em; }
.entry-body li + li { margin-top: .5em; }
.entry-body blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; color: var(--sub); }
.entry-body img { margin: 40px auto; height: auto; }
.entry-body figure { margin: 40px 0; }
.entry-body figure img { margin: 0; }
.entry-body figcaption, .entry-body .wp-caption-text { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .08em; color: var(--sub); margin-top: 10px; }
.entry-body .wp-caption { max-width: 100%; }
.entry-body .alignleft { float: left; margin: 6px 28px 20px 0; max-width: 50%; }
.entry-body .alignright { float: right; margin: 6px 0 20px 28px; max-width: 50%; }
.entry-body .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.entry-body .gallery, .entry-body .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .entry-body .gallery, .entry-body .wp-block-gallery { grid-template-columns: repeat(3, 1fr); } }
.entry-body .gallery img { margin: 0; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.entry-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-body th, .entry-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; line-height: 1.9; }
.entry-body th { background: var(--line-2); font-weight: 500; }
.entry-body iframe { max-width: 100%; }
.entry-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
/* 旧テーマ由来のフォント指定を打ち消してトーンを統一 */
.entry-body [style*="font-family"] { font-family: "Noto Serif JP", serif !important; }

/* Floating CTA（PC: 右下ボタン / モバイル: 下部固定バー） */
.cta-float { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 600ms cubic-bezier(0.16,1,0.3,1); }
.cta-float.show { opacity: 1; visibility: visible; transform: none; }
.cta-float a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; padding: 15px 26px; border-radius: 999px; box-shadow: 0 10px 28px rgba(23,23,23,.22); transition: all 400ms cubic-bezier(0.16,1,0.3,1); }
.cta-float .f-primary { background: var(--ink); color: var(--bg); }
.cta-float .f-primary:hover { background: var(--accent); transform: translateY(-2px); }
.cta-float .f-line { background: #06C755; color: #fff; }
.cta-float .f-line:hover { filter: brightness(1.08); transform: translateY(-2px); }
@media (max-width: 767px) {
  .cta-float { right: 0; left: 0; bottom: 0; flex-direction: row; gap: 0; transform: translateY(100%); }
  .cta-float.show { transform: none; }
  .cta-float a { flex: 1; border-radius: 0; font-size: 12px; letter-spacing: 0.12em; padding: 16px 8px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(23,23,23,.14); }
  .cta-float a:hover { transform: none; }
  /* バーに隠れないようフッター下部に余白を確保 */
  .site-footer { padding-bottom: 88px; }
}

/* Archive pagination */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.pagination .page-numbers { font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0.12em; color: var(--sub); padding: 10px 14px; border: 1px solid transparent; }
.pagination a.page-numbers:hover { color: var(--ink); border-color: var(--line); }
.pagination .page-numbers.current { color: var(--ink); border-color: var(--ink); }

/* Style keyword chips (style taxonomy page) */
.style-keyword { display: inline-block; font-family: "Noto Serif JP", serif; font-size: 12px; letter-spacing: 0.08em; color: var(--sub); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* Filter tabs (works gallery) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.filter-tabs a { font-family: "Noto Serif JP", serif; font-size: 15px; color: var(--sub); padding: 4px 0; border-bottom: 1px solid transparent; transition: color 300ms, border-color 300ms; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Spec table (company profile etc.) */
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 24px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--sub); white-space: nowrap; width: 120px; padding-right: 24px; padding-top: 28px; }
.spec-table td { font-family: "Noto Serif JP", serif; font-size: 15px; line-height: 2; color: rgba(23,23,23,.85); }
.spec-table td a { color: var(--ink); border-bottom: 1px solid var(--line); }
.spec-table td a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (min-width: 768px) { .spec-table th { width: 200px; } }

/* Work flow steps (concept page) */
.flow-list { border-top: 1px solid var(--line); margin-top: 48px; }
@media (min-width: 768px) { .flow-list { margin-top: 96px; } }
.flow-item { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 12px; padding: 32px 8px; border-bottom: 1px solid var(--line); transition: background 500ms; }
.flow-item:hover { background: rgba(221,213,203,.3); }
.flow-item .num { font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; color: var(--accent); padding-top: 2px; }
.flow-item h3 { font-size: 18px; line-height: 1.5; }
.flow-item h3 .en { display: block; font-family: "Playfair Display", serif; font-style: italic; font-size: 12px; font-weight: 400; color: var(--sub); margin-top: 6px; }
.flow-item p { grid-column: 2; font-family: "Noto Serif JP", serif; font-size: 13px; line-height: 2; color: rgba(23,23,23,.8); }
@media (min-width: 768px) {
  .flow-item { grid-template-columns: 120px 320px 1fr; column-gap: 40px; padding: 44px 16px; }
  .flow-item .num { font-size: 22px; }
  .flow-item h3 { font-size: 22px; }
  .flow-item h3 .en { font-size: 14px; }
  .flow-item p { grid-column: auto; font-size: 14px; padding-top: 4px; }
}

/* Legal / privacy body */
.legal h2 { font-family: "Noto Serif JP", serif; font-size: 20px; line-height: 1.6; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { font-family: "Noto Serif JP", serif; font-size: 14px; line-height: 2.1; color: rgba(23,23,23,.85); }
.legal p { margin-top: 20px; }
.legal ul { margin-top: 20px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 8px; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Sitewide utility spacings */
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; } .mt-96 { margin-top: 96px; }
.text-center { text-align: center; }
.hidden { display: none; }
@media(min-width:768px){.md-hidden{display:none;} .md-block{display:block;}}
