   html, body {
    overflow-x: hidden; /* 横スクロールを禁止 */
}

        /* 全体 */
body {
    font-family: 'Inter', sans-serif; /* モダンなフォント */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
    scroll-behavior: smooth;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85); /* 半透明 */
    backdrop-filter: blur(12px); /* 背景を少しぼかす */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, padding 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* スクロールでヘッダーを少し縮める場合 */
header.scrolled {
    padding: 5px 40px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

header .head-img {
    height: 45px;
    transition: transform 0.3s;
}
header .head-img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #212529;      /* 基本色 */
    font-weight: 600;     /* 少し太め */
    font-size: 1rem;      /* 少し大きめ */
    padding: 8px 12px;    /* 十分なクリック範囲 */
    border-radius: 6px;   /* 角丸で柔らかい印象 */
    transition: all 0.3s ease;
    position: relative;
}


nav ul li a::after {
    content: '';
    display: block;
    height: 2px;
    background: #6c63ff; /* アクセントカラー */
    width: 0;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -2px;
    left: 0;
}

nav ul li a:hover {
    color: #6c63ff;
}

nav ul li a:hover::after {
    width: 100%;
}


/* ナビゲーション */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    cursor: pointer;
}

nav ul li a::after {
    content: '';
    display: block;
    height: 2px;
    background: #6c63ff; /* アクセントカラー */
    transition: width 0.3s;
    width: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

/* メイン */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    display: grid;
    gap: 40px;
}


/* セクション共通 */
.section {
    position: relative;
    width: 100%;
    padding: 100px 10%;
    overflow: hidden;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%); /* 下部を斜めにカット */
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ホバーで少しズーム */
.section:hover {
    transform: scale(1.02);
}

/* 背景色やグラデーションを個別に設定 */
/* 背景色やグラデーションを個別に設定（青系で統一） */
.section.home,
.section.about,
.section.services,
.section.div {
    background: linear-gradient(135deg, #4a90e2, #50c0f0); /* 明るい青系グラデーション */
    color: #fff; /* 白文字 */
}
.section.link {
    background: #ffffff; /* 白ベース */
    color: #212529;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* テキスト */
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: inherit;
}
.section p, .section ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
}

/* リストマーカーはアクセント色に */
.section ul li::marker {
    color: rgba(255,255,255,0.9);
    font-weight: bold;
}

/* Link セクション内リンクの調整 */
.section.link a span {
    color: #6c63ff;
}

/* パララックス感の演出（スクロールで少し移動） */
@media (min-width: 768px) {
    .section[data-speed] {
        transform: translateY(0);
    }
}

/* Link セクション全体 */
.section.link {
    background: #a6c5ff;
    color: #212529;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section.link h2 {
    background: linear-gradient(135deg, #4a90e2, #50c0f0); 
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* リンクカードコンテナ */
.link-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* 個別リンクカード */
.link-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 25px 20px;
    width: 140px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* アイコン */
.link-card img {
    width: auto;
    height: 50px;
    margin-bottom: 10px;
}


/* レスポンシブ */
@media (max-width: 768px) {
    .link-cards {
        gap: 20px;
    }
    .link-card {
        width: 120px;
        padding: 20px 15px;
    }
}


/* トップイメージ */
.top {
    position: relative;
    text-align: center;
    margin-top: 120px;
}

.top-img {
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 70%;
    height: auto;
    z-index: 0;
}


.top-img:hover {
    transform: scale(1.02);
}

/* インジケーター */
#img-list span {
    font-size: 10px;
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.3s;
}

#img-list span.active {
    color: #6c63ff;
}

/* フッター全体 */
footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 40px 20px;
}

/* フッター内コンテナ */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 縦方向に並べる */
    align-items: flex-start; /* 左揃え */
    gap: 20px;
}

/* フッターロゴ */
.footer-logo {
    height: 50px;
}

/* フッターナビ */
.footer-nav {
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: 10px;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #6c63ff;
}

/* コピーライト */
.footer-copy {
    color: #adb5bd;
}

/* スプラッシュ全体 */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* デフォルトはPC表示 */
.sp-video {
  display: none;
}

/* スマホ時 */
@media (max-width: 768px) {
  .pc-video {
    display: none;
  }
  .sp-video {
    display: block;
  }
}

@keyframes logo-zoom {
  0% { transform: scale(1); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* 白丸 */
.circle {
  position:absolute;
  top:50%; left:50%;
  width:100px; /* 初期サイズ */
  height:100px;
  background:white;
  border-radius:50%;
  transform: translate(-50%, -50%) scale(0);
  animation: circle-grow 2s ease 2s forwards; /* 2秒遅延 */
  z-index:2; /* ロゴより下でもOK */
}

@keyframes circle-grow {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(30); } /* 十分大きく */
}

 

/* ==========================================
   📱 MOBILE STYLE (max-width:768px)
========================================== */
@media (max-width: 768px) {

    /* ===== 全体 ===== */
    body {
        font-size: 14px;
    }

    .main {
        padding: 90px 12px 40px;
        gap: 25px;
    }

    /* ===== ヘッダー ===== */
    header {
        padding: 15px 20px;
        justify-content: center;
    }

    header.scrolled {
        padding: 10px 20px;
    }

    header .header {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .head-img {
        height: 38px;
        margin: 0 auto;
    }

    /* ===== ハンバーガー ===== */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        z-index: 1500;
    }

    .menu-toggle span {
        height: 3px;
        background: #212529;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* ===== ナビ（右スライド） ===== */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        z-index: 1200;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    nav ul li a {
        font-size: 1rem;
    }

    nav.active {
        right: 0;
    }

    /* ===== トップスライドショー ===== */
    .top {
        margin-top: 85px;
    }

    .top-img {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    #img-list {
        margin-top: 10px;
    }

    #img-list span {
        font-size: 12px;
    }

    /* ===== セクション（自然な改行重視） ===== */
    .section {
        padding: 70px 12px;
        clip-path: none;
        width: 100%;
        box-sizing: border-box;
    }

    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        line-height: 1.3;
        text-align: center;
    }

    .section p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 14px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .section ul {
        margin-top: 15px;
        padding-left: 18px;
    }

    .section ul li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 8px;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* ===== Linkカード ===== */
    .section.link {
        padding: 60px 15px;
        gap: 25px;
    }

    .link-cards {
        gap: 20px;
    }

    .link-card {
        width: 110px;
        padding: 18px 15px;
    }

    .link-card img {
        height: 45px;
    }

    /* ===== フッター（左揃え維持） ===== */
    .footer-container {
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav {
        align-items: flex-start;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-copy {
        font-size: 0.85rem;
    }
}