/**
 * 高須製作所ウェブサイト - メインスタイルシート
 */

/* ===== 変数定義 ===== */
:root {
    /* カラーパレット */
    --color-primary: #263142; /* メインカラー: 黒 */
    --color-secondary: #E36F1E; /* アクセントカラー: オレンジ */
    --color-bg-light: rgba(243, 240, 233, 1); /* 背景色(明): ベージュ系 */
    --color-bg-dark: #2A3B4C; /* 背景色(暗): 濃いグレー */
    --color-text-primary: #263142; /* 主要テキスト: 黒に近いグレー */
    --color-text-secondary: #666666; /* 副次テキスト: 中間グレー */
    --color-text-light: #FFFFFF; /* 明るい背景上のテキスト: 白 */
    --color-border: rgba(205, 202, 197, 1); /* ボーダー色: 薄いグレーベージュ */
    
    /* セカンダリカラーパレット */
    --mh--color--secondary-100: rgba(249, 248, 247, 1);
    --mh--color--secondary-200: rgba(243, 240, 233, 1);
    --mh--color--secondary-300: rgba(237, 232, 221, 1);
    --mh--color--secondary-400: rgba(214, 198, 193, 1);
    --mh--color--secondary-500: rgba(154, 141, 130, 1);
    
    /* フォント設定 */
    --font-primary: 'Noto Sans JP', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
    --font-heading: 'Noto Sans JP', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', sans-serif;
    --font-english: 'Poppins', sans-serif;
    
    /* サイズ設定 */
    --container-width: 1300px;
    --section-spacing: 8rem;
    --element-spacing: 2rem;
    
    /* アニメーション設定 */
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-out;
}

/* ===== ベーススタイル ===== */
body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    font-feature-settings: "palt";
    line-height: 1.8;
    color: var(--color-text-primary);
    background-color: var(--mh--color--secondary-200);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 共通コンポーネント ===== */
.section-title {
    font-size: 3.2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--color-primary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background-color: var(--color-secondary);
}

/* ===== ボタンスタイル ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 4rem;
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.6rem;
    border: 1px solid rgba(15, 76, 129, 0.5);
    border-radius: 5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    min-width: 24rem;
    text-decoration: none;
}

.btn::after {
    content: "→";
    position: relative;
    display: inline-block;
    margin-left: 1.2rem;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.8rem;
    line-height: 1;
}

.btn:hover {
    background-color: #0F4C81;
    color: var(--color-text-light);
    border-color: #0F4C81;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
}

.btn:hover::after {
    transform: translateX(0.5rem);
}

.btn-container {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.center {
    text-align: center;
}

.center .btn {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
}

/* ===== ページタイトル ===== */
.page-title {
    background-color: var(--mh--color--secondary-200);
    color: var(--color-text-primary);
    padding: 12rem 0 0;
    text-align: left;
    position: relative;
    overflow: hidden; /* はみ出たアニメーションを隠す */
}

.page-title h1 {
    font-size: 4.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-top: 6.5rem;
}

.page-title .en-title {
    font-size: 10rem;
    font-weight: 100;
    color: #8a8b8d;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    font-family: var(--font-english);
    opacity: 0;
    transform: translateY(20px); /* バウンシングを防ぐため30pxから20pxに変更 */
    transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.page-title .jp-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(20px); /* バウンシングを防ぐため30pxから20pxに変更 */
    transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
                transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.2s;
}

.page-title .en-title.animate,
.page-title .jp-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.page-title .container {
    padding: 0 4rem;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
    margin-top: 3rem;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background-color: #ffffff; /* 白背景に変更 */
}

.breadcrumb ul {
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 4rem;
}

.breadcrumb ul li:not(:last-child)::after {
    content: "›";
    margin-left: 1rem;
}

.breadcrumb a {
    color: var(--color-text-primary);
}

.breadcrumb a:hover {
    color: var(--color-text-secondary);
}

/* ===== ヘッダー ===== */
.header {
    background-color: transparent; /* トップページのヘッダーを透明に */
    border-bottom: none; /* ボーダーを削除 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.header.scrolled {
    background-color: #ffffff; /* スクロール後は白背景 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* スクロール後はボーダー表示 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--color-primary);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 5rem;
    width: auto;
    margin-right: 1.2rem;
}

.logo-text {
    font-size: 1.8rem;
}

.header-info {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* トップページヘッダーのナビゲーションリンク色を白に */
.home-page .nav-item a,
.recruit-page .nav-item a {
    color: var(--color-text-light);
}

.home-page .nav-item a.active,
.recruit-page .nav-item a.active {
    color: var(--color-secondary);
}

/* スクロール後は黒に戻す */
.home-page .header.scrolled .nav-item a,
.recruit-page .header.scrolled .nav-item a {
    color: var(--color-primary);
}

.home-page .header.scrolled .nav-item a.active,
.recruit-page .header.scrolled .nav-item a.active {
    color: var(--color-secondary);
}

/* トップページのハンバーガーメニュー色を白に */
.home-page .hamburger-menu span,
.recruit-page .hamburger-menu span {
    background-color: var(--color-text-light);
}

/* スクロール後は黒に戻す */
.home-page .header.scrolled .hamburger-menu span,
.recruit-page .header.scrolled .hamburger-menu span {
    background-color: var(--color-primary);
}

/* トップページのロゴテキスト色を白に */
.home-page .logo-text,
.recruit-page .logo-text {
    color: var(--color-text-light);
}

/* スクロール後は黒に戻す */
.home-page .header.scrolled .logo-text,
.recruit-page .header.scrolled .logo-text {
    color: var(--color-primary);
}

/* ===== ハンバーガーメニュー ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 2.8rem;
    height: 2.2rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.2rem;
    margin-right: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 0.25rem;
    background-color: var(--color-primary);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* ===== グローバルナビゲーション ===== */
.global-nav {
    display: flex;
}

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

.nav-item a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-item a.active {
    color: var(--color-secondary);
}

.nav-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

/* ナビゲーションのトランジション効果 */
.nav-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* モバイル用ナビゲーション */
@media (max-width: 767px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 2rem;
    }
    
    .logo-image {
        height: 4.5rem; /* モバイルでは少し小さめに */
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .global-nav {
        position: fixed;
        top: 6rem;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
        display: none;
        z-index: 1000;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .global-nav.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-item a {
        display: block;
        padding: 1.5rem 2rem;
        transition: background-color 0.2s ease;
    }
    
    .nav-item a:hover {
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .nav-item a.active {
        border-left: 3px solid var(--color-secondary);
        padding-left: calc(2rem - 3px);
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .nav-item a::after {
        display: none;
    }
    
    /* ハンバーガーメニュー展開時の文字色修正 */
    .home-page .global-nav.active .nav-item a,
    .recruit-page .global-nav.active .nav-item a {
        color: var(--color-text-primary) !important; /* メニュー展開時は黒色に */
    }
    
    .home-page .global-nav.active .nav-item a.active,
    .recruit-page .global-nav.active .nav-item a.active {
        color: var(--color-secondary) !important; /* アクティブなリンクはアクセントカラーに */
    }
    
    /* メニューの背景を必ず白に */
    .home-page .global-nav.active,
    .recruit-page .global-nav.active {
        background-color: white !important;
    }
    
    /* ハンバーガーメニュー展開時のハンバーガーアイコンの色 */
    .home-page .hamburger-menu.active span,
    .recruit-page .hamburger-menu.active span {
        background-color: var(--color-primary) !important;
    }
    
    /* その他のモバイル用スタイル */
    .hero-container {
        flex-direction: column;
        margin-top: 8rem;
    }
    
    .hero-image {
        flex: 0 0 100%;
        margin-bottom: 3rem;
    }
    
    .hero-content {
        flex: 0 0 100%;
    }
    
    .hero-title {
        font-size: 3.6rem;
    }
    
    .hero-subtitle {
        font-size: 3.6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    animation: slideAnimation 24s infinite;
    overflow: hidden;
}

.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomAnimation 24s infinite;
    will-change: transform;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* オーバーレイで暗くする */
    z-index: 2;
}

.hero-slide.slide1 {
    animation-delay: 0s;
}

.hero-slide.slide2 {
    animation-delay: 6s;
}

.hero-slide.slide3 {
    animation-delay: 12s;
}

.hero-slide.slide4 {
    animation-delay: 18s;
}

.hero-slide.slide1 img {
    animation-delay: 0s;
}

.hero-slide.slide2 img {
    animation-delay: 6s;
}

.hero-slide.slide3 img {
    animation-delay: 12s;
}

.hero-slide.slide4 img {
    animation-delay: 18s;
}

@keyframes slideAnimation {
    0% { opacity: 0; }
    4% { opacity: 1; }
    23% { opacity: 1; }
    27% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes zoomAnimation {
    0% { transform: scale(1); }
    4% { transform: scale(1); }
    23% { transform: scale(1.1); }
    27% { transform: scale(1.1); }
    31% { transform: scale(1); }
    100% { transform: scale(1); }
}

.hero-content {
    z-index: 10; /* 数値を上げて確実にコンテンツが前面に表示されるようにする */
    text-align: center;
    color: var(--color-text-light);
    padding: 0 2rem;
    max-width: var(--container-width);
    position: relative;
    animation: fadeInContent 1.5s ease-out;
}

@keyframes fadeInContent {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* メインの.hero-title定義 */
.hero-title {
    font-size: 7.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.mobile-break {
    display: none;
}

.hero-subtitle {
    font-size: 3.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* ===== News Section ===== */
.news-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-100);
}

.news-list {
    max-width: 80rem;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-date {
    flex: 0 0 15rem;
    font-weight: 500;
    color: var(--color-primary);
}

.news-content {
    flex: 1;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-200);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.6) 0%, rgba(29, 45, 68, 0.4) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image:hover::before {
    opacity: 0.5;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.strength-list {
    margin-top: 3rem;
}

.strength-item {
    margin-bottom: 2rem;
    background-color: var(--color-text-light);
    padding: 2rem;
    border-radius: 0.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.strength-item h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== Products Section ===== */
.products-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-300);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-item {
    background-color: var(--color-bg-light);
    border-radius: 0.4rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 20rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.8rem;
    font-weight: 500;
    padding: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

/* ===== Facility Section ===== */
.facility-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-100);
}

.facility-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.facility-image {
    flex: 0 0 45%;
    height: 30rem;
    max-height: 30rem;
}

/* スライダーとして使用する場合のスタイル */
.facility-image.image-slider {
    position: relative;
    overflow: hidden;
    background-color: #f3f0e9;
}

.facility-image.image-slider .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f3f0e9;
}

.facility-image.image-slider .slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.facility-image.image-slider .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f3f0e9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    max-width: 100%;
}

.facility-image.image-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f3f0e9;
    max-height: 100%;
}

/* NCスタッド画像に特別なスタイルを適用 */
.slide img[alt="NCスタッド"] {
    max-height: 85%;
    width: auto;
    margin: 0 auto;
    max-width: 90%;
}

.facility-image.image-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.facility-image.image-slider .slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.facility-image.image-slider .slider-prev {
    left: 1rem;
}

.facility-image.image-slider .slider-next {
    right: 1rem;
}

.facility-image.image-slider .slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 5;
}

.facility-image.image-slider .dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.facility-image.image-slider .dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.facility-image.image-slider .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.facility-text {
    flex: 1;
}

.facility-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== Recruit Section ===== */
.recruit-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-200);
}

.recruit-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.recruit-message {
    flex: 1;
}

.recruit-message h3 {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.recruit-message p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.recruit-features {
    margin: 2rem 0;
}

.recruit-features li {
    margin-bottom: 1rem;
    font-weight: 500;
}

.recruit-image {
    flex: 0 0 45%;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: var(--section-spacing) 0;
    background-color: var(--mh--color--secondary-300);
}

.contact-lead {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.8rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 3rem 3.5rem;
    background-color: var(--color-text-light);
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 25rem;
    max-width: 35rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.contact-icon {
    flex: 0 0 6rem;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    padding: 1.5rem;
    margin-right: 2rem;
}

.contact-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.contact-details {
    flex: 1;
}

.contact-item h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.contact-value {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item .note {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .contact-value {
        font-size: 1.6rem;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-address {
    font-size: 1.4rem;
    line-height: 1.8;
}

.footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 4rem;
}

.footer-nav-item a {
    font-size: 1.4rem;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== アニメーション用スタイル ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
    animation: none !important;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
    animation: none !important;
}

/* ===== Responsive Styles ===== */
/* デスクトップ用スタイル */
@media (max-width: 1024px) {
    html {
        font-size: 9px;
    }
    
    .about-content,
    .facility-content,
    .recruit-content {
        flex-direction: column;
    }
    
    .about-image,
    .facility-image,
    .recruit-image {
        flex: 0 0 100%;
        margin-bottom: 3rem;
    }
    
    .facility-image.image-slider {
        height: 30rem;
    }
    
    .about-text,
    .facility-text,
    .recruit-message {
        flex: 0 0 100%;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 40rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 4.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

/* モバイル用スマートフォン */
@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .page-title h1 {
        font-size: 2.8rem;
    }
    
    .page-title .en-title {
        font-size: 8rem;
    }
    
    .page-title .jp-title {
        font-size: 2rem;
    }
    
    .facility-image.image-slider {
        height: 30rem;
        max-height: 30rem;
    }
    
    /* 小型スマホでのNCスタッド画像のさらなる調整 */
    .slide img[alt="NCスタッド"] {
        max-width: 55%;
    }
    
    .logo-image {
        height: 4rem; /* さらに小さい画面では小さめに */
    }
    
    .logo-text {
        font-size: 1.6rem; /* テキストサイズも調整 */
        font-weight: 500;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-bottom: 0.5rem;
        flex: none;
        width: auto;
    }
    
    .footer-nav-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 0 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .mobile-break {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .facility-image.image-slider {
        height: 30rem;
        max-height: 30rem;
    }
    
    .facility-image.image-slider .slider-arrow {
        width: 3rem;
        height: 3rem;
    }
    
    /* スライダーのズーム効果を少し抑える */
    @keyframes zoomAnimation {
        0% { transform: scale(1); }
        3% { transform: scale(1); }
        25% { transform: scale(1.05); }
        28% { transform: scale(1.05); }
        31% { transform: scale(1); }
        100% { transform: scale(1); }
    }
} 