/*
Theme Name: Ashika-Home Corporate Theme
Theme URI: https://ashika-home.co.jp/
Author: Ashika-Home Engineering & Design Unit
Author URI: https://ashika-home.co.jp/
Description: BtoBマンション再生エンジニアリング特化型WordPressテーマ。26工日インフラ再生を裏付ける幾何学的エディトリアル・グリッド、完全スクエア設計、および高レスポンスなUIシステム。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ashika-home
Tags: b2b, grid-layout, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
CSS Custom Properties / Design Tokens (Step 2 厳格準拠)
========================================================================== */
:root {
/* Color Palette */
--color-bg-base: #FAFAFA;
--color-bg-surface: #FFFFFF;
--color-bg-elevated: #F4F4F2;
--color-text-primary: #171717;
--color-text-secondary: #444444;
--color-text-muted: #8C8C8C;
--color-accent: #2D3A34;
--color-accent-hover: #1E2723;
--color-border: #E5E5E3;
--color-border-subtle: rgba(0, 0, 0, 0.08);

/* Typography Stacks */
--font-sans-en: "Inter", "Helvetica Neue", Arial, sans-serif;
--font-sans-ja: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

/* Typography Scale */
--font-size-display: clamp(2.25rem, 3.2vw, 3.75rem);
--font-size-h2: clamp(1.75rem, 2.5vw, 2.375rem);
--font-size-h3: clamp(1.125rem, 1.4vw, 1.375rem);
--font-size-body: 1rem;
--font-size-body-sm: 0.875rem;
--font-size-caption: 0.75rem;
--font-size-meta: 0.6875rem;

/* Line Heights */
--line-height-tight: 1.15;
--line-height-heading: 1.35;
--line-height-subheading: 1.65;
--line-height-body: 1.85;

/* Letter Spacing */
--tracking-tight: -0.03em;
--tracking-heading: -0.015em;
--tracking-normal: 0em;
--tracking-body: +0.03em;
--tracking-wide: +0.10em;
--tracking-widest: +0.12em;

/* Geometry & Elevation */
--radius-none: 0px;
--radius-sm: 0px;
--radius-md: 0px;
--radius-lg: 0px;
--shadow-none: none;
--border-standard: 1px solid var(--color-border);

/* Spacing Architecture */
--container-max: 1320px;
--container-padding-desktop: 64px;
--container-padding-tablet: 40px;
--container-padding-mobile: 24px;
--space-section: clamp(100px, 9vw, 160px);
--grid-gap-desktop: 32px;
--grid-gap-tablet: 24px;
--grid-gap-mobile: 16px;

/* Layout Specifics */
--hero-height-desktop: 100vh;
--hero-height-mobile: 100svh;
--header-height-desktop: 80px;
--header-height-mobile: 64px;

/* Animation & Transitions */
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
--ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
--transition-fast: 250ms var(--ease-out-expo);
--transition-normal: 400ms var(--ease-out-expo);
--transition-slow: 600ms var(--ease-smooth);
}

/* ==========================================================================
02. Modern Reset & Base Rules
========================================================================== */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body {
background-color: var(--color-bg-base);
color: var(--color-text-secondary);
font-family: var(--font-sans-ja);
font-size: var(--font-size-body);
line-height: var(--line-height-body);
letter-spacing: var(--tracking-body);
word-break: keep-all;
overflow-wrap: break-word;
overflow-x: hidden;
}

img, picture, video, canvas, svg {
display: block;
max-width: 100%;
height: auto;
border-radius: var(--radius-none);
}

input, button, textarea, select {
font: inherit;
color: inherit;
border-radius: var(--radius-none);
}

button {
background: none;
border: none;
cursor: pointer;
}

a {
color: inherit;
text-decoration: none;
transition: color var(--transition-fast), opacity var(--transition-fast);
}

table {
border-collapse: collapse;
width: 100%;
}

ul, ol {
list-style: none;
}

/* ==========================================================================
03. Typography Architecture & Jump Rates
========================================================================== */
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-primary);
font-weight: 600;
letter-spacing: var(--tracking-heading);
}

h1 {
font-size: var(--font-size-display);
line-height: var(--line-height-heading);
}

h2 {
font-size: var(--font-size-h2);
line-height: var(--line-height-subheading);
}

h3 {
font-size: var(--font-size-h3);
line-height: 1.4;
}

.text-en {
font-family: var(--font-sans-en);
}

.text-mono {
font-family: var(--font-sans-en);
font-variant-numeric: tabular-nums;
}

.section-label {
display: inline-block;
font-family: var(--font-sans-en);
font-size: var(--font-size-caption);
font-weight: 600;
letter-spacing: var(--tracking-wide);
color: var(--color-text-muted);
text-transform: uppercase;
margin-bottom: 16px;
}

/* ==========================================================================
04. Layout Grid System (12-Column Asymmetric Framework)
========================================================================== */
.container {
width: 100%;
max-width: var(--container-max);
margin-left: auto;
margin-right: auto;
padding-left: var(--container-padding-desktop);
padding-right: var(--container-padding-desktop);
}

.grid-12 {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
column-gap: var(--grid-gap-desktop);
row-gap: var(--grid-gap-desktop);
}

/* Asymmetric 4-col (Fixed Meta/Index) vs 8-col (Content/Data) */
.col-meta-4 {
grid-column: span 4;
}

.col-content-8 {
grid-column: span 8;
}

.section-padding {
padding-top: var(--space-section);
padding-bottom: var(--space-section);
border-bottom: var(--border-standard);
}

.bg-surface {
background-color: var(--color-bg-surface);
}

.bg-base {
background-color: var(--color-bg-base);
}

/* ==========================================================================
05. UI Elements & Shared Components
========================================================================== */
/* Square Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 18px 40px;
font-family: var(--font-sans-ja);
font-size: var(--font-size-body-sm);
font-weight: 500;
letter-spacing: var(--tracking-body);
border-radius: var(--radius-none);
border: 1px solid transparent;
box-shadow: var(--shadow-none);
cursor: pointer;
transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
background-color: var(--color-text-primary);
color: #FFFFFF;
border-color: var(--color-text-primary);
}

.btn-primary:hover {
background-color: var(--color-accent);
border-color: var(--color-accent);
color: #FFFFFF;
}

.btn-secondary {
background-color: transparent;
color: var(--color-text-primary);
border: 1px solid var(--color-text-primary);
}

.btn-secondary:hover {
background-color: var(--color-text-primary);
color: #FFFFFF;
}

/* Square Badge / Tag */
.badge {
display: inline-block;
background-color: var(--color-bg-elevated);
color: var(--color-text-secondary);
font-size: 11px;
font-weight: 500;
letter-spacing: var(--tracking-normal);
padding: 4px 8px;
border-radius: var(--radius-none);
margin-bottom: 12px;
border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hover Underline Link Animation */
.link-editorial {
position: relative;
display: inline-block;
color: var(--color-text-primary);
}

.link-editorial::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
width: 0%;
height: 1px;
background-color: var(--color-text-primary);
transition: width 300ms var(--ease-out-expo);
}

.link-editorial:hover::after {
width: 100%;
}

/* ==========================================================================
06. Global Header (Layer 1: z-index 100)
========================================================================== */
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: var(--header-height-desktop);
z-index: 100;
display: flex;
align-items: center;
background-color: transparent;
transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom-color var(--transition-normal);
}

.site-header.is-scrolled {
background-color: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: var(--border-standard);
}

/* Offset fixed header when the WordPress admin bar is visible. */
body.admin-bar .site-header {
top: 32px;
}

@media screen and (max-width: 782px) {
body.admin-bar .site-header {
top: 46px;
}
}

.header-container {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 24px;
min-width: 0;
}

.site-brand {
flex: 0 0 auto;
min-width: 0;
}

.site-brand-link {
white-space: nowrap;
}

.site-brand a {
display: flex;
align-items: center;
gap: 12px;
}

.site-brand-logo {
font-family: var(--font-sans-en);
font-size: 1.125rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--color-text-primary);
}

.site-brand-tagline {
font-size: var(--font-size-meta);
color: var(--color-text-muted);
letter-spacing: var(--tracking-wide);
border-left: 1px solid var(--color-border);
padding-left: 12px;
}

.header-nav {
display: flex;
align-items: center;
flex: 1 1 auto;
justify-content: flex-end;
gap: 28px;
min-width: 0;
}

.header-nav-list {
display: flex;
align-items: center;
gap: 28px;
flex: 1 1 auto;
justify-content: flex-end;
min-width: 0;
}

.header-nav-item {
flex: 0 0 auto;
}

.header-nav-item a,
.nav-link {
font-size: 13px;
font-weight: 500;
color: var(--color-text-secondary);
display: inline-flex;
align-items: center;
white-space: nowrap;
flex-shrink: 0;
line-height: 1.4;
}

.header-nav-item a:hover {
color: var(--color-text-primary);
}

.header-action {
flex: 0 0 auto;
}

.header-action .btn-header,
.header-cta-btn,
.header-btn-contact {
padding: 10px 20px;
font-size: 12px;
background-color: var(--color-text-primary);
color: #FFFFFF;
border-radius: var(--radius-none);
font-weight: 500;
white-space: nowrap;
flex-shrink: 0;
}

.header-action .btn-header:hover {
background-color: var(--color-accent);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
display: none;
width: 24px;
height: 16px;
flex-direction: column;
justify-content: space-between;
}

.mobile-nav-toggle span {
display: block;
width: 100%;
height: 1.5px;
background-color: var(--color-text-primary);
transition: transform var(--transition-normal);
}

/* ==========================================================================
07. Top View / Fullscreen Overlay Hero
========================================================================== */
.hero-fullscreen {
position: relative;
width: 100vw;
max-width: 100%;
height: 100vh;
height: 100svh;
min-height: 720px;
overflow: hidden;
background-color: #171717;
color: #FFFFFF;
}

.hero-bg-layer {
position: absolute;
inset: 0;
z-index: 1;
}

.hero-slide {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
opacity: 1;
z-index: 1;
}

.hero-bg-img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
display: block;
transform: scale(1.04);
animation: heroImageShrink 1400ms var(--ease-smooth) forwards;
}

@keyframes heroImageShrink {
to {
transform: scale(1);
}
}

.hero-scrim-overlay {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
background:
linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-marquee-container {
position: absolute;
top: 50%;
left: 0;
width: 100%;
transform: translateY(-50%);
z-index: 2;
overflow: hidden;
pointer-events: none;
user-select: none;
}

.hero-marquee-inner {
display: flex;
white-space: nowrap;
width: max-content;
font-family: var(--font-sans-en);
font-size: clamp(5.5rem, 12vw, 12rem);
font-weight: 500;
letter-spacing: -0.03em;
line-height: 0.9;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.12);
animation: marqueeH 48s linear infinite;
}

.hero-marquee-inner span {
flex-shrink: 0;
padding-right: 0.4em;
}

@keyframes marqueeH {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

.hero-bottom-left {
position: absolute;
left: 48px;
bottom: 48px;
z-index: 3;
max-width: 280px;
}

.hero-meta-address {
margin: 0;
font-family: var(--font-sans-en);
font-size: 10px;
font-weight: 500;
line-height: 1.7;
letter-spacing: 0.08em;
color: rgba(255, 255, 255, 0.72);
text-transform: uppercase;
}

.hero-bottom-right {
position: absolute;
right: 48px;
bottom: 56px;
z-index: 3;
width: min(520px, 42vw);
animation: heroTextSlideIn 800ms var(--ease-out-expo) 250ms both;
}

@keyframes heroTextSlideIn {
from {
opacity: 0;
transform: translateY(24px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.hero-statement-title {
margin: 0 0 1.25rem;
font-size: clamp(1.375rem, 1.8vw, 2.4rem);
font-weight: 600;
line-height: 1.35;
letter-spacing: -0.02em;
color: #FFFFFF;
word-break: keep-all;
line-break: strict;
}

.hero-statement-lead {
margin: 0;
font-size: 13px;
line-height: 1.75;
font-weight: 400;
color: rgba(255, 255, 255, 0.72);
}

.hero-scroll-guide {
position: absolute;
left: 48px;
bottom: 128px;
z-index: 3;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
pointer-events: none;
}

.hero-scroll-guide .scroll-label {
font-family: var(--font-sans-en);
font-size: 10px;
letter-spacing: 0.14em;
color: rgba(255, 255, 255, 0.7);
}

.hero-scroll-guide .scroll-line {
width: 1px;
height: 32px;
background-color: rgba(255, 255, 255, 0.28);
position: relative;
overflow: hidden;
}

.hero-scroll-guide .scroll-line::after {
content: "";
position: absolute;
top: -100%;
left: 0;
width: 100%;
height: 100%;
background-color: #FFFFFF;
animation: scrollDrop 1800ms ease-in-out infinite;
}

@keyframes scrollDrop {
0% { top: -100%; }
50% { top: 0; }
100% { top: 100%; }
}

/* ==========================================================================
08. Philosophy & Statement Section
========================================================================== */
.philosophy-section {
background-color: var(--color-bg-base);
}

.statement-h2 {
font-size: var(--font-size-h2);
line-height: var(--line-height-subheading);
color: var(--color-text-primary);
margin-bottom: 32px;
}

.statement-body {
font-size: var(--font-size-body);
line-height: var(--line-height-body);
letter-spacing: var(--tracking-body);
color: var(--color-text-secondary);
border-top: var(--border-standard);
padding-top: 32px;
}

/* ==========================================================================
09. Selected Works (Case Studies) Section
========================================================================== */
.works-section {
background-color: var(--color-bg-surface);
}

.works-sticky-meta {
position: sticky;
top: 120px;
}

.works-stat-indices {
margin-top: 48px;
display: flex;
flex-direction: column;
gap: 24px;
}

.works-stat-box {
border-top: var(--border-standard);
padding-top: 16px;
}

.works-stat-num {
font-family: var(--font-sans-en);
font-size: 2.25rem;
font-weight: 700;
color: var(--color-text-primary);
line-height: 1.1;
}

.works-stat-num span {
font-size: 1rem;
font-weight: 400;
color: var(--color-text-secondary);
margin-left: 4px;
}

.works-stat-desc {
font-size: var(--font-size-caption);
color: var(--color-text-muted);
margin-top: 6px;
}

/* Works Card Stack */
.works-stack-list {
display: flex;
flex-direction: column;
gap: 48px;
}

.work-card {
background-color: var(--color-bg-surface);
border: var(--border-standard);
border-radius: var(--radius-none);
box-shadow: var(--shadow-none);
overflow: hidden;
transition: border-color var(--transition-fast);
}

.work-card:hover {
border-color: #C0C0BE;
}

.work-card-media {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background-color: var(--color-bg-elevated);
}

.work-card-media img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 600ms var(--ease-smooth);
}

.work-card:hover .work-card-media img {
transform: scale(1.04);
}

.work-card-body {
padding: 24px;
}

.work-card-client {
font-size: 11px;
color: var(--color-text-muted);
margin-bottom: 6px;
display: block;
}

.work-card-title {
font-size: 1.125rem;
line-height: 1.4;
color: var(--color-text-primary);
margin-bottom: 16px;
}

.work-spec-table {
border-top: var(--border-standard);
border-bottom: var(--border-standard);
margin-bottom: 16px;
padding: 12px 0;
display: flex;
flex-direction: column;
gap: 8px;
}

.work-spec-row {
display: flex;
justify-content: space-between;
font-size: var(--font-size-caption);
}

.work-spec-label {
color: var(--color-text-muted);
}

.work-spec-val {
font-weight: 500;
color: var(--color-text-primary);
font-family: var(--font-sans-en);
}

.work-card-desc {
font-size: 13px;
line-height: var(--line-height-body);
color: var(--color-text-secondary);
}

/* ==========================================================================
10. Capabilities & Systems Section
========================================================================== */
.capabilities-section {
background-color: var(--color-bg-surface);
}

.capabilities-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: var(--grid-gap-desktop);
row-gap: var(--grid-gap-desktop);
margin-top: 56px;
}

.capability-card {
background-color: var(--color-bg-base);
border: var(--border-standard);
border-radius: var(--radius-none);
padding: 32px;
display: flex;
flex-direction: column;
justify-content: flex-start;
transition: background-color var(--transition-fast);
}

.capability-card:hover {
background-color: #F5F5F3;
}

.capability-index {
font-family: var(--font-sans-en);
font-size: 12px;
font-weight: 700;
letter-spacing: var(--tracking-wide);
color: var(--color-text-muted);
margin-bottom: 24px;
}

.capability-title {
font-size: 1.25rem;
font-weight: 600;
line-height: 1.45;
color: var(--color-text-primary);
margin-bottom: 16px;
min-height: 3.6em;
}

.capability-text {
font-size: var(--font-size-body-sm);
line-height: var(--line-height-body);
color: var(--color-text-secondary);
}

/* ==========================================================================
11. Credibility & Audit Data Matrix
========================================================================== */
.credibility-section {
background-color: var(--color-bg-base);
}

.credibility-matrix-table {
border-top: var(--border-standard);
}

.matrix-row {
display: grid;
grid-template-columns: 240px 1fr;
align-items: center;
padding: 24px 0;
border-bottom: var(--border-standard);
}

.matrix-th {
font-size: 13px;
color: var(--color-text-muted);
font-weight: 500;
}

.matrix-td {
font-size: 1rem;
font-weight: 600;
color: var(--color-text-primary);
font-family: var(--font-sans-en);
}

.matrix-td-note {
font-family: var(--font-sans-ja);
font-size: 0.8125rem;
font-weight: 400;
color: var(--color-text-secondary);
display: block;
margin-top: 4px;
}

/* ==========================================================================
12. Contact / Partnership Terminal
========================================================================== */
.contact-section {
background-color: var(--color-bg-surface);
border-bottom: var(--border-standard);
}

.contact-action-wrapper {
margin-top: 48px;
display: flex;
gap: 20px;
flex-wrap: wrap;
}

/* ==========================================================================
13. Editorial Footer Architecture
========================================================================== */
.site-footer {
background-color: var(--color-bg-surface);
padding-top: 96px;
padding-bottom: 48px;
}

.footer-statement {
font-size: clamp(1.125rem, 1.6vw, 1.5rem);
line-height: 1.8;
color: var(--color-text-primary);
margin-bottom: 64px;
}

.footer-nav-grid {
display: grid;
grid-template-columns: 2fr repeat(3, 1fr);
column-gap: 48px;
row-gap: 32px;
padding-bottom: 64px;
border-bottom: var(--border-standard);
}

.footer-corp-meta p {
font-size: var(--font-size-body-sm);
color: var(--color-text-muted);
line-height: 1.7;
}

.footer-corp-meta strong {
color: var(--color-text-primary);
}

.footer-col-title {
font-family: var(--font-sans-en);
font-size: 11px;
font-weight: 600;
letter-spacing: var(--tracking-wide);
color: var(--color-text-muted);
text-transform: uppercase;
margin-bottom: 16px;
}

.footer-links-list li {
margin-bottom: 10px;
}

.footer-links-list a {
font-size: 13px;
color: var(--color-text-secondary);
}

.footer-links-list a:hover {
color: var(--color-text-primary);
}

.footer-bottom-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 24px;
font-family: var(--font-sans-en);
font-size: 11px;
color: var(--color-text-muted);
}

.footer-bottom-links {
display: flex;
gap: 24px;
}

/* ==========================================================================
14. Responsive Layout & Breakpoints
========================================================================== */
/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
:root {
--container-padding-desktop: 40px;
--header-height-desktop: 72px;
}

.container {
padding-left: var(--container-padding-tablet);
padding-right: var(--container-padding-tablet);
}

.hero-fullscreen {
min-height: 640px;
}

.hero-bottom-left,
.hero-scroll-guide {
left: 32px;
}

.hero-bottom-right {
right: 32px;
width: min(440px, 46vw);
}

.header-container {
gap: 16px;
}

.header-nav,
.header-nav-list {
gap: 16px;
}

.site-brand-tagline {
display: none;
}

.grid-12 {
column-gap: var(--grid-gap-tablet);
}

.col-meta-4 {
grid-column: span 12;
margin-bottom: 24px;
}

.col-content-8 {
grid-column: span 12;
}

.works-sticky-meta {
position: static;
margin-bottom: 40px;
}

.capabilities-grid {
grid-template-columns: 1fr;
}

.capability-title {
min-height: auto;
}

.footer-nav-grid {
grid-template-columns: 1fr 1fr;
}
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
:root {
--hero-height-desktop: 100svh;
}

.container {
padding-left: var(--container-padding-mobile);
padding-right: var(--container-padding-mobile);
}

/* Header & Mobile Menu */
.site-header {
height: var(--header-height-mobile);
}

.header-nav,
.header-action {
display: none;
}

.mobile-nav-toggle {
display: flex;
flex-shrink: 0;
}

/* Hero fullscreen overlay */
.hero-fullscreen {
min-height: 640px;
}

.hero-marquee-inner {
font-size: clamp(4rem, 18vw, 6rem);
}

.hero-bottom-left {
left: 24px;
bottom: 24px;
}

.hero-bottom-right {
left: 24px;
right: 24px;
bottom: 96px;
width: auto;
}

.hero-statement-title {
font-size: clamp(1.25rem, 5vw, 1.625rem);
}

.hero-statement-lead {
font-size: 12px;
}

.hero-scroll-guide {
left: 24px;
bottom: 112px;
}

/* Matrix Table Mobile */
.matrix-row {
grid-template-columns: 1fr;
gap: 8px;
padding: 16px 0;
}

/* Action Buttons Mobile */
.contact-action-wrapper {
flex-direction: column;
}

.btn {
width: 100%;
}

/* Footer Mobile */
.footer-nav-grid {
grid-template-columns: 1fr;
}

.footer-bottom-bar {
flex-direction: column;
gap: 16px;
align-items: flex-start;
}
}

/* ==========================================================================
Editorial full-bleed sections (front page scroll)
========================================================================== */
html,
body {
width: 100%;
}

.container,
.container-standard {
width: 100%;
max-width: var(--container-max);
margin-left: auto;
margin-right: auto;
padding-left: 64px;
padding-right: 64px;
box-sizing: border-box;
}

.section-hero,
.section-statement,
.section-capabilities,
.section-works,
.section-credibility,
.section-contact {
width: 100%;
box-sizing: border-box;
}

.section-hero {
position: relative;
min-height: 100vh;
min-height: 100svh;
background: #FFFFFF;
overflow: hidden;
padding: 120px 0 80px;
}

.hero-marquee-bg {
position: absolute;
inset: 0;
display: flex;
align-items: center;
overflow: hidden;
pointer-events: none;
z-index: 0;
}

.hero-marquee-bg span {
display: inline-block;
white-space: nowrap;
font-family: var(--font-sans-en);
font-size: clamp(72px, 11vw, 140px);
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1;
text-transform: uppercase;
color: rgba(0, 0, 0, 0.04);
animation: marqueeH 42s linear infinite;
}

.hero-inner {
position: relative;
z-index: 1;
width: 100%;
max-width: var(--container-max);
margin: 0 auto;
padding: 0 64px;
display: flex;
justify-content: flex-end;
align-items: center;
min-height: calc(100svh - 200px);
}

.hero-visual-grid {
display: grid;
grid-template-columns: 1.15fr 0.85fr;
grid-template-rows: 200px 280px;
gap: 16px;
min-height: 496px;
}

.hero-photo {
overflow: hidden;
background: #F4F4F2;
min-width: 0;
}

.hero-photo.p1 {
grid-row: 1 / 3;
}

.hero-photo img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.hero-statement-box {
align-self: start;
padding-top: 6vh;
max-width: 36rem;
justify-self: end;
}

.hero-title,
.hero-statement-title,
.section-hero .hero-title {
margin: 0 0 20px;
font-size: clamp(1.35rem, 2.1vw, 2.15rem);
font-weight: 600;
line-height: 1.5;
letter-spacing: -0.02em;
color: #171717;
word-break: keep-all;
line-break: strict;
overflow-wrap: normal;
}

.hero-statement-title span,
.hero-title span {
display: inline-block;
white-space: nowrap;
}

.hero-lead {
margin: 0;
font-size: 14px;
line-height: 1.9;
color: #555555;
}

.section-statement {
background: #FFFFFF;
padding: clamp(100px, 9vw, 160px) 0;
}

.statement-layout {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
gap: 64px;
align-items: center;
}

.section-label,
.section-label-light {
display: inline-block;
margin-bottom: 20px;
font-family: var(--font-sans-en);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
}

.section-label {
color: #8C8C8C;
}

.section-label-light {
color: rgba(255, 255, 255, 0.72);
}

.statement-h2,
.works-h2,
.credibility-h2,
.section-statement .statement-h2 {
font-size: clamp(1.75rem, 2.5vw, 2.25rem);
font-weight: 600;
line-height: 1.5;
letter-spacing: -0.02em;
color: #171717;
margin: 0 0 24px;
}

.statement-body,
.section-copy {
font-size: 14px;
line-height: 1.9;
color: #555555;
margin: 0;
border: 0;
padding: 0;
}

.statement-visual {
min-height: 360px;
background: #F8F8F6;
overflow: hidden;
}

.statement-visual img {
width: 100%;
height: 100%;
min-height: 360px;
object-fit: cover;
display: block;
}

.section-capabilities {
background: #5B8296;
color: #FFFFFF;
padding: clamp(100px, 9vw, 160px) 0;
}

.capabilities-h2 {
margin: 0 0 48px;
max-width: 16em;
font-size: clamp(1.75rem, 2.5vw, 2.25rem);
font-weight: 600;
line-height: 1.5;
color: #FFFFFF;
}

.section-capabilities .capabilities-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
margin-top: 0;
}

.cap-card {
padding: 32px;
border: 1px solid rgba(255, 255, 255, 0.28);
background: transparent;
min-height: 100%;
}

.cap-card h3 {
margin: 0 0 16px;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.5;
color: #FFFFFF;
}

.cap-card p {
margin: 0;
font-size: 14px;
line-height: 1.9;
color: rgba(255, 255, 255, 0.85);
}

.section-works {
background: #FFFFFF;
padding: clamp(100px, 9vw, 160px) 0;
}

.works-head {
margin-bottom: 48px;
max-width: 720px;
}

.works-cards-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
}

.section-works .work-card {
display: flex;
flex-direction: column;
background: #FFFFFF;
border: 1px solid #E5E5E3;
overflow: hidden;
min-width: 0;
}

.work-thumb {
aspect-ratio: 4 / 3;
background: #F4F4F2;
overflow: hidden;
}

.work-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.work-body {
padding: 24px;
}

.work-tag {
display: inline-block;
margin-bottom: 12px;
font-size: 11px;
letter-spacing: 0.08em;
color: #8C8C8C;
}

.work-title {
margin: 0 0 12px;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.5;
color: #171717;
}

.work-spec {
margin: 0;
font-size: 14px;
line-height: 1.9;
color: #555555;
}

.works-more {
margin-top: 40px;
}

.section-credibility {
background: #F8F8F6;
padding: clamp(100px, 9vw, 160px) 0;
}

.credibility-layout {
display: grid;
grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
gap: 64px;
align-items: start;
}

.section-contact {
background: #171717;
color: #FFFFFF;
padding: clamp(100px, 9vw, 160px) 0;
}

.contact-box {
width: 100%;
max-width: 860px;
margin: 0 auto;
}

.contact-box h2 {
margin: 0 0 16px;
font-size: clamp(1.75rem, 2.5vw, 2.25rem);
font-weight: 600;
line-height: 1.5;
color: #FFFFFF;
}

.contact-box > p {
margin: 0 0 36px;
font-size: 14px;
line-height: 1.9;
color: rgba(255, 255, 255, 0.85);
}

.inquiry-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}

.inquiry-field {
min-width: 0;
}

.inquiry-field--full {
grid-column: 1 / -1;
margin-top: 20px;
}

.inquiry-field label {
display: block;
margin-bottom: 8px;
font-size: 12px;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
}

.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
width: 100%;
box-sizing: border-box;
padding: 14px 16px;
border: 1px solid rgba(255, 255, 255, 0.22);
background: #FFFFFF;
color: #171717;
font-size: 14px;
line-height: 1.6;
border-radius: 0;
}

.inquiry-note {
display: block;
margin-top: 8px;
font-size: 12px;
line-height: 1.7;
color: rgba(255, 255, 255, 0.6);
}

.section-contact .contact-action-wrapper {
margin-top: 28px;
display: flex;
flex-wrap: wrap;
gap: 16px;
}

.section-contact .btn {
width: auto;
}

.site-footer {
width: 100%;
background: #FFFFFF;
}

@media (max-width: 1023px) {
.container,
.container-standard,
.hero-inner {
padding-left: 40px;
padding-right: 40px;
}

.statement-layout,
.credibility-layout,
.section-capabilities .capabilities-grid,
.works-cards-grid {
grid-template-columns: 1fr;
}

.hero-visual-grid {
grid-template-rows: 220px 180px;
min-height: 0;
}

.hero-statement-box {
padding-top: 8px;
max-width: 100%;
}

.hero-statement-title,
.section-hero .hero-title {
font-size: clamp(1.15rem, 4.6vw, 1.5rem);
}
}

@media (max-width: 767px) {
.container,
.container-standard,
.hero-inner {
padding-left: 24px;
padding-right: 24px;
}

.section-hero {
padding-top: 96px;
min-height: auto;
}

.hero-inner {
min-height: 0;
}

.hero-visual-grid {
grid-template-columns: 1fr 1fr;
grid-template-rows: 160px 140px;
}

.inquiry-grid {
grid-template-columns: 1fr;
}

.section-contact .btn {
width: 100%;
}
}

/* ==========================================================================
   Fixed Background / Curtain Scroll Architecture
   ========================================================================== */

.section-fixed-bg {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 64px;
  z-index: 1;
}

.section-fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.5) 0%, rgba(23, 23, 23, 0.12) 58%, rgba(23, 23, 23, 0.28) 100%);
  pointer-events: none;
}

.section-fixed-bg--quiet::after {
  background: linear-gradient(to top, rgba(23, 23, 23, 0.28), rgba(23, 23, 23, 0.05));
}

.section-hero.section-fixed-bg {
  background-color: transparent;
  overflow: hidden;
  padding: 0 64px;
}

.section-hero.section-fixed-bg .hero-inner,
.section-hero.section-fixed-bg .hero-marquee-bg {
  position: relative;
  z-index: 1;
}

.section-hero.section-fixed-bg .hero-marquee-bg span {
  color: rgba(255, 255, 255, 0.08);
}

.section-hero.section-fixed-bg .hero-title,
.section-hero.section-fixed-bg .hero-statement-title,
.section-hero.section-fixed-bg .hero-lead {
  color: #ffffff;
}

.section-hero.section-fixed-bg .hero-lead {
  color: rgba(255, 255, 255, 0.85);
}

.section-curtain {
  position: relative;
  width: 100%;
  z-index: 2;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

.bg-white {
  background-color: #ffffff;
}

.bg-muted-beige {
  background-color: #C0B7B3;
  color: #ffffff;
}

.bg-slate-blue {
  background-color: #5B8296;
  color: #ffffff;
}

.section-statement.bg-muted-beige,
.section-statement.bg-muted-beige .statement-h2,
.section-statement.bg-muted-beige .statement-body,
.section-statement.bg-muted-beige .section-label {
  color: #ffffff;
}

.section-statement.bg-muted-beige {
  background-color: #C0B7B3;
}

.section-works.bg-white,
.section-credibility.bg-white {
  background-color: #ffffff;
}

.section-capabilities.bg-slate-blue {
  background-color: #5B8296;
  color: #ffffff;
}

/* ==========================================================================
   Footer Section Architecture
   ========================================================================== */
.site-footer-curtain {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #5B8296;
  color: #ffffff;
  padding: 100px 64px 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  box-sizing: border-box;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-col a {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-col a:hover {
  color: #ffffff;
}

.footer-isometric-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-iso-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  background-color: #1F282B;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-iso-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: right;
}

.footer-action-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.footer-action-item a {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-action-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  line-height: 1.4;
}

.footer-address-block {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer-curtain .footer-bottom-bar {
  width: 100%;
  max-width: 1400px;
  margin: 60px auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: transparent;
}

.footer-closing-statement {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.site-footer-curtain .footer-copyright {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

@media screen and (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-info-col,
  .site-footer-curtain .footer-bottom-bar {
    text-align: left;
    align-items: flex-start;
  }

  .site-footer-curtain .footer-bottom-bar {
    flex-direction: column;
    gap: 24px;
  }

  .section-fixed-bg {
    background-attachment: scroll;
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-footer-curtain {
    padding: 72px 24px 40px;
    min-height: auto;
  }
}