/* ==========================================================================
   1. 基本設定・コンテナ
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
font-family: 
  -apple-system, BlinkMacSystemFont, "Segoe UI",
  "Hiragino Sans", "Hiragino Kaku Gothic ProN", 
  "Yu Gothic UI", "Yu Gothic",   /* ← 游ゴシックを優先 */
  "メイリオ", meiryo,
  sans-serif;
    background-color: #f4f9fc;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. ヘッダー ＆ メインナビゲーション (Plan 1 新構成統合版)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    width: 100%;
}

.header-top {
    padding: 6px 0; /* 上段の上下幅調整 */
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-corporate img,
.logo-system img,
.site-header img {
    display: block;
}

/* 右上ナビゲーション設定 */
.site-navigation {
    background-color: transparent;
    margin-left: auto;
}

.site-navigation .main-menu {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation .main-menu > li {
    position: relative;
    width: 215px; /* メニューの幅均等化 */
}

/* 親メニューリンクボタン */
.site-navigation .main-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    width: 100%;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

.site-navigation .main-menu > li > a:hover {
    background-color: #f0f4f8;
    color: #0056b3;
}

/* --- 下層ドロップダウンメニュー（アコーディオン＋スタガー演出） --- */
.site-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* ★220pxから100%に変更して親メニューの幅に固定 */
    box-sizing: border-box; /* 枠線による幅ズレを防止 */
    background-color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px; /* 下側の角のみ丸める */
    border: 1px solid #e2e8f0;
    z-index: 1000;

    /* ドロップダウン枠を開くアニメーション */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), 
                opacity 0.2s ease, 
                visibility 0.2s, 
                padding 0.2s ease;
}

.site-navigation .has-child:hover .sub-menu {
    max-height: 350px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
    transition: max-height 0.4s ease-in-out, 
                opacity 0.3s ease, 
                visibility 0.3s, 
                padding 0.3s ease;
}

/* ドロップダウン内の各リスト項目 */
.site-navigation .sub-menu li {
    width: 100%;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-navigation .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.site-navigation .sub-menu li a:hover {
    background-color: #f0f4f8;
    color: #0056b3;
}

/* マウスホバー時にリスト項目を上から順に表示（スタガーアニメーション） */
.site-navigation .has-child:hover .sub-menu li {
    opacity: 1;
    transform: translateY(0);
}

.site-navigation .has-child:hover .sub-menu li:nth-child(1) { transition-delay: 0.08s; }
.site-navigation .has-child:hover .sub-menu li:nth-child(2) { transition-delay: 0.13s; }
.site-navigation .has-child:hover .sub-menu li:nth-child(3) { transition-delay: 0.18s; }
.site-navigation .has-child:hover .sub-menu li:nth-child(4) { transition-delay: 0.23s; }
.site-navigation .has-child:hover .sub-menu li:nth-child(5) { transition-delay: 0.28s; }
.site-navigation .has-child:hover .sub-menu li:nth-child(6) { transition-delay: 0.33s; }

/* 境界線・下段ヘッダー */
.header-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #0056b3, #0082c8);
}

.header-bottom {
    padding: 8px 0;
    background-color: #ffffff;
}

/* ==========================================================================
   3. パンくずリスト
   ========================================================================== */
.breadcrumb-container {
    max-width: 1000px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #333333;
}

.breadcrumb li a {
    color: #0082c8;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: "＞";
    margin: 0 10px;
    color: #808080;
    font-size: 12px;
}

/* ==========================================================================
   4. メインコンテンツ・製品ブロック
   ========================================================================== */
.product-block {
    display: flex;
    align-items: flex-start; 
    gap: 40px;           
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.product-image {
    flex: 4;             
    text-align: center;
    max-width: 250px;
    width: 100%;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.slide-in-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn linear forwards;
    animation-timeline: view();
    animation-range: entry 10% contain 40%;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-text {
    flex: 7;             
}

.product-text h2 {
    margin-top: 0;
    color: #0082c8;
    font-size: 22px;
    border-bottom: 2px solid #e1f5fe;
    padding-bottom: 10px;
}

.product-text h2 .new-badge {
    height: 1.2em;
    width: auto;
    vertical-align: 0%;
    margin-left: 15px;
    display: inline-block;
}

.product-text b {
    color: #007bb6;
    display: block;
    margin: 15px 0 5px 0;
}

.product-text b.subhead_underline {
    width: fit-content;
    border-bottom: 2px solid #007bb6;
    padding-bottom: 2px;
}

.detail-button {
    display: block;
    width: fit-content;
    margin-left: auto;
    background-color: #0082c8;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.detail-button:hover {
    background-color: #006094;
}

.CENTURYPIC {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    margin-top: 20px;
    margin-bottom: -10px;
}

.product-block:nth-child(even) .detail-button,
.product-block:nth-child(even) .CENTURYPIC {
    margin-right: calc(-40% - 40px);
}

/* お問い合わせページ用個別指定 */
.contact-title {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 25px;
    padding-bottom: 5px;
    border-bottom: 6px double #000000;
    width: 100%;
}

.contact-block {
    align-items: center !important;
}

.contact-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 220px;
}

.contact-btn {
    margin-left: 0 !important;
    margin-top: 20px !important;
}

/* ==========================================================================
   5. フッター ＆ 固定パーツ
   ========================================================================== */
#footer {
    width: 100% !important;
    max-width: none !important;
}

.site-footer {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fafafa;
    border-top: 1px solid #cccccc;
    padding: 40px 0 60px 0;
    font-family: 
  -apple-system, BlinkMacSystemFont, "Segoe UI",
  "Hiragino Sans", "Hiragino Kaku Gothic ProN", 
  "Yu Gothic UI", "Yu Gothic",   /* ← 游ゴシックを優先 */
  "メイリオ", meiryo,
  sans-serif;
    box-sizing: border-box;
}

.footer-inner {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-nav {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.footer-col {
    width: 22%;
}

.footer-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.footer-title a {
    color: #333333;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 11.5px;
}

.footer-links li a {
    color: #333333;
    text-decoration: none;
}

.footer-links li a::before {
    content: "＞ ";
    color: #808080;
    font-weight: bold;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* 上へ戻るボタン */
.fixed-gotop-btn,
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a88d1 !important;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    z-index: 9999;
}

.fixed-gotop-btn:hover,
.back-to-top:hover {
    background-color: #85c1e9 !important;
    opacity: 0.9;
}

/* ==========================================================================
   6. レスポンシブ対応（画面幅768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .container {
        margin: 20px auto !important;
        padding: 0 10px !important;
    }

    .header-inner {
        padding: 10px 15px !important;
        flex-direction: column;
        gap: 15px;
    }

    .site-navigation {
        width: 100%;
        margin-left: 0;
    }

    .site-navigation .main-menu {
        flex-direction: column !important;
        width: 100% !important;
    }

    .site-navigation .main-menu > li {
        width: 100% !important;
        border-bottom: 1px solid #dbdbdb;
    }

    .site-navigation .sub-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #f9f9f9 !important;
    }

    .product-block {
        flex-direction: column !important;
        gap: 20px;
        padding: 20px;
    }

    .product-text h2 {
        font-size: 18px;
    }

    .product-block:nth-child(even) .detail-button,
    .product-block:nth-child(even) .CENTURYPIC {
        margin-right: 0 !important;
        margin-left: auto !important;
    }

    .product-text img,
    .tamedy-image-container img,
    .alert-media-container img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .footer-nav {
        flex-direction: column !important;
        gap: 25px !important;
    }

    .footer-col {
        width: 100% !important;
    }

    .breadcrumb-container {
        padding: 0 10px;
        margin-top: 10px;
    }

    .breadcrumb {
        font-size: 13px;
    }
}
img.inline-icon {
    width: 20px !important;  /* 表示したい横幅（例: 16px〜24px） */
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle;  /* 文字との上下位置を揃える */
}
/* サイト全体のリンクおよび画像に対するドラッグ・テキスト選択を禁止 */
a, 
a img, 
img {
    -webkit-user-select: none; /* Safari / Chrome */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE / Edge */
    user-select: none;         /* テキスト選択を無効化 */
    -webkit-user-drag: none;   /* 画像のドラッグを無効化 */
}

/* リンク内の画像にマウスイベントが引っかかるのを防ぐ */
a img {
    pointer-events: none;
}
/* スマホ表示時（画面幅 767px 以下）の NEW バッジ設定 */
@media screen and (max-width: 767px) {
    .product-text h2 img.new-badge {
        width: 35px !important;       /* お好みの横幅に調整してください */
        height: auto !important;      /* 縦横比維持 */
        display: inline-block !important; /* ブロック化を防ぎインライン配置にする */
        vertical-align: middle !important; /* 見出し文字の上下中央に揃える */
        margin-left: 6px !important;  /* 見出し文字との間の余白 */
    }
}
/* スマホ表示時（画面幅 767px 以下）の設定 */
@media screen and (max-width: 767px) {
  
    /* banner-group 内の画像だけをコンパクト化 */
    .banner-group a img.CENTURYPIC {
        max-width: 180px !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 10px auto !important;
    }

    /* banner-group 内のボタンだけをコンパクト化 */
    .banner-group a.detail-button {
        display: block !important;
        width: fit-content !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

/* バナーグループ全体を右寄せにし、縦並びにする */
.banner-group {
    display: flex !important;
    flex-direction: column !important; /* 上下に並べる */
    align-items: flex-end !important;  /* 中の要素をすべて「右揃え」にする */
    width: 100% !important;
    margin-top: 15px !important;
}

/* 画像のスタイル */
.banner-group a img.CENTURYPIC {
    display: block !important;
    margin: 0 0 8px 0 !important; /* 左や自動中央（auto）の余白をリセット */
}

/* ボタンのスタイル（中央寄せを解除して右揃えに追従させる） */
.banner-group a.detail-button {
    display: inline-block !important;
    margin: 0 !important; /* ★ここ重要：margin: 0 auto を打ち消す */
}
}