/* D:creation CSS */

/* 基本設定 */
:root {
    --primary-color: #213555;
    --secondary-color: #3e5879;
    --accent-color: #e74c3c;
    --text-color: #213555;
    --text-light: #3e5879;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --section-bg: #f7f7f7;
    --section-padding-desktop: 100px;
    --section-padding-mobile: 60px;
    --section-gap-desktop: 80px;
    --section-gap-mobile: 40px;
}

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

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'メイリオ', noto sans japanese;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--section-bg);
}

.main-content {
    margin-top: 72px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f5efe7;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 15px;
    transition: var(--transition);
    padding: 0.8rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    color: #213555;
    background: #f7f7f7;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(33,53,85,0.06)"/></pattern></defs><rect width="160" height="160" fill="url(%23dots)"/></svg>');
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.hero-gallery {
    position: absolute;
    left: -8%;
    right: -8%;
    pointer-events: none;
    z-index: 1;
}

.hero-gallery--top {
    top: 12%;
}

.hero-gallery--bottom {
    bottom: 10%;
}

.hero-gallery-row {
    position: relative;
    height: clamp(140px, 20vw, 220px);
    overflow: hidden;
}

.hero-gallery-track {
    position: absolute;
    top: 0;
    display: inline-flex;
    gap: 24px;
    min-width: max-content;
    will-change: transform;
    animation: heroMarquee 30s linear infinite;
}

.hero-gallery-track--reverse {
    animation-direction: reverse;
}

.hero-gallery-item {
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    position: relative;
}

.hero-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.hero-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow:
        0 18px 35px rgba(14, 24, 64, 0.35),
        0 6px 16px rgba(14, 24, 64, 0.25);
}

.hero-gallery-item,
.hero-gallery-item--lg,
.hero-gallery-item--md,
.hero-gallery-item--sm {
    width: clamp(200px, 24vw, 280px);
    height: clamp(130px, 16vw, 190px);
}

@keyframes heroMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

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

/* セクション共通 */
.page-section {
    background: var(--section-bg);
    padding-block: var(--section-padding-desktop);
    padding-inline: 0;
}

.hero-section + .page-section,
.page-section + .page-section {
    margin-top: var(--section-gap-desktop);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* About セクション */
.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-text.highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Works セクション */
.work-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.work-image {
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.work-content {
    padding: 2rem;
}

.work-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.work-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Services セクション */
.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

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

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

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

/* Flow セクション */
.flow-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.flow-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.flow-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #f5efe7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.flow-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    margin-top: 1rem;
}

.flow-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ セクション */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--light-bg);
    border: none;
    font-weight: 600;
    color: var(--text-color);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-color);
    color: #f5efe7;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background: var(--white);
    color: var(--text-light);
    line-height: 1.7;
}

.faq-accordion {
    max-width: 800px;
}

/* Contact セクション */
.contact-section {
    padding: 100px 0;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

/* ボタン */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: #f5efe7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* フッター */
.footer {
    padding: 2rem 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        padding: 100px 0 60px;
        min-height: 80vh;
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-gallery {
        position: relative;
        inset: auto;
        width: 100%;
        margin: 0 auto;
        padding: 0 clamp(16px, 6vw, 32px);
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .hero-gallery-row {
        position: relative;
        left: auto;
        right: auto;
        height: auto;
        min-height: clamp(120px, 42vw, 200px);
    }
    
    .hero-gallery--top,
    .hero-gallery--bottom {
        top: auto;
        bottom: auto;
        left: 0;
        right: 0;
    }
    
    .hero-gallery-row {
        height: auto;
        min-height: clamp(120px, 42vw, 200px);
    }
    
    .hero-gallery-track {
        position: relative;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: -100px;
    }
    
    .scroll-indicator span {
        font-size: 0.8rem;
    }
    
    .scroll-indicator i {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 20px;
    }

    .page-section {
        padding-block: var(--section-padding-mobile);
        padding-inline: clamp(18px, 5vw, 32px);
    }

    .hero-section + .page-section,
    .page-section + .page-section {
        margin-top: var(--section-gap-mobile);
    }

    .about-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .services-description {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .flow-card {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .flow-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        top: -25px;
    }
    
    .flow-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }
    
    .flow-card p {
        font-size: 0.95rem;
    }

    .accordion-button {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer {
        padding: 2rem 20px;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .col-lg-6.text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        margin: 0;
    }
    
    .navbar-brand .logo-img {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding: 0 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        padding: 0 15px;
    }

    .page-section {
        padding-block: calc(var(--section-padding-mobile) - 20px);
        padding-inline: clamp(14px, 6vw, 24px);
    }

    .about-text {
        font-size: 0.9rem;
        padding: 0 5px;
    }

    .services-description {
        font-size: 0.9rem;
        padding: 0 5px;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    .flow-card {
        padding: 2rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .flow-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        top: -22px;
    }
    
    .flow-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .flow-card p {
        font-size: 0.85rem;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    .footer {
        padding: 1.5rem 15px;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    .navbar-brand .logo-img {
        height: 30px;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .flow-card {
        padding: 1.2rem 1rem;
    }
}
