/* ===============================
   リセット・基本設定
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #e1f5fe 50%, #f3e5f5 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* ===============================
   メインコンテナ
   =============================== */
.main-container {
    padding-bottom: 100px; /* 固定フッターの高さ分 */
    min-height: calc(100vh - 80px);
}

/* ===============================
   ファーストビュー（hero）
   =============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fce4ec 0%, #e1f5fe 50%, #f3e5f5 100%);
}

.hero-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* ===============================
   サイトタイトル
   =============================== */
.site-title {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-small {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: normal;
    opacity: 0.7;
}

.title-large {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================
   SOSボタンセクション
   =============================== */
.sos-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sos-button {
    display: block;
    padding: 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sos-button:active {
    transform: scale(0.98);
}

.sos-button-1 {
    background: linear-gradient(135deg, #ffb6d9, #ff8fab);
    color: white;
}

.sos-button-1:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 173, 0.3);
}

.sos-button-2 {
    background: linear-gradient(135deg, #87ceeb, #4db8e8);
    color: white;
}

.sos-button-2:hover {
    box-shadow: 0 6px 20px rgba(77, 184, 232, 0.3);
}

.sos-label {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sos-description {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
    text-align: center;
}

.sos-description div {
    margin: 4px 0;
}

/* ===============================
   スクロール後のコンテンツ
   =============================== */
.content-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    animation: fadeInContent 0.8s ease forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-container {
    max-width: 600px;
    margin: 0 auto;
}

.bird-animation {
    font-size: 72px;
    text-align: center;
    margin-bottom: 30px;
    animation: floatBird 3s ease-in-out infinite;
}

@keyframes floatBird {
    0%, 100% {
        transform: translateY(0px);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
        opacity: 0.9;
    }
}

.content-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.content-intro {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.content-section p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff8fab, transparent);
    margin: 30px auto;
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 182, 217, 0.2), rgba(135, 206, 235, 0.2));
    border-left: 4px solid #ff8fab;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.info-box h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 15px;
}

.info-box li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff8fab;
    font-weight: bold;
}

/* ===============================
   ページヘッダー（SOS①②）
   =============================== */
.page-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-button {
    padding: 8px 12px;
    color: #ff8fab;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-button:active {
    background: rgba(255, 107, 173, 0.1);
}

.page-header h1 {
    flex: 1;
    font-size: 24px;
    color: #333;
    margin: 0;
}

/* ===============================
   ページコンテンツ
   =============================== */
.page-container {
    background: white;
    padding-top: 20px;
}

.page-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

/* ===============================
   メニュー（開閉式）
   =============================== */
.menu-item {
    margin-bottom: 15px;
}

.menu-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fce4ec, #f3e5f5);
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.menu-button:active {
    background: linear-gradient(135deg, #f8bbd0, #e1bee7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.menu-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.menu-button.active .menu-icon {
    transform: rotate(180deg);
}

.menu-content {
    display: none;
    animation: slideDown 0.3s ease forwards;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 15px 15px;
    padding: 10px 0;
    margin-top: -5px;
}

.menu-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.menu-link {
    display: block;
    padding: 15px 25px;
    color: #666;
    font-size: 15px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 45px;
}

.menu-link:last-child {
    border-bottom: none;
}

.menu-link:before {
    content: "▶";
    position: absolute;
    left: 20px;
    font-size: 10px;
    color: #ff8fab;
}

.menu-link:active {
    background: rgba(255, 182, 217, 0.15);
    color: #333;
}

/* ===============================
   準備中ページ
   =============================== */
.preparing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.preparing-message {
    text-align: center;
}

.preparing-message h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.preparing-message p {
    font-size: 16px;
    color: #999;
    margin-bottom: 15px;
}

/* ===============================
   固定フッター（SOSボタン）
   =============================== */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 100vw;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.fixed-footer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fixed-footer.show {
    animation: slideUpFooter 0.5s ease forwards;
}

@keyframes slideUpFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-button {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: white;
}

.footer-button-1 {
    background: linear-gradient(135deg, #ffb6d9, #ff8fab);
}

.footer-button-1:active {
    background: linear-gradient(135deg, #ff99cc, #ff6b9d);
}

.footer-button-1.active {
    opacity: 0.8;
}

.footer-button-2 {
    background: linear-gradient(135deg, #87ceeb, #4db8e8);
}

.footer-button-2:active {
    background: linear-gradient(135deg, #6bb9d9, #3da3d6);
}

.footer-button-2.active {
    opacity: 0.8;
}

/* ===============================
   レスポンシブ対応
   =============================== */
@media (min-width: 600px) {
    .title-large {
        font-size: 56px;
    }

    .sos-button {
        padding: 30px;
    }

    .sos-button-1,
    .sos-button-2 {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .menu-button {
        padding: 20px;
    }

    .menu-title {
        font-size: 18px;
    }
}

@media (min-width: 900px) {
    .hero {
        padding: 40px 40px;
    }

    .hero-content {
        max-width: 500px;
    }

    .title-large {
        font-size: 64px;
    }

    .site-title {
        margin-bottom: 60px;
    }

    .content-container {
        max-width: 800px;
    }

    .content-section {
        padding: 60px 40px;
    }
}

/* ===============================
   プリント対応
   =============================== */
@media print {
    .fixed-footer {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .main-container {
        padding-bottom: 0;
    }
}
