/* --- 基本 --- */
:root {
    --primary-color: #007bff; 
    --secondary-color: #6c757d; 
    --light-bg: #f8f9fa;   
    --text-color: #333;  
    --heading-font: 'Poppins', sans-serif; 
    --body-font: 'Noto Sans JP', sans-serif; 
    --icon-hover-color: #0056b3; /* ホバー時配色  */
}

/* --- 全体スタイル --- */
body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

img {
    max-width: 100%; 
    height: auto;    /* アスペクト比 */
    vertical-align: middle; 
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700; 
    margin-top: 0;    
    line-height: 1.3; 
}

h2 {
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    position: relative; 
    padding-bottom: 15px; 
}

h2::after {
    content: ''; /* 触らない! */
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%); 
    width: 50px; 
    height: 4px; 
    background-color: var(--primary-color); 
    transition: width 0.4s ease-out;
}

/* --- AOS連携 --- */
section[data-aos].aos-animate h2::after {
    width: 100px;
}

h2 .highlight {
    color: var(--primary-color); 
    font-size: 3.5rem; 
    vertical-align: -5px; 
    margin: 0 5px;  
}

/* --- 共通 --- */
.section-padding {
    padding: 80px 40px;
}

.bg-light {
    background-color: var(--light-bg); 
}

.text-center {
    text-align: center; 
}

/* --- ヘッダー --- */
.site-header {
    display: flex; /* Flexbox*/
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 20px; 
    background-color: #f8f8f8; 
    border-bottom: 1px solid #eee; 
    position: sticky; 
    top: 0;  
    z-index: 1000; 
}

.site-header .logo {
    height: 40px;      
    max-width: 200px;  
    width: auto;        /* アスペクト比自動 */
    object-fit: contain;
    display: block;     
    margin-left: 0;    
    flex-shrink: 0; 
}

.header-links a {
    text-decoration: none; 
    font-size: 10px;    
    color: #333;     
}

.header-links a:hover {
    color: #007bff;    
    text-decoration: underline; 
}

/* --- TOP --- */
.hero {
    position: relative; 
    height: 100vh;   
    min-height: 500px; 
    display: flex;
    align-items: center;  
    justify-content: center;
    text-align: center;     
    overflow: hidden;     
    color: white;   
}

.hero-video {
    position: absolute; 
    top: 50%;
    left: 50%;
    min-width: 100%;  
    min-height: 100%;   
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%); 
    z-index: -1;     
    object-fit: cover;  /* アスペクト */
}

.hero::before { /* オーバーレイ */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 0; 
}

.hero-content {
    position: relative; 
    z-index: 1;
    max-width: 800px;  
    padding: 20px;     
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); 
}

/* --- スクロールダウンアニメーション --- */
.scroll-down {
    position: absolute;
    bottom: 0px; 
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50px; 
    cursor: pointer;
}
.scroll-down span { 
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    animation: scroll-animation 2s infinite; /* 繰り返し */
}
.scroll-down span::before { 
    content: '↓';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: white;
    white-space: nowrap; /* 折り返しNG */
}

/* --- キーフレーム --- */
@keyframes scroll-animation {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.5; } 
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* --- セクション --- */
.feature-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; /
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.feature-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); 
}

.feature-image-wrapper {
    margin-bottom: 25px;
    overflow: hidden; 
    border-radius: 8px;
    aspect-ratio: 16 / 10; /* アスペクト固定 */
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}
.feature-item:hover .feature-image-wrapper img {
    transform: scale(1.08); /* ホバー拡大 */
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- 傾きマウス追従 --- */
.gimmick-tilt {
    perspective: 1000px; /* 3D奥行 */
}
.gimmick-tilt img {
    transform-style: preserve-3d; /* 有効 */
    transition: transform 0.1s linear; 
}

/* --- サービス --- */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 25px;
    margin-bottom: 40px;
}
.service-gallery figure {
    margin: 0;
    position: relative; /* 固定 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.service-gallery img {
    display: block;
    width: 100%;
    height: 200px; 
    object-fit: cover;
    transition: transform 0.3s ease;
}
.service-gallery figure:hover img {
    transform: scale(1.1); /* ホバー拡大 */
}
.service-gallery figcaption { /* 画像キャプション */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); 
    color: white;
    padding: 20px 15px 10px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    opacity: 0; /* 通常非表示 */
    transition: opacity 0.3s ease; /* 表示/非表示をアニメーション */
}
.service-gallery figure:hover figcaption {
    opacity: 1; /* ホバー時に表示 */
}

/* --- CTAボタン  --- */
.cta-button-wrapper {
    text-align: center;
    margin-top: 40px;
}
.cta-button {
    display: inline-block; 
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* 矢印配置 */
    overflow: hidden;
}
.cta-button:hover {
    background-color: #0056b3; /* ホバー背色 */
    transform: translateY(-3px); /* ホバー上移動 */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4); /* ホバー影 */
}
.cta-button .arrow-icon { /* ボタン内矢印 */
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.cta-button:hover .arrow-icon {
    transform: translateX(5px); /* ホバー右移動 */
}

/* --- ご利用の流れ --- */
.flow-steps {
    display: flex;
    justify-content: space-around; /* 均等配置 */
    align-items: flex-start; 
    flex-wrap: wrap; /* 折り返し許可 */
    gap: 20px;
    margin-top: 50px;
}
.flow-step {
    text-align: center;
    flex-basis: 180px; 
    flex-grow: 1;  
}
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px; 
    background-color: var(--light-bg);
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* ホバー用画像 */
    transition: background-color 0.3s ease; /* ホバー背景色変化 */
}

/* --- Font Awesome(アイコン) --- */
.step-icon i {
    font-size: 36px; 
    color: var(--primary-color); 
    transition: color 0.3s ease; /* ホバー色変化 */
}

/* --- ホバーアイコン背景色 */
.flow-step:hover .step-icon {
    background-color: var(--primary-color); 
}

.flow-step:hover .step-icon i {
    color: white; 
}


/* 削除
.step-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.step-icon .icon-normal {
    opacity: 1; 
}
.step-icon .icon-hover {
    opacity: 0; 
}
.step-icon:hover .icon-normal {
    opacity: 0; 
}
.step-icon:hover .icon-hover {
    opacity: 1; 
}
*/

.step-number {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.step-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}
.step-desc {
    font-size: 0.9rem;
    color: #555;
}
.flow-arrow { 
    font-size: 2rem;
    color: var(--secondary-color);
    align-self: center; 
    margin: 0 10px;
    padding-top: 40px; 
}

/* --- 会社概要セクション --- */
.company-info-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.company-info {
    flex: 1; 
    min-width: 300px; 
}
.map-container {
    flex: 1;
    min-width: 300px;
    min-height: 350px; 
}
.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%; 
}
.company table {
    width: 100%;
    border-collapse: collapse; 
    margin-bottom: 20px;
}
.company th, .company td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top; 
}
.company th {
    background-color: #f2f2f2;
    font-weight: bold;
    width: 120px; 
}

/* --- フッター --- */
.site-footer-bottom {
    background-color: #343a40;
    color: #ccc;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 20px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

/* --- フッター追加リンク --- */
.footer-internal-links {
    flex-basis: 100%;    
    text-align: left;   
    order: -1;  
}
.footer-internal-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 20px; 
}
.footer-internal-links a:last-child {
    margin-right: 0; 
}
.footer-internal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- コピーライト --- */
.copyright {
    margin: 0;
    font-size: 0.9rem;
    text-align: left; 
    /* order: 0; 
    /* flex-basis: 60%; 
}

/* --- SNSアイコン --- */
.social-navigation-footer {
     order: 1; 
     flex-basis: 35%; 
     min-width: 200px; 
}
.social-navigation-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}
.social-navigation-footer li {
    margin-left: 18px;
}
.social-navigation-footer li:first-child {
    margin-left: 0;
}
.social-navigation-footer a {
    color: #ccc; 
    font-size: 1.6rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease; 
}

/* --- SNSアイコンホバー */
.social-navigation-footer .social-icon-instagram a:hover { color: #E1306C; }
.social-navigation-footer .social-icon-facebook a:hover { color: #1877F2; }
.social-navigation-footer .social-icon-x a:hover { color: #000000; }
.social-navigation-footer .social-icon-youtube a:hover { color: #FF0000; }
.social-navigation-footer .social-icon-tiktok a:hover { color: #000000; } 
.social-navigation-footer .social-icon-line a:hover { color: #00B900; }

/* --- SNSアイコンホバー時拡大 */
.social-navigation-footer a:hover {
    transform: scale(1.15); 
}

/* --- タブレット用 --- (991px以下) */
@media (max-width: 991px) {
    .flow-steps {
        flex-direction: column; 
        align-items: center;    
    }
    .flow-arrow {
        display: none; 
    }
    .flow-step {
        flex-basis: auto; 
        width: 80%;
        max-width: 300px;
        margin-bottom: 30px;
        position: relative;
    }
    .flow-step:not(:last-child)::after { 
        content: '';
        display: block;
        width: 2px;
        height: 30px;
        background-color: var(--secondary-color);
        margin: 20px auto 0;
    }
    .feature-grid {
        gap: 30px;
    }
    .service-gallery {
        gap: 20px;
    }
}

/* --- スマートフォン用 --- (768px以下) */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 20px; 
    }
    .site-header {
        padding: 10px 20px;
    }
    .site-header .logo {
        height: 30px; /* スマホロゴ小 */
        max-width: 150px; 
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    h2 .highlight {
        font-size: 2.8rem;
    }

    .company-info-wrapper {
        flex-direction: column; /* 地図 */
        gap: 30px;
    }
    /* --- 会社概要 --- */
    .company th,
    .company td {
        display: block; 
        width: auto !important; 
        text-align: left;
        border: none;
    }
    .company th {
        background-color: transparent;
        font-weight: bold;
        padding: 10px 15px 0;
    }
    .company td {
        padding: 5px 15px 10px 15px;
    }
    .company tr {
        display: block;
        border: 1px solid #e0e0e0; 
        margin-bottom: 15px;
        padding-bottom: 5px;
    }
    .company table, .company tbody, .company thead {
        display: block;
        border: none;
    }
    .company table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .feature-grid {
        gap: 25px;
    }
    .service-gallery {
        gap: 15px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }
    .service-gallery img {
        height: 150px;
    }

    /* --- フッター(スマホ用) --- */
    .footer-content-wrapper {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 20px; 
    }
    .footer-internal-links {
        order: -1; 
        width: 100%;
        text-align: left;
    }
    .copyright {
        text-align: left; 
        order: 0; 
        width: 100%;
    }
    .social-navigation-footer {
        width: 100%;
        order: 1; 
    }
    .social-navigation-footer ul {
        justify-content: flex-start; 
    }
    .social-navigation-footer li:first-child {
        margin-left: 0;
    }
    .social-navigation-footer a {
        font-size: 1.8rem; 
    }
}

/* --- 登録応募フォーム --- */
.application-form-section {
    background-color: var(--light-bg, #f8f9fa);
}
.application-form-section h2 {
    margin-bottom: 20px;
}
.form-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    color: #555;
}
.application-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label,
.gender-group legend {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}
.required-mark { 
    color: var(--primary-color, #dc3545);
    font-weight: bold;
    margin-left: 4px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color, #007bff);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
}
.form-group textarea {
    resize: vertical; 
    min-height: 100px;
}
.gender-group { 
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.gender-group legend {
    padding: 0 10px;
    margin-left: 5px;
    font-size: 0.95rem;
    font-weight: bold;
}
.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 5px;
}
.radio-options div { 
    display: flex;
    align-items: center;
}
.radio-options input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color, #007bff); 
}
.radio-options label {
    font-weight: normal;
    margin-bottom: 0;
    font-size: 0.95rem;
}
.form-actions { 
    text-align: center;
    margin-top: 30px;
}
.submit-button {
    background-color: var(--primary-color, #007bff);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 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);
}
.form-note { 
    text-align: right;
    font-size: 0.85rem;
    color: #555;
    margin-top: 15px;
}

/* --- フォーム(スマホ用) --- */
@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr; 
    }
    .application-form {
        padding: 20px;
    }
}

/* --- 上へ戻るボタン --- */
#scrollTopButton {
  display: none; 
  position: fixed; 
  bottom: 20px; 
  right: 30px; 
  z-index: 9999; 
  border: none;
  outline: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}
#scrollTopButton:hover {
  background-color: #333;
}
