@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ベース：テーマ変数・全体レイアウト・共通見出し/フッター・ローディング */

/* テーマ変数 */
:root {
    --dark-green: #317D79;
    --light-green: #54B5B0;
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体の文字・背景・縦レイアウト */
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* 見出し */
h1 {
    color: var(--dark-green);
    text-align: center;
    margin: 50px auto 30px;
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--light-green);
    border-radius: 2px;
}

h2 {
    text-align: center;
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* フッター */
footer {
    background: #fff;
    padding: 25px 0;
    border-top: 3px solid var(--light-green);
    margin-top: auto;
}

/* フッター内のレイアウト（左右・中央の3分割） */
.footer-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}
.footer-table tbody {
    display: block;
    width: 100%;
}
.footer-table tr {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 8%;
}

.footer-table td {
    display: block;
}
.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}
.footer-right a {
    margin-left: 30px;
}

.footer-table td a,
.footer-table td button {
    color: var(--dark-green);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-table td button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.footer-table td a:hover,
.footer-table td button:hover {
    color: var(--light-green);
}

.clear {
    clear: both;
}

/* ローディング画面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.is-loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 5px solid #e9ecef;
    border-top: 5px solid var(--light-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: var(--dark-green);
    font-weight: 500;
    letter-spacing: 0.1em;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}