/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003E5E;
    --secondary-color: #005A9E;
    --accent-color: #80C0FF;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s ease;
    --font-size-small: 14px;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
}

html {
    scroll-behavior: smooth;
}

/* ベースフォントや背景 */
body {
    font-family: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN W3", "Hiragino Sans", "ヒラギノ明朝体", "Meiryo", "MS PMincho", sans-serif;
    background-color: rgb(241, 241, 241);
    background-size: cover;
    margin-top: 70px;
}

/* ヘッダー */
.custom-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255,255,255,0.9);
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-header.scrolled {
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* ハンバーガーボタンの初期状態（PCでは非表示） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1100;       /* メニューより前面に */
}

.menu-close {
    /* モバイルメニュー上部に配置したい場合 */
    font-size: 24px;
    color: #003E5E;
    cursor: pointer;
    text-align: right;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 10px; /* 下に少し余白を */
}

.hamburger span {
    display: block;
    width: 80%;
    height: 3px;
    background: #003E5E;
    transition: all 0.3s ease;
}

/* ハンバーガーが開いたとき、アイコンを×印に変形させる */
.hamburger.open span:nth-of-type(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-of-type(2) {
    opacity: 0;
}
.hamburger.open span:nth-of-type(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* PCレイアウト用 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: right;
    text-align: right;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo-link {
    display: block;
}

.logo-image {
    width: 240px;
    height: 30px;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

/* ===== PCのナビゲーション:横並び ===== */
.nav-links {
    display: flex;
    justify-content: space-around;
    align-items: right;
    width: 100%;
    max-width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 10px;
    height: 100%;
    transition: right 0.3s ease; /* モバイル時にスライドさせるためのトランジション */
}

.nav-links li {
    flex: 1;
    text-align: center;
    height: 100%;
    position: relative;
}

.nav-links a {
    color: #003E5E;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    margin: 0 2px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background: #005A9E;
    transition: width 0.3s;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-links a:hover {
    color: #005A9E;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 「お問い合わせ」だけボタン風 */
.contact a {
    background-color: #003E5E;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 5px;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact a:hover {
    background-color: #005A9E;
    transform: scale(1.05);
}

/* ===== ドロップダウンメニュー ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 10px 10px;
    width: 100%;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* フェードアウト時に透明度を変更 */
.dropdown:not(:hover) .dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

@media (min-width: 769px) {
    .menu-close {
      display: none; /* PCサイズのときは隠す */
    }
}

/* ======== ここからモバイル用スタイル ======== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* ナビゲーション本体 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 49%;
        height: auto;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 20px;
        padding-bottom: 0;
        margin: 0;
        transition: right 0.3s ease;
        z-index: 9999;
    }

    /* ハンバーガーメニュー open */
    .nav-links.open {
        right: 0;
    }

    /* 各メニュー項目（li）の調整 */
    .nav-links li {
        width: 100%;
        padding: 0;
        margin: 0; /* 余白を小さくする */
    }

    /* メニューのリンク要素の調整 */
    .nav-links a {
        display: block;
        height: 10vh;
        padding: 0;
        margin: 0;
        align-items: center;     /* 縦中央寄せ */
        padding: 10px 20px;      /* 余白を減らして間延びを防ぐ */
        font-size: 14px;         /* モバイル時のフォントサイズ */
        color: #003E5E;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:hover {
        background-color: #f5f5f5;
    }

    .contact a:hover {
        background-color: #005A9E;
        transform: scale(1.05);
    }

    .dropdown {
        position: relative;
        width: 100%;
    }

    .dropdown-menu {
        position: absolute;
        top: 0;
        left: -100%;  /* 初期位置を左に隠す */
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 1000;
        max-width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateX(0);
        transition: left 0.3s ease, opacity 0.3s ease;
    }

    /* クリック時にメニューを左からスライド */
    .dropdown.open .dropdown-menu {
        left: 0; /* 左側から出てくる */
        opacity: 1;
        visibility: visible;
    }
}

/* パンくずリストの改善 */
.breadcrumb {
    background: var(--background-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-small);
    box-shadow: var(--shadow-light);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

:root {
    /* 上下の線の太さを管理する変数 */
    --footer-border-thickness: 20px;
    /* グラデーションの開始色・終了色 */
    --footer-gradient-start: #003E5E;
    --footer-gradient-end: #80C0FF;
}

/* フッター */
footer {
    position: relative; /* 疑似要素で上下に線を敷くために必要 */
    background-color: #ffffff; /* 背景を白に */
    color: #333333; /* フッター全体のテキスト色 */
    padding: 40px 20px;
    /* 既存の border-top, border-bottom は削除またはコメントアウト */
    /* border-top: var(--footer-border-thickness) solid rgba(0,80,160,0.6); */
    /* border-bottom: var(--footer-border-thickness) solid rgba(0,80,160,0.6); */
}

/* 疑似要素でトップに横方向のグラデーション線 */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--footer-border-thickness);
    background: linear-gradient(
        to right,
        var(--footer-gradient-start),
        var(--footer-gradient-end)
    );
    z-index: 0;
}

/* 疑似要素でボトムに横方向のグラデーション線 */
footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-border-thickness);
    background: linear-gradient(
        to right,
        var(--footer-gradient-start),
        var(--footer-gradient-end)
    );
    z-index: 0;
}

/* コンテナー */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* 疑似要素より手前に表示させるため */
    z-index: 1;
}

/* ロゴ */
.footer-logo {
    flex: 1;
}

.footer-logo-image {
    width: 300px;
    height: auto;
    padding-bottom: 30px;
}

/* リンク群（カラム全体） */
.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

/* カラム */
.footer-column {
    min-width: 200px;
}

/* タイトルに黒～薄い黒のグラデーション */
.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    /* フォールバックの色（古いブラウザ用） */
    color: #000000;
    /* テキストをグラデーションにする */
    background: linear-gradient(90deg, #000000 0%, #555555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* リスト関連 */
.footer-column ul {
    list-style: none;
    padding: 0;
    color: #666666; /* グレー(薄い黒) */
}

.footer-column li {
    margin-bottom: 10px;
    color: #666666; /* グレー(薄い黒) */
}

/* リンク */
.footer-column a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* hover 時のリンク色 */
.footer-column a:hover {
    color: #003366;
}

/* スマホ・タブレット時のレイアウト */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ===== アニメーション設定 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* スライドインアニメーション */
.slide-in {
    opacity: 0;
    animation: slideIn 1s ease-out forwards;
}

/* 遅延効果 */
.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 1s;
}
.delay-3 {
    animation-delay: 1.5s;
}

/* 初期状態（非表示） */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* フェードイン時の状態 */
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-privacy {
    text-align: center;    /* 中央寄せ */
    margin: 10px 0;        /* 上下余白 */
}

.footer-privacy a {
    font-size: 15px;        /* 小さめ文字 */
    color: gray;            /* グレー色 */
    text-decoration: underline; /* 下線付き */
}