/* ====================
 * Body 共通設定
 * ==================== */

 body {
    font-size: 16px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    word-break: break-all;
    padding: 0 32px;
}

/* スムーススクロールの有効化 */
html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: #333;
}

h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

/* ヘッダーのメニュー展開時にスクロールをロックする共通スタイル */
body.nav-open {
    overflow: hidden;
}

/* ====================
 * トップへ戻るボタン
 * ==================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s, background-color 0.3s;
    text-decoration: none;
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    opacity: 1;
    background-color: #555;
}

/* 矢印アイコン（CSSで作成） */
.back-to-top::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: 6px; /* 視覚的な中央調整 */
}

/* PC版の調整 */
@media (min-width: 960px) {
    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
    .back-to-top::after {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
}