/* =========================
   リセットCSS（全ページ共通）
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    /* main→footerの縦並び */
    font-family: "Noto Sans JP", Meiryo, system-ui, sans-serif;
    color: #444;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    /* 擬似要素を重ねるため */
    background: none;
    /* 背景は擬似要素で設定 */
}

/* ▼ 背景画像（ブラー効果付き） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/main-bg.png) no-repeat center center / cover;
    filter: blur(3px);
    /* 背景をぼかす */
    transform: scale(1.1);
    /* ブラーの端欠け対策 */
    z-index: -2;
    /* 一番奥 */
}

/* ▼ 透明レイヤー（背景を柔らかく調整） */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 30%);
    z-index: -1;
}

/* =========================
   ヘッダー（ロゴ画像＋テキスト対応）
========================= */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.3) 6%, transparent 6.5%),
        radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.3) 6%, transparent 6.5%);
    background-color: #ff8faf;
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 4px, transparent 6px);
    background-size: 32px 32px;
    opacity: 0.3;
    animation: dotMove 12s linear infinite;
    z-index: 0;
}

/* 中身を上に表示するため */
.header>* {
    position: relative;
    z-index: 1;
}

/* ドットアニメーション */
@keyframes dotMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-32px, -32px);
    }
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

/* ロゴ全体をリンク化 */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ロゴ画像 */
.logo-img {
    height: 42px;
    /* 少し大きく */
    border-radius: 100vh;
    /* 角を丸めて馴染ませる */
    background: #fff;
    /* ピンク背景とのコントラスト強化 */
    padding: 4px;
    /* 白背景を確保 */
    margin-right: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* ふんわり影 */
}

/* ロゴテキスト */
.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ホバー時の軽い反応 */
.logo-link:hover .logo-text {
    opacity: 0.9;
}


/* =========================
   コンテンツ領域
========================= */

main {
    flex: 1;
    /* コンテンツを伸ばしてフッターを押し下げる */
    padding-bottom: 20px;
    /* 余白を少し確保 */
}


/* =========================
   ボタン共通デザイン
========================= */
.btn {
    display: inline-block;
    padding: 14px 22px;
    background: linear-gradient(135deg, #e43e3e, #ff8a80);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(228, 62, 62, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #c02c2c, #ff6565);
    box-shadow: 0 6px 15px rgba(228, 62, 62, 0.3);
}

/* =========================
   フッター（シンプル＆柔らかめ）
========================= */

.footer {
    background: linear-gradient(to right, #000000, #1a1a1a);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ▼ チップ風リンク */
.footer-links a {
    color: #fff;
    background: rgba(255, 182, 193, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    background: rgba(255, 182, 193, 0.25);
    transform: translateY(-2px);
}

/* PCでは横並び＋セパレーター */
@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 16px;
    }

    .footer-links a::after {
        content: '|';
        color: rgba(255, 182, 193, 0.5);
        margin-left: 12px;
    }

    .footer-links a:last-child::after {
        content: '';
    }
}

.footer-copy {
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* =========================
   入力フォームのデザイン
========================= */
input,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    transition: 0.2s;
}

input:focus,
select:focus {
    border-color: #e43e3e;
    box-shadow: 0 0 5px rgba(228, 62, 62, 0.3);
}

/* =========================
   共通カードデザイン（情報ボックス）
========================= */

.card h1 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.card h2 {
    font-size: 18px;
    margin-top: 18px;
    margin-left: 0px;
    margin-bottom: 8px;
    color: #e43e7f;
    /* 見出しを少しピンク寄りに */
    border-left: 4px solid #ffb6c1;
    /* 左ボーダーでアクセント */
    padding-left: 8px;
}

.card p {
    margin-bottom: 10px;
}

.card ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
}

.card {
    background: #fffffff2;
    padding: 20px;
    border-radius: 18px;
    /* 少し丸みUP */
    width: 92%;
    /* 余白を作って背景見せる */
    margin: 15px auto;
    /* 中央寄せ */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    /* 影を強調して浮かせる */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時（PC向け） */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* PCでは横幅を制限 */
@media (min-width: 768px) {
    .card {
        max-width: 540px;
    }
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.company-table th {
    background: #fff0f5;
    color: #444;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
    width: 30%;
}

.company-table td {
    padding: 10px;
    border-bottom: 1px solid #645252;
}

.company-table a {
    color: #e43e7f;
    text-decoration: underline;
}

.company-table a:hover {
    color: #ff5fa8;
}

.vertical-support-btn {
    writing-mode: vertical-rl;
    position: fixed;
    right: 0;
    top: 30%;
    background: #fff;
    border: 1px solid;
    border-image: linear-gradient(to bottom, #86c4ff, #529bdd) 1;
    color: #397acb;
    font-size: 0.9rem;
    padding: 0.6em 0.4em;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 1002;
}

.vertical-support-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.2em;
}

.vertical-support-btn:hover {
    background: #f1faff;
    color: #0b3c91;
    text-decoration: none;

}

@media (min-width: 768px) {
    .vertical-support-btn {
        top: 40%;
    }
}

.support-icon-only {
    position: fixed;
    right: 0;
    bottom: 4em;
    background: #ffffffa4;
    border: 1px solid #86c4ff;
    color: #397acb;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.support-modal[hidden] {
    display: none;
}

.support-modal__content {
    position: relative;
    background: #fff;
    padding: 2em 1em 1.6em;
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    z-index: 1;
    text-align: center;
    color: #333;
    font-size: 0.95rem;
}

.support-modal__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #397acb;
    margin-bottom: 0.8em;
}

.support-modal__text {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2em;
    color: #444;
    max-width: 280px;
    margin-inline: auto;
}

.support-modal__notes {
    margin-bottom: 1.6em;
    font-size: 0.85rem;
    line-height: 1.85;
    text-align: center;
    color: #666;
    padding: 0 0.4em;
}

.support-modal__notes p {
    margin: 0 0 0.75em;
}

.support-modal__notes p:last-child {
    margin-bottom: 0;
}

.support-modal__btn {
    display: block;
    background: linear-gradient(to bottom, #78bfff, #4892e6);
    color: #fff;
    padding: 0.85em 1.4em;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    max-width: 260px;
    margin-inline: auto;
    letter-spacing: 0.02em;
}

.support-modal__btn:hover {
    opacity: 0.88;
}

.support-modal__close {
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.support-modal__close:hover {
    color: #666;
}

.support-modal__footnote {
    margin-top: 0.9em;
    font-size: 0.78rem;
    color: #bbb;
    text-align: center;
    line-height: 1.5;
}

/* 開閉アニメーション keyframes */
@keyframes supportOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes supportContentIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes supportOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes supportContentOut {
    from { opacity: 1; transform: translateY(0)    scale(1); }
    to   { opacity: 0; transform: translateY(18px) scale(0.96); }
}

.support-modal.is-active {
    animation: supportOverlayIn 0.3s ease both;
}
.support-modal.is-active .support-modal__content {
    animation: supportContentIn 0.3s ease both;
}
.support-modal.is-closing {
    animation: supportOverlayOut 0.25s ease both;
}
.support-modal.is-closing .support-modal__content {
    animation: supportContentOut 0.25s ease both;
}