/* ===== 全体設定 ===== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Arial", sans-serif;
    background: linear-gradient(to bottom, #a8e6cf, #dcedc1);
    overflow-x: hidden !important;
    overflow-y: hidden !important; /* ← 縦スクロールを完全に無効化 */
    width: 100%;
}

* {
    box-sizing: border-box;
    max-width: 100vw;
}

body {
    clip-path: inset(0 0 0 0);
    position: relative;
}

/* ===== メニュー関連 ===== */

.menu-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.menu-button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

.menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 0;
    width: 220px;
    overflow: hidden;
    z-index: 9999;
    max-width: 100vw;
}

.menu.active {
    display: block;
}

.menu li {
    list-style: none;
    border-bottom: 1px solid #eee;
}

.menu li:last-child {
    border-bottom: none;
}

.menu li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.menu li a:hover {
    background-color: #f2f2f2;
    color: #0073aa;
}

/* ===== シェアボタン ===== */

.share-buttons {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    max-width: 100vw;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-buttons a.x {
    background-color: #1DA1F2;
}

.share-buttons a.line {
    background-color: #06C755;
}

.share-buttons a:hover {
    transform: scale(1.2);
}

/* ===== メインコンテンツ ===== */

.container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

.card {
    background-color: rgba(255,255,255,0.8);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow-x: hidden;
    max-height: 300px;
    overflow-y: hidden;
}

.card h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.message-container {
    min-height: 80px;
    margin-bottom: 30px;
}

.message {
    font-size: 20px;
    color: #555;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

button#newMessageButton {
    background-color: #ff758c;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

button#newMessageButton:hover {
    background-color: #ff5266;
}

/* ===== フッター ===== */

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #333;
}
