/* ====================================
   Compassa Corporate Website Styles
   Modern Design with Ocean Blue Theme
   ==================================== */

/* ===== CSS Variables ===== */
:root {
    /* Deep Ocean Blue Color Palette - 深海ブルー */
    --primary-blue: #003D5C;
    --ocean-blue: #005A7F;
    --deep-blue: #002A3E;
    --light-blue: #E8F4F8;
    --accent-blue: #0077A3;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #1A1A1A;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

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

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

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

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.section {
    padding: var(--section-padding);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--primary-blue);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 61, 92, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 61, 92, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-line {
    background: linear-gradient(135deg, #06C755, #00B900);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
    font-size: 1.1rem;
    padding: 18px 50px;
}

.btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 199, 85, 0.4);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 61, 92, 0.85) 0%, rgba(0, 90, 127, 0.85) 100%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 42, 62, 0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

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

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 61, 92, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.company-info {
    background-color: var(--light-blue);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-blue);
}

.info-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 61, 92, 0.15);
}

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

.info-label {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 120px;
}

.info-value {
    color: var(--dark-gray);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ===== Contact Form ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item-content h4 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 92, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        height: auto;
        padding: 6rem 0;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text h2 {
        font-size: 1.8rem !important;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p,
    .about-text li {
        font-size: 0.95rem;
    }
    
    /* ===== スマホ表示：サービス紹介セクション最適化 ===== */
    /* MEO対策セクション */
    .service-info-box {
        padding: 2rem 1.5rem !important;
    }
    
    .service-info-box h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .service-info-box h4 {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
    
    .service-info-box p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-left: 1.2rem !important;
    }
    
    /* MEO対策：歯科医院向けボックス */
    .dental-highlight-box {
        padding: 1.5rem 1.2rem !important;
    }
    
    .dental-highlight-box h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .dental-highlight-box p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* データ解析セクション */
    .service-detail-box {
        padding: 2rem 1.5rem !important;
    }
    
    .service-detail-box h2 {
        font-size: 1.8rem !important;
    }
    
    .service-detail-box p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    
    /* HP制作会社紹介セクション：グリッド1列化 */
    .partner-benefits-container {
        padding: 2rem 1.5rem !important;
    }
    
    .partner-section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .partner-benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .benefit-card {
        padding: 1.5rem 1.2rem !important;
    }
    
    .benefit-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .benefit-text {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    #partners div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
    
    p, li {
        font-size: 0.9rem !important;
    }
    
    /* ===== スマホ小画面：サービス紹介セクション最適化 ===== */
    /* MEO対策セクション：青い背景ボックス */
    .service-info-box {
        padding: 1.5rem 1rem !important;
        border-radius: 15px !important;
    }
    
    .service-info-box h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-info-box h4 {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.3rem !important;
    }
    
    .service-info-box p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-left: 0.5rem !important;
    }
    
    /* MEO対策：歯科医院向けボックス（小画面） */
    .dental-highlight-box {
        padding: 1.2rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .dental-highlight-box h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    .dental-highlight-box p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    /* データ解析セクション：グラデーション背景ボックス */
    .service-detail-box {
        padding: 1.5rem 1rem !important;
        border-radius: 15px !important;
    }
    
    .service-detail-box .service-icon {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-detail-box h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .service-detail-box p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .service-detail-box p br {
        display: none;
    }
    
    /* HP制作会社紹介：メリットカード */
    .partner-benefits-container {
        padding: 1.5rem 1rem !important;
        border-radius: 15px !important;
        margin-bottom: 2rem !important;
    }
    
    .partner-section-title {
        font-size: 1.3rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .partner-benefits-grid {
        gap: 1.2rem !important;
    }
    
    .benefit-card {
        padding: 1.2rem 1rem !important;
        border-radius: 10px !important;
    }
    
    .benefit-title {
        font-size: 1rem !important;
        margin-bottom: 0.7rem !important;
        line-height: 1.4 !important;
    }
    
    .benefit-text {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    #partners div[style*="padding: 1.5rem"] {
        padding: 1.2rem !important;
    }
    
    #partners h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.7rem !important;
    }
    
    #partners p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem !important;
    }
    
    /* Services page specific adjustments */
    .section {
        padding: 60px 0 !important;
    }
    
    .about-content > div {
        padding: 1.5rem !important;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
    }
    
    .service-detail-box,
    .service-info-box {
        padding: 1.5rem !important;
    }
    
    .service-detail-box h2,
    .service-info-box h3 {
        font-size: 1.3rem !important;
    }
    
    .service-detail-box .service-icon {
        font-size: 2.5rem !important;
    }
}
}