/* 基本設定とリセット */
:root {
    --primary-color: #936E66;
    --secondary-color: #333;
    --light-gray: #f8f8f8;
    --text-color: #333;
    --white: #fff;
    --yellow: #FEA923;
    --beige: #EAD0C0;
    --lavbl: #faf0f0b4;
    --gradient: linear-gradient(45deg, #2af598 0%, #009efd 100%);
    --border-color: #e0e0e0;
    --font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    
    /* レスポンシブ用の変数 */
    --container-padding: 20px;
    --section-padding: 100px 0;
    --hero-height: 90vh;
    --hero-min-height: 400px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* ベースフォントサイズを明確に設定 */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background-image: url(sozai/white_00028.jpg);
    background-color: rgba(255,255,255,0.68);
    background-blend-mode: lighten;
    overflow-x: hidden; /* 横スクロールを防止 */
}

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

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

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* コンテナ設定 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}



.container H2{
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: clamp(40px, 8vw, 60px);
    position: relative;
    padding-bottom: 15px;

}

.container h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.container_H {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ヘッダー */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.header-logo {
    position: relative;
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    width: clamp(40px, 8vw, 60px);
    height: auto;
    opacity: 1;
    z-index: 10;
}

.header-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

/* ナビゲーション */
.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 3vw, 30px);
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), padding 0.5s ease;
}

.mobile-nav.active {
    display: block;
    max-height: 500px;
    padding: 20px 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--secondary-color);
    font-size: 1.1rem;
    padding: 10px;
    display: block;
}

.mobile-nav a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    min-height: var(--hero-min-height);
    overflow: hidden;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: clamp(50px, 10vw, 100px);
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: clamp(50%, 15vw + 50%, 65%);
    height: 80%;
    position: absolute;
    top: 20%;
    right: clamp(5%, 2vw + 8%, 10%);
    border-radius: 1%;
    -webkit-mask-image: radial-gradient(rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 73%);
    mask-image: radial-gradient(rgb(255, 255, 255) 10%, rgba(255, 255, 255, 0) 73%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    border-radius: 5%;
    opacity: 1;
}

/* フェードアニメーション */
.fade {
    animation-name: fade;
    animation-duration: 3.0s;
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

/* ドット */
.dots-container {
    text-align: center;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ヒーローテキスト */
.hero-text {
    position: absolute;
    width: clamp(300px, 50vw, 60%);
    height: 75%;
    top: 15%;
    left: 5%;
    z-index: 5;
    text-align: center;
    color: rgb(51, 51, 51);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 5px;
    animation: slide-up 1s ease-out forwards;
    opacity: 0;
}

@keyframes slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-text h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
}

.cta-button {
    background-image: linear-gradient(to right, #c5cac5 0%, #c4ccc4 0%, #b771d8 0%, #cf7cca 33%, #e9699e 66%, #ec73a5 100%);
    color: var(--white);
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 30px);
    border-radius: 25px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(14, 0, 145, 0.321);
}

.cta-button:hover {
    background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14, 0, 145, 0.521);
}

/* コンテンツセクション */
.content-section {
    padding: var(--section-padding);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: clamp(40px, 8vw, 60px);
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.bg-light {
    background-image: linear-gradient(135deg, rgba(253,252,251,0.0) 0%, rgba(226,209,195,0.0) 100%);
    position: relative;
    width: clamp(90%, 10vw + 70%, 80%);
    margin: 0 auto;
    border-radius: 30px;
}

/* 理念セクション */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 30px);
    text-align: center;
}

.philosophy-item {
    padding: clamp(20px, 4vw, 30px);
    border-radius: 50%;
    border-color: rgba(255, 202, 142, 0.367);
    box-shadow: 0 5px 15px rgba(75, 60, 60, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 222, 184, 0.167);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon-feature {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #F8BAA3;
    margin-bottom: 20px;
}

.philosophy-item h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.philosophy-item p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

/* サービス内容 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-bottom: 50px;
}

.service-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-item img {
    width: 100%;
    height: clamp(150px, 20vw, 180px);
    object-fit: cover;
    background-color: var(--light-gray);
}

.service-item h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.service-item p {
    padding: 0 clamp(15px, 3vw, 20px) 20px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* 自己紹介セクション */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 5vw, 40px);
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 auto;
    text-align: center;
    min-width: 250px;
}

.about-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
}

/* バナーセクション */
.banner_0-grid, .banner_1-section {
    margin: 1% auto;
    padding: 3%; 
}

.banner_0-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 4vw, 40px);
    text-align: center;
}

.banner_0-item, .AI-match-image {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0,0,0,0.0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner_0-item:hover, .AI-match-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.banner_0-item img, .AI-match-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.qupon_plan-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-bottom:20px;
    background-color: rgba(0,0,0,0.0);

}

.qupon_plan-item {
    border: 1px solid rgba(0,0,0,0.1);
    height: 100%;
    border-radius: 1px;
    overflow: hidden; /* �摜�̂͂ݏo���h�~ */
    text-align: center;
    background-color: rgba(0,0,0,0.0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .qupon_plan-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .qupon_plan-item img {
        width: 100%;
        height: 100%; /* �摜�̍����𓝈� */
        object-fit: cover; /* contain�ɕύX���ăx�N�g���摜�S�̕\�� */
        padding: 0px; /* �����ɗ]�� */
        background-color: rgba(255, 255, 255, 0.8); /* �w�i�F */
    }




/* タブセクション */
.tabs {
    margin: clamp(30px, 6vw, 60px) 0;
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(167, 167, 167, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.tabs.tabs--type02 .tabs__list {
    display: flex;
    width: 100%;
}

.tabs.tabs--type02 .tabs__item {
    flex: 1;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 15px);
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: bold;
    background-color: #ffffffe1;
    color: #3f002f;
    border-bottom: 2px solid rgba(41, 41, 41, 0.712);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs.tabs--type02 .tabs__item:hover {
    background-color: #dddddd;
    transform: translateY(-2px);
}

.tabs.tabs--type02 .tabs__content {
    padding: clamp(20px, 4vw, 40px);
    background-color: #ffffff54;
}

/* テーブルスタイル */
.design14, .design10 {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.design14 th, .design14 td {
    padding: clamp(8px, 2vw, 12px);
    text-align: center;
    border: 1px solid #ddd;
}

.design10 th {
    padding: clamp(8px, 2vw, 15px);
    background-color: #f5f5f5;
    border-bottom: 3px solid #778ca3;
    color: #778ca3;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.design10 td {
    padding: clamp(8px, 2vw, 15px);
    border-bottom: 1px solid #778ca3;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #F58B89;
}

/* コンタクトセクション */
.contact-form {
    max-width: 700px;
    margin: 0 auto 50px;
    background-color: var(--light-gray);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 12px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.submit-button {
    width: 100%;
    padding: clamp(12px, 3vw, 15px);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* フッター */
.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: clamp(30px, 6vw, 50px) 0 clamp(20px, 4vw, 30px);
    margin-top: clamp(50px, 8vw, 80px);
}

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

.footer-info {
    margin-bottom: 30px;
}

.footer-info p:first-child {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: bold;
    color: var(--white);
    margin-bottom: 15px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
}

.social-links a {
    color: #ccc;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin: 0 clamp(10px, 2vw, 15px);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 30px);
    margin-bottom: 20px;
}

.footer-nav a {
    color: #ccc;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    white-space: nowrap;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: #aaa;
    margin-top: 20px;
}


.section-description {
    text-align: center;

}

.contact-info{
    text-align: center;

}

.breadcrumb{
    text-align: center;


}

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

/* タブレット (960px以下) */
@media (max-width: 960px) {
    :root {
        --container-padding: 15px;
        --section-padding: 60px 0;
        --hero-height: 70vh;
        --hero-min-height: 300px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hero-text {
        width: 85%;
        height: auto;
        top: 20%;
        /*left: 50%;*/
        /*transform: translateX(-50%);*/
        padding: 20px;
    }
    
    .slide {
        width: 75%;
        height: 60%;
        top: 30%;
        right: 12.5%;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 30px;
        min-width: auto;
        display: block;
    }
    
    .about-text {
        text-align: left;
        min-width: auto;
    }
    
    .philosophy-grid,
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tabs.tabs--type02 .tabs__item {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        padding: 8px;
        min-height: 50px;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* モバイル (428px以下) */
@media (max-width: 428px) {
    :root {
        --container-padding: 10px;
        --section-padding: 40px 0;
        --hero-height: 60vh;
        --hero-min-height: 280px;
    }
    
    .header-container {
        height: 60px;
    }
    
    .hero-text {
        width: 90%;
        padding: 15px;
        top: 25%;
    }
    
    .slide {
        width: 80%;
        height: 50%;
        top: 35%;
        right: 10%;
    }
    
    .philosophy-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .philosophy-item {
        aspect-ratio: auto;
        border-radius: 15px;
        padding: 20px;
    }
    
    .tabs.tabs--type02 .tabs__list {
        flex-direction: column;
    }
    
    .tabs.tabs--type02 .tabs__item {
        min-height: 45px;
    }
    
    .design14,
    .design10 {
        font-size: 0.8rem;
    }
    
    .banner_0-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
        display: block;
        min-width: auto;

    }
    
    .contact-form {
        padding: 20px 15px;
    }
}

/* 超小画面 (320px以下) */
@media (max-width: 320px) {
    :root {
        --container-padding: 8px;
        --section-padding: 30px 0;
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .philosophy-item,
    .service-item {
        min-width: 280px;
    }
}

/* 高解像度ディスプレイ対応 */
@media (min-width: 1400px) {
    :root {
        --container-padding: 30px;
        --section-padding: 120px 0;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .content-section h2 {
        font-size: 2.5rem;
    }
}

/* プリント用スタイル */
@media print {
    .header,
    .hero,
    .footer,
    .cta-button,
    .hamburger-menu,
    .mobile-nav {
        display: none;
    }
    
    .content-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ダークモード対応（オプション） */
/* @media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #a67c73;
        --secondary-color: #e0e0e0;
        --text-color: #e0e0e0;
        --light-gray: #2a2a2a;
        --border-color: #555;
    }
    
    body {
        background-color: #1a1a1a;
        color: var(--text-color);
    }
    
    .header {
        background-color: #2a2a2a;
    }
    
    .service-item,
    .philosophy-item {
        background-color: rgba(40, 40, 40, 0.8);
        border-color: #555;
    }
    
    .contact-form {
        background-color: #2a2a2a;
        border-color: #555;
    }
    
    .tabs {
        background-color: #2a2a2a;
    }
    
    .tabs.tabs--type02 .tabs__item {
        background-color: #333;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .tabs.tabs--type02 .tabs__item:hover {
        background-color: #444;
    }
} */

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-text {
        animation: none;
        opacity: 1;
    }
    
    .content-section {
        opacity: 1;
        transform: none;
    }
}

/* フォーカス表示の改善 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ホバー効果をタッチデバイスでは無効化 */
@media (hover: none) {
    .service-item:hover,
    .philosophy-item:hover,
    .banner_0-item:hover,
    .AI-match-image:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .cta-button:hover,
    .submit-button:hover {
        transform: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
}

/* 追加のユーティリティクラス */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* 改善されたグリッドレイアウト */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-column-width, 280px), 1fr));
    gap: var(--grid-gap, 20px);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--min-column-width, 280px), 1fr));
    gap: var(--grid-gap, 20px);
}

/* 改善されたコンテナクエリ対応（将来的な対応） */
@supports (container-type: inline-size) {
    .service-grid {
        container-type: inline-size;
    }
    
    @container (max-width: 600px) {
        .service-item {
            font-size: 0.9rem;
        }
        
        .service-item img {
            height: 140px;
        }
    }
}

/* パフォーマンス最適化 */
.service-item img,
.slide img,
.about-image img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* スクロールスナップ対応 */
.slideshow-container {
    scroll-snap-type: x mandatory;
}

.slide {
    scroll-snap-align: center;
}

/* 印刷用の追加スタイル */
@media print {
    .philosophy-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-image {
        flex: 0 0 200px;
    }
    
    .tabs__content {
        display: block !important;
        height: auto !important;
        padding: 10px !important;
    }
    
    .tabs__list {
        display: none;
    }
}