/* ベース設定 */
:root {
    --primary-color: #ff6b81;
    --primary-light: #ffe3e8;
    --secondary-color: #00a0e9;
    --secondary-light: #f0fbff;
    --brown-dark: #664d43;
    --brown-light: #8b6d5c;
    --yellow-light: #fffacd;
    --bg-color: #fcfcfc;
    --text-main: #333333;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-top: 70px; /* 固定ヘッダーの高さ分を下げる */
}

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

.section {
    padding: 80px 0;
}

.bg-light-blue {
    background-color: var(--secondary-light);
}

.bg-light-gray {
    background-color: #ffffff;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
    position: relative;
    padding-bottom: 5px;
    border-bottom: 4px solid #efc52a;
    display: inline-block;
}

.section-desc {
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* グローバルヘッダー（追従） */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: var(--transition);
}

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

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 35px;
    width: auto;
    display: block;
}

.header-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 107, 129, 0.3);
}

.header-contact-btn:hover {
    background-color: #e55a6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 129, 0.4);
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 5px 15px;
    }
    .header-logo img {
        height: 25px;
    }
    .header-contact-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* ヘッダー */
.app-header {
    background-image: url('picture/title-background④.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #4a4a4a;
    display: block;
}

.main-title .highlight {
    color: #d15668;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d15668;
    display: block;
}

.quick-jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--secondary-color), #40c0fa);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 160, 233, 0.4);
    transition: var(--transition);
    border: 3px solid #fff;
}

.quick-jump-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 160, 233, 0.5);
    background: linear-gradient(135deg, #0488c9, #1fb0f5);
    color: white;
}

@media (max-width: 768px) {
    .quick-jump-btn {
        font-size: 1.05rem;
        padding: 12px 25px;
        margin-top: 25px;
    }
}

/* 補助金内容のデザイン */
.content-block {
    margin-bottom: 40px;
}

.block-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.block-label {
    background-color: var(--brown-dark);
    color: #fff;
    padding: 5px 30px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 4px;
    margin-right: 15px;
}

.block-desc {
    border: 1px solid #ccc;
    padding: 5px 20px;
    background: #fff;
    font-weight: 500;
}

.brown-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.brown-table th {
    background-color: var(--brown-light);
    color: white;
    padding: 12px;
    border: 2px solid #fff;
}

.brown-table td {
    padding: 15px;
    border: 2px solid #fff;
    vertical-align: middle;
}

.brown-table.three-col-table {
    table-layout: fixed;
}

.brown-table.three-col-table th {
    width: 33.33%;
}

.brown-table td.dark {
    background-color: var(--brown-light);
    color: white;
    text-align: left;
}

.brown-table td.light {
    background-color: #f5eedc;
}

.brown-table td.light-yellow {
    background-color: var(--yellow-light);
}

.align-center th, .align-center td {
    text-align: center;
}

/* パッケージ型導入の例 */
.package-example {
    margin-top: 30px;
    text-align: center;
}

.package-example h4 {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.package-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pkg-item {
    text-align: center;
}

.pkg-icon {
    background-color: var(--brown-dark);
    color: white;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 2.5rem;
    margin: 0 auto 10px;
}

.pkg-item p {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.2;
}

.pkg-plus {
    color: var(--brown-dark);
    font-size: 2rem;
    font-weight: bold;
}

/* POINTブロック装飾 */
.point-block {
    margin: 60px auto 40px;
    text-align: left;
    background-color: #fffafb;
    border: 3px solid #ff9db0;
    border-radius: 12px;
    padding: 45px 40px 30px;
    max-width: 850px;
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.15);
    position: relative;
}

.point-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b81, #ff8fa0);
    padding: 12px 35px;
    border-radius: 40px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.35);
    text-align: center;
    width: 90%;
    max-width: max-content;
    margin: 0;
    letter-spacing: 1px;
}

.point-content {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

.point-content p {
    margin-bottom: 20px;
}

.point-content p:last-child {
    margin-bottom: 0;
}

.point-content.has-image {
    display: flex;
    align-items: center;
    gap: 30px;
}

.point-text {
    flex: 1;
}

.point-image {
    flex: 0 0 250px;
    text-align: center;
}

.point-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.point-block.blue {
    background-color: #ffffff;
    border: 3px solid #63b5f6;
    box-shadow: 0 8px 25px rgba(99, 181, 246, 0.15);
}

.point-block.blue .point-title {
    background: linear-gradient(135deg, #63b5f6, #80cbf8);
    box-shadow: 0 5px 15px rgba(99, 181, 246, 0.35);
}

.point-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 160, 233, 0.3);
    margin-top: 15px;
}

.point-contact-btn:hover {
    background-color: #044bba;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 160, 233, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .point-block {
        padding: 40px 20px 25px;
        margin: 50px auto 30px;
        border-width: 2px;
    }
    .point-title {
        font-size: 1.05rem;
        padding: 10px 20px;
        top: -22px;
        width: 95%;
    }
    .point-content.has-image {
        flex-direction: column;
        gap: 20px;
    }
    .point-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* 補助率 */
.rate-info-box {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    background: #fff;
}

.requirement-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--box-shadow);
}

.requirement-table th, .requirement-table td {
    border: 2px solid #fff;
}

.requirement-table thead th {
    background-color: var(--brown-light);
    color: white;
    padding: 12px;
}

.requirement-table tbody th.brown-bg {
    background-color: var(--yellow-light);
    color: var(--brown-dark);
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

.requirement-table tbody td.light-yellow-bg {
    background-color: #fffdf2;
    padding: 15px 20px;
}

.requirement-table td ul {
    list-style-type: none;
    padding: 0;
}

.requirement-table td ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* マップ選択エリア */
.map-selection-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.map-image-container {
    max-width: 500px;
    flex: 1 1 300px;
    position: relative; /* オーバーレイ基準 */
}

.japan-map-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* マップ上のクリックエリア */
.clickable-area {
    position: absolute;
    cursor: pointer;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clickable-area span {
    background-color: #fff;
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.25s ease;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
    white-space: nowrap;
    transform: translateY(10px);
}

.clickable-area:hover span, .clickable-area.active span {
    opacity: 1;
    transform: translateY(0);
}

.clickable-area.Hokkaido { top: 5%; right: 10%; width: 25%; height: 25%; }
.clickable-area.Tohoku   { top: 32%; right: 18%; width: 18%; height: 22%; }
.clickable-area.Kanto    { top: 55%; right: 20%; width: 15%; height: 12%; }
.clickable-area.Chubu    { top: 52%; right: 35%; width: 18%; height: 18%; }
.clickable-area.Kansai   { top: 62%; right: 50%; width: 12%; height: 15%; }
.clickable-area.Chugoku  { top: 58%; left: 15%; width: 20%; height: 15%; }
.clickable-area.Shikoku  { top: 73%; left: 25%; width: 15%; height: 10%; }
.clickable-area.Kyushu   { top: 70%; left: 0%; width: 18%; height: 25%; }

.selection-controls {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

.filter-heading {
    font-size: 1.2rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 5px solid var(--secondary-color);
}

.region-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.region-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.region-btn:hover, .region-btn.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,160,233,0.3);
}

.all-btn {
    grid-column: span 2;
    text-align: center;
    background-color: #f7f9fa;
    color: #333;
}

.all-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 補助金一覧 */
.filter-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-label {
    font-weight: bold;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 250px;
    padding: 12px 40px 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 160, 233, 0.2);
}

.subsidy-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* カードUI（リスト型） */
.subsidy-card {
    background: #d4eef8; /* 外枠・線の水色 */
    padding: 6px; /* 外枠の太さを少し細く */
    border-radius: 4px; /* 全体のわずかな角丸 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px; /* ヘッダーとテーブル間の線 */
    transition: var(--transition);
}

.subsidy-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-prefecture-header {
    background: #fff;
    padding: 15px 20px; /* 余白を狭く */
    display: flex;
    justify-content: center;
    align-items: center;
}

.prefecture-pill {
    background-color: var(--secondary-color); /* エリアボタンと同じ水色 */
    color: white;
    font-size: 1.3rem; /* フォントを少し小さく */
    font-weight: bold;
    padding: 10px 100px; /* ボタンの余白狭く */
    border-radius: 50px;
    text-align: center;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 3px; /* 行と行の間の水色の線（gap）を細く */
}

.info-row {
    display: flex;
    gap: 3px; /* ラベルと値の間の水色の線（gap）を細く */
}

.info-label {
    width: 25%;
    min-width: 180px; /* 最小幅を少し狭く */
    background-color: #fff;
    padding: 15px 15px; /* ラベルの余白を狭く */
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-pill {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    padding: 10px 15px; /* ピル自体の余白を狭く */
    border-radius: 30px;
    text-align: center;
    width: 100%;
    max-width: 200px;
    font-size: 0.95rem; /* フォントを少し小さく */
}

.info-value {
    width: 75%;
    background-color: #fff;
    padding: 15px 20px; /* 余白を狭く */
    color: #333;
    line-height: 1.7; /* 行間も少し詰める */
    font-size: 0.95rem; /* フォントを少し小さく */
}

.info-value.font-bold {
    font-weight: bold;
    font-size: 1.05rem;
}

.text-link {
    color: #0d6dfd;
    text-decoration: underline;
    word-break: break-all;
}

.text-link:hover {
    color: #044bba;
}

/* 問い合わせフォーム */
.form-description {
    text-align: center;
    margin-bottom: 40px;
}

.ma-form-area {
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: #999;
}

/* フッター */
.site-footer {
    background-color: #2c3e50;
    color: #e2e8f0;
    padding: 60px 0 0;
    text-align: left;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-logo img {
    height: 48px;
    background: #fff;
    padding: 6px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.company-address {
    line-height: 1.6;
}

.company-address p {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.company-address p:last-child {
    margin-bottom: 0;
}

.company-address strong {
    color: #a0aec0;
    min-width: 85px;
    display: inline-block;
}

.footer-contact {
    flex: 0 1 400px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

.tel-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #cbd5e0;
}

.tel-number {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tel-number i {
    color: var(--secondary-color);
}

.tel-time {
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer-bottom {
    background-color: #1a202c;
    padding: 20px 0;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 0;
}

.footer-nav a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 3px; /* スマホ時のコンテナ間の線枠 */
    }

    .prefecture-pill {
        padding: 10px 40px;
        font-size: 1.2rem;
    }
    
    .info-label {
        width: 100%;
        padding: 12px 15px;
    }

    .label-pill {
        max-width: 250px;
    }

    .info-value {
        width: 100%;
        padding: 12px 15px;
    }

    .main-title {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-select select {
        width: 100%;
    }
    
    .region-buttons {
        grid-template-columns: 1fr;
    }
    
    .all-btn {
        grid-column: span 1;
    }
}

/* お知らせセクション */
.news-section {
    padding: 30px 0 10px;
}

.news-container {
    background: #fff;
    border: 3px solid var(--brown-light); /* 表と同じ薄い茶色 */
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
}

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

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #fafaef;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item.hidden {
    display: none;
}

.news-date {
    font-weight: bold;
    color: #555;
    margin-right: 15px;
    white-space: nowrap;
}

.news-badge {
    background: var(--brown-light); /* 枠と同じ茶色で統一 */
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}

.news-content {
    color: #333;
    flex-grow: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item.is-open .news-content {
    -webkit-line-clamp: initial;
    overflow: visible;
}

.news-toggle-btn {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border: none;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: var(--transition);
}

.news-toggle-btn:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .news-date {
        margin-right: 0;
    }
    .news-container {
        padding: 15px;
    }
}

/* 関連リンク（オフィシャルページ誘導バナー） */
.link-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.official-link-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0d6dfd, #00a0e9);
    color: #fff;
    text-decoration: none;
    padding: 30px 40px;
    border-radius: 15px;
    min-width: 380px;
    box-shadow: 0 10px 20px rgba(0, 160, 233, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* 光が走るエフェクト */
.official-link-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.official-link-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 160, 233, 0.35);
    color: #fff;
}

.official-link-btn:hover::before {
    left: 200%;
}

.link-small-text {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 15px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 1px;
}

.link-main-text {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 10px;
}

.official-link-btn i {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.official-link-btn.outline {
    background: #fff;
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.official-link-btn.outline:hover {
    background: var(--secondary-light);
    box-shadow: 0 12px 25px rgba(0, 160, 233, 0.15);
}

.official-link-btn.outline .link-main-text {
    color: var(--secondary-color);
}

.official-link-btn.outline i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .official-link-btn {
        width: 100%;
        min-width: 100%;
        padding: 25px 20px;
    }
}

/* ページトップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px; /* テキストにあわせてパディングで調整 */
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 40px; /* ピル型（角丸長方形） */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #044bba; /* ホバー時は濃い青に */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 160, 233, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ========== 追従するお問い合わせボタン ========== */
.floating-contact-btn {
    position: fixed;
    bottom: 110px; /* 「上に戻る」ボタンの少し上 */
    right: 30px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.3);
    background-color: var(--primary-light);
}

.floating-img-wrap {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.floating-contact-img {
    width: 75%;
    height: auto;
    object-fit: contain;
}

.floating-contact-text {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 80px; 
        right: 20px;
        padding: 6px 15px 6px 6px;
    }
    .floating-img-wrap {
        width: 50px;
        height: 50px;
    }
    .floating-contact-text {
        font-size: 0.8rem;
    }
}
