/* ============================
   基本レイアウト
============================ */

div.center {
    margin: 0 auto;
}

header {
    width: 1240px;
    margin: 0px auto 4px;
}

header nav ul {
    display: flex;
    justify-content: center;
    border-top: 2px solid #7c5d48;
    border-bottom: 2px solid #7c5d48;
    background-color: rgba(255,255,255,0.42);
    padding: 12px 0 10px;
}

header nav ul li {
    margin: 0 8px;
}

header nav ul li a {
    font-size: 16px;
    font-weight: bold;
    color: #7c5d48;
}

header nav ul li a:hover {
    text-decoration: overline wavy;
}

p {
    color: blueviolet;
    text-align: center;
}

ul {
    display: flex;
    justify-content: center;
    color: blueviolet;
    text-align: center;
    width: 300px;
    margin: 0 auto;
}

li {
    margin-bottom: 8px;
}

body {
    background-color: greenyellow;
    font-family: monospace;
    padding: 2rem;
    transition: .5s;
}

.dark-theme {
    background: #000;
    color: #ddd;
}

#btn {
    background: #0bd;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #fff;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

h1 {
    font-size: 18px;
    border: 3px dashed white;
    border-radius: 20px;
    padding: 2px;
    margin: 1px auto;
    width: 300px;
    text-align: center;
}


/* ============================
   ロゴ + 回転テキスト
============================ */

.logo-wrapper {
    position: relative;
    width: 260px;      /* ロゴの大きさ */
    margin: 10px auto;
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* 回転する円（ロゴの周り） */
.rotate {
    position: absolute;
    top: 50%;          /* ← 中心位置を調整 */
    left: 50%;
    width: 300px;      /* ← 円の大きさに合わせて調整 */
    height: 300px;
    transform: translate(-50%, -50%);
    animation: spin 8s linear infinite;
    pointer-events: none;
}

.rotate svg {
    width: 100%;
    height: 100%;
}

.rotate path {
    fill: none;
}

.rotate text {
    fill: #0089A7;
    font-size: 10px;
    letter-spacing: 0px;
}

/* 回転アニメーション */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}