/* --- 共通設定 --- */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Helvetica Neue",Arial,sans-serif;
}

body{
    color:#333;
    line-height:1.6;
}

/* --- ローディング --- */
#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.spinner{
    width:40px;
    height:40px;
    border:4px solid #ddd;
    border-top:4px solid black;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

/* --- セクション基本レイアウト --- */
section{
    padding:100px 10%;
}

/* --- ヘッダー --- */
/* --- ヘッダー --- */

header{
position:fixed;
top:0;
width:100%;
background:rgba(0,0,0,0.3);
z-index:100;
transition:0.3s;
}

.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
padding:10px 40px;
}

/* ロゴ */
.logo img{
max-height:90px;
width:auto;
display:block;
}

/* メニュー */

.nav{
display:flex;
gap:30px;
}

.menu-btn{
display:none;
font-size:28px;
cursor:pointer;
}

nav a{
color:white;
text-decoration:none;
font-size:14px;
letter-spacing:1px;
font-weight:500;
}

nav a:hover{
opacity:0.7;
}

/* ハンバーガー */

.menu-btn{
display:none;
font-size:28px;
color:white;
cursor:pointer;
margin-left:20px;
}

/* --- ヒーロー --- */
.hero{
    height:100vh;
    position:relative;
    display:flex;
    align-items:center;
    color:white;
}

.hero video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-2;
}

.hero::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    z-index:-1;
}

.hero h1{
    font-size:48px;
    font-weight:300;
    margin-bottom:20px;
}

/* --- ニュース / トピックス --- */
.news-item{
    padding:10px 0;
    border-bottom:1px solid #ddd;
    font-size:14px;
}

.news-grid{
    display:flex;
    gap:30px;
    margin-top:40px;
    overflow:hidden;
    scroll-behavior:smooth;
}

.news-card{
    min-width:300px;
    background:white;
    transition:0.3s;
    border-radius:10px;
    overflow:hidden;
}

.news-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    transition:0.3s;
}

.news-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}
.service-card a {
  text-decoration: none;
  color: inherit;
}
.news-card:hover img{
    transform:scale(1.05);
}
/* ナビゲーションボタンの共通スタイル */
.topics-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.topics-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 丸いボタンに */
    border: 1px solid #333;
    background: white;
    color: black;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topics-nav button:hover {
    background: black;
    color: white;
}
/* --- サービス --- */
.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    margin-top:40px;
}

.service-card{
    background:#f5f5f5;
    padding:30px;
    border-radius:10px;
    text-align:center;
}

.service-card img{
    width:50%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:8px;
    margin: 0 auto 15px;
    display:block;
}
/* SERVICE Apple風スライド */

.service-slider{
overflow:hidden;
margin-top:50px;
}

.service-track{
display:flex;
gap:40px;
animation:serviceScroll 25s linear infinite;
width:max-content;
}

.service-card{
min-width:260px;
background:#f5f5f5;
padding:30px;
border-radius:12px;
text-align:center;
transition:0.3s;
min-width:300px;
background:white;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.service-card img{
width:80%;
margin-bottom:15px;
}

.service-slider{
overflow:hidden;
margin-top:50px;
}

.service-track{
display:flex;
gap:40px;
width:max-content;
animation:service-scroll 30s linear infinite;
}

.service-slider:hover .service-track{
animation-play-state:paused;
}
.service-card{
min-width:260px;
max-width:260px;
background:white;
padding:30px;
border-radius:12px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
transition:0.3s;
}

.service-card img{
width:80%;
margin-bottom:15px;
}

.service-card:hover{
transform:translateY(-6px);
}

@keyframes service-scroll{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}
/* 無限スクロール */
@keyframes serviceScroll{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}
/* --- 採用 --- */
.recruit{
    position:relative;
    color:white;
    text-align:center;
    background:url("recruit-bg.jpg") center/cover no-repeat;
    background-attachment: fixed;
}

/* 暗くするフィルター */
.recruit::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

/* 文字を前に出す */
.recruit *{
    position:relative;
    z-index:2;
}

.recruit-btn{
    display:inline-block;
    margin-top:25px;
    padding:12px 30px;
    background:white;
    color:black;
    text-decoration:none;
    font-weight:bold;
    border-radius:4px;
}

/* --- 会社概要 --- */
.company{
    max-width:900px;
    margin:80px auto;
}

.company-table{
    width:100%;
    border-collapse:collapse;
}

.company-table td{
    border-bottom:1px solid #ddd;
    padding:15px;
    vertical-align:top;
}

.company-table td:first-child{
    font-weight:bold;
    width:200px;
}

/* --- アクセス（ここが「広い」設定） --- */
.access {
    max-width: 1400px; /* 全体の幅を広く */
    margin: 80px auto;
}

.access-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* マップ2：テキスト1の比率 */
    gap: 40px;
    margin-top: 30px;
}

.access-grid .map iframe {
    width: 100%;
    height: 500px; /* 高さをしっかり出す */
    border-radius: 10px;
    border: none;
}

.access-text h3{ margin-bottom:10px; }
.access-text p{ margin-bottom:20px; }

/* --- お問い合わせ（中央寄せ） --- */
#contact {
    text-align: center;
}

#contact iframe {
    display: block;
    margin: 40px auto 0;
    max-width: 900px;
    width: 100%;
}

/* --- フッター --- */
footer{
    text-align:center;
    padding:40px;
    background:#111;
    color:#aaa;
}

/* --- アニメーション --- */
.fade{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade.show{
    opacity:1;
    transform:translateY(0);
}

/* お問い合わせフォームのスタイル */
.contact-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-info {
    font-size: 14px;
    color: #e00;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 16px; /* 文字サイズを大きく */
    margin-bottom: 8px;
}

.form-group label span {
    color: #e00;
}

/* 入力欄のスタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* スマホでズームされないサイズ */
    box-sizing: border-box;
}

/* 姓・名の横並び設定 */
.name-flex {
    display: flex;
    gap: 10px;
}

/* 性別のラジオボタン */
.radio-group {
    display: flex;
    gap: 20px;
    padding: 5px 0;
}

.radio-group label {
    font-weight: normal;
    cursor: pointer;
}

/* 送信ボタン */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #555;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .name-flex {
        flex-direction: column;
    }
}

/* --- スマホ対応（レスポンシブ） --- */
@media(max-width:768px){

.menu-btn{
display:block;
}

.nav{
display:none;
flex-direction:column;
position:absolute;
top:70px;
right:20px;
backdrop-filter:blur(10px);
background:rgba(0,0,0,0.7);
padding:20px;
box-shadow:0 5px 20px rgba(0,0,0,0.2);
}

.nav.open{
display:flex;
}

.nav a{
margin:20px;
font-size:18px;
color:white;
}

.logo img{
max-height:60px;
}

}


/* --- フッター全体の調整 --- */
footer {
    background: #111;
    color: #fff;
    padding: 60px 10% 40px;
    text-align: center;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- SNSボタン --- */
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

/* ホバー時の色（インスタ：グラデーション風、FB：ブルー） */
.sns-icon.insta:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.sns-icon.fb:hover {
    background: #1877f2;
}

/* --- 子会社バナー --- */
.footer-banner {
    margin-bottom: 30px;
}

.footer-banner img {
    max-width: 240px; /* バナーの横幅はお好みで調整してください */
    height: auto;
    border-radius: 4px;
    transition: 0.3s;
    filter: grayscale(30%); /* 少し落ち着いた色味に */
}

.footer-banner img:hover {
    filter: grayscale(0%);
    opacity: 0.8;
}

/* --- コピーライト --- */
.copyright {
    font-size: 12px;
    color: #777;
    letter-spacing: 1px;
}

