/* ベース設定 */
:root {
    --primary-color: #000000; /* 黒色 - ロゴに合わせた色 */
    --secondary-color: #444444; /* ダークグレー - アクセント */
    --dark-color: #333333; /* 暗いグレー */
    --light-color: #f8f9fa; /* 明るいグレー */
    --gray-color: #6c757d; /* グレー */
    --success-color: #28a745; /* 成功色 */
    --danger-color: #dc3545; /* 危険色 */
    --accent-color: #777777; /* ミディアムグレー - アクセント */
    --border-radius: 4px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.body-top-logo {
        object-fit: cover;
    border-radius: 50%;
}

body {
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 画像のレスポンシブ最適化 */
.hero-slide {
    background-attachment: scroll; /* モバイルでのパフォーマンス向上 */
}

@media screen and (min-width: 768px) {
    .hero-slide {
        background-attachment: fixed;
    }
}

/* 画像の遅延読み込み対応（無効化） */
img[loading="lazy"] {
    opacity: 1; /* 遅延読み込みの透明度を無効化 */
    transition: none; /* トランジションを無効化 */
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 画像のアスペクト比を保持 */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* 画像のホバー効果 */
img:hover {
    transform: scale(1.02);
}

/* ロゴ画像の最適化 */
.header-logo,
.footer-logo-img {
    object-fit: contain;
    width: auto;
    height: auto;
}

/* 背景画像の最適化 */
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* レスポンシブ画像 */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* 画像の読み込み中のプレースホルダー */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: none;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.05rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #333333);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(45deg, #444444, #666666);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* セクションスタイル */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #444444;
}

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

/* ヘッダー - 初期状態は半透明の背景で可読性を確保 */
.header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.8s ease, box-shadow 0.8s ease;
    transform: translateY(0);
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* スクロール時のヘッダースタイル - フェードイン効果付き */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: headerFadeIn 0.5s ease-out forwards;
    position: fixed !important;
}

/* ヘッダーが固定された時のボディ調整 */
body.header-fixed {
    padding-top: 0; /* ヘッダーが固定されている場合はパディングを削除 */
}

/* ヘッダーフェードインアニメーション */
@keyframes headerFadeIn {
    0% {
        background-color: transparent;
        box-shadow: none;
        transform: translateY(-10px);
        opacity: 0.8;
    }
    100% {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        opacity: 1;
    }
}

/* スクロール時のヘッダースタイル - フェードイン効果付き */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: headerFadeIn 0.5s ease-out forwards;
}

/* ヘッダーフェードインアニメーション */
@keyframes headerFadeIn {
    0% {
        background-color: transparent;
        box-shadow: none;
        transform: translateY(-10px);
        opacity: 0.8;
    }
    100% {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        opacity: 1;
    }
}
/* ヘッダーのテキスト色を調整 - 半透明背景でも読みやすく */
.header .logo h1 {
    color: var(--primary-color);
    text-shadow: none;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.9rem;
}

.header .contact-info {
    color: var(--dark-color);
    text-shadow: none;
    transition: all 0.3s ease;
}

.header .contact-info .phone,
.header .contact-info .hours {
    color: var(--dark-color);
    text-shadow: none;
}

.header .nav ul li a {
    color: var(--dark-color);
    text-shadow: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* スクロール時も同じスタイルを維持 */
.header-scrolled .contact-info,
.header-scrolled .contact-info .phone,
.header-scrolled .contact-info .hours {
    color: var(--dark-color);
    text-shadow: none;
}

.header-scrolled .logo h1 {
    color: var(--primary-color);
    text-shadow: none;
    font-size: 1.8rem;
}

.header-scrolled .nav ul li a {
    color: var(--dark-color);
    text-shadow: none;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px 0;
    transition: all 0.8s ease;
    position: relative;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.8s ease;
    padding-left: 10px;
    justify-self: start;
}

.header-right {
    display: contents;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.contact-info {
    justify-self: end;
}

.top-logo {
        width: 150px;
    height: 150px;
        object-fit: cover;
    border-radius: 50%;
}

.header-logo {
    width: 40px;
    height: 40px;
    transition: all 0.8s ease;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.8s ease;
}

.brushstroke-text {
    justify-content: center;
    padding: 15px 0;
    margin: 0;
    transition: all 0.8s ease;
}

.circle-kanji {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #000;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 70px;
    background-color: #fff;
    color: #000;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.phone {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone i {
    font-size: 0.9rem;
}

.hours-with-instagram {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours {
    font-size: 0.85rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.header-social-icons {
    display: flex;
    align-items: center;
}

.header-social-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.header-social-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.header-social-icon img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav ul {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin: 0;
    transition: all 0.4s ease;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav ul li {
    margin-right: 18px;
}

.nav ul li:last-child {
    margin-right: 0;
}

.nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 2px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.05rem;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

.nav ul li a:hover::after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(45deg, var(--primary-color), #333333);
    color: #fff !important; /* 強制的に白色を適用 */
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: linear-gradient(45deg, #333333, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ヒーローセクション */
.hero {
    color: #fff;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px; /* ヘッダーの高さ分のパディングをさらに増加 */
    margin-top: 0; /* ヘッダーとの重なりを防ぐ */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 背景画像の上に半透明のオーバーレイを追加 */
    z-index: 1;
    pointer-events: none;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    background-color: transparent;
}

.hero-slide::after {
    display: none !important;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px; /* ヘッダーとの間隔をさらに確保 */
}

.hero-kanji-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    letter-spacing: 2px;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.9s;
    animation-fill-mode: both;
}

/* 特徴セクション */
.features {
    background-color: var(--light-color);
}

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

.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

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

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.3s;
}

.service-card:nth-child(3) {
    transition-delay: 0.5s;
}

.service-card::before {
    display: none !important;
    content: none !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: #fff;
    margin: 40px auto;
    text-align: center;
    transition: all 0.4s ease;
    background: linear-gradient(45deg, #000000, #333333);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.service-content ul {
    margin-bottom: 20px;
}

.service-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-content ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #666666;
    position: absolute;
    left: 0;
}

/* 施工事例セクション */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.work-single-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

.work-icon {
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 30px auto;
}

.works-showcase:hover .work-icon {
    transform: scale(1.1);
}

.works-btn {
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.work-content {
    padding: 20px;
}

.work-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.work-content p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.work-tags span {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--gray-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
}

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

/* お客様の声セクション */
.testimonials {
    background-color: var(--light-color);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 20px;
    box-sizing: border-box;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    margin: 0 15px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--accent-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

.testimonial-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.quote {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.quote i {
    background: linear-gradient(45deg, #000000, #444444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    transform: rotate(-8deg);
    transition: transform 0.4s ease;
}

.testimonial-card:hover .quote i {
    transform: rotate(0deg) scale(1.1);
}

.testimonial-content p {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-rating {
    margin: 15px 0;
    color: #ffc107; /* 鮮やかな黄色 */
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 星に立体感を出す */
}

.testimonial-author {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.testimonial-author .name {
    font-weight: bold;
    margin-bottom: 5px;
}

.testimonial-author .service {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 会社案内セクション */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    margin-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
}

.about-icon {
    font-size: 8rem;
    color: var(--accent-color);
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-info {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
}

.company-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
}

.company-info table th,
.company-info table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.company-info table th {
    width: 30%;
    text-align: left;
    font-weight: 600;
    color: var(--gray-color);
}

.about-image,
.about-icon {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img,
.about-icon img,
.about-inc-img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    max-width: 500px;
    margin: 0 auto;
}

/* お問い合わせセクション */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #333333);
    transition: width 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-method:hover::before {
    width: 6px;
}


.form-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.contact-method .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), #333333);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-method:hover .icon {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.contact-method .details {
    flex: 1;
    min-width: 180px;
}

.contact-method .details h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.contact-method .details p {
    color: var(--gray-color);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

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

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.required {
    color: #e74c3c;
    margin-left: 5px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 87, 168, 0.1);
}

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

/* 送信ボタン */
.contact-form .btn {
    background: linear-gradient(135deg, var(--primary-color), #333333);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 87, 168, 0.2);
    width: 100%;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 168, 0.3);
    background: linear-gradient(135deg, #333333, var(--primary-color));
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .contact-method,
    .contact-method .icon,
    .contact-form .btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        transition: none;
    }
    
    .contact-method:hover {
        transform: none;
    }
    
    .contact-method:hover .icon {
        transform: none;
    }
    
    .contact-form .btn:hover {
        transform: none;
    }
}

/* フォーカス表示の改善 */
.contact-method:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .contact-method {
        border: 2px solid #000;
    }
    
    .contact-method .icon {
        background: #000;
        color: #fff;
    }
    
    .contact-form {
        border: 2px solid #000;
    }
}

/* カスタムセレクトボックス */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #999;
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.custom-select-trigger i {
    transition: transform 0.3s ease;
    color: #666;
}

.custom-select.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.custom-select.open .custom-options {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-option:hover {
    background-color: #f8f9fa;
}

.custom-option.selected {
    background-color: #e9ecef;
    font-weight: 500;
}

.option-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.option-color-dot.red {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

.option-color-dot.green {
    background-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

/* CTA セクション */
.cta {
    background: linear-gradient(45deg, #222222, #555555);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex-direction: row; /* 横並びに変更 */
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
        object-fit: cover;
    border-radius: 50%;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact {
    color: #fff;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-contact i {
    margin-right: 10px;
    color: #777777;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.footer-nav-links a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.03em;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.abaout-inc-img{
    height: 450px;
    width: 500px;
    /* object-fit: cover; */
}

/* SNSアイコンスタイル */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 5px;
}

.social-icon:hover {
    transform: translateY(-5px);
}

/* ヘッダーのSNSアイコン */
.header-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.header-social-icon {
    display: inline-block;
    transition: all 0.3s ease;
}
.header-social-icon:hover {
    transform: translateY(-3px);
}

/* ========================================
   レスポンシブデザイン - モバイルファーストアプローチ
   ======================================== */

/* モバイルファースト - ベーススタイル（320px以上） */
@media screen and (min-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        margin-bottom: 10px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .header-logo {
        width: 35px;
        height: 35px;
    }
    
    .nav {
        order: 2;
        width: 100%;
    }
    
    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
        margin: 0;
    }
    
    .nav ul li {
        margin: 0;
    }
    
    .nav ul li a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .contact-info {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .phone {
        font-size: 0.85rem;
    }
    
    .hours {
        font-size: 0.8rem;
    }
    
    .hours-with-instagram {
        justify-content: center;
        gap: 8px;
    }
    
    /* ヒーローセクション */
    .hero {
        height: 70vh;
        min-height: 500px;
        padding-top: 160px; /* モバイルでのヘッダー高さ分を大幅に増加 */
    }
    
    .hero-content {
        padding-top: 60px; /* モバイルでのコンテンツパディングを増加 */
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* セクション共通 */
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 特徴セクション */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    /* サービスセクション */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2.5rem;
        margin: 30px auto;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    /* 施工事例セクション */
    .work-single-card {
        padding: 25px 20px;
    }
    
    .work-icon {
        width: 100px;
        height: 100px;
        line-height: 100px;
        font-size: 3rem;
        margin: 25px auto;
    }
    
    .work-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    /* お客様の声セクション */
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .quote {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-rating {
        font-size: 1.1rem;
        margin: 12px 0;
    }
    
    /* 会社案内セクション */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .about-inc-img {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .company-info {
        padding: 25px 20px;
    }
    
    .company-info h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .company-info table th,
    .company-info table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .company-info table th {
        width: 35%;
    }
    
    /* お問い合わせセクション */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-method {
        margin-bottom: 30px;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-method .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-method .details h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .contact-method .details p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    /* CTAセクション */
    .cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* フッター */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        flex-direction: row; /* 横並びを維持 */
        align-items: center;
        gap: 15px;
    }
    
    .footer-logo-img {
        width: 40px;
        height: 40px;
        margin-right: 15px; /* 右マージンを追加 */
        margin-bottom: 0; /* 下マージンを削除 */
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .footer-contact {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-nav-links {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .footer-nav-links a {
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 15px;
        margin: 20px 0;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
}

/* タブレット - 768px以上 */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
    }
    
    .logo {
        order: 1;
        margin-bottom: 0;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .nav {
        order: 2;
        width: auto;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .nav ul li a {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .contact-info {
        order: 3;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .phone {
        font-size: 0.9rem;
    }
    
    .hours {
        font-size: 0.85rem;
    }
    
    /* ヒーローセクション */
    .hero {
        height: 80vh;
        min-height: 600px;
        padding-top: 140px; /* タブレットでのヘッダー高さ分をさらに増加 */
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 20px;
    }
    
    .btn {
        width: auto;
        max-width: none;
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* セクション共通 */
    section {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* 特徴セクション */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .feature-icon {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    /* サービスセクション */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .service-icon {
        width: 90px;
        height: 90px;
        line-height: 90px;
        font-size: 2.8rem;
        margin: 35px auto;
    }
    
    .service-content {
        padding: 30px 25px;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* 施工事例セクション */
    .work-single-card {
        padding: 30px 25px;
    }
    
    .work-icon {
        width: 110px;
        height: 110px;
        line-height: 110px;
        font-size: 3.5rem;
        margin: 30px auto;
    }
    
    .work-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    /* お客様の声セクション */
    .testimonial-card {
        padding: 35px 30px;
    }
    
    .quote {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .testimonial-rating {
        font-size: 1.2rem;
        margin: 15px 0;
    }
    
    /* 会社案内セクション */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .about-inc-img {
        max-width: 450px;
    }
    
    .company-info {
        padding: 35px 30px;
    }
    
    .company-info h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .company-info table th,
    .company-info table td {
        padding: 15px 12px;
        font-size: 0.95rem;
    }
    
    .company-info table th {
        width: 32%;
    }
    
    /* お問い合わせセクション */
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 50px;
    }
    
    .contact-method {
        margin-bottom: 35px;
        padding: 22px;
    }
    
    .contact-method .icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-right: 20px;
    }
    
    .contact-method .details h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .contact-method .details p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-form {
        padding: 40px 35px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* CTAセクション */
    .cta {
        padding: 70px 0;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 20px;
    }
    
    /* フッター */
    .footer {
        padding: 70px 0 25px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
    }
    
    .footer-logo {
        flex-direction: row; /* 横並びを維持 */
        align-items: center;
        gap: 15px;
    }
    
    .footer-logo-img {
        width: 45px;
        height: 45px;
        margin-right: 15px; /* 右マージンを維持 */
        margin-bottom: 0;
    }
    
    .footer-logo h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .footer-logo p {
        font-size: 0.95rem;
    }
    
    .footer-contact {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .footer-nav-links {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .footer-nav-links a {
        font-size: 0.95rem;
    }
    
    .social-icons {
        gap: 18px;
        margin: 25px 0;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
}

/* デスクトップ - 1024px以上 */
@media screen and (min-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 25px 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .header-logo {
        width: 45px;
        height: 45px;
    }
    
    .nav ul {
        gap: 18px;
    }
    
    .nav ul li a {
        font-size: 1.05rem;
        padding: 8px 18px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .phone {
        font-size: 0.95rem;
    }
    
    .hours {
        font-size: 0.9rem;
    }
    
    /* ヒーローセクション */
    .hero {
        height: 90vh;
        min-height: 700px;
        padding-top: 150px; /* デスクトップでのヘッダー高さ分をさらに増加 */
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .hero-content h3 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        gap: 25px;
    }
    
    .btn {
        padding: 14px 32px;
        font-size: 1.05rem;
    }
    
    /* セクション共通 */
    section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }
    
    /* 特徴セクション */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .feature-card {
        padding: 40px 30px;
    }
    
    .feature-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* サービスセクション */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .service-icon {
        width: 100px;
        height: 100px;
        line-height: 100px;
        font-size: 3rem;
        margin: 40px auto;
    }
    
    .service-content {
        padding: 30px;
    }
    
    .service-content h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    /* 施工事例セクション */
    .work-single-card {
        padding: 30px;
    }
    
    .work-icon {
        width: 120px;
        height: 120px;
        line-height: 120px;
        font-size: 4rem;
        margin: 30px auto;
    }
    
    .work-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    /* お客様の声セクション */
    .testimonial-card {
        padding: 40px;
    }
    
    .quote {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .testimonial-content p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .testimonial-rating {
        font-size: 1.3rem;
        margin: 15px 0;
    }
    
    /* 会社案内セクション */
    .about-content {
        gap: 50px;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .about-inc-img {
        max-width: 500px;
    }
    
    .company-info {
        padding: 40px;
    }
    
    .company-info h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .company-info table th,
    .company-info table td {
        padding: 15px;
        font-size: 1rem;
    }
    
    .company-info table th {
        width: 30%;
    }
    
    /* お問い合わせセクション */
    .contact-content {
        grid-template-columns: 1fr 1.8fr;
        gap: 60px;
    }
    
    .contact-method {
        margin-bottom: 40px;
        padding: 25px;
    }
    
    .contact-method .icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-right: 25px;
    }
    
    .contact-method .details h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .contact-method .details p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .contact-form {
        padding: 50px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* CTAセクション */
    .cta {
        padding: 80px 0;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        gap: 20px;
    }
    
    /* フッター */
    .footer {
        padding: 80px 0 20px;
    }
    
    .footer-content {
        gap: 50px;
    }
    
    .footer-logo-img {
        width: 50px;
        height: 50px;
        margin-right: 15px; /* 右マージンを維持 */
    }
    
    .footer-logo h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .footer-logo p {
        font-size: 1rem;
    }
    
    .footer-contact {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .footer-nav-links {
        gap: 20px;
    }
    
    .footer-nav-links a {
        font-size: 1rem;
    }
    
    .social-icons {
        gap: 20px;
        margin: 20px 0;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
}

/* 大画面デスクトップ - 1200px以上 */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-content h3 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .section-header p {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 45px 35px;
    }
    
    .feature-icon {
        font-size: 3.2rem;
        margin-bottom: 25px;
    }
    
    .feature-card h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .service-content {
        padding: 35px;
    }
    
    .service-content h3 {
        font-size: 1.9rem;
        margin-bottom: 18px;
    }
    
    .testimonial-card {
        padding: 45px;
    }
    
    .quote {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
        line-height: 1.9;
    }
    
    .testimonial-rating {
        font-size: 1.4rem;
        margin: 18px 0;
    }
    
    .about-text h3 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.9;
        margin-bottom: 25px;
    }
    
    .company-info {
        padding: 45px;
    }
    
    .company-info h3 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .company-info table th,
    .company-info table td {
        padding: 18px 20px;
        font-size: 1.05rem;
    }
    
    .contact-form {
        padding: 45px;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }
    
    .cta-content p {
        font-size: 1.3rem;
        margin-bottom: 35px;
    }
    
    .footer {
        padding: 90px 0 25px;
    }
    
    .footer-content {
        gap: 60px;
    }
    
    .footer-logo h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .footer-logo p {
        font-size: 1.05rem;
    }
    
    .footer-contact {
        font-size: 1.05rem;
        line-height: 1.9;
    }
    
    .footer-nav-links a {
        font-size: 1.05rem;
    }
    
    .social-icon {
        width: 52px;
        height: 52px;
    }
}

/* 超大画面 - 1400px以上 */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h2 {
        font-size: 4.5rem;
    }
    
    .hero-content h3 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .section-header p {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 50px 40px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }
    
    .feature-card h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .service-content {
        padding: 40px;
    }
    
    .service-content h3 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        padding: 50px;
    }
    
    .quote {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .testimonial-content p {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .testimonial-rating {
        font-size: 1.5rem;
        margin: 20px 0;
    }
    
    .about-text h3 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .about-text p {
        font-size: 1.2rem;
        line-height: 2;
        margin-bottom: 30px;
    }
    
    .company-info {
        padding: 50px;
    }
    
    .company-info h3 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .company-info table th,
    .company-info table td {
        padding: 20px 25px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 50px;
    }
    
    .cta-content h2 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .cta-content p {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }
    
    .footer {
        padding: 100px 0 30px;
    }
    
    .footer-content {
        gap: 70px;
    }
    
    .footer-logo h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .footer-logo p {
        font-size: 1.1rem;
    }
    
    .footer-contact {
        font-size: 1.1rem;
        line-height: 2;
    }
    
    .footer-nav-links a {
        font-size: 1.1rem;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
    }
}

/* ========================================
   レスポンシブデザインの最終調整とポリッシュ
   ======================================== */

/* タッチデバイス向けの最適化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .work-item:hover {
        transform: none;
    }
    
    .nav ul li a:hover::after {
        width: 0;
    }
    
    .nav ul li a:active::after {
        width: 100%;
    }
}

/* レスポンシブデザイン時のスクロールアニメーション無効化 */
@media screen and (max-width: 1023px) {
    .hero-slide {
        background-attachment: scroll !important;
    }
    
    /* スクロール時のヘッダーアニメーションを無効化 */
    .header-scrolled {
        animation: none !important;
        transition: none !important;
    }
    
    /* セクションのスクロールアニメーションを無効化 */
    section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .section-header {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* 高DPIディスプレイ向けの最適化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-logo,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 印刷用スタイル */
@media print {
    .header,
    .footer,
    .cta,
    .btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    .hero-content h2,
    .hero-content h3 {
        color: #000 !important;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0 20px;
    }
}

/* アクセシビリティの向上 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモードのスタイルを追加 */
}

/* フォーカス表示の改善 */
.btn:focus,
.nav ul li a:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* パフォーマンス最適化 */
.hero-slide {
    will-change: transform;
}

.feature-card,
.service-card,
.testimonial-card,
.work-item {
    will-change: transform;
}

/* コンテナの最大幅制限 */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

/* 極小画面向けの追加調整 */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding-top: 180px; /* 極小画面でのヘッダー高さ分をさらに増加 */
    }
    
    .hero-content {
        padding-top: 70px; /* 極小画面でのコンテンツパディングを増加 */
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav ul li a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .header-logo {
        width: 30px;
        height: 30px;
    }
}