/* =========================================
   Roof Rescue - Ultra Premium "Wild" Theme
   Theme: Deep Space (#0A0F1E) & Silver Glow
   Mascot-Driven Interactive Branding
========================================= */

/* --- 1. Variables & Global Resets --- */
:root {
    /* Color Palette (Cyber-Premium) */
    --color-primary: #FFFFFF;
    --color-primary-glow: rgba(255, 255, 255, 0.4);
    --color-secondary: #C0C5CC;
    /* いぶし銀（アクセント） */
    --color-accent: #E5A93D;
    /* ゴールド（高級感） */
    --color-accent-dim: rgba(229, 169, 61, 0.2);

    /* Backgrounds (Dark Mastery) */
    --color-bg-main: #0A0F1E;
    /* モア・ダーク */
    --color-bg-light: #111A2E;
    /* セクション背景 */
    --color-bg-card: rgba(27, 42, 71, 0.6);
    /* ガラスカード用 */

    /* Text */
    --color-text-main: #FFFFFF;
    --color-text-light: #A0A5AC;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', sans-serif;

    /* Transitions */
    --transition-wild: 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    --shadow-neon: 0 0 30px rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* プレミアム・グラデーション背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37, 57, 97, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(17, 26, 46, 0.5) 0%, transparent 50%);
    z-index: -2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 2. Typography & UI Elements --- */
h1,
h2,
h3,
.font-en {
    font-family: var(--font-en);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 4px;
    /* あえてシャープに */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-wild);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #FFFFFF;
    color: #0A0F1E;
    border: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

/* --- 3. Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    /* 少し拡大：旧 90px */
    background: rgba(10, 15, 30, 0.9);
    /* 少し濃く */
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: #FFF;
}

.logo-icon {
    transform: rotate(-10deg);
    color: var(--color-accent);
}

.nav-link {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
    /* 拡大：旧 0.9rem */
    padding: 10px 25px;
    transition: var(--transition-premium);
}

.nav-link:hover {
    color: #FFF;
    text-shadow: 0 0 10px #FFF;
}

/* --- 4. Hero Section: THE WILD MASCOT --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    word-break: keep-all;
    /* 日本語の変な改行を防ぐ */
}

.highlight {
    display: block;
    color: var(--color-accent);
    /* オレンジに変更 */
    -webkit-text-stroke: none;
    /* 枠線を廃止 */
    text-shadow: 0 0 30px var(--color-accent-dim);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin-bottom: 40px;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
}

/* マスコット特化のスタイル */
.hero-image-box {
    position: relative;
    z-index: 5;
}

.mascot-img {
    width: 130%;
    /* 枠からはみ出させる */
    max-width: none;
    filter: drop-shadow(0 0 50px rgba(27, 42, 71, 0.8));
    animation: mascot-float 6s ease-in-out infinite;
    transform: rotate(3deg);
}

@keyframes mascot-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(3deg);
    }

    50% {
        transform: translate(-15px, -20px) rotate(5deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(37, 57, 97, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* --- 5. Features: GLOW & SKEW --- */
.features {
    background: var(--color-bg-light);
    position: relative;
    padding: 150px 0;
    /* セクションの切れ目を斜めに */
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--color-bg-card);
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-wild);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: var(--transition-wild);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-20px) scale(1.05);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 30px;
}

/* --- 6. Services: NEON BORDER --- */
.services {
    padding: 100px 0;
}

.service-item {
    background: linear-gradient(90deg, #111A2E, transparent);
    border-radius: 0;
    margin-bottom: 100px;
    border-left: 10px solid #FFFFFF;
}

.service-info {
    padding: 60px;
}

.service-name {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- 7. Contact: ULTRA GLASS --- */
.contact {
    padding-bottom: 150px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    padding: 80px;
    border-radius: 0;
    transform: skewX(-5deg);
    /* 斜めのインパクト */
}

.contact-box>* {
    transform: skewX(5deg);
}

/* 中身を戻す */

.maintenance-box {
    background: #000;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .mascot-img {
        width: 100%;
        transform: none;
        animation: none;
    }

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

    .glass-panel {
        transform: none;
        padding: 40px;
    }

    .contact-box>* {
        transform: none;
    }
}

/* --- Hamburger & Nav Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    /* タップターゲットサイズ確保 */
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    transition: var(--transition-premium);
}

/* Open State */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-bg-main);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-premium);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        display: flex !important;
        /* Force flex when mobile */
    }

    .nav.active {
        right: 0;
        display: flex !important;
    }

    .nav {
        display: none !important;
        /* デフォルトで非表示 */
    }

    .nav.active {
        display: flex !important;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px !important;
    }

    .nav-link {
        font-size: 1.5rem;
    }
}

/* --- Cleaned Classes from Inline Styles --- */
.text-center {
    text-align: center;
}

.nav-list-main {
    display: flex;
    gap: 20px;
    list-style: none;
}

.hero-ja-title {
    display: block;
    font-size: 0.4em;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero-en-title {
    display: block;
    font-size: 0.8em;
}

.align-center {
    align-items: center;
}

.seismic-section {
    background: var(--color-bg-light);
    padding: 100px 0;
}

.seismic-grid-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.image-box-bordered {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.full-width-img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.1);
}

.image-label-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-bg-main);
    color: white;
    padding: 10px 20px;
    font-weight: 900;
}

.process-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.process-grid-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-box-accent {
    margin-top: 40px;
    padding: 30px;
    border-left: 5px solid var(--color-accent);
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .highlight-box-accent {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}

.process-h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-20 {
    margin-bottom: 20px;
}

.contact-header-wrap {
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.maintenance-box-v2 {
    padding: 40px;
    margin: 40px auto;
    max-width: 600px;
}


/* --- v2 Custom Overrides --- */

:root {
    --transition-premium: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    /* 画像ロゴのサイズ調整 */
    width: auto;
}

.logo-text {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.8rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* スマホ表示での調整 */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;
    }
}

/* --- Bilingual Labels --- */
.bilingual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.en-label {
    font-family: var(--font-en);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    /* 明示的にサイズを指定 */
    opacity: 0.6;
    /* 英語ラベルを少し控えめに */
}

.ja-label {
    font-size: 1rem;
    /* 大幅拡大：旧 0.75rem (AAA) */
    font-weight: 700;
    color: var(--color-accent);
    opacity: 1;
    letter-spacing: 0.1em;
}

/* Nav specific bilingual */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.nav-link .ja-label {
    font-size: 0.9rem;
    /* 拡大：旧 0.6rem (AAA) */
}

/* --- Active Branding --- */
.highlight {
    -webkit-text-stroke: 1.5px var(--color-bg-main);
}

/* --- Hero v2 Specific (White Background Theme) --- */
.hero-v2 {
    background-color: #0A0F1E;
    /* プレミアムなネイビーのグラデーションを薄くし、画像を主役に */
    background-image: linear-gradient(135deg, rgba(10, 15, 30, 0.6) 0%, rgba(27, 42, 71, 0.3) 100%),
        url('hero_bg_loghouse_png_1774930325486.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #FFFFFF;
    /* テキストを白に固定 */
    padding-top: 120px;
}

.hero-v2 .hero-title {
    color: #FFFFFF;
    /* 強制的に白 */
}

.hero-v2 .hero-desc,
.hero-v2 .hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section-subtitle-ja {
    display: block;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2em;
    font-size: 1.5rem;
    word-break: keep-all;
    padding: 0 20px; /* 見切れ防止のパディング追加 */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.2);
    /* 白いオーバーレイを廃止し、薄いネイビーで調和 */
}

.hero-v2 .container {
    position: relative;
    z-index: 10;
}

/* --- Works Gallery (v2 New) --- */
.gallery {
    padding: 150px 0;
    background: var(--color-bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-premium);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    background: linear-gradient(45deg, rgba(27, 42, 71, 0.8), rgba(10, 15, 30, 0.9));
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.gallery-placeholder i,
.gallery-placeholder span {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 0.8rem;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(229, 169, 61, 0.2);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: var(--transition-premium);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* --- Accessibility & Utility --- */
.section-header-v2 {
    margin-bottom: 80px;
}

.section-desc {
    font-size: 1.5rem;
    /* 大幅拡大：旧デフォルトから1.5倍程度 (AAA) */
    color: #FFFFFF;
    max-width: 800px;
    margin: 20px auto 0;
}

.section-subtitle-ja {
    display: block;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2em;
    font-size: 1.5rem;
    padding: 0 10px; /* 見切れ防止のパディング追加 */
}

@media (max-width: 768px) {
    .section-header-v2 {
        text-align: right;
    }

    .section-subtitle-ja {
        font-size: 1.2rem; /* スマホでは少し小さく */
        word-break: normal; /* 折り返しを許可して見切れ防止 */
    }
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    /* 少し縮小：旧 2.5rem～4rem */
    letter-spacing: 0.05em;
    margin-top: 10px;
    color: #FFFFFF;
}

.feature-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    margin-bottom: 15px;
}

/* Header & Nav Adjustments */
.header {
    height: auto;
    padding: 15px 0;
}

.header-container {
    gap: 20px;
}

.nav {
    display: flex;
    align-items: center;
}

/* Feature card adjustments */
.feature-card .ja-label {
    font-size: 1.5rem;
    /* 大幅拡大：旧 1.1rem (AAA) */
    margin-bottom: 10px;
    display: block;
}

.hero-v2 h1 {
    color: var(--color-bg-main);
}

.hero-desc {
    color: var(--color-bg-main);
    font-weight: 700;
}

/* Seismic Reinforcement Alignment (v2 New) */
.process-grid img {
    height: 180px;
    /* 画像の高さを統一 */
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Seismic Reinforcement Responsive */
@media (max-width: 900px) {
    #seismic-reinforcement .container>div {
        grid-template-columns: 1fr !important;
    }
}

/* --- Service Menu (v2 New) --- */
.services {
    padding: 150px 0;
    background: var(--color-bg-light);
}

.service-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card-v2 {
    background: var(--color-bg-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-v2:hover {
    transform: translateY(-15px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}

.service-card-v2:hover .service-image-wrapper img {
    transform: scale(1.1);
}

.service-content {
    padding: 40px;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.8rem;
    color: #FFF;
    margin-bottom: 10px;
}

.service-card-desc {
    color: #FFFFFF;
    /* 白に変更：旧 var(--color-text-light) */
    font-size: 1rem;
    line-height: 1.8;
}

/* Responsive adjust */
@media (max-width: 900px) {
    .service-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- v2 Mascot Integration (Interactive Storytelling) --- */

/* Mascot Base Wrapper */
.mascot-wrapper {
    position: relative;
    display: inline-block;
    z-index: 20;
}

.mascot-img-v2 {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: var(--transition-premium);
    pointer-events: none;
    /* テキスト選択の邪魔をしない */
}

/* Floating Animation */
@keyframes mascot-sway {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.mascot-sway {
    animation: mascot-sway 4s ease-in-out infinite;
}

/* Speech Bubble Styles */
.speech-bubble {
    position: absolute;
    background: #FFFFFF;
    color: var(--color-bg-main);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 25;
    min-width: 200px;
    border: 2px solid var(--color-accent);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    border-style: solid;
}

/* Position Variants */
.bubble-top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
}

.bubble-top::after {
    top: 100%;
    left: 50%;
    border-width: 15px 15px 0 15px;
    border-color: var(--color-accent) transparent transparent transparent;
    transform: translateX(-50%);
}

.bubble-left {
    right: 105%;
    top: 20%;
}

.bubble-left::after {
    left: 100%;
    top: 20px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--color-accent);
}

.bubble-right {
    left: 105%;
    top: -20px;
    /* 上げ：重なり回避 */
}

.bubble-right::after {
    right: 100%;
    top: 40px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--color-accent) transparent transparent;
}

/* Section Specific Placements */

/* ヒーローセクション用リーダー配置 */
.hero-leader-pos {
    position: absolute;
    right: -50px;
    bottom: -80px;
    z-index: 15;
}

.hero-leader-pos .mascot-img-v2 {
    max-width: 420px;
    /* リーダーらしく大きく！（旧 300px） */
}

@media (max-width: 1200px) {
    .hero-leader-pos {
        right: 0;
        bottom: -50px;
    }
}

@media (max-width: 900px) {
    .hero-leader-pos {
        position: static;
        margin-top: 40px;
        text-align: center;
    }

    .hero-leader-pos .mascot-img-v2 {
        max-width: 250px;
        /* モバイルでも少し大きく */
    }
}

/* 工程セクション用職人配置 */
.process-mascot-wrap {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    /* 上下中央から下揃えに変更 */
    gap: 20px;
    margin-top: 50px;
    /* 上部に余白を確保し、押し下げ効果 */
}

.mini-mascot {
    max-width: 160px;
    /* 重なり解消のため少し縮小！（旧 180px） */
}

/* お問い合わせセクション用 */
.contact-mascot-wrap {
    position: absolute;
    left: -280px;
    /* 重なりを完全に解消するためさらに左へ移動 */
    top: 50%;
    transform: translateY(-50%);
}

.contact-desc {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 30px;
    padding-left: 60px;
    /* マスコットとの干渉を防ぐための左余白 */
    position: relative;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* 読みやすさ向上 */
}

.contact-mascot-wrap .bubble-right {
    left: 110%;
    /* 吹き出しとマスコットの距離を調整 */
}

@media (max-width: 1300px) {
    .contact-mascot-wrap {
        position: static;
        transform: none;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
    }
}

/* --- 8. Company Profile (v2 New) --- */
.company-profile {
    background: var(--color-bg-main);
    padding: 100px 0;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.company-card {
    background: var(--color-bg-card);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-premium);
}

.company-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.company-card-icon {
    font-size: 2.5rem;
}

.company-card-content {
    display: flex;
    flex-direction: column;
}

.company-card-content .en-label {
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.company-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- 9. Contact Grid & Copy Button (v2 Upgrade) --- */
.contact-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .contact-grid-main {
        grid-template-columns: 1fr;
    }
}

.contact-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    /* 縮小：旧 50px 40px */
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-10px);
}

.contact-icon-large {
    font-size: 3rem;
    /* 縮小：旧 3.5rem */
    margin-bottom: 20px;
}

.contact-card-h3 {
    font-size: 1.5rem;
    /* 縮小：旧 1.8rem */
    margin-bottom: 8px;
}

.contact-card-sub {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.contact-link-main {
    font-size: 1.6rem;
    /* 縮小：旧 2rem */
    font-weight: 900;
    color: #FFF;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    transition: var(--transition-premium);
    word-break: break-all;
}

.contact-link-main:hover {
    color: var(--color-accent);
}

/* Email Copy UI */
.email-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    /* 縮小：旧 15px */
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    /* 縮小：旧 15px 25px */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 100%;
}

.contact-email-text {
    font-size: 1rem;
    /* 縮小：旧 1.2rem */
    font-weight: 700;
    font-family: var(--font-en);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--color-accent);
    color: var(--color-bg-main);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
    position: relative;
}

.copy-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px var(--color-accent);
}

.copy-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFF;
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

.copy-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- 10. Team Section (v2 New: Mascot Reunion) --- */
.team-section {
    padding: 150px 0;
    background: radial-gradient(circle at center, #111A2E 0%, #0A0F1E 100%);
    overflow: hidden;
    position: relative;
}

.team-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -40px;
    /* 画像を重ねる */
    margin-top: 50px;
    position: relative;
}

.team-mascot {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
    transition: var(--transition-premium);
}

.team-leader {
    width: 450px;
    z-index: 10;
    order: 2;
    /* 中央 */
}

.team-craftsman-1 {
    width: 320px;
    z-index: 5;
    order: 1;
    /* 左 */
    transform: translateX(60px) rotate(-5deg);
}

.team-craftsman-2 {
    width: 350px;
    z-index: 5;
    order: 3;
    /* 右 */
    transform: translateX(-60px) rotate(5deg);
}

.team-section:hover .team-leader {
    transform: translateY(-10px) scale(1.05);
}

.team-section:hover .team-craftsman-1 {
    transform: translateX(30px) rotate(-2deg);
}

.team-section:hover .team-craftsman-2 {
    transform: translateX(-30px) rotate(2deg);
}

.team-message-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-family: var(--font-en);
    font-weight: 950;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

@media (max-width: 900px) {
    .team-visual {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .team-leader {
        width: 300px;
        order: 1;
    }

    .team-craftsman-1 {
        width: 220px;
        order: 2;
        transform: none;
    }

    .team-craftsman-2 {
        width: 240px;
        order: 3;
        transform: none;
    }

    .team-section:hover .team-craftsman-1,
    .team-section:hover .team-craftsman-2 {
        transform: translateY(-5px);
    }

    .team-message-glow {
        font-size: 20vw;
    }
}