/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2563EB;
    --color-secondary: #0EA5E9;
    --color-text: #1A1A1A;
    --color-light: #F8FAFC;
    --color-light-blue: #DBEAFE;
    --color-white: #FFFFFF;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-family: 'Noto Sans JP', sans-serif;
    --header-height: 100px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.sp-br {
    display: none;
}

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

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
}

.logo-description {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.header.scrolled .logo-description {
    color: var(--color-primary);
    opacity: 0.8;
}

.header.scrolled .logo-text {
    color: var(--color-primary);
}

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

.nav-list a {
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.header.scrolled .nav-list a {
    color: var(--color-text);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--color-text);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transition: right 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: parallaxZoom 20s infinite alternate;
}

.hero-image-1 {
    background-image: url('img/gazou4.png');
    opacity: 1;
    animation: fadeSlide1 20s infinite;
}

.hero-image-2 {
    background-image: url('img/gazou1.png');
    opacity: 0;
    animation: fadeSlide2 20s infinite;
}

@keyframes fadeSlide1 {
    0%, 45% { opacity: 1; transform: scale(1); }
    50%, 95% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlide2 {
    0%, 45% { opacity: 0; transform: scale(1.1); }
    50%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(37, 99, 235, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--color-light);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-white);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--color-white);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(1.5); opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease 0.9s forwards;
    opacity: 0;
}

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

/* ========================================
   セクション共通
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    opacity: 0.8;
}

/* ========================================
   私たちについてセクション
======================================== */
.about {
    padding: 8rem 0;
    background: var(--color-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-header-left {
    text-align: left;
    margin-bottom: 2rem;
}

.section-header-left .section-subtitle {
    text-align: left;
}

.section-header-left .section-title {
    text-align: left;
}

.about-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.about-features {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: space-around;
    align-items: flex-start;
}

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.about-feature-item p {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.7;
    margin: 0;
}

.about-images {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image-main {
    position: relative;
    width: 100%;
    z-index: 2;
}

.about-image-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.about-image-sub {
    position: relative;
    width: 70%;
    margin-left: auto;
    margin-top: -4rem;
    z-index: 3;
}

.about-image-sub img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border: 8px solid var(--color-white);
}

.image-decoration {
    position: absolute;
    z-index: -1;
}

.decoration-1 {
    width: 60%;
    height: 60%;
    background: rgba(14, 165, 233, 0.15);
    top: -1.5rem;
    right: -1.5rem;
}

.decoration-2 {
    width: 50%;
    height: 50%;
    background: rgba(37, 99, 235, 0.15);
    bottom: -1rem;
    left: -1rem;
}

/* ========================================
   サービス概要セクション
======================================== */
.services-intro {
    position: relative;
    padding: 8rem 0;
    background: var(--color-white);
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    animation: servicesParallax 20s infinite alternate;
}

.services-bg-1 {
    background-image: url('img/gazou1.png');
}

.services-bg-2 {
    background-image: url('img/gazou2.png');
    animation-delay: -10s;
}

@keyframes servicesParallax {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(37, 99, 235, 0.05) 100%);
    z-index: 2;
}

.services-intro .container {
    position: relative;
    z-index: 3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    position: relative;
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
    height: 500px;
}

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

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    overflow: hidden;
}

.service-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    transition: transform 0.6s ease;
}

.service-card:hover .service-bg-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.3), rgba(14, 165, 233, 0.2));
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    padding: 2rem;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.service-card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-card-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-feature {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* ========================================
   選ばれる理由セクション
======================================== */
.reasons {
    padding: 8rem 0;
    background: var(--color-light-blue);
}

.reasons-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.reason-card {
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-10px);
}

.reason-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.reason-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.reason-content {
    padding: 2rem;
}

.reason-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reason-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    opacity: 0.8;
}

/* ========================================
   施工事例セクション
======================================== */
.works {
    padding: 8rem 0 4rem;
    background: var(--color-white);
}

.works-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-large {
    grid-column: span 2;
    height: 280px;
}

.gallery-item-wide {
    grid-column: span 2;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

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

.gallery-title {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========================================
   ビフォーアフターセクション（Work内）
======================================== */
.works-before-after {
    padding: 4rem 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.works-before-after .container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.ba-case-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.ba-case-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin: 0 auto;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    max-width: 900px;
    width: 100%;
}

.works-before-after .works-gallery {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.works-before-after .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 1080px;
    margin: 0 auto;
}

.works-before-after .gallery-item {
    height: 600px;
    aspect-ratio: 1080 / 600;
    width: 100%;
}

.works-before-after .gallery-overlay {
    transform: translateY(0) !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    padding: 1rem 1.5rem;
    opacity: 1 !important;
    transition: none !important;
}

.works-before-after .gallery-item:hover .gallery-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.works-before-after .gallery-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.ba-placeholder-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    position: relative;
}

.ba-placeholder-text {
    color: #9CA3AF;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.ba-placeholder-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid #D1D5DB;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   お客様の声セクション
======================================== */
.testimonials {
    position: relative;
    padding: 8rem 0;
    background: var(--color-light);
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/gazou3.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 1rem;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: calc(100% - 2rem);
    flex-shrink: 0;
}

.testimonial-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    margin: 0 auto;
}

.testimonial-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.testimonial-text {
    flex: 1;
}

.testimonial-comment {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: -70px;
}

.slider-arrow-next {
    right: -70px;
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.slider-arrow:disabled:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-50%);
}

/* ========================================
   会社情報セクション
======================================== */
.company-info {
    padding: 8rem 0;
    background: var(--color-light);
}

.company-details-center {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.outline-list {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    padding: 2.5rem;
}

.outline-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.outline-item-last {
    border-bottom: none;
}

.outline-label {
    width: 140px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    padding-right: 1.5rem;
}

.outline-value {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
}

.outline-value a {
    color: var(--color-text);
    text-decoration: none;
}

.outline-value a:hover {
    text-decoration: underline;
}

.company-message {
    background: var(--color-white);
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
}

.company-message p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0;
}

.company-sub-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 2rem;
}

.company-group {
    margin-top: 4rem !important;
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact {
    padding: 8rem 0;
    background: var(--color-white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/gazou3.png') center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact .section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-notice {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    max-width: 400px;
}

.contact-notice p {
    margin: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form-center {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--color-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.required {
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--color-white);
    transition: var(--transition);
    min-width: 320px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-text);
    transition: var(--transition);
    min-width: 320px;
    appearance: none;
    cursor: pointer;
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select-wrapper select option {
    padding: 0.5rem;
    color: var(--color-text);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-primary);
    transition: var(--transition);
}

.select-wrapper:hover .select-arrow {
    color: var(--color-primary);
}

.select-wrapper select:focus + .select-arrow {
    color: var(--color-primary);
}

.btn-submit {
    width: 100%;
    height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    justify-content: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: translateX(3px);
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.footer-logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.footer-logo .logo-description {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-size: 1.8rem;
}

.footer-tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   アニメーション
======================================== */
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: var(--transition);
}

.reveal-left.revealed {
    opacity: 1;
    animation: revealLeft 0.8s ease forwards;
}

.reveal-right.revealed {
    opacity: 1;
    animation: revealRight 0.8s ease forwards;
}

.reveal-scale.revealed {
    opacity: 1;
    animation: revealScale 0.8s ease forwards;
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   メディアクエリ
======================================== */
@media (max-width: 1024px) {
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-feature-item {
        flex: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    .gallery-item-large {
        grid-column: span 2;
        height: 240px;
    }
    
    .gallery-item-wide {
        grid-column: span 2;
        height: 240px;
    }
    
    .before-after-item {
        height: 240px;
    }
    
    .before-after-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .sp-br {
        display: block;
    }
    
    .header-container {
        padding: 0 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-heading {
        font-size: 1.675rem;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .about-feature-item {
        flex: none;
    }
    
    .about-image-main img {
        height: 300px;
    }
    
    .about-image-sub {
        width: 80%;
        margin-top: -3rem;
    }
    
    .about-image-sub img {
        height: 220px;
        border-width: 5px;
    }

    .about {
        padding: 3rem 0;
    }

    .reasons {
        padding: 3rem 0;
    }
    
    .services-intro {
        padding: 3rem 0 6rem 0;
    }
    
    .services-intro .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 0.5rem !important;
    }
    
    .service-card {
        height: auto;
        min-height: 500px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card-bg {
        position: relative;
        height: 200px;
        width: 100%;
    }
    
    .service-card-content {
        position: relative;
        top: auto;
        bottom: auto;
        height: auto;
        padding: 1.5rem;
        justify-content: flex-start;
        flex: 1;
    }
    
    .service-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        margin-bottom: 0;
    }

    .service-card-content h3 {
        margin-bottom: 0;
    }
    
    .reasons .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .reasons-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .reason-content h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 1.1rem;
    }
    
    .works {
        padding: 3rem 0 3rem;
    }
    
    .works .section-header {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 2;
        height: 220px;
    }
    
    .before-after-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .before-after-item {
        height: 220px;
    }
    
    
    .testimonial-slider {
        padding: 0;
        overflow: hidden;
        max-width: 100%;
        margin: 0;
    }

    .testimonials {
        padding: 4rem 0;
    }

    .testimonials .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .testimonial-track {
        gap: 0;
    }
    
    .testimonial-slide {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .testimonial-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .testimonial-image {
        width: 100px;
        height: 100px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow-prev {
        left: -50px;
    }
    
    .slider-arrow-next {
        right: -50px;
    }
    
    .company-details-center {
        max-width: 100%;
        margin: 2rem 0 0;
    }
    
    .outline-list {
        padding: 2rem;
    }
    
    .outline-label {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .outline-value {
        font-size: 0.9rem;
    }
    
    .company-message {
        padding: 1.5rem;
        text-align: justify;
        text-justify: inter-character;
    }

    .company-info .section-description {
        font-size: 0.875rem;
    }

    .company-info {
        padding: 4rem 0;
    }

    .company-info .section-header {
        margin-bottom: 0.5rem !important;
    }

    .company-sub-title {
        margin-bottom: 1rem !important;
    }

    .company-group {
        margin-top: 2rem !important;
        margin-bottom: 0 !important;
    }

    .contact {
        padding: 4rem 0 8rem 0;
    }

    .contact .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .contact-form-center {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .select-wrapper select {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact .section-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-notice {
        max-width: 100%;
        margin: 0 1rem 1rem 1rem;
    }

    .contact-notice p {
        font-size: 0.875rem;
    }
    
    .select-wrapper select {
        padding: 0.875rem 2.5rem 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .select-arrow {
        right: 0.875rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo a {
        align-items: center;
    }
    
    .footer-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-heading {
        font-size: 1.375rem;
    }
    
    .about-features {
        gap: 1.5rem;
        margin-top: 2rem;
        align-items: center;
    }
    
    .about-feature-item {
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .about-feature-item h4 {
        font-size: 1rem;
    }
    
    .about-feature-item p {
        font-size: 0.9rem;
    }
    
    .about-image-main img {
        height: 250px;
    }
    
    .about-image-sub img {
        height: 180px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 250px;
        border-radius: 8px;
    }
    
    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
        height: 250px;
    }
    
    .before-after-section {
        padding: 3rem 0;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .before-after-item {
        height: 250px;
    }
    
    .works {
        padding: 2rem 0 2rem;
    }
    
    .works .section-header {
        margin-bottom: 1.5rem;
    }
    
    .works-before-after {
        padding: 2rem 0;
    }
    
    .works-before-after .container {
        gap: 2.5rem;
    }
    
    .ba-case-title {
        font-size: 1.25rem;
        padding-bottom: 0.875rem;
        max-width: 100%;
    }
    
    .works-before-after .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .works-before-after .gallery-item {
        height: 400px;
        aspect-ratio: 1080 / 600;
    }
    
    .services-intro {
        padding: 2rem 0 4rem 0;
    }
    
    .services-intro .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .services-grid {
        margin-top: 0.5rem !important;
    }
    
    .service-card {
        height: auto;
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }
    
    .service-card-bg {
        position: relative;
        height: 180px;
        width: 100%;
    }
    
    .service-card-content {
        position: relative;
        top: auto;
        bottom: auto;
        height: auto;
        padding: 1.25rem;
        justify-content: flex-start;
        flex: 1;
    }
    
    .service-card-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }

    .service-card-content h3 {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .slider-arrow-prev {
        left: -45px;
    }
    
    .slider-arrow-next {
        right: -45px;
    }
    
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-features {
        gap: 0.3rem;
    }
    
    .service-feature {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .reasons .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .reason-content h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .gallery-item-large,
    .gallery-item-wide {
        height: 250px;
    }
    
    .works-before-after .gallery-item {
        height: 300px;
        aspect-ratio: 1080 / 600;
    }
    
    .testimonial-slider {
        padding: 0;
        overflow: hidden;
    }

    .testimonials {
        padding: 2rem 0;
    }

    .testimonials .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .testimonial-slide {
        padding: 0 0.75rem;
    }
    
    .testimonial-content {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-image {
        width: 80px;
        height: 80px;
    }
    
    .testimonial-comment {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem 0.75rem;
    }

    .contact {
        padding: 2rem 0 4rem 0;
    }

    .contact .section-header {
        margin-bottom: 0.5rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .select-wrapper select {
        min-width: 0;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        box-sizing: border-box;
    }
    
    .select-wrapper select {
        padding-right: 2.5rem;
    }

    .company-info {
        padding: 2rem 0;
    }

    .testimonials {
        padding: 2rem 0;
    }
    
    .outline-list {
        padding: 1.5rem;
    }
    
    .outline-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .outline-label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 0.3rem;
    }
    
    .outline-value {
        width: 100%;
    }
    
    .company-message {
        padding: 1.25rem;
        font-size: 0.95rem;
        text-align: justify;
        text-justify: inter-character;
    }

    .company-sub-title {
        margin-bottom: 0.5rem !important;
        font-size: 1.5rem;
    }

    .company-group {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
    }
}

