/* =========================================
   100とも経済鯖
   Official Information Site
   ========================================= */

/* -----------------------------------------
   基本設定
   ----------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #f3eff9 0px,
            #f7f7f9 260px,
            #f5f5f7 100%
        );

    color: #222;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;

    line-height: 1.7;
}

/* -----------------------------------------
   ヘッダー
   ----------------------------------------- */

header {
    position: relative;

    padding: 30px 30px 34px;

    background:
        linear-gradient(
            135deg,
            #32145f 0%,
            #432078 55%,
            #2b104f 100%
        );

    color: white;

    border-bottom: 4px solid #241044;

    box-shadow:
        0 5px 20px rgba(36, 16, 68, 0.20);

    overflow: hidden;
}

/* ヘッダーの装飾 */

header::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -70px;
    top: -110px;

    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

header::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    right: 80px;
    top: -80px;

    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

header h1 {
    position: relative;
    z-index: 1;

    max-width: 1000px;

    margin: 0 auto;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: 0.04em;

    line-height: 1.4;
}

/* -----------------------------------------
   メイン
   ----------------------------------------- */

main {
    width: min(1000px, calc(100% - 40px));

    margin: 0 auto;

    padding: 48px 0 30px;
}

/* -----------------------------------------
   共通カード
   ----------------------------------------- */

.welcome {
    position: relative;

    background: rgba(255, 255, 255, 0.96);

    padding: 32px;

    margin-bottom: 22px;

    border: 1px solid #e2dfe7;

    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(35, 20, 50, 0.055);
}

/* 左側アクセント */

.welcome::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 4px;

    background: #32145f;

    border-radius: 0 4px 4px 0;
}

/* -----------------------------------------
   見出し
   ----------------------------------------- */

.welcome h2 {
    margin: 0 0 18px;

    color: #241044;

    font-size: 24px;
    font-weight: 700;

    line-height: 1.45;

    letter-spacing: 0.01em;
}

.welcome h3 {
    margin: 30px 0 12px;

    color: #32145f;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.5;
}

.welcome h4 {
    margin: 22px 0 9px;

    color: #432078;

    font-size: 17px;
    font-weight: 700;
}

/* -----------------------------------------
   文章
   ----------------------------------------- */

.welcome p {
    margin: 0 0 14px;

    color: #555;

    line-height: 1.9;
}

.welcome p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   リンク
   ----------------------------------------- */

a {
    color: #32145f;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

a:hover {
    color: #6b39a0;
}

/* -----------------------------------------
   トップページ メニュー
   ----------------------------------------- */

.menu {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.menu a {
    position: relative;

    min-height: 115px;

    padding: 27px 52px 27px 25px;

    display: flex;

    align-items: center;

    background: white;

    border: 1px solid #dedbe4;

    border-radius: 12px;

    color: #222;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.5;

    box-shadow:
        0 4px 14px rgba(35, 20, 50, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

/* カード左アクセント */

.menu a::before {
    content: "";

    position: absolute;

    left: 0;
    top: 20px;
    bottom: 20px;

    width: 4px;

    background: #32145f;

    border-radius: 0 4px 4px 0;

    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

/* 矢印 */

.menu a::after {
    content: "→";

    position: absolute;

    right: 22px;

    color: #32145f;

    font-size: 23px;
    font-weight: 400;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.menu a:hover {
    background: #fff;

    border-color: #b9a8ce;

    transform: translateY(-5px);

    box-shadow:
        0 10px 24px rgba(50, 20, 95, 0.12);
}

.menu a:hover::before {
    width: 6px;

    background: #6b39a0;
}

.menu a:hover::after {
    color: #6b39a0;

    transform: translateX(5px);
}

/* -----------------------------------------
   リスト
   ----------------------------------------- */

.welcome ul,
.welcome ol {
    margin: 15px 0 20px;

    padding: 14px 20px 14px 42px;

    background: #faf9fc;

    border: 1px solid #e7e3eb;

    border-radius: 8px;

    line-height: 1.85;
}

.welcome li {
    padding: 6px 0;

    border-bottom: 1px solid #ece9ef;
}

.welcome li:last-child {
    border-bottom: none;
}

/* -----------------------------------------
   強調文字
   ----------------------------------------- */

.welcome strong {
    color: #241044;

    font-weight: 700;
}

/* -----------------------------------------
   テーブル
   ----------------------------------------- */

.welcome table {
    width: 100%;

    margin: 18px 0;

    border-collapse: separate;

    border-spacing: 0;

    overflow: hidden;

    background: white;

    border: 1px solid #ddd8e4;

    border-radius: 8px;
}

.welcome th,
.welcome td {
    padding: 12px 14px;

    border-right: 1px solid #e5e1e8;
    border-bottom: 1px solid #e5e1e8;

    text-align: left;
}

.welcome th {
    background: #f2edf7;

    color: #32145f;

    font-weight: 700;
}

.welcome tr:last-child td {
    border-bottom: none;
}

.welcome th:last-child,
.welcome td:last-child {
    border-right: none;
}

/* -----------------------------------------
   コード
   ----------------------------------------- */

.welcome code {
    padding: 3px 7px;

    background: #f0edf3;

    border: 1px solid #e3dfe7;

    border-radius: 5px;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 0.9em;
}

/* -----------------------------------------
   区切り線
   ----------------------------------------- */

.welcome hr {
    margin: 28px 0;

    border: 0;

    border-top: 1px solid #e4e0e8;
}

/* -----------------------------------------
   戻るボタン
   ----------------------------------------- */

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin-top: 3px;

    padding: 12px 24px;

    background:
        linear-gradient(
            135deg,
            #32145f,
            #4a2380
        );

    color: white !important;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(50, 20, 95, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.back-button:hover {
    color: white !important;

    transform: translateY(-2px);

    box-shadow:
        0 7px 15px rgba(50, 20, 95, 0.25);

    opacity: 0.95;
}

/* -----------------------------------------
   フッター
   ----------------------------------------- */

footer {
    margin-top: 55px;

    padding: 28px 20px;

    background: #ebe8ef;

    border-top: 1px solid #ddd8e3;

    text-align: center;

    color: #777;

    font-size: 14px;
}

footer p {
    margin: 0;
}

/* -----------------------------------------
   スマートフォン
   ----------------------------------------- */

@media (max-width: 700px) {

    header {
        padding: 23px 20px 26px;
    }

    header h1 {
        font-size: 22px;
    }

    main {
        width: calc(100% - 28px);

        padding: 30px 0 20px;
    }

    .welcome {
        padding: 25px 21px;

        margin-bottom: 16px;

        border-radius: 10px;
    }

    .welcome::before {
        top: 15px;
        bottom: 15px;
    }

    .welcome h2 {
        font-size: 21px;
    }

    .welcome h3 {
        font-size: 18px;
    }

    .welcome p {
        line-height: 1.85;
    }

    /* メニュー */

    .menu {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .menu a {
        min-height: 82px;

        padding: 20px 48px 20px 22px;

        border-radius: 10px;

        font-size: 16px;
    }

    .menu a::before {
        top: 16px;
        bottom: 16px;
    }

    /* リスト */

    .welcome ul,
    .welcome ol {
        padding: 11px 13px 11px 31px;
    }

    /* 表 */

    .welcome table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

    /* 戻るボタン */

    .back-button {
        width: 100%;
    }

    footer {
        margin-top: 35px;

        padding: 22px 15px;
    }
}

/* -----------------------------------------
   小型スマートフォン
   ----------------------------------------- */

@media (max-width: 400px) {

    header {
        padding: 20px 16px 23px;
    }

    header h1 {
        font-size: 20px;
    }

    main {
        width: calc(100% - 20px);

        padding-top: 22px;
    }

    .welcome {
        padding: 22px 17px;
    }

    .welcome h2 {
        font-size: 19px;
    }

    .welcome h3 {
        font-size: 17px;
    }

    .menu a {
        min-height: 76px;

        padding: 18px 44px 18px 19px;
    }
}

/* -----------------------------------------
   アクセシビリティ
   ----------------------------------------- */

a:focus-visible {
    outline: 3px solid rgba(50, 20, 95, 0.3);

    outline-offset: 3px;
}