/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    line-height: 1;
}

/* メインコンテナ */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* 基本画像スタイル */
.section-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* ボタンセクション */
.button-section {
    position: relative;
    width: 100%;
}

/* エントリーボタン */
.entry-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20%; /* 親要素に対する相対サイズ */
    max-width: 300px; /* 最大サイズを制限 */
}

.entry-button img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease;
}

/* ホバー用の背景画像 */
.entry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/entry_h.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.entry-button:hover::before {
    opacity: 1;
}

.entry-button:hover img {
    opacity: 0;
}

/* メールセクション */
.mail-section {
    position: relative;
    width: 100%;
}

/* コンタクト情報コンテナ */
.contact-info {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* メールテキスト */
.mail-text {
    color: #333333;
    font-size: 2.5vw; /* ビューポート幅に基づく相対サイズ */
    min-font-size: 14px; /* 最小サイズ */
    max-font-size: 24px; /* 最大サイズ */
    font-weight: bold;
    white-space: nowrap;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
    margin-bottom: 0.5em;
}

/* NPO Solarisリンク */
.solaris-link {
    display: inline-block;
    color: #0066cc;
    font-size: 2vw;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.solaris-link:hover {
    color: #004499;
    text-decoration: none;
}

/* レスポンシブ調整（念のため） */
@media screen and (max-width: 768px) {
    .entry-button {
        width: 25%;
    }
    .mail-text {
        font-size: 3vw;
    }
    .solaris-link {
        font-size: 2.5vw;
    }
}

@media screen and (max-width: 480px) {
    .entry-button {
        width: 30%;
    }
    .mail-text {
        font-size: 3.5vw;
    }
    .solaris-link {
        font-size: 3vw;
    }
}