/* ========================================
   Global Styles & Variables
   ======================================== */
:root {
    /* Colors */
    --primary-color: #C41E3A;
    --primary-dark: #9D1730;
    --primary-light: #E63952;
    --gold-color: #D4AF37;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f5f5f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    
    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-special {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    transition: all var(--transition-speed);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-800) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23C41E3A" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 150px 0 100px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-title-main {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-accent);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-title-sub {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-ai-lab {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-ai-lab:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background-color: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features li {
    color: var(--gray-600);
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.info-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-label {
    font-weight: 700;
    color: var(--dark-bg);
}

.info-value {
    color: var(--gray-600);
    line-height: 1.8;
}

.info-sub {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.info-note {
    font-size: 0.85rem;
    color: var(--primary-color);
    display: block;
    margin-top: 5px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.about-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed);
}

.about-image:hover .about-image-photo {
    transform: scale(1.05);
}

/* ========================================
   Strengths Section
   ======================================== */
.strengths {
    background-color: var(--gray-100);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.strength-card {
    background-color: var(--white);
    padding: 50px 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    position: relative;
    text-align: center;
}

.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.strength-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(196, 30, 58, 0.1);
    font-family: var(--font-accent);
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--white);
}

.strength-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.strength-description {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    padding: 25px;
    background-color: var(--gray-100);
    border-radius: 10px;
    text-align: center;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.contact-info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-note {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.contact-form-wrapper {
    background-color: var(--gray-100);
    padding: 40px;
    border-radius: 15px;
    position: relative;
}

/* Google Forms Container */
.google-form-container {
    position: relative;
    min-height: 600px;
}

.google-form-iframe {
    border: none;
    border-radius: 10px;
    background-color: var(--white);
    display: none; /* 初期状態では非表示（URL設定後に表示） */
}

.google-form-iframe.active {
    display: block;
}

/* Googleアカウント表示を隠す（応急処置） */
.google-form-iframe {
    margin-top: -80px; /* アカウント表示部分を隠す */
}

.google-form-container {
    overflow: hidden;
    padding-top: 80px;
}

/* Form Placeholder (Google Forms未設定時の表示) */
.form-placeholder {
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.placeholder-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: var(--white);
}

.placeholder-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.placeholder-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 30px;
}

.placeholder-contact {
    background-color: var(--gray-100);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.placeholder-contact p {
    margin: 10px 0;
    color: var(--gray-600);
}

.placeholder-contact strong {
    color: var(--dark-bg);
    display: block;
    margin-bottom: 15px;
}

.placeholder-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

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

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

.form-label {
    font-weight: 600;
    color: var(--dark-bg);
}

.required {
    color: var(--primary-color);
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-align: center;
    margin-top: 10px;
}

/* ========================================
   AI Lab Section
   ======================================== */
.ai-lab {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-800) 100%);
    padding: 80px 0;
}

.ai-lab-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.ai-lab-icon {
    flex-shrink: 0;
}

.ai-lab-icon i {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
}

.ai-lab-logo-image {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed);
}

.ai-lab-logo-image:hover {
    transform: scale(1.05);
}

.ai-lab-text {
    color: var(--white);
}

.ai-lab-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.ai-lab-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-lab-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.footer-logo-image {
    width: 50px;
    height: 50px;
    display: block;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-main);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed);
}

.footer-list li:hover {
    color: var(--primary-light);
}

.footer-list i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.98);
        transition: left var(--transition-speed);
        padding: 40px 20px;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-lab-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .form-placeholder {
        padding: 40px 25px;
    }
    
    .placeholder-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .placeholder-title {
        font-size: 1.5rem;
    }
    
    .placeholder-text {
        font-size: 1rem;
    }
    
    .ai-lab-icon i {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .ai-lab-logo-image {
        width: 120px;
        height: 120px;
    }
    
    .ai-lab-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .hero-title-sub {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-logo-image {
        width: 40px;
        height: 40px;
    }
}


/* ===============================
   AI戦略ラボ（紹介ブロック）アイコン調整
   - 大きすぎる問題を解消
   - 白縁/白背景が見える場合も円形でクリップ
   =============================== */
.ai-lab-icon-round{
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.ai-lab-icon-round img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 画面が小さいときは少し小さく */
@media (max-width: 640px){
  .ai-lab-icon-round{ width: 80px; height: 80px; }
}

/* ===== HOTFIX: AI戦略ラボ ブロックのアイコンを確実に小さく円形表示 ===== */
#ai-lab .ai-lab-icon-round{
  width: 96px !important;
  height: 96px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.25) !important;
}
#ai-lab .ai-lab-icon-round img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
@media (max-width: 640px){
  #ai-lab .ai-lab-icon-round{ width: 80px !important; height: 80px !important; }
}
