/* static/css/manual.css */
html,body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'M PLUS 1p', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  font-size: 1.2rem;
  max-width: 70%;
  margin: auto;
  background-color: #ffffff;
  border-radius: 8px;
  position: relative;
  padding-bottom: 3.5rem;
}

/* ページ見出し：ユーザー登録 */
.container > h1 {
  text-align: center;
  margin-bottom: 0.25rem; /* subtitleとの距離調整 */
}

.container h2 {
  display: inline;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0175d8;
  background: linear-gradient(to bottom, transparent 65%, yellow 50%);
  line-height: 1.6;
  letter-spacing: 0.08em;
  padding: 0.1em 0.2em;
  margin: 1.6rem 0 0.8rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


p {
  text-align: left;
}

  /* スライダ―のCSS */
.slider {
  width: 100%;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  border: 5px solid #c0c0c0;
}
.slide {
  flex: 0 0 auto;         /* 横並びにして縮まないように */
  width: 800px;           /* スライド1枚の幅（任意で調整） */
  box-sizing: border-box; /* padding, border を含めて制御 */
}

.slider img {
  width: 100%;
  height: auto;
  display: block;
  border: 0.1rem solid blue;  /* ← 青い枠線を追加 */
  border-radius: 6px;       /* ← 任意：角を少し丸くする */
}

.slide p {
  color: blue;
  text-align: center;
}

.yaji-text {
  color: #898989;
  text-align: center;
  margin-bottom: 0.1rem; /* 下の余白を少なくする */
  font-weight: bold;     /* 任意：文字を濃く見せる */
}

.scroll-row {
    height: 3rem;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.scroll-row {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 3rem;
    background-color: #fff;
    position: relative;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.scroll-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-sync 15s linear infinite;
    animation-delay: 0s;
}

.scroll-track.reverse {
    animation-name: scroll-sync-reverse;
    animation-delay: 0s;
}

.anchor-offset {
    position: relative;
    top: -5rem;       /* ← ナビの高さに応じて調整（例：100px） */
    height: 0;
}

/* ユーザー情報表示 */
#user-info {
    position: absolute;
    bottom: -1.6rem;
    left: 4rem;
    background: rgba(212, 212, 212, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 0.2rem;
}

#user-info a {
    font-size: 0.9rem;
    color: #818181;
    text-decoration: none;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* テーブルの罫線をつける（追加） */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

/* 目次 */
.manual-toc {
    margin: 1.25rem 0 1.75rem;
    padding: 0.9rem 1.25rem;
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 0.5rem;
}
.manual-toc__label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0175d8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.manual-toc__list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}
.manual-toc__list li {
    margin: 0.2rem 0;
}
.manual-toc__list a {
    color: #0175d8;
    font-size: 0.95rem;
    text-decoration: none;
}
.manual-toc__list a:hover {
    text-decoration: underline;
}

table.simple {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
}

table.simple th,
table.simple td {
    border: 1px solid #d0dff0;
    padding: 0.55rem 0.75rem;
    text-align: left;
}

table.simple thead th {
    background: #eef3ff;
    color: #0a5bb5;
    font-weight: 700;
    border-color: #b8d0f5;
}



/* モバイル対応 */
@media (max-width: 600px) {
    #gnav ul li {
        width: 6rem;
    }

    #gnav ul li a {
        font-size: 0.9rem;
        padding: 0.5rem 0.3rem;
    }

    #user-info {
        left: 0.5rem;
        bottom: -2rem;
    }
    .container {
    max-width: 95%;
  }
}

/* 有料版アップグレードボタン */
.manual-upgrade-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: #1d7cff;
    color: #ffffff;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.manual-upgrade-btn:hover {
    opacity: 0.85;
    color: #ffffff;
    text-decoration: none;
}

/* テーブル注釈 */
.table-note {
    font-size: 0.8rem;
    color: #555555;
    margin: 0.25rem 0 0 0.5rem;
    line-height: 1.4;
}

/* 有料版機能の告知ボックス */
.manual-paid-notice {
    background: #fff8e1;
    border-left: 4px solid #f0a202;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
