/* embed.css - WebView専用簡易CSS（中央揃え対応） */

body {
    font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "M PLUS Rounded 1c", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    background: #f9f3ff;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    color: #333;
}

body.has-watermark::after {
    content: "";
    position: fixed;
    bottom: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background-image: url("img/mizutamasun.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

main {
    text-align: left;
    padding: 0 20px;
    max-width: 380px;
    margin: 0 auto;
}

h1,
h2 {
    margin-top: 1.3em;
    font-weight: bold;
    font-size: 1.3em;
    color: #38b6ff;
}

h3 {
    color: #38b6ff;
}


/* 画像一般 */
img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

img.no-shadow {
    box-shadow: none !important;
}

.news-page h3 {
    margin-top: 0.2em;
    margin-bottom: 1.2em;
    padding-top: 0.1em;
    line-height: 0.5;
    color: #ff66ff;
}

.news-page p b {
    display: block;
    margin-bottom: 0;
    margin-top: 1.5em;
}


.outer-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.balloon-container {
    display: flex;
    align-items: center;
    width: 360px;
}

.balloon-container.reverse {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 360px;
}

.avatar-balloon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: none;
    background-color: transparent;
}

.balloon {
    width: 260px;
    height: auto;
    box-shadow: none;
}

ul li {
    font-size: 1rem;
    list-style-type: disc;
    padding-left: 0;
    margin-left: 0;
}

ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.small-text-page p,
.small-text-page li {
    font-size: 0.8rem;
}

main.contact-form>h2,
main.contact-form>p {
    text-align: center;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

main.contact-form iframe {
    width: 100%;
    max-width: 360px;
    height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

main.character-page>h2,
main.character-page>p {
    text-align: center;
}

.character-name {
    color: #ff66ff;
    background-color: transparent;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 12px;
    text-align: center;
}

/* 横スクロール＆フェードイン対応 */
main.character-page {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    text-align: left;
}

p.intro-text {
    margin-bottom: 1.5em;
    text-align: left !important;
    line-height: 1.5;
    color: #333;
}

.character-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.character-slide {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 1;
    /* フェード不要 */
    transform: none;
}

.avatar-character {
    display: block;
    margin: 0 auto 12px auto;
    width: 150px;
    height: auto;
    border-radius: 0;
    /* ← 丸抜きしない */
    box-shadow: none;
    /* ← 影なしでプレーンに */
}

.character-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
}


/* guide-section */
.guide-section {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.2rem;
}

/* ガイド全体の p と li を少し小さく */
.guide-section p,
.guide-section li {
    font-size: 0.9rem;
    line-height: 1.6;
}


/* guide-step 共通 */
.guide-step {
    font-size: 0.8rem;
}

/* ===== タブ関連 ===== */

/* タブのボタン全体ラッパー */
.tab-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border: 2px solid #38b6ff;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background-color: #e6f4ff;
}

/* 各ボタン */
.tab-buttons button {
    flex: 0 0 auto;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: transparent;
    border: none;
    color: #38b6ff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #c0e0f5;
}

.tab-buttons button:last-child {
    border-right: none;
}

.tab-buttons button.active {
    background-color: #ffffff;
    color: #38b6ff;
}

/* タブの中身（非表示→表示） */
.tab {
    display: none;
    padding: 1rem 1rem;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    border: 2px solid #38b6ff;
    border-top: none;
    box-sizing: border-box;
}

.tab.active {
    display: block;
}

/* タブ内テキスト（小さく） */
.tab .step-description,
.tab .step-bullet-list li {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* タブ内タイトル */
.tab .step-title-box {
    font-size: 1.1rem;
    font-weight: bold;
    color: #38b6ff;
    margin-bottom: 0.8rem;
    text-align: left;
}

/* ===== ステップ構成 ===== */

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
}

.step-image {
    width: 200px;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1rem auto;
    flex-shrink: 0;
    box-shadow: none !important;
}

.step-description {
    font-size: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

.step-bullet-list {
    list-style-type: disc;
    padding-left: 1.2em;
    margin: 0;
}

.step-bullet-list li {
    margin-bottom: 0.8em;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* コラムリンク */
.previous-column-link {
    text-align: center;
    margin: 40px 0;
}

.previous-column-link a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #38b6ff;
    border-radius: 8px;
    color: #38b6ff;
    text-decoration: none;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.previous-column-link a:hover {
    background-color: #38b6ff;
    color: white;
}

.back-to-current-link {
    text-align: center;
    margin: 40px 0;
}

.back-to-current-link a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ff66ff;
    border-radius: 8px;
    color: #ff66ff;
    text-decoration: none;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.back-to-current-link a:hover {
    background-color: #ff66ff;
    color: white;
}



.text-red {
    color: red;
    /* 好みの赤色に変更可 */
    font-weight: bold;
    /* 強調したければ */
}


/* スクロールバー非表示（WebKit） */
.slider-container::-webkit-scrollbar {
    display: none;
}

/* Firefox用スクロールバー非表示 */
.slider-container {
    scrollbar-width: none;
}