/* ==========================================================================
   フロントページ専用スタイル
   ========================================================================== */

/* ヒーローセクション */
.hero {
    margin-top: 0;
    padding-top: 0;
    height: 700px;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    right: 0;
    height: 100%;
    background: transparent;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    z-index: 0;
}

.hero-wrapper {
    padding: 2rem;
    height: 700px;
    position: relative;
}

.hero-top {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--primary-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.85;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.6;
    color: var(--text-dark);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-side {
    color: var(--text-dark);
}

.hero-side-left {
    text-align: right;
    padding-right: 1rem;
}

.hero-side-right {
    padding-left: 1rem;
}

.hero-side h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero-side p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

.hero-image {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 50px;
    border: 2px solid var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    position: relative;
    animation: scaleIn 1s ease 0.4s both;
    z-index: 2;
}

.hero-image-content {
    text-align: center;
    color: var(--text-dark);
}

.hero-image-content i {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-image-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-image-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-bottom {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.hero-bottom p {
    color: var(--text-dark);
}

/* ヒーロースライドショー */
.hero-bg-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 30px);
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.5px) brightness(0.8);
}

.hero-slide-overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: white;
    z-index: 2;
}

.hero-slide-overlay h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.hero-slide-overlay p {
    font-size: 1.1rem;
    opacity: 0.95;
}

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

/* 青背景バー */
.blue-bar {
    background: var(--primary-color);
    height: 70px;
    width: 100%;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* About Usセクション */
.about {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-image {
    position: relative;
    margin-right: -4rem;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 強みセクション */
.strengths {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.strengths-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.strengths-title-vertical {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.strengths-title-vertical h3 {
    writing-mode: vertical-rl;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.3em;
}

.strengths-list {
    display: flex;
    flex-direction: column;
}

.strength-item {
    padding: 3rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--white);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.strength-item.show {
    opacity: 1;
    transform: translateX(0);
}

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

.strength-item:hover {
    background: linear-gradient(to right, var(--bg-light), var(--white));
}

.strength-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.strength-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.strength-item .tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.strength-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.strength-link:hover {
    gap: 1rem;
    color: var(--accent-color);
}

.strength-link i {
    transition: transform 0.3s ease;
}

.strength-link:hover i {
    transform: translateX(5px);
}

/* 縦書きテキストセクション - 基本設定 */
.vertical-text-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
}

.vertical-text-wrapper {
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* モバイル用要素をデフォルトで非表示 */
.carousel-nav,
.carousel-dots {
    display: none;
}

/* カルーセルナビゲーション（1300px以下で表示） */
@media (max-width: 1300px) {
    .carousel-nav {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary-color);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .carousel-nav:hover {
        background: var(--accent-color);
        transform: translateY(-50%) scale(1.05);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-nav i {
        font-size: 1.2rem;
    }

    .carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 1rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--bg-gray);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }
}

/* デスクトップ（1301px以上）でのみ斜めデザイン適用 */
@media (min-width: 1301px) {
    .vertical-text-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 50px 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        position: relative;
        perspective: 1000px;
    }

    .vertical-text-container .vertical-text-item:nth-child(1) {
        z-index: 1;
        transform: rotate(-5deg) translateY(-15px) translateX(-20px) translateZ(0);
    }

    .vertical-text-container .vertical-text-item:nth-child(2) {
        z-index: 3;
        transform: translateY(0) translateZ(10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    .vertical-text-container .vertical-text-item:nth-child(3) {
        z-index: 2;
        transform: rotate(5deg) translateY(-15px) translateX(20px) translateZ(0);
    }

    .vertical-text-item:hover {
        z-index: 10 !important;
        transform: translateY(-8px) rotate(0deg) translateX(0) scale(1.05) translateZ(20px) !important;
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }
}

/* デフォルトのカードスタイル */
.vertical-text-container {
    display: flex;
    padding: 50px 2rem;
    gap: 10px;
    max-width: 100%;
}

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

.vertical-text-item {
    flex: 0 0 400px;
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    min-height: 500px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
}

.vertical-text-description {
    flex: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 450px;
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
}

.vertical-text-description p {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

/* 縦書き内の数字を横組みにする */
.tate-chu-yoko {
    text-combine-upright: all;
    -webkit-text-combine: horizontal;
    -ms-text-combine-horizontal: all;
    display: inline;
    font-weight: 700;
    color: var(--primary-color);
    line-height: inherit;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.vertical-text-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
}

.vertical-text-main {
    writing-mode: vertical-rl;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    line-height: 1.5;
    height: 400px;
    display: flex;
    align-items: center;
}

.vertical-text-main br {
    content: "";
    margin: 0;
    padding: 0;
    display: block;
    height: 1rem;
}

.vertical-text-number {
    display: none;
}

.vertical-divider {
    width: 1px;
    height: 250px;
    background: var(--primary-color);
    opacity: 0.2;
}

/* スクロールバナー */
.scroll-banner-container {
    margin-top: 5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    padding: 2.5rem 0;
}

.scroll-banner {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 1.5rem 0;
}

.scroll-banner:first-child {
    margin-top: 0;
}

.scroll-banner:last-child {
    margin-bottom: 0;
}

.scroll-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 50px;
}

.scroll-left .scroll-content {
    animation: scrollLeft 60s linear infinite;
}

.scroll-right .scroll-content {
    animation: scrollRight 70s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.scroll-item {
    display: inline-block;
    padding: 0.5rem 2rem;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scroll-item i {
    margin-left: 0.5rem;
    color: #60a5fa;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.scroll-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* サービス概要セクション */
.services-overview {
    padding: 5rem 0;
    background: var(--white);
}

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

.service-item {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    padding: 0;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
}

.service-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.service-content {
    padding: 3rem;
}

.item-badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1;
}

.item-title {
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
}

.item-tag {
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.item-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.item-link:hover {
    background: var(--primary-color);
    color: white;
    gap: 1rem;
}

.service-text h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-text p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-image {
    width: 400px;
    height: 100%;
    min-height: 400px;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 会社情報セクション */
.company-info {
    padding: 5rem 2rem;
    background: var(--white);
}

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

.company-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 3rem;
    margin-top: 3rem;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.company-table th,
.company-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.company-table th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    width: 30%;
}

.company-table td {
    color: var(--text-dark);
}

.company-map h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-container {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.access-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.access-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.access-info ul {
    list-style: none;
    padding: 0;
}

.access-info li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.access-info li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* お問い合わせセクション（CTAセクション） */
.contact-section {
    padding: 5rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-phone {
    margin: 3rem 0;
    text-align: center;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.phone-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.phone-hours {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* レスポンシブ対応 */

/* タブレット対応 (769px - 1300px) */
@media (max-width: 1300px) and (min-width: 769px) {
    /* MVオーバーレイテキストのタブレット対応 */
    .hero-slide-overlay {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-slide-overlay h2 {
        font-size: 2.5rem !important;
    }

    .hero-slide-overlay p {
        font-size: 1.2rem !important;
    }

    /* フォントサイズ調整 */
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* パディング調整 */
    .about, .strengths, .services-overview, .company-info {
        padding: 4rem 2rem;
    }

    /* グリッド調整 */
    .about-content {
        gap: 3rem;
    }

    /* 会社情報セクション - タブレットでもモバイル版使用 */
    .company-card {
        padding: 2rem;
    }

    .company-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2.5rem;
    }

    .company-table,
    .company-map {
        width: 100% !important;
    }

    /* テーブルを縦並びに変更（モバイル版準拠） */
    .company-table table,
    .company-table tbody,
    .company-table tr {
        display: block;
        width: 100%;
    }

    .company-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 0.75rem;
        border: none;
        text-align: left;
    }

    .company-table th {
        background: var(--primary-color) !important;
        color: white !important;
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0;
    }

    .company-table td {
        background: white;
        color: var(--text-dark);
        font-size: 0.95rem;
        padding-top: 0.5rem;
    }

    .company-map h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .map-container {
        height: 320px;
    }

    .access-info {
        padding: 1rem;
    }

    .access-info h4 {
        font-size: 1.1rem;
    }

    .access-info li {
        font-size: 0.9rem;
    }

    /* サービスセクション - タブレットでモバイルレイアウト使用 */
    .service-item {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        margin-bottom: 1.5rem;
    }

    .service-content {
        padding: 2.5rem 1.5rem;
        order: 2;
    }

    .item-badge {
        font-size: 1.05rem;
        padding: 0.45rem 1.3rem;
        top: -12px;
        left: 1.5rem;
    }

    .item-title {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .item-tag {
        font-size: 0.85rem;
    }

    .item-text {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .item-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }

    .service-image {
        width: 100% !important;
        height: 280px;
        min-height: 280px;
        border-radius: 10px 10px 0 0;
        order: 1;
    }

    /* タブレットでホバー効果を調整 */
    .service-item:hover {
        transform: scale(1.01);
    }
}

/* モバイル対応 (max-width: 768px) */
@media (max-width: 768px) {
    /* ヒーローセクション - 高さ300px、全幅表示 */
    .hero {
        height: 300px !important;
        min-height: 300px !important;
    }

    .hero-wrapper {
        height: 300px !important;
        min-height: 300px !important;
        padding: 2rem 1rem;
    }

    /* モバイル時は画像を全幅表示 */
    .hero::before {
        display: none;
    }

    /* スライドショーを全幅表示 */
    .hero-bg-slideshow {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }

    /* MVオーバーレイテキストのモバイル対応 */
    .hero-slide-overlay {
        padding: 2rem 1rem !important;
    }

    .hero-slide-overlay h2 {
        font-size: 1.8rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.8rem !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.4) !important;
        white-space: normal !important;
    }

    .hero-slide-overlay p {
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.4) !important;
        white-space: normal !important;
    }

    .hero-slide-overlay div {
        width: 50px !important;
        height: 2px !important;
        margin: 1rem auto !important;
    }

    /* フォントサイズ調整 */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        letter-spacing: 0.02em;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    p {
        line-height: 1.6;
    }

    .about-text p,
    .strength-item p,
    .item-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section-title-en,
    .item-tag,
    .phone-hours {
        font-size: 0.75rem;
    }

    /* スペーシング調整 */
    .about,
    .strengths,
    .vertical-text-section,
    .services-overview,
    .company-info,
    .contact-section {
        padding: 3rem 1rem;
    }

    .about-container,
    .strengths-container,
    .services-container,
    .company-container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 1rem;
    }

    /* レイアウト変換 */
    .about-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin: 2rem 0 0;
        padding: 0;
    }

    .about-message,
    .about-csr {
        width: 100%;
    }

    .about-text {
        order: 2;
        padding: 0 1rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-image {
        order: 1;
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
    }

    /* About Usセクションのモバイル調整 */
    .about-message h3,
    .about-csr h3 {
        text-align: center !important;
    }

    /* CEO署名をモバイルで中央揃え */
    .ceo-signature {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    /* 縦書きテキストセクション - カルーセル対応 */
    .vertical-text-section {
        padding: 3rem 0;
        overflow-x: hidden;
        overflow-y: visible;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }

    .vertical-text-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: visible;
        margin: 0;
        padding: 30px 0;
        width: 100%;
        max-width: 100%;
    }

    .vertical-text-container {
        display: flex;
        flex-direction: row;
        gap: 15px;
        transition: transform 0.3s ease;
        padding: 0;
        perspective: none;
        max-width: none;
        justify-content: flex-start;
        will-change: transform;
    }

    /* カルーセルアイテム */
    .vertical-text-item {
        flex: 0 0 85vw;
        transform: none !important;
        margin: 0 !important;
        max-width: 350px;
        min-height: 450px;
        padding: 2.5rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        opacity: 1;
        transition: opacity 0.3s ease, box-shadow 0.3s ease;
        z-index: auto;
    }

    .vertical-text-item:active {
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    /* 縦書きデザインは維持 */
    .vertical-text-main {
        writing-mode: vertical-rl;
        height: 350px;
        font-size: 1.3rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .vertical-text-description {
        writing-mode: vertical-rl;
        height: 400px;
        padding-right: 1.5rem;
        padding-bottom: 0;
    }

    .vertical-text-description p {
        font-size: 0.95rem;
        line-height: 1.7;
        letter-spacing: 0.05em;
    }

    .vertical-divider {
        display: block;
        width: 1px;
        height: 200px;
        background: var(--primary-color);
        opacity: 0.2;
        margin: 0 1rem;
    }

    /* ナビゲーションボタン */
    .carousel-nav {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary-color);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-nav.prev {
        left: -15px;
    }

    .carousel-nav.next {
        right: -15px;
    }

    .carousel-nav i {
        font-size: 1.2rem;
    }

    /* ドットインジケーター */
    .carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 1rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--bg-gray);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }

    /* モバイルメニュー */
    .mobile-menu {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    /* スクロールバナー */
    .scroll-banner-container {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        padding: 1.5rem 0;
    }

    .scroll-item {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
        margin: 0 0.5rem;
    }

    .scroll-item i {
        font-size: 0.95rem;
    }

    .scroll-left .scroll-content {
        animation-duration: 40s;
    }

    .scroll-right .scroll-content {
        animation-duration: 45s;
    }

    /* サービスセクション */
    .service-item {
        grid-template-columns: 1fr;
        padding: 0;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .service-content {
        padding: 2rem 1.5rem;
        order: 2;
    }

    .service-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
        border-radius: 10px 10px 0 0;
        order: 1;
    }

    .item-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
        left: 1.5rem;
    }

    .item-title {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    /* 会社情報 - モバイル版（タブレット版と同様のスタイル） */
    .company-card {
        padding: 0 !important;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .company-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 2.5rem;
        padding: 2rem 1rem;
    }

    .company-table,
    .company-map {
        width: 100% !important;
    }

    /* テーブルを縦並びに変更 */
    .company-table table,
    .company-table tbody,
    .company-table tr {
        display: block;
        width: 100%;
    }

    .company-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 0.75rem;
        border: none;
        text-align: left;
    }

    .company-table th {
        background: var(--primary-color) !important;
        color: white !important;
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0;
    }

    .company-table td {
        background: white;
        color: var(--text-dark);
        font-size: 0.95rem;
        padding-top: 0.5rem;
    }

    .company-map h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .map-container {
        height: 320px;
    }

    .access-info {
        padding: 1rem;
    }

    .access-info h4 {
        font-size: 1.1rem;
    }

    .access-info li {
        font-size: 0.9rem;
    }

    /* お問い合わせ */
    .contact-content h2 {
        font-size: 1.75rem;
    }

    .contact-content p {
        font-size: 1rem;
    }

    .phone-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* 超小型デバイス対応 (max-width: 375px) */
@media (max-width: 375px) {
    /* ヒーローセクション - 高さ300pxを維持 */
    .hero {
        height: 300px !important;
        min-height: 300px !important;
    }

    .hero-wrapper {
        height: 300px !important;
        min-height: 300px !important;
        padding: 1.5rem 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-slide-overlay h2 {
        font-size: 1.5rem !important;
    }

    .hero-slide-overlay p {
        font-size: 0.85rem !important;
    }

    .vertical-text-item {
        min-height: 400px;
        padding: 2rem 1rem;
    }

    .vertical-text-main {
        height: 300px;
        font-size: 1.1rem;
    }

    .vertical-text-description {
        height: 350px;
    }

    .phone-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
    .service-item:hover {
        transform: none;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
    }

    .vertical-text-item:hover {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .strength-link:hover {
        gap: 0.5rem;
    }

    .item-link:hover {
        gap: 0.5rem;
    }
}

/* ==========================================================================
   電話番号セクション
   ========================================================================== */

.cta-phone {
    margin: 3rem 0;
    text-align: center;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.phone-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.phone-hours {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--white);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* ==========================================================================
   ギャラリーセクション
   ========================================================================== */

.gallery-wrapper {
    width: 100%;
    margin: 3rem 0 2rem;
    overflow: hidden;
}

.gallery-swiper {
    width: 100%;
}

.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.gallery-swiper .swiper-slide {
    width: 400px;
    height: 300px;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .phone-link {
        font-size: 1.5rem;
        padding: 1.2rem 2rem;
    }

    .gallery-swiper .swiper-slide {
        width: 300px;
        height: 225px;
    }
}