:root {
    --primary: #0d3a6b;
    --primary-rgb: 13, 58, 107;
    --primary-light: #1e5ba3;
    --primary-dark: #082447;
    --accent: #2563eb;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray: #666666;
    --gray-light: #f8f8f8;
    --font-en: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-jp);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.8;
    position: relative;
}

/* index ↔ サブページ：バックドロップぼかし付きフェード */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
    opacity: 0;
    background: rgba(var(--primary-rgb), 0.4);
    backdrop-filter: blur(0px) saturate(150%);
    -webkit-backdrop-filter: blur(0px) saturate(150%);
    will-change: opacity, backdrop-filter, -webkit-backdrop-filter;
}

.page-transition.page-transition--visible {
    pointer-events: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100px 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .loader {
        transition: opacity 0.38s ease, visibility 0.38s ease;
    }
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 25px;
}

.loader-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.loader-logo-path {
    fill: var(--white);
}

/* Grid Pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Header */
.header {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 90%;
    z-index: 1000;
    padding: 26px 53px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
}

.header.at-bottom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: headerSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes headerSlideUp {
    0% {
        transform: translateX(-50%) translateY(20px) scale(0.95);
        opacity: 0.8;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
    100% {
        transform: translateX(-50%) translateY(-5px) scale(1.02);
        opacity: 1;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}

.header.scrolled {
    background: transparent;
}

.header.logo-hovered {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header.at-bottom.logo-hovered {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: none;
}

.logo {
    position: relative;
    z-index: 1001;
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
    order: 2;
}

.logo-text {
    display: flex;
    align-items: center;
    width: 150px;
    height: 40px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-path {
    fill: var(--white);
    transition: fill 0.3s ease;
}

/* 白背景の時は青（marquee-section以降、contact-section以外） */
.header.hero-passed .logo-path {
    fill: var(--primary);
}

/* 青背景の時は白（contact-section内） */
.header.in-contact .logo-path {
    fill: var(--white);
}

/* ホバー時は常に青 */
.logo:hover .logo-path,
.header.logo-hovered .logo-path {
    fill: var(--primary) !important;
}

.header.in-contact .logo:hover .logo-path,
.header.in-contact.logo-hovered .logo-path {
    fill: var(--white);
}

/* 画面の最後（at-bottom）は常に青（ホバーと同じ動き） */
.header.at-bottom .logo-path {
    fill: var(--primary);
}

.header.at-bottom .logo:hover .logo-path {
    fill: var(--primary);
}

/* 最下部の白いヘッダーカード上は、Contact 中でもロゴ・ハンバーガーを青に（白カード上での視認性） */
.header.at-bottom.in-contact .header-menu-btn {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(255, 255, 255, 0.92);
}

.header.at-bottom.in-contact .header-menu-btn-bar {
    background: var(--primary);
}

.header.at-bottom.in-contact .logo:hover .logo-path,
.header.at-bottom.in-contact.logo-hovered .logo-path {
    fill: var(--primary);
}

.logo-domain {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
}

.nav {
    position: relative;
    transform: translateX(0) scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    background: transparent;
    padding: 15px 40px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    transform-origin: center;
    order: 1;
    margin-bottom: 15px;
}

.header.logo-hovered .nav,
.header.at-bottom .nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.header.logo-hovered .logo,
.header.at-bottom .logo {
    opacity: 1;
    visibility: visible;
}

.nav a {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    display: block;
}

.nav a span {
    display: block;
    transition: transform 0.3s ease;
}

.nav a:hover span {
    transform: translateY(-100%);
}

.nav a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.nav a:hover::after {
    transform: translateY(-100%);
}

/* スマホ・タブレット：ハンバーガー（1200px以下で .nav の代わり） */
.header-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    order: 2;
}

.header-menu-btn-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.header.hero-passed .header-menu-btn {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(255, 255, 255, 0.92);
}

.header.hero-passed .header-menu-btn-bar {
    background: var(--primary);
}

.header.in-contact .header-menu-btn {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.header.in-contact .header-menu-btn-bar {
    background: var(--white);
}

.header-menu-btn.is-open .header-menu-btn-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-menu-btn.is-open .header-menu-btn-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-menu-btn.is-open .header-menu-btn-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.menu-btn {
    width: 80px;
    height: 80px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 26px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu-btn .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: var(--primary);
}

.menu-btn:hover .dot {
    background: var(--white);
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--white);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: max(100px, calc(env(safe-area-inset-top) + 72px)) max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.mega-menu-close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    cursor: pointer;
    z-index: 1101;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}

.mega-menu-close:hover {
    background: rgba(var(--primary-rgb), 0.14);
}

.mega-menu-close span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.mega-menu-close span:first-child {
    transform: rotate(45deg);
}

.mega-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    max-width: 800px;
}

.mega-menu-index h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 20px;
}

.mega-menu-index ul {
    list-style: none;
}

.mega-menu-index li {
    margin-bottom: 12px;
}

.mega-menu-index a {
    font-size: clamp(15px, 4vw, 16px);
    color: var(--gray);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
}

.mega-menu-index a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    object-fit: cover;
    z-index: 0;
}

.hero-bg-noise {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: 2;
    opacity: 0.3;
}

.hero-content {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-en);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.04em;
    width: 100%;
}

.hero-title-line {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    justify-content: flex-start;
}

.hero-title-word {
    font-size: clamp(64px, 8vw, 160px);
    font-weight: 400;
    display: inline-block;
    margin-right: 40px;
    opacity: 0;
    transform: translateY(100%);
    white-space: nowrap;
}

.hero-side-text {
    position: fixed;
    right: 53px;
    top: 50vh;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 2;
}

.hero-tagline {
    position: absolute;
    bottom: 160px;
    right: 80px;
    font-size: 20px;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* Marquee Section */
.marquee-section {
    background: var(--white);
    padding: 25px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.marquee-track {
    display: flex;
    animation: marquee 28s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-text {
    font-size: 40px;
    font-weight: 500;
    background: linear-gradient(135deg, #0d3a6b 0%, #3d8bd8 50%, #0d3a6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding: 0 5px;
}

.marquee-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 500;
    font-size: 36px;
    margin: 0 5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
section {
    position: relative;
    z-index: 1;
    background: var(--white);
}

.section-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 120px 80px;
}

.section-header {
    position: relative;
    margin-bottom: 80px;
    text-align: center;
}

.section-title {
    font-family: var(--font-en);
    font-size: clamp(20px, 2vw, 32px);
    font-weight: 400;
    color: var(--black);
    display: inline-block;
}

.section-title::before {
    content: '(';
    color: var(--black);
}

.section-title::after {
    content: ')';
    color: var(--black);
}

.section-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d3a6b 0%, #3d8bd8 50%, #0d3a6b 100%);
    transform-origin: center;
    transition: none;
    opacity: 0;
}

/* About Section */
.about-section {
    position: relative;
    overflow: visible;
}

.about-content {
    position: relative;
}

.about-text-wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 150px;
    position: relative;
    padding: 200px 0;
    min-height: 400vh;
}

.about-block {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    width: fit-content;
    position: relative;
    z-index: 0;
}

.about-block:nth-child(2) {
    align-self: flex-start;
}

.about-block:nth-child(3) {
    align-self: flex-end;
}

.about-block:nth-child(4) {
    align-self: flex-start;
}

.about-vertical-wrap {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    margin: 150px 0;
    align-self: stretch;
}

.about-block-title {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.about-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 2.2;
    color: var(--black);
}

.about-vertical {
    writing-mode: vertical-rl;
    font-size: 42px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.1em;
    white-space: nowrap;
    display: inline-block;
    text-orientation: upright;
}

.about-vertical-highlight {
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    display: inline;
}

.about-vertical-sub {
    color: var(--black);
    font-weight: 300;
    transform: scaleY(1.3);
    transform-origin: center;
    display: inline;
}

/* Founder Section */
.founder-section {
    background: var(--gray-light);
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.founder-profile {
    position: sticky;
    top: 150px;
}

.founder-name-en {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.founder-title {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.founder-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.founder-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 18px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.founder-link-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.founder-bio {
    opacity: 0;
    transform: translateY(30px);
}

.founder-bio-title {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.founder-bio p {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.2;
    color: var(--black);
    margin-bottom: 30px;
}

body.page-founder-detail,
body.page-case-detail {
    padding-bottom: max(96px, calc(56px + env(safe-area-inset-bottom)));
}

body.page-founder-detail {
    background-color: var(--white);
}

body.page-case-detail {
    background: var(--white);
}

.founder-detail-page {
    position: relative;
    padding: 48px 0 max(280px, calc(200px + env(safe-area-inset-bottom) + 64px));
    background: var(--gray-light);
    min-height: 60vh;
}

.founder-detail-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.founder-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 40px;
    padding: 8px 0;
    transition: opacity 0.2s ease;
}

.founder-detail-back:hover {
    opacity: 0.7;
}

.founder-detail-back svg {
    flex-shrink: 0;
}

.founder-detail-lead {
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.founder-detail-name-jp {
    font-size: clamp(22px, 4.2vw, 30px);
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.founder-detail-name-read {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
}

.founder-detail-role-line {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--black);
}

.founder-detail-role-en {
    display: block;
    margin-top: 12px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.founder-detail-body {
    margin-bottom: 24px;
}

.founder-detail-body p {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.05;
    color: var(--black);
    margin-bottom: 1.35em;
}

.founder-detail-section-title {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 52px 0 22px;
}

.founder-detail-links {
    list-style: none;
}

.founder-detail-links li {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.founder-detail-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.founder-detail-links a {
    font-size: 16px;
    font-weight: 400;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.founder-detail-links a:hover {
    opacity: 0.75;
}

.founder-detail-link-meta {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    word-break: break-all;
}

/* What We Do Section */
.whatwedo-section {
    position: relative;
    overflow: hidden;
}

.whatwedo-bg-text {
    position: absolute;
    top: 200px;
    right: -50px;
    font-size: 120px;
    font-weight: 700;
    color: rgba(var(--primary-rgb), 0.03);
    font-family: var(--font-en);
    writing-mode: vertical-rl;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.whatwedo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.whatwedo-card {
    position: relative;
    padding: 50px;
    background: var(--white);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.whatwedo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-5px);
}

.whatwedo-card-num {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.whatwedo-card-title-en {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 10px;
}

.whatwedo-card-title-jp {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.whatwedo-card-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--gray);
}

/* Case Section */
.case-section {
    background: var(--white);
}

.case-list {
    display: flex;
    flex-direction: column;
}

.case-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 35px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.case-item:hover {
    padding-left: 20px;
    background: rgba(var(--primary-rgb), 0.02);
}

.case-year {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.case-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.case-status {
    font-size: 12px;
    color: var(--gray);
    padding: 4px 12px;
    border: 1px solid var(--gray);
    border-radius: 20px;
}

.case-status.ongoing {
    color: var(--primary);
    border-color: var(--primary);
}

a.case-item.case-item--link {
    display: grid;
    grid-template-columns: 80px 1fr auto 40px;
    text-decoration: none;
    color: inherit;
}

.case-item--link .case-item-go {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary);
    opacity: 0.55;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-item--link:hover .case-item-go {
    opacity: 1;
    transform: translateX(5px);
}

/* Case: 外部パートナーバナー */
.partner-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 4px;
}

.partner-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(120px, 200px) 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 16px;
    row-gap: 10px;
    padding: 18px 14px 18px 18px;
    background: #fff;
    border: 1px solid rgba(13, 58, 107, 0.12);
    border-radius: 6px;
    box-shadow: 0 10px 36px rgba(13, 58, 107, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(22px);
    -webkit-tap-highlight-color: transparent;
}

.partner-banner-visual {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
    background: #e8eef4;
    align-self: start;
}

.partner-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-banner:hover .partner-banner-img {
    transform: scale(1.06);
}

.partner-banner-head {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-top: 2px;
    align-self: start;
}

.partner-banner-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.02em;
}

.partner-banner-meta {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.partner-banner-hint {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.65;
    min-width: 0;
}

.partner-banner-go {
    grid-column: 3;
    grid-row: 1 / -1;
    color: var(--primary);
    opacity: 0.45;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 4px 0 10px;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.partner-banner:hover {
    border-color: rgba(13, 58, 107, 0.28);
    box-shadow: 0 16px 48px rgba(13, 58, 107, 0.12);
    transform: translateY(-3px);
}

.partner-banner:hover .partner-banner-go {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Case 詳細（ファウンダーページとは異なる編集デザイン） */
.case-detail-page {
    padding-bottom: max(280px, calc(200px + env(safe-area-inset-bottom) + 56px));
}

.case-detail-hero {
    position: relative;
    min-height: 38vh;
    padding: clamp(64px, 11vh, 112px) clamp(22px, 5vw, 56px) clamp(40px, 7vh, 80px);
    background: linear-gradient(148deg, #020c18 0%, var(--primary-dark) 38%, var(--primary) 88%);
    color: var(--white);
    overflow: hidden;
}

.case-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 92% -10%, rgba(74, 140, 220, 0.28), transparent 52%);
    pointer-events: none;
}

.case-detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.case-detail-eyebrow {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 18px;
}

.case-detail-h1 {
    font-family: var(--font-en);
    font-size: clamp(26px, 4.8vw, 46px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.18;
    margin-bottom: 22px;
    max-width: 22em;
}

.case-detail-h1-sub {
    display: block;
    margin-top: 14px;
    font-family: var(--font-jp);
    font-size: clamp(15px, 2.4vw, 17px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 36em;
}

.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-detail-badge {
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    opacity: 0.95;
}

.case-detail-badge--ongoing {
    background: rgba(255, 255, 255, 0.12);
}

.case-detail-main {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 48px) max(240px, calc(160px + env(safe-area-inset-bottom) + 48px));
}

.case-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    transition: opacity 0.2s ease;
}

.case-detail-back:hover {
    opacity: 0.7;
}

.case-detail-back svg {
    flex-shrink: 0;
}

.case-detail-lead {
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
    color: var(--black);
    margin-bottom: 40px;
}

.case-detail-gallery {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    margin-bottom: 48px;
}

.case-detail-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #e8edf2;
    box-shadow: 0 18px 40px rgba(13, 58, 107, 0.08);
}

.case-detail-gallery figure:nth-child(3) {
    grid-column: 1 / -1;
}

.case-detail-gallery img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.case-detail-body h2 {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 44px 0 18px;
}

.case-detail-body h2:first-child {
    margin-top: 0;
}

.case-detail-body p {
    font-size: 16px;
    font-weight: 300;
    line-height: 2.05;
    color: var(--black);
    margin-bottom: 1.3em;
}

.case-detail-ref {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.12);
}

.case-detail-ref h2 {
    margin-top: 0;
}

.case-detail-ref ul {
    list-style: none;
}

.case-detail-ref li {
    margin-bottom: 14px;
}

.case-detail-ref a {
    font-size: 15px;
    font-weight: 400;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    color: var(--white);
}

.contact-section-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding-bottom: 170px;
}

.contact-section-photo {
    position: relative;
    width: 100%;
    max-height: none;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -140px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #1a1a1a;
}

/* 青グラデとの境目をわずかに馴染ませるだけ（写真本体の色調は触らない） */
.contact-section-photo::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    z-index: 1;
    background: linear-gradient(180deg, var(--primary-dark) 0%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}

.contact-section-photo-img {
    display: block;
    width: 100%;
    height: min(420px, 52vw);
    min-height: 340px;
    object-fit: cover;
    object-position: center center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 16px;
    line-height: 2;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 16px;
    font-family: var(--font-jp);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    color: var(--black);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 50px;
    background: var(--white);
    color: var(--primary);
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

.contact-form-status {
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    padding-top: 4px;
    max-width: 36em;
}

.contact-form-status[hidden] {
    display: none !important;
}

.contact-form-status--pending {
    color: rgba(255, 255, 255, 0.85);
}

.contact-form-status--success {
    color: #b9f5d0;
}

.contact-form-status--error {
    color: #fecaca;
}

.submit-btn:disabled,
.submit-btn.submit-btn--loading {
    cursor: wait;
    opacity: 0.85;
    transform: none;
}

.submit-btn:disabled:hover,
.submit-btn.submit-btn--loading:hover {
    transform: none;
    box-shadow: none;
}

/* More Button */
.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 20px 40px;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.more-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.more-btn svg {
    transition: transform 0.3s ease;
}

.more-btn:hover svg {
    transform: translateX(5px);
}


/* Responsive */
@media (max-width: 1200px) {
    .header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - 32px);
        max-width: 560px;
        padding: 18px 22px;
    }

    .logo {
        order: 0;
        margin-bottom: 0;
    }

    .header-menu-btn {
        display: flex;
        order: 1;
    }

    .nav {
        display: none !important;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-vertical-wrap {
        display: none;
    }

    .founder-content {
        grid-template-columns: 1fr;
    }

    .founder-profile {
        position: static;
    }

    .whatwedo-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .section-container {
        padding: 88px 40px;
    }

    .section-header {
        margin-bottom: 56px;
    }

    .whatwedo-card {
        padding: 40px 36px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-right {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .section-container {
        padding: 64px 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .founder-content {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    /* 下部固定ヘッダー・ノッチと被らない余白 */
    body {
        padding-bottom: max(100px, calc(88px + env(safe-area-inset-bottom)));
    }

    body.page-index {
        padding-bottom: max(108px, calc(92px + env(safe-area-inset-bottom)));
    }

    .header {
        width: calc(100vw - 16px);
        max-width: none;
        padding: 12px 14px max(12px, env(safe-area-inset-bottom));
        border-radius: 14px 14px 0 0;
    }

    .header.at-bottom,
    .header.logo-hovered {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .logo-text {
        width: min(124px, 38vw);
        height: auto;
        aspect-ratio: 150 / 40;
    }

    .header-menu-btn {
        width: 44px;
        height: 44px;
    }

    .hero {
        padding: 16px;
        padding-bottom: max(116px, calc(96px + env(safe-area-inset-bottom)));
        min-height: 100dvh;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .hero-content {
        top: max(72px, calc(env(safe-area-inset-top) + 56px));
        padding: 0 12px;
    }

    .hero-title-line {
        flex-wrap: wrap;
        row-gap: 0.12em;
    }

    .hero-title-word {
        font-size: clamp(26px, 8.5vw, 42px);
        margin-right: 12px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero-side-text {
        display: none;
    }

    .hero-tagline {
        position: static;
        margin-top: 28px;
        font-size: clamp(14px, 3.9vw, 17px);
        max-width: 100%;
        line-height: 1.75;
        padding-right: 8px;
    }

    .marquee-section {
        padding: 14px 0;
    }

    .marquee-text {
        font-size: clamp(20px, 5.5vw, 30px);
    }

    .marquee-highlight {
        font-size: clamp(18px, 5vw, 26px);
    }

    .section-container {
        padding: 44px 18px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 34px);
        line-height: 1.25;
    }

    .about-text-wrapper {
        gap: 56px;
        padding: 56px 0 72px;
        min-height: auto;
    }

    .about-block {
        width: 100%;
        max-width: 100%;
    }

    .about-block p {
        font-size: 15px;
        line-height: 1.95;
    }

    .about-vertical {
        font-size: clamp(28px, 8vw, 36px);
    }

    .founder-content {
        gap: 40px;
    }

    .founder-name-en {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.15;
    }

    .founder-bio p {
        font-size: 15px;
        line-height: 1.95;
    }

    .founder-link-btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .whatwedo-bg-text {
        font-size: clamp(56px, 18vw, 88px);
        top: 80px;
        right: -24px;
        opacity: 0.45;
    }

    .whatwedo-card {
        padding: 28px 22px;
    }

    .whatwedo-card-title-en {
        font-size: clamp(18px, 4.8vw, 22px);
        line-height: 1.25;
    }

    .whatwedo-card-title-jp {
        font-size: 13px;
    }

    .whatwedo-card-desc {
        font-size: 13px;
        line-height: 1.85;
    }

    .case-section .case-item,
    a.case-item.case-item--link {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 8px 10px;
        align-items: center;
        padding: 22px 0;
    }

    a.case-item.case-item--link .case-year {
        grid-column: 1;
        grid-row: 1;
        order: unset;
    }

    a.case-item.case-item--link .case-status {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        text-align: center;
    }

    a.case-item.case-item--link .case-title {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: clamp(15px, 4vw, 17px);
        line-height: 1.55;
        min-width: 0;
    }

    a.case-item.case-item--link .case-item-go {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
        margin-top: 2px;
        order: unset;
        opacity: 0.45;
    }

    .partner-banners {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
    }

    .partner-banner {
        grid-template-columns: minmax(96px, 32%) 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 12px;
        row-gap: 8px;
        padding: 14px 10px 16px 14px;
    }

    .partner-banner-visual {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
        max-height: none;
    }

    .partner-banner-head {
        grid-column: 2;
        grid-row: 1;
        padding-top: 0;
    }

    .partner-banner-hint {
        grid-column: 1 / 3;
        grid-row: 2;
        font-size: 13px;
        line-height: 1.6;
    }

    .partner-banner-go {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: center;
        padding: 0 0 0 4px;
    }

    .contact-section-main {
        padding-bottom: max(140px, calc(120px + env(safe-area-inset-bottom)));
    }

    .contact-section-photo {
        margin-top: -88px;
    }

    .contact-section-photo::before {
        height: 88px;
    }

    .contact-section-photo-img {
        height: min(320px, 58vw);
        min-height: 260px;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-info h3 {
        font-size: clamp(26px, 7.5vw, 38px);
    }

    .contact-info p {
        font-size: 15px;
        line-height: 1.9;
    }

    .contact-form {
        gap: 22px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        min-height: 48px;
        padding: 14px 16px;
        border-radius: 4px;
    }

    .form-group textarea {
        min-height: 140px;
    }

    .submit-btn {
        width: 100%;
        max-width: 100%;
        padding: 18px 24px;
        justify-content: center;
        align-self: stretch;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-btn {
        width: 60px;
        height: 60px;
    }

    .footer {
        padding: 40px 20px;
    }

    .founder-detail-page {
        padding-top: 24px;
        padding-bottom: max(220px, calc(160px + env(safe-area-inset-bottom) + 72px));
    }

    .founder-detail-inner {
        padding: 0 18px;
    }

    .founder-detail-body p,
    .founder-detail-role-line {
        font-size: 15px;
    }

    .case-detail-hero {
        min-height: 32vh;
        padding: max(56px, calc(env(safe-area-inset-top) + 36px)) 18px 36px;
    }

    .case-detail-h1 {
        font-size: clamp(22px, 6.2vw, 34px);
    }

    .case-detail-lead {
        font-size: 16px;
        line-height: 1.9;
    }

    .case-detail-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 36px;
    }

    .case-detail-page {
        padding-bottom: max(220px, calc(160px + env(safe-area-inset-bottom) + 72px));
    }

    .case-detail-main {
        padding: 36px 18px max(200px, calc(140px + env(safe-area-inset-bottom) + 48px));
    }

    .case-detail-body p {
        font-size: 15px;
    }

    .case-detail-meta {
        gap: 8px 10px;
    }

    .case-detail-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* 狭いスマホ・追加調整 */
@media (max-width: 480px) {
    .section-container {
        padding: 36px 16px;
    }

    .hero-content {
        top: max(64px, calc(env(safe-area-inset-top) + 48px));
        padding: 0 8px;
    }

    .hero-title-word {
        font-size: clamp(24px, 8.2vw, 34px);
        margin-right: 8px;
    }

    .mega-menu {
        padding: max(88px, calc(env(safe-area-inset-top) + 64px)) max(18px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }

    a.case-item.case-item--link .case-status {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* タッチ端末でホバー用のズレ・背景を抑止 */
@media (hover: none) and (pointer: coarse) {
    .case-item:hover {
        padding-left: 0;
        background: transparent;
    }

    .whatwedo-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(var(--primary-rgb), 0.1);
    }

    .partner-banner:hover {
        transform: none;
        box-shadow: 0 10px 36px rgba(13, 58, 107, 0.06);
    }

    .partner-banner:hover .partner-banner-img {
        transform: none;
    }
}
