/* ================================
   基本設定・変数
================================ */

:root {
    --bg-color: #fcfcfc;
    /* Pure white -> Very subtle off-white for paper feel */
    --text-color: #1a2634;
    /* Darker, sharper text */
    --accent-color: #009be0;
    /* Deepened Cyan for maturity */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-serif: 'Zen Old Mincho', serif;
    /* Added Mincho */
    --spacing-section: 180px;
    /* Doubled spacing for Majesty */
    --spacing-section-mobile: 100px;
}

/* Global Noise Texture */
.global-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    pointer-events: none;
    opacity: 0.05;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    will-change: opacity;
}

/* Global Wave Background */
.global-wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    /* Much paler base gradient */
    background: linear-gradient(180deg, #f9fdff 0%, #ffffff 100%);
    pointer-events: none;
    will-change: transform;
    /* Optimization for Parallax */
}

.global-wave-bg::before,
.global-wave-bg::after {
    content: "";
    position: absolute;
    width: 200vw;
    height: 200vh;
    border-radius: 40%;
    animation: wave-float 20s infinite linear;
    opacity: 0.5;
    /* Slightly lowered global opacity */
    filter: blur(80px);
}

.global-wave-bg::before {
    /* Significantly reduced opacity (0.08 -> 0.04) */
    background: radial-gradient(circle, rgba(0, 180, 255, 0.04), transparent 60%);
    top: -60%;
    left: -50%;
    animation-duration: 25s;
}

.global-wave-bg::after {
    /* Significantly reduced opacity (0.05 -> 0.02) */
    background: radial-gradient(circle, rgba(0, 180, 255, 0.02), transparent 60%);
    bottom: -40%;
    right: -30%;
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes wave-float {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    100% {
        transform: rotate(360deg) translate(20px, 20px);
    }
}

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

body {
    font-family: var(--font-jp);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.75;
    /* 行間を少し広げる */
    font-size: 18px;
    letter-spacing: 0.04em;
    /* 高級感補強 */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    :root {
        --spacing-section: var(--spacing-section-mobile);
    }

    body {
        font-size: 16px;
        /* Optimized base size */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
.hero-title,
.section-title,
.kg-office-name,
.service-name {
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* ================================
   Header Navigation
================================ */

.kg-header {
    width: 100%;
    background: #f7f9fc;
    border-bottom: 1px solid #e5e8ee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.12s;
}

.kg-header.is-flashing {
    background-color: rgba(0, 180, 255, 0.1);
}

.kg-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    /* 左右余白微調整 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kg-office-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1d21;
}

/* Header 用の青春ドット（アクアドット） */
.header-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    /* 位置微調整 */
    border-radius: 50%;
    background-color: #00B4FF;
    opacity: 0.7;
    vertical-align: middle;
    position: relative;
    top: -1px;
    /* 上下位置微調整 */
    animation: aqua-pulse-header 2.6s ease-in-out infinite;
}

@keyframes aqua-pulse-header {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.45;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@media (max-width: 640px) {
    .header-dot {
        width: 7px;
        height: 7px;
        margin-left: 6px;
    }
}

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

.kg-nav-link {
    margin-left: 26px;
    text-decoration: none;
    color: #1a1d21;
    font-size: 16px;
    font-weight: 600;
    /* Slightly bolder */
    position: relative;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Removed breathing animation for simplicity/power */
}

@media (hover: hover) {
    .kg-nav-link:hover {
        color: var(--accent-color);
        transform: translateY(-1px);
    }
}

.kg-nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    /* Thicker */
    background-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.4);
    /* Powerful Glow */
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
    border-radius: 2px;
}



/* ================================
   3D Tilt Effect (Tactile Depth)
   ================================ */

.glass-panel,
.service-card,
.consultation-card {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Prevent blurriness */
    transition: transform 0.1s ease-out;
    /* Smooth but responsive */
}

/* Pop-out elements inside cards */
.service-icon,
.service-name,
.consultation-title,
.kg-office-name {
    transform: translateZ(20px);
    /* Pop out slightly */
    transform-style: preserve-3d;
}

/* ================================
   Scroll Reveal (Staggered Story)
   ================================ */

.stagger-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Use JS to apply delays, or simple CSS nth-child if static */
.section-visible .stagger-text span {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Magnetic Effect (Apple-style)
   ================================ */

.is-magnetic {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    /* Spring-like dampening */
    will-change: transform;
}

/* ================================
   Spotlight Effect (Glass Reflection)
   ================================ */

.has-spotlight {
    position: relative;
    overflow: hidden;
    /* Ensure sheen stays inside */
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-opacity: 0;
}

.has-spotlight::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    /* On top of content */
    opacity: var(--spotlight-opacity);
    transition: opacity 0.5s ease;
    /* Soft fade in/out */
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.25),
            transparent 40%);
    mix-blend-mode: overlay;
    /* Rich integration */
}

/* For Darker backgrounds or different feel */
.service-card.has-spotlight::after {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(0, 180, 255, 0.1),
            transparent 40%);
}

.kg-nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

.kg-nav-link.is-active::after {
    width: 100%;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 180, 255, 0.6);
    /* Stronger glow for active */
}

/* Nav Dot - Hidden by default, appears on active/click */
.kg-nav-link .nav-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

@media (hover: hover) {
    .kg-nav-link:hover .nav-dot {
        opacity: 1;
        transform: scale(1);
    }
}

.kg-nav-link.is-active .nav-dot {
    opacity: 1;
    transform: scale(1);
}

/* Click Animation: Powerful Recoil */
.kg-nav-link.is-clicked {
    animation: nav-click-recoil 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--accent-color);
}

.kg-nav-link.is-clicked::after {
    animation: nav-underline-flash 0.4s ease-out;
}

.kg-nav-link.is-clicked .nav-dot {
    transform: scale(1.8);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

@keyframes nav-click-recoil {
    0% {
        transform: scale(0.95);
    }

    40% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes nav-underline-flash {
    0% {
        height: 3px;
        box-shadow: 0 2px 8px rgba(0, 180, 255, 0.4);
    }

    20% {
        height: 5px;
        /* Flash thicker */
        box-shadow: 0 4px 16px rgba(0, 180, 255, 0.8);
        background-color: #40c4ff;
        /* Brighter */
    }

    100% {
        height: 3px;
        box-shadow: 0 2px 10px rgba(0, 180, 255, 0.6);
    }
}

@media (max-width: 640px) {
    .kg-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kg-nav {
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .kg-nav-link {
        margin-left: 0;
        margin-right: 18px;
        margin-top: 6px;
    }
}

/* ================================
   Sections Common
================================ */

.section {
    padding: var(--spacing-section) 0;
    background: transparent;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-jp);
    font-size: 42px;
    font-weight: 800;
    color: #1a2a33;
    margin-bottom: 48px;
    /* 余白調整 */
    letter-spacing: 0.02em;
    line-height: 1.15;
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 0;
    background-color: var(--accent-color);
    left: 0;
    bottom: -10px;
    transition: width 0.5s ease-out;
}

.section-visible .section-title {
    opacity: 1;
    transform: translateX(0);
}

.section-visible .section-title::after {
    width: 80px;
    /* 全セクションで統一 */
}

.section-content {
    font-size: 19px;
    line-height: 1.8;
    /* 行間調整 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.section-visible .section-content {
    opacity: 1;
    transform: translateY(0);
}

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 19px;
    line-height: 1.8;
}

/* ================================
   Hero
================================ */

.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: hero-bg-wipe 3s ease-out forwards;
}

.hero::before {
    content: "";
    position: absolute;
    left: -20%;
    top: 45%;
    width: 0;
    height: 50%;
    background: linear-gradient(90deg,
            rgba(0, 180, 255, 0.0) 0%,
            rgba(0, 180, 255, 0.25) 25%,
            rgba(0, 180, 255, 0.55) 50%,
            rgba(0, 180, 255, 0.25) 75%,
            transparent 100%);
    opacity: 0;
    filter: blur(8px);
    transform-origin: left center;
    pointer-events: none;
    animation: hero-brush 0.9s ease-out 0.2s forwards;
    will-change: width, opacity;
}

@keyframes hero-brush {
    0% {
        width: 0;
        opacity: 0;
    }

    30% {
        width: 50%;
        opacity: 0.8;
    }

    100% {
        width: 150%;
        opacity: 0;
    }
}

@keyframes hero-bg-wipe {
    0% {
        background: #ffffff;
    }

    100% {
        background: radial-gradient(circle at center,
                #ffffff 70%,
                #f7fbff 90%,
                #eaf6ff 100%);
    }
}

.hero-logo {
    text-align: center;
    margin-top: 40px;
}

.hero-title {
    font-family: var(--font-jp);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.15;
    color: #1a2a33;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    /* Immediate start with slight stagger */
    animation: hero-elegant-reveal 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Clean, sharp shadow */
    text-shadow: 0 10px 30px rgba(0, 70, 120, 0.1);
    /* Tighter, more modern kerning */
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 20px;
    font-weight: 500;
    color: #546e7a;
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-elegant-reveal 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    letter-spacing: 0.05em;
}

.hero-concept {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 64px;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-elegant-reveal 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    position: relative;
    display: inline-block;
}



.youth-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.8);
    position: relative;
    top: -6px;
    /* Visual optical alignment */
    animation: hero-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

@keyframes hero-elegant-reveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-text-in {
    0% {
        opacity: 0;
        transform: translateX(-32px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   Cursor Dot
================================ */

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.4) 0%, rgba(0, 180, 255, 0.1) 60%, transparent 80%);
    filter: blur(3px);
    will-change: transform;
}

/* ================================
   Mission / Services 背景スワイプ (Replaced with Global Wave)
================================ */

.mission.section,
.services.section {
    position: relative;
    /* overflow: hidden; Removed to let global bg breathe, or keep if needed for swipe effect? 
       Let's keep overflow hidden for safety but use transparent bg. */
    overflow: hidden;
}


/* Remove old sliding backgrounds to use Global Wave + Glass Panels */
.mission.section::before,
.services.section::before {
    display: none;
}

.mission-text {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 40px;
    color: #2c3e50;
}

.mission-target {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 24px;
}

.contact-tool-note {
    font-size: 0.9em;
    font-weight: normal;
}

/* ================================
   Glassmorphism UI System
================================ */

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    /* More opaque for better readability/Strength */
    border: 1px solid rgba(255, 255, 255, 1);
    /* Solid White Border */
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0, 180, 255, 0.08);
    /* Stronger Shadow */
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

@media (hover: hover) {
    .glass-panel:hover {
        box-shadow: 0 16px 56px rgba(0, 180, 255, 0.12);
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Specific adjustments for section contents */
.mission-content-wrapper,
.profile-content-wrapper,
.message-content-wrapper,
.contact-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Service Card (inherits glass feel but specific layout) */
/* Service Card (inherits glass feel but specific layout) */
.services-grid {
    display: grid;
    /* Optimizing for 5 items: roughly 3 columns on desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    justify-content: center;
}

.service-card {
    background: rgba(255, 255, 255, 0.92);
    /* Almost solid for "Strong" feel */
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 20px;
    padding: 48px 32px;
    /* Taller padding */
    box-shadow: 0 12px 48px rgba(0, 70, 120, 0.08);
    /* Deeper shadow color */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 70, 120, 0.15);
    border-color: rgba(0, 180, 255, 0.8);
    background: #ffffff;
}

.service-icon {
    margin-bottom: 24px;
    color: #007bb6;
    /* Darker Blue for Icon */
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.15) 0%, rgba(0, 180, 255, 0.05) 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
    border: 2px solid rgba(0, 180, 255, 0.2);
    /* Defined border */
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.25) 0%, rgba(0, 180, 255, 0.1) 100%);
    border-color: rgba(0, 180, 255, 0.5);
    box-shadow: 0 0 24px rgba(0, 180, 255, 0.3);
}

.service-icon svg {
    width: 52px;
    height: 52px;
    stroke-width: 2px;
    /* Thicker lines */
    filter: drop-shadow(0 2px 4px rgba(0, 70, 120, 0.2));
    /* Depth */
}

.service-name {
    font-size: 21px;
    font-weight: 800;
    /* Extra Bold */
    color: #051626;
    /* Very Dark Blue/Black */
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

/* Service Process Flow (Before/After Diagram) */
.service-process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    width: 100%;
}

.process-step {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.step-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

/* Before State: Muted but Clear */
.step-before {
    background: #f5f7f9;
    border: 2px dashed #b0bec5;
    /* Thicker dashed border */
    color: #546e7a;
}

.step-before .step-label {
    color: #90a4ae;
}

.step-before p {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

/* Arrow: Visual Connector */
.process-arrow {
    color: #90a4ae;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transform: scaleY(0.85);
    opacity: 0.8;
}

/* After State: Strong Blue */
.step-after {
    background: #f0fbff;
    /* Very light blue bg */
    border: 2px solid #4fc3f7;
    /* Strong Blue Border */
    color: #01579b;
    box-shadow: 0 6px 16px rgba(0, 140, 255, 0.12);
}

.step-after .step-label {
    color: #0288d1;
}

.step-after p {
    font-size: 15px;
    line-height: 1.5;
    color: #0d47a1;
    font-weight: 500;
}

.step-after strong {
    font-size: 17px;
    font-weight: 800;
    display: block;
    margin-top: 4px;
    color: #039be5;
    /* Bright clear blue */
}

.service-card:hover .step-after {
    background: #e1f5fe;
    border-color: #039be5;
    transform: translateY(2px);
    box-shadow: 0 8px 20px rgba(0, 140, 255, 0.2);
}

/* よくあるご相談 (Services内) */
.consultation-wrapper {
    margin-top: 80px;
    text-align: center;
}

.consultation-title {
    font-size: 24px;
    margin-bottom: 32px;
    color: #1a2a33;
    display: inline-block;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.consultation-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.consultation-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 70, 120, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    /* Aligned left for Q&A format */
}

.consultation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 70, 120, 0.1);
}

.consultation-problem {
    font-size: 16px;
    font-weight: 700;
    color: #37474f;
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.consultation-problem::before {
    content: "Q.";
    position: absolute;
    left: 0;
    top: 2px;
    color: #b0bec5;
    font-weight: 900;
}

.consultation-solution {
    background: #f0fbff;
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    border-radius: 4px 8px 8px 4px;
}

.solution-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.consultation-solution p {
    font-size: 15px;
    font-weight: 500;
    color: #0d47a1;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .consultation-cards {
        flex-direction: column;
        align-items: center;
    }

    .consultation-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ================================
   Profile
================================ */

.profile-image-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    animation: profile-float 6s ease-in-out infinite;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 180, 255, 0.15);
    opacity: 0;
    transform: scale(0.8);
    animation: profile-appear 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.5s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 180, 255, 0.25);
}

@keyframes profile-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes profile-float {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
}

.profile-name {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a2a33;
}

.profile-title {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-weight: 600;
}

.profile-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.profile-list li {
    margin-bottom: 12px;
    padding-left: 1.5em;
    position: relative;
}

.profile-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* ================================
   Message
================================ */

.message {
    background: #fcfdfe;
}

/* ================================
   News
================================ */

.news-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #fafbfc;
}

.news-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: #9aa4ad;
    white-space: nowrap;
    margin-top: 4px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a2a33;
}

.news-summary {
    font-size: 15px;
    color: #6c7a89;
    margin: 0;
}

.news-more {
    margin-top: 40px;
    text-align: center;
}

.news-more a {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #e5e8ee;
    border-radius: 99px;
    text-decoration: none;
    color: #1a1d21;
    font-size: 15px;
    transition: all 0.3s;
}

.news-more a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

@media (max-width: 640px) {
    .news-item {
        flex-direction: column;
        gap: 8px;
    }
}

/* ================================
   Contact
================================ */

.contact-intro {
    font-size: 20px;
    margin-bottom: 32px;
}

.contact-intro strong {
    color: var(--accent-color);
    font-weight: 700;
}

.contact-email-lead {
    margin-bottom: 16px;
}

.contact-email-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 255, 0.1);
    color: var(--accent-color);
    padding: 16px 48px;
    border-radius: 99px;
    font-family: var(--font-en);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-align: center;
    line-height: 1.2;
}

.email-main {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.email-sub {
    font-size: 13px;
    font-weight: 700;
    color: rgba(0, 180, 255, 0.8);
    display: block;
}

.contact-email-pill:hover {
    transform: scale(1.05);
    background: rgba(0, 180, 255, 0.15);
}

.contact-email-pill:active {
    transform: scale(0.98);
}

.copy-result {
    margin-top: 0.75rem;
    font-size: 14px;
    color: #00B4FF;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.contact-sample {
    max-width: 600px;
    margin: 48px auto 32px;
    padding: 24px;
    background: #f8fbff;
    border: 1px dashed #cce5ff;
    border-radius: 8px;
    text-align: left;
}

.contact-sample-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.contact-sample-body {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5a64;
}

.contact-note {
    font-size: 15px;
    color: #6c7a89;
    line-height: 1.8;
    margin-top: 24px;
}

.contact-privacy {
    color: #4b5a64;
    /* 少し濃く */
    font-weight: 500;
}

/* ================================
   Footer
================================ */

.footer {
    background: #f7f9fc;
    padding: 60px 0 20px;
    text-align: center;
    border-top: 1px solid #e5e8ee;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a2a33;
}

.footer-info {
    font-size: 14px;
    color: #6c7a89;
    margin-bottom: 40px;
    line-height: 1.8;
}

.copyright {
    font-size: 12px;
    color: #9aa4ad;
    font-family: var(--font-en);
}

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

body {
    font-family: var(--font-jp);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 18px;
    /* 18-19px */
    letter-spacing: 0.03em;
    /* 0.02-0.04em */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    letter-spacing: 0.05em;
}

/* ================================
   Header Navigation
================================ */

.kg-header {
    width: 100%;
    background: #f7f9fc;
    border-bottom: 1px solid #e5e8ee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.12s;
    /* 0.12s */
}

.kg-header.is-flashing {
    background-color: rgba(0, 180, 255, 0.1);
}

.kg-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kg-office-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1d21;
}

/* Header 用の青春ドット（アクアドット） */
.header-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: #00B4FF;
    opacity: 0.7;
    vertical-align: middle;

    /* 既存の aqua-pulse を再利用（なければ同等のものを使う） */
    animation: aqua-pulse-header 2.6s ease-in-out infinite;
}

/* ヘッダー専用に少しだけ控えめな鼓動アニメーション */
@keyframes aqua-pulse-header {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.45;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* スマホで崩れないように最小限の調整 */
@media (max-width: 640px) {
    .header-dot {
        width: 7px;
        height: 7px;
        margin-left: 4px;
    }
}

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

/* ナビリンク全体のベース */
.kg-nav-link {
    margin-left: 26px;
    text-decoration: none;
    color: #1a1d21;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s, transform 0.3s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* 呼吸アニメ（常時） */
    animation: nav-opacity-breathe 2.6s ease-in-out infinite;
}

/* 呼吸アニメ（透明度パルス） */
@keyframes nav-opacity-breathe {
    0% {
        opacity: 0.85;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.85;
    }
}

/* ナビのホバー・アクティブ演出 */
.kg-nav-link:hover {
    color: var(--accent-color);
    transform: scale(1.04);
    /* 軽く拡大 */
}

/* 下線アニメーション用の要素 */
.kg-nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-out;
    opacity: 0;
}

.kg-nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* クリック時のスライドバーアニメーション用クラス（左→右） */
.kg-nav-link.is-active::after {
    width: 100%;
    opacity: 1;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ナビ横の小さなドット */
.kg-nav-link .nav-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 180, 255, 0.0);
    transform: scale(0.8);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(0, 180, 255, 0.35) 0%,
            rgba(0, 180, 255, 0.15) 40%,
            rgba(0, 180, 255, 0.0) 70%);
    transform: scale(0);
    opacity: 0.8;
    animation: ripple-animation 0.9s ease-out forwards;
    z-index: 9998;
}

/* モバイル時に波紋を少し控えめにする */
@media (max-width: 768px) {
    .ripple {
        opacity: 0.6;
    }

    .ripple--mobile {
        background: radial-gradient(circle,
                rgba(0, 180, 255, 0.25) 0%,
                rgba(0, 180, 255, 0.1) 50%,
                rgba(0, 180, 255, 0.0) 80%);
    }
}

@keyframes ripple-animation {
    0% {
        transform: scale(0.3);
        opacity: 0.85;
    }

    70% {
        transform: scale(2.2);
        opacity: 0.35;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* 汎用フェードアップクラス */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible,
.section-visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* ホバー時：ふわっと光る */
.kg-nav-link:hover .nav-dot {
    opacity: 0.9;
    background: rgba(0, 180, 255, 0.9);
    transform: scale(1.0);
}

/* クリック時：ポンと光る */
.kg-nav-link.is-clicked .nav-dot {
    opacity: 1;
    transform: scale(1.4);
    background: rgba(0, 180, 255, 1.0);
    transition: transform 0.1s;
}

/* アクティブなナビリンク */
.kg-nav-link.is-active .nav-dot {
    opacity: 0.9;
    background: rgba(0, 180, 255, 0.9);
}

/* スマホ用ナビ */
@media (max-width: 640px) {
    .kg-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kg-nav {
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .kg-nav-link {
        margin-left: 0;
        margin-right: 18px;
        margin-top: 6px;
    }
}

/* ================================
   Sections Common
================================ */

.section {
    padding: var(--spacing-section) 0;
    background: transparent;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-jp);
    font-size: 42px;
    /* 42px */
    font-weight: 800;
    /* 800 */
    color: #1a2a33;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    line-height: 1.15;
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 0;
    background-color: var(--accent-color);
    left: 0;
    bottom: -10px;
    transition: width 0.5s ease-out;
}

.section-visible .section-title {
    opacity: 1;
    transform: translateX(0);
}

.section-visible .section-title::after {
    width: 140px;
}

.section-content {
    font-size: 19px;
    /* 18-19px */
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.section-visible .section-content {
    opacity: 1;
    transform: translateY(0);
}

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 19px;
    line-height: 1.7;
}

/* ================================
   Hero
================================ */

.hero {
    position: relative;
    overflow: hidden;
    height: 80vh;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* アニメーションで背景を制御 */
    animation: hero-bg-wipe 3s ease-out forwards;
}

/* 筆でシャッと引いたようなアクアの帯（左→右） */
.hero::before {
    content: "";
    position: absolute;
    left: -20%;
    top: 45%;
    width: 0;
    height: 50%;
    /* 太めの筆 */
    background: linear-gradient(90deg,
            rgba(0, 180, 255, 0.0) 0%,
            rgba(0, 180, 255, 0.25) 25%,
            rgba(0, 180, 255, 0.55) 50%,
            rgba(0, 180, 255, 0.25) 75%,
            transparent 100%);
    opacity: 0;
    filter: blur(8px);
    transform-origin: left center;
    pointer-events: none;
    /* 1回のみ発動 */
    animation: hero-brush 0.9s ease-out 0.2s forwards;
    will-change: width, opacity;
}

@keyframes hero-brush {
    0% {
        width: 0;
        opacity: 0;
    }

    30% {
        width: 50%;
        opacity: 0.8;
    }

    100% {
        width: 150%;
        opacity: 0;
        /* 残像0.35sで消える */
    }
}

@keyframes hero-bg-wipe {
    0% {
        background: #ffffff;
    }

    100% {
        /* 白80%を残す */
        background: radial-gradient(circle at center,
                #ffffff 70%,
                #f7fbff 90%,
                #eaf6ff 100%);
    }
}

.hero-logo {
    text-align: center;
    margin-top: 40px;
}

.hero-title {
    font-family: var(--font-jp);
    font-size: 72px;
    /* 72px */
    font-weight: 900;
    /* 900 */
    line-height: 1.15;
    color: #1a2a33;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-32px);
    animation: hero-text-in 0.7s ease-out forwards;
    animation-delay: 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sub {
    font-size: 22px;
    font-weight: 500;
    color: #4b5a64;
    margin-top: 18px;
    opacity: 0;
    transform: translateX(-32px);
    animation: hero-text-in 0.7s ease-out forwards;
    animation-delay: 0.55s;
}

.hero-concept-line {
    font-size: 20px;
    color: #4b5a64;
    margin-top: 10px;
    opacity: 0;
    transform: translateX(-32px);
    animation: hero-text-in 0.7s ease-out forwards;
    animation-delay: 0.75s;
}

.hero-concept-line:nth-of-type(2) {
    animation-delay: 0.95s;
}

.hero-concept {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 600;
    color: #9aa4ad;
    margin-top: 18px;
    opacity: 0;
    transform: translateX(-32px);
    animation: hero-text-in 0.7s ease-out forwards;
    animation-delay: 1.15s;
}

/* Youth Dot (旧 Aqua Dot) */
.youth-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    box-shadow: 0 0 14px rgba(0, 180, 255, 0.6);
    animation:
        youth-pop 0.7s ease-out forwards,
        youth-pulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0.9s, 1.4s;
}

/* ================================
   Animations
================================ */

@keyframes youth-pop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    60% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

@keyframes youth-pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
    }

    12% {
        transform: scale(1.15);
        opacity: 0.95;
        box-shadow: 0 0 18px rgba(0, 180, 255, 0.8);
    }

    24% {
        transform: scale(1.02);
        opacity: 0.85;
    }

    36% {
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 16px rgba(0, 180, 255, 0.7);
    }

    48% {
        transform: scale(1.0);
        opacity: 0.65;
    }

    100% {
        transform: scale(1.0);
        opacity: 0.85;
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
    }
}

@keyframes hero-text-in {
    0% {
        opacity: 0;
        transform: translateX(-32px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   Cursor Dot
================================ */

.cursor-dot {
    position: fixed;
    width: 8px;
    /* PC 8px */
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;

    background: rgba(0, 180, 255, 0.35);
    /* rgba(0,180,255,0.35) */

    mix-blend-mode: screen;
    filter: blur(1px);
    /* ブラー少し */

    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    /* 遅延 0.15s */
    opacity: 0.85;
    will-change: transform;
}

/* ================================
   Mission / Services 背景スワイプ
================================ */

.mission.section,
.services.section,
.consultation.section {
    position: relative;
    overflow: hidden;
}

.mission.section::before,
.services.section::before,
.consultation.section::before {
    content: "";
    position: absolute;
    left: -20%;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 180, 255, 0.08),
            rgba(0, 180, 255, 0.18),
            rgba(0, 180, 255, 0.0));
    opacity: 0;
    pointer-events: none;
}

.mission.section.section-visible::before,
.services.section.section-visible::before,
.consultation.section.section-visible::before {
    animation: section-bg-swipe 0.8s ease-out forwards;
}

@keyframes section-bg-swipe {
    0% {
        width: 0;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        width: 160%;
        opacity: 0.9;
    }
}

.mission .section-content {
    text-align: left;
}

.mission-target {
    margin-top: 2rem;
    font-weight: 700;
    color: #1a2a33;
}

/* ================================
   Profile
================================ */

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 2rem;
}

.profile-list {
    list-style: none;
    padding-left: 0;
}

.profile-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5em;
    position: relative;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.profile-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

.section-visible .profile-list li {
    opacity: 1;
    transform: translateX(0);
}

/* リストアイテムの遅延表示 */
.section-visible .profile-list li:nth-child(1) {
    transition-delay: 0.3s;
}

.section-visible .profile-list li:nth-child(2) {
    transition-delay: 0.4s;
}

.section-visible .profile-list li:nth-child(3) {
    transition-delay: 0.5s;
}

.section-visible .profile-list li:nth-child(4) {
    transition-delay: 0.6s;
}

.section-visible .profile-list li:nth-child(5) {
    transition-delay: 0.7s;
}

/* ================================
   Services (Bento UI)
================================ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.service-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f7;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(0, 180, 255, 0.15));
}

.service-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}

/* 上段 (左から) */
.service-item:nth-child(1),
.service-item:nth-child(2) {
    transform: translateX(-30px);
}

/* 下段 (右から) */
.service-item:nth-child(3),
.service-item:nth-child(4) {
    transform: translateX(30px);
}

.section-visible .service-item {
    opacity: 1;
    transform: translateX(0);
}

.service-item h3 {
    font-size: 24px;
    /* 22-24px */
    font-weight: 700;
    /* 700 */
    margin-bottom: 1rem;
}

.service-item ul li {
    font-size: 17px;
    font-weight: 500;
    color: #555;
}

/* ================================
   Consultation
================================ */

.consultation-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    background: #f8fbff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #eaf4ff;
}

.consultation-list li {
    margin-bottom: 1rem;
    padding-left: 1.5em;
    position: relative;
    font-size: 18px;
    font-weight: 500;
}

.consultation-list li:last-child {
    margin-bottom: 0;
}

.consultation-list li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* ================================
   Message
================================ */

.message .section-content {
    text-align: left;
    /* Natural left alignment */
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    line-height: 1.8;
    max-width: 720px;
    /* Limit width for readability */
    margin: 0 auto;
    /* Center the block itself */
}

.message .section-title {
    font-size: 42px;
    font-weight: 800;
}

/* Messageセクションの背景スワイプ */
.message.section::before {
    content: "";
    position: absolute;
    left: -20%;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 180, 255, 0.05),
            rgba(0, 180, 255, 0.15),
            rgba(0, 180, 255, 0.0));
    opacity: 0;
    pointer-events: none;
}

.message.section.section-visible::before {
    animation: section-bg-swipe 0.8s ease-out forwards;
}

/* Messageセクションのテキスト遅延 */
.message .fade-up:nth-child(1) {
    transition-delay: 0.2s;
}

.message .fade-up:nth-child(2) {
    transition-delay: 0.35s;
}

.message .fade-up:nth-child(3) {
    transition-delay: 0.5s;
}

/* ================================
   News Back Link (Simple Text)
================================ */

.news-back {
    margin: 12px 0 0;
}

.news-back .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1d7ddc;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-back-arrow {
    font-size: 14px;
    line-height: 1;
}

.news-back-link:hover {
    opacity: 1;
    transform: translateX(-2px);
}

/* ================================
   Floating Back Button
================================ */

.floating-back-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #2fb7ff 40%, #008fe0 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.floating-arrow {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    margin-top: -2px;
    /* 視覚的な中央調整 */
}

.floating-back-btn.is-visible {
    opacity: 0.9;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-back-btn:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
}

/* モバイルでは少し控えめに */
@media (max-width: 768px) {
    .floating-back-btn {
        width: 48px;
        height: 48px;
        bottom: 18px;
        right: 18px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
        opacity: 0;
        /* is-visible 時も PC より少し控えめ */
    }

    .floating-arrow {
        font-size: 20px;
    }
}

/* ================================
   Contact
================================ */

.contact-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 18px;
    color: #4b5a64;
}

.contact-email-lead {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 17px;
}

.contact-email-pill {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Pillデザイン */
.contact-email-pill span {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: #00B4FF;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 24px rgba(0, 180, 255, 0.35);
}

.copy-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #00B4FF;
    background: #fff;
    color: #00B4FF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #eaf6ff;
}

.copy-result {
    text-align: center;
    font-size: 14px;
    color: #00B4FF;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.copy-result.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-sample {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    background-color: #f7fbff;
    border: 1px dashed rgba(0, 180, 255, 0.35);
    font-size: 15px;
    line-height: 1.8;
}

.contact-sample-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: #445566;
}

.contact-sample-body {
    font-size: 15px;
    color: #555;
}

.contact-note {
    text-align: left;
    font-size: 15px;
    color: #666;
    margin: 24px auto 16px;
    max-width: 720px;
    line-height: 1.8;
}

.contact-price-note {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-privacy {
    display: block;
    text-align: left;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* ================================
   Contact Draft Selector System
   ================================ */

.contact-draft-system {
    margin-top: 48px;
    margin-bottom: 32px;
}

.contact-draft-label {
    font-size: 15px;
    font-weight: 700;
    color: #5a6b76;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.6;
}

.draft-note-small {
    font-size: 13px;
    font-weight: 400;
    color: #8fa1b0;
}

.draft-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.draft-btn {
    appearance: none;
    border: 1px solid #d0e1ee;
    background: #ffffff;
    color: #546e7a;
    padding: 10px 20px;
    border-radius: 99px;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (hover: hover) {
    .draft-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 180, 255, 0.15);
        border-color: #00b4ff;
        color: #00b4ff;
    }
}

.draft-btn.is-active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 180, 255, 0.3);
}

.draft-display-box {
    background: #fdfdfd;
    border: 1px solid #e1eaf2;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    transition: opacity 0.3s ease;
}

.draft-row,
.draft-subject-row,
.draft-body-row {
    margin-bottom: 16px;
}

.draft-label {
    font-weight: 700;
    color: #1a2a33;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

#draft-body.draft-content {
    display: block;
    color: #4b5a64;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    /* Respect newlines */
    margin-top: 0;
}

/* Copy Button inside Draft */
.copy-draft-btn {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .copy-draft-btn:hover {
        background: var(--accent-color);
        color: white;
    }
}

.copy-draft-btn .icon {
    font-size: 16px;
}

.draft-copy-msg {
    margin-left: 12px;
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 640px) {
    .contact-draft-system {
        margin-top: 32px;
    }

    .draft-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 col grid */
        gap: 10px;
    }

    .draft-btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 13px;
    }

    .draft-display-box {
        padding: 20px 16px;
    }

    .draft-content {
        font-size: 14px;
    }

    .copy-draft-btn {
        width: 100%;
        justify-content: center;
    }

    .draft-copy-msg {
        display: block;
        margin: 8px 0 0 0;
        text-align: center;
    }
}

/* ================================
   Footer
================================ */

.footer {
    padding: 3rem 0;
    background: #f9fbfd;
    border-top: 1px solid #edf2f7;
    margin-top: 4rem;
}

.footer-info-wrapper {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-info-wrapper h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a33;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.footer-info-wrapper p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #999;
}

@media (max-width: 640px) {
    .footer-info-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* =========================
   青春ドット（アクア波紋）のスタイル
   ========================= */

/* 内側の波紋（第1波：小さく強い） */
.ripple {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 9998;

    /* rgba(0,180,255,0.45) */
    background: radial-gradient(circle,
            rgba(0, 180, 255, 0.45) 0%,
            rgba(0, 180, 255, 0.25) 40%,
            rgba(0, 180, 255, 0.0) 80%);

    transform: scale(0.6);
    opacity: 0;
    animation: ripple-soft-inner 0.7s ease-out forwards;
    will-change: transform, opacity;
}

/* 外側の波紋（第2波：淡く大きい） */
.ripple-outer {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    z-index: 9997;

    /* rgba(0,180,255,0.18) */
    background: radial-gradient(circle,
            rgba(0, 180, 255, 0.18) 0%,
            rgba(0, 180, 255, 0.08) 40%,
            rgba(0, 180, 255, 0.0) 80%);

    transform: scale(1.2);
    opacity: 0;
    animation: ripple-soft-outer 0.7s ease-out forwards;
    will-change: transform, opacity;
}

/* 内側：scale 0.6 -> 1.8 */
@keyframes ripple-soft-inner {
    0% {
        transform: scale(0.6);
        opacity: 0.0;
    }

    20% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0.0;
    }
}

/* 外側：scale 1.2 -> 3.2 */
@keyframes ripple-soft-outer {
    0% {
        transform: scale(1.2);
        opacity: 0.0;
    }

    30% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(3.2);
        opacity: 0.0;
    }
}

/* ================================
   News Section
================================ */

.news.section {
    background: #f5fbff;
    /* やや淡いアクア */
}

.news-intro {
    margin-bottom: 24px;
    font-size: 15px;
    color: #5a6b76;
    text-align: center;
}

.news-list {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e3edf7;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #00b4ff;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a33;
    margin-bottom: 4px;
}

.news-summary {
    font-size: 14px;
    color: #5a6b76;
}

.news-more {
    text-align: right;
    margin-top: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-more a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #00b4ff;
    border-bottom: 1px solid rgba(0, 180, 255, 0.4);
    padding-bottom: 2px;
    text-decoration: none;
}

.news-more a:hover {
    opacity: 0.8;
}

/* ================================
   News Page (news.html)
================================ */

.page-hero {
    padding: 140px 0 60px;
    background: radial-gradient(circle at top, #f4fbff 0%, #ffffff 60%);
    text-align: center;
}

.page-hero-en {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #00b4ff;
    margin-bottom: 8px;
}

.page-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a2a33;
    margin-bottom: 8px;
}

.page-hero-sub {
    font-size: 15px;
    color: #5a6b76;
}

.news-archive {
    padding: 40px 0 80px;
}

.news-list-archive .news-item {
    cursor: default;
}

/* ================================
   Mobile Optimization
================================ */
@media (max-width: 640px) {

    /* Heroフォントサイズ縮小 & 折り返し許可 */
    .hero-title {
        font-size: 36px;
        /* Slightly larger for impact */
        flex-wrap: wrap;
        line-height: 1.5;
        word-break: keep-all;
        /* Do not split words mid-stream */
        overflow-wrap: break-word;
    }

    /* Fix Aqua Dot Distortion */
    .youth-dot {
        flex-shrink: 0;
        /* Prevent crushing */
        width: 12px;
        /* Slightly smaller on mobile */
        height: 12px;
        margin-left: 8px;
        margin-top: 4px;
        /* Alignment fix */
    }

    /* 筆アニメ弱め */
    .hero::before {
        opacity: 0.6;
    }

    /* カーソル追従：スマホでは無効化 */
    .cursor-dot {
        display: none;
    }

    /* Glass Panel Padding Reduction */
    .glass-panel {
        padding: 24px 20px;
    }

    /* Service Card Padding Reduction */
    .service-card {
        padding: 32px 20px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-icon svg {
        width: 40px;
        height: 40px;
    }

    /* Before/After Flow Mobile Optimization */
    .service-process-flow {
        gap: 10px;
    }

    .process-step {
        padding: 12px;
    }

    .process-arrow {
        font-size: 16px;
    }

    /* Consultation Card Mobile Padding */
    .consultation-card {
        padding: 24px 20px;
    }

    /* Contact Mobile Optimization */
    .contact-email-pill {
        flex-direction: column;
        gap: 16px;
    }

    .contact-email-pill span {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
    }

    .copy-btn {
        width: 100%;
        text-align: center;
    }

    /* 波紋サイズ 60% */
    .ripple {
        transform: scale(0.36);
        /* 0.6 * 0.6 */
        animation-name: ripple-soft-inner-mobile;
    }

    .ripple-outer {
        transform: scale(0.72);
        /* 1.2 * 0.6 */
        animation-name: ripple-soft-outer-mobile;
    }

    @keyframes ripple-soft-inner-mobile {
        0% {
            transform: scale(0.36);
            opacity: 0;
        }

        20% {
            transform: scale(0.54);
            opacity: 0.8;
        }

        100% {
            transform: scale(1.08);
            opacity: 0;
        }
    }

    @keyframes ripple-soft-outer-mobile {
        0% {
            transform: scale(0.72);
            opacity: 0;
        }

        30% {
            transform: scale(0.9);
            opacity: 0.5;
        }

        100% {
            transform: scale(1.92);
            opacity: 0;
        }
    }

    /* News Section Mobile */
    .news-list {
        padding: 18px 16px;
    }

    .news-item {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .news-date {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-summary {
        font-size: 13px;
    }

    .news-more {
        text-align: center;
        margin-top: 16px;
    }
}