:root {
    /* --background-color: #F0E9E0; */
    --background-color: linear-gradient(135deg, #ffffff, #f8fafc, #f1f5f9);
    --category-color: #242a8b;
    --main-color: #03a9f4;
    --main-gradient: linear-gradient(135deg, #2196f3, #21cbf3);
    --key-color: #0288d1;
    --font-color: #49494b;
    --text-color: #333;
    --text-white-color: #fff;
    --seiso-color: #576ab1;
    --setubi-color: #207eb3;
    --service-color: #80a82a;
    --kenchiku-color: #41b5ac;
    --shisetu-color: #45a97f;
    --accent-color: #e8384f;
    --renga-color: #BD9386;
    --main-1-color: #29b6f6;
    --main-2-color: #4fc3f7;
    --main-3-color: #81d4fa;
    --main-4-color: #b3e5fc;
    --main-5-color: #e1f5fe;
    --shadow: 0 5px 10px rgba(21, 86, 200, 0.3);
    --category-shadow: 1px 1px 0 #242a8b, -1px -1px 0 #242a8b, -1px 1px 0 #242a8b, 1px -1px 0 #242a8b, 0 1px 0 #242a8b, 0 -1px 0 #242a8b, -1px 0 0 #242a8b, 1px 0 0 #242a8b;
    --ask-m-font:
        "Oswald",
        "Roboto Mono", monospace,
        -apple-system, BlinkMacSystemFont, "Helvetica Neue",
        "Yu Gothic", "Hiragino Kaku Gothic ProN",
        Meiryo, sans-serif;
    --text-justify: justify;
    --title-background: #F5F5F5;
    --popup-back-color: #f0f0f2;
    --back-padding: 2.25rem 5%;
    --margin: 3.5rem
}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc {
    display: block !important;
}

.sp {
    display: none !important;
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 750px) {
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }
}

html {
    font-family: var(--ask-m-font);
}

body.popup-open {
    overflow-y: hidden;
}

body {
    color: var(--font-color);
    font-family: var(--ask-m-font);
    background: var(--background-color);
    letter-spacing: 0.08em;
}

.bg_pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.Paper_v2 {
    background-color: var(--background-color);
    background-image: linear-gradient(-45deg, #ffffff 25%, transparent 25%, transparent 50%, #ffffff 50%, #ffffff 75%, transparent 75%, transparent);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    box-sizing: border-box;
    background-size: 7px 7px;
}

/* 箇条書きのスタイル */
.seiso,
.setubi,
.service,
.kenchiku,
.shisetu,
.renga {
    margin-right: 5px;
}

.seiso {
    color: var(--seiso-color);
}

.setubi {
    color: var(--setubi-color);
}

.service {
    color: var(--service-color);
}

.kenchiku {
    color: var(--kenchiku-color);
}

.shisetu {
    color: var(--shisetu-color);
}

.renga {
    color: var(--renga-color);
}

/* =====================================
   パンくずリストのスタイル
   ===================================== */


.glass {
    background: rgba(255, 255, 255, 0.85);
    /* 半透明の白背景 */
    backdrop-filter: blur(10px);
    /* 背景のぼかし */
    -webkit-backdrop-filter: blur(10px);
    /* Safari対応 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 薄い境界線 */
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
    box-shadow: var(--shadow);
    /* 軽い影 */
}

.wp-block-image {
    width: 100%;
    height: 300px;
}

img, svg, .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.view-more svg,
.back-link svg,
.business-archive-link svg,
svg.cv-phone-icon,
svg.cat-arrow,
svg.cv-button-arrow,
svg.business-arrow,
svg.link-arrow {
    width: 25px;
    height: 25px;
}

.cdp-copy-alert-success {
    display: none !important;
}

.sub-title,
.philosophy-content p,
.business-description {
    text-align: var(--text-justify);
}

.custom-logo {
    max-width: 400px;
    height: auto;
    overflow: hidden;
}

.custom-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* メインコンテンツ - ヘッダーの高さに合わせて調整 */
.main-content {
    display: grid;
    /* gap: 100px; */
    margin: 0 auto;
    /* max-width: 1080px; */
    /* padding: 120px 0 100px; */
}

/* @media (min-width:1350px) {
    .main-content {
        max-width: 1400px;
    }
} */

@media(max-width:768px) {

    .business-grid,
    #management-philosophy-container {
        display: grid;
        gap: 3rem;
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* ヘッダー内部のレイアウト - より余裕のあるサイズ感 */
.header-inner {
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* ヘッダーの高さを少し高めに設定 */
    /* min-height: 70px; */
}

/* ハンバーガーボタンのスタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: transform 0.3s ease;
}

/* ハンバーガーアイコンの3本線 */
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: absolute;
}

/* 1本目の線 */
.hamburger span:nth-child(1) {
    top: 6px;
}

/* 2本目の線（中央） */
.hamburger span:nth-child(2) {
    top: 13px;
}

/* 3本目の線 */
.hamburger span:nth-child(3) {
    top: 20px;
}

/* ハンバーガーメニューが開いた時のアニメーション */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
}

/* ホバー時のエフェクト */
.hamburger:hover {
    transform: scale(1.1);
}

/* メニュー初期状態 */
.main-navigation {
    display: flex;
    border: 1px solid var(--main-color) !important;
}

/* メニューリスト全体のスタイル調整 */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation li.contact {
    margin-left: auto;
    /* 右端に配置 */
    background: var(--main-gradient);
}

.main-navigation li.contact a,
.main-navigation li.contact a .menu-subtext {
    color: var(--text-white-color);
    font-weight: bold;
}

.menu-subtext {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* メニューリンクのスタイル */
.main-navigation li a {
    white-space: nowrap;
    text-decoration: none;
    font-size: 14px;
    padding: 1rem 1.2rem;
    position: relative;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: color 0.3s ease;
    letter-spacing: 0.025em;
}

/* ホバー時の下線アニメーション*/
.main-navigation li.contact a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--text-white-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* ホバー時のエフェクト */
.main-navigation li.contact a:hover,
.main-navigation li.contact a .menu-subtext:hover {
    color: var(--text-white-color);
}

.main-navigation li.contact a:hover::after {
    width: 80%;
}

/* ホバー時の下線アニメーション*/
.main-navigation li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--main-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* ホバー時のエフェクト */
.main-navigation li a:hover,
.menu-subtext:hover {
    color: var(--main-color);
}

.main-navigation li a:hover::after {
    width: 80%;
}


/* サブメニューのスタイル - より洗練されたドロップダウン */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    min-width: max-content;
    box-shadow: var(--shadow);
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--main-color);
    /* サブメニュー表示時のアニメーション */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* サブメニューの上矢印 */
.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--main-color);
    z-index: 1001;
}

/* 上矢印の内側（白い部分） */
.main-navigation ul ul::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid rgba(255, 255, 255, 0.95);
    z-index: 1002;
}

.main-navigation ul ul li {
    margin: 0;
    border-bottom: none;
    width: 100%;
}

.main-navigation ul ul li a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 13px;
    color: #555;
    border-radius: 0;
    transition: all 0.2s ease;
}

.main-navigation ul ul li a:hover {
    background-color: #f8f9fa;
    color: var(--main-color);
}

/* サブメニューの下線を無効化 */
.main-navigation ul ul li a::after {
    /* display: none; */
}

/* ホバー時にサブメニューを表示 - アニメーション付き */
.main-navigation li:hover>ul {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* モバイル対応 - アニメーション付きハンバーガーメニュー */
@media (max-width: 768px) {
    .custom-logo {
        max-width: 300px;
    }

    /* ヘッダー内部のパディング調整 */
    .header-inner {
        padding: 1rem 1.5rem;
        min-height: 60px;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    /* メニューの初期状態と表示状態 */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        overflow-y: auto;
    }

    /* メニューが開いた状態 */
    .main-navigation.open {
        right: 0;
    }

    /* オーバーレイ（背景のぼかし効果） */
    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .main-navigation.open::before {
        opacity: 1;
        visibility: visible;
    }

    /* メニューリストのスタイル */
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* メニュー項目のアニメーション */
    .main-navigation li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
        transition-delay: 0s;
    }

    /* メニューが開いた時の項目アニメーション */
    .main-navigation.open li {
        opacity: 1;
        transform: translateX(0);
    }

    /* 順次アニメーション（各項目に遅延を設定） */
    .main-navigation.open li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-navigation.open li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .main-navigation.open li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .main-navigation.open li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .main-navigation.open li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .main-navigation.open li:nth-child(6) {
        transition-delay: 0.35s;
    }

    /* モバイル時のメニューリンク */
    .main-navigation li a {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    /* ホバー時のアニメーション */
    .main-navigation li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .main-navigation li a:hover::before {
        left: 100%;
    }

    .main-navigation li a:hover {
        background-color: rgba(0, 123, 255, 0.05);
        color: var(--main-color);
        transform: translateX(10px);
    }

    .main-navigation li.contact {
        margin: 0;
    }

    /* モバイル時のホバーエフェクトを調整 */
    .main-navigation li a::after {
        display: none;
    }

    /* モバイル時のサブメニュー - 常に表示 */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin: 0;
        background-color: rgba(240, 242, 245, 0.9);
        border-radius: 0;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        backdrop-filter: blur(10px);
        display: flex !important;
    }

    /* 親メニュー項目のスタイル調整（サブメニューを持つ項目） */
    .main-navigation .menu-item-has-children>a {
        font-weight: 600;
        position: relative;
    }

    .main-navigation ul ul li {
        padding: 0;
        margin-left: 0;
        border-left: none;
        position: relative;
    }

    /* サブメニュー項目のスタイル */
    .main-navigation ul ul li a {
        padding: 1rem 3rem;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        color: #555;
        position: relative;
        background-color: transparent;
    }

    /* サブメニューのインデント表示 */
    /* .main-navigation ul ul li a::before {
        content: '└';
        position: absolute;
        left: 2rem;
        color: var(--main-color);
        font-weight: bold;
    }

    .main-navigation ul ul li:first-child a::before {
        content: '┌';
    }

    .main-navigation ul ul li:not(:first-child):not(:last-child) a::before {
        content: '├';
    } */

    .main-navigation ul ul li a:hover {
        color: var(--main-color);
        background-color: rgba(3, 169, 244, 0.1);
        transform: translateX(5px);
    }

    /* サブメニューのアニメーション */
    .main-navigation ul ul li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        transition-delay: 0s;
    }

    .main-navigation.open ul ul li {
        opacity: 1;
        transform: translateX(0);
    }

    /* サブメニュー項目の順次アニメーション */
    .main-navigation.open ul ul li:nth-child(1) {
        transition-delay: 0.4s;
    }

    .main-navigation.open ul ul li:nth-child(2) {
        transition-delay: 0.45s;
    }

    .main-navigation.open ul ul li:nth-child(3) {
        transition-delay: 0.5s;
    }

    .main-navigation.open ul ul li:nth-child(4) {
        transition-delay: 0.55s;
    }

    /* メニューが閉じる時のアニメーション */
    .main-navigation:not(.open) li {
        transition-delay: 0s;
    }
}

/* FontAwesomeアイコンスタイル */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-phone:before {
    content: "\f095";
}

.fa-envelope:before {
    content: "\f0e0";
}

.fa-calculator:before {
    content: "\f1ec";
}

.fa-bars:before {
    content: "\f0c9";
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-navigation ul {
        gap: 0.3rem;
    }

    .main-navigation li a {
        padding: 0.8rem 1rem;
        font-size: 13px;
    }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
    .header-inner {
        padding: 1rem;
    }

    .hamburger {
        width: 25px;
        height: 25px;
    }

    .hamburger span {
        height: 2px;
    }

    .hamburger span:nth-child(1) {
        top: 5px;
    }

    .hamburger span:nth-child(2) {
        top: 11px;
    }

    .hamburger span:nth-child(3) {
        top: 17px;
    }

    .hamburger.active span:nth-child(1),
    .hamburger.active span:nth-child(3) {
        top: 11px;
    }
}

/* viewmoreボタン */
.view-more {
    position: relative;
    z-index: 100;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 10px 20px;
    background-color: var(--main-color);
    color: var(--main-5-color);
    text-decoration: none;
    border-radius: 30px;
    border: 1.5px solid var(--main-5-color);
    font-weight: bold;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

/* 左から右へ色が変わるエフェクト用の疑似要素 */
.view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-white-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.view-more:hover {
    color: var(--main-color);
    border-color: var(--main-color);
}

.view-more:hover::before {
    width: 100%;
}

.view-more svg,
.news-item svg {
    border: 1px solid var(--text-white-color);
    border-radius: 50%;
    padding: 5px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-more:hover svg {
    transform: translateX(3px);
}

/* フッタースタイル */
.site-footer {
    background: linear-gradient(135deg, #ffffff, #f8fafc, #f1f5f9);
    color: var(--font-color);
    padding: 40px 0 20px;
}

.footer-content {
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--main-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 8px;
}

.footer-column p,
.footer-column address {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    font-style: normal;
    color: var(--text-color);
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--main-color);
}

/* 会社ロゴとマーク */
.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-marks {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-mark {
    max-width: 80px;
    height: auto;
}

.footer-mark img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* サイトマップリンク */
.footer-sitemap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-sitemap li {
    margin-bottom: 8px;
    padding-left: 0;
}

.footer-sitemap li a {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.7;
}

.footer-sitemap li a:before {
    content: "▶";
    margin-right: 8px;
    color: var(--main-color);
    font-size: 12px;
}

/* フッターメニュー（既存） */
#footer-menu {
    margin-bottom: 20px;
}

#footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

#footer-menu li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

#footer-menu li a:hover {
    color: var(--main-color);
}

/* コピーライト */
.site-info {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    margin-top: 30px;
    color: #999;
    font-size: 14px;
}

/* グループ企業ロゴ */
.footer-group-logo {
    margin-bottom: 20px;
}

.footer-group-logo img {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-group-logo img:hover {
    opacity: 1;
}

.underline-before {
    background: linear-gradient(#e5f883 50%, #0000 0) 0 100%/0 30px no-repeat;
    transition: background 3s;
    /*トランジションの設定。下線を引く動きをアニメーションにするのに必要 */
    text-decoration: none;
}

.underline-after {
    background-size: 100% 30px;
    /* 変化後のスタイル。横サイズを0から100%に変えることで指定の文字列に下線を引く */
    padding-bottom: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 1.5rem;
    }

    .footer-marks {
        justify-content: center;
    }

    #footer-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }

    .wp-block-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 1rem;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-mark {
        max-width: 60px;
    }
}

/* ページトップへ戻るボタン */
.scroll-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--main-gradient);
    color: var(--text-white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* 初期状態: 非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);

    /* アクセシビリティ: フォーカス時のアウトライン */
    outline: none;
}

/* ボタンが表示される時のアニメーション */
.scroll-to-top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ホバー時のエフェクト */
.scroll-to-top-button:hover {
    background: var(--key-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(21, 86, 200, 0.2);
}

/* アクティブ時（クリック時）のエフェクト */
.scroll-to-top-button:active {
    transform: translateY(0) scale(0.95);
    transition: transform 0.1s ease;
}

/* フォーカス時のアクセシビリティ対応 */
.scroll-to-top-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* SVGアイコンのスタイル */
.scroll-to-top-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* ホバー時のアイコンアニメーション */
.scroll-to-top-button:hover svg {
    transform: translateY(-2px);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .scroll-to-top-button {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top-button svg {
        width: 20px;
        height: 20px;
    }

    .view-more {
        margin: 5px auto;
        padding: 8px 10px;
    }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
    .scroll-to-top-button {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top-button svg {
        width: 18px;
        height: 18px;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .scroll-to-top-button {
        border: 2px solid var(--text-white-color);
    }
}

/* アニメーション無効化設定に対応 */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top-button {
        transition: opacity 0.2s ease;
    }

    .scroll-to-top-button.show {
        transform: none;
    }

    .scroll-to-top-button:hover {
        transform: none;
    }

    .scroll-to-top-button svg {
        transition: none;
    }

    .scroll-to-top-button:hover svg {
        transform: none;
    }
}