/* 統合・調整後のCSS（全体デザイン統一版） */

/* -------------------- 全体設定・リセット -------------------- */

/* ボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 100%;/*rem算出をしやすくするために*/
}

/* -------------------- ボタン（汎用） -------------------- */

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  /* デザインを統一: 落ち着いた色合いに調整 */
  color: #2c2c2c;
  border-radius: 12px; /* 統一された角丸 */
  background: linear-gradient(135deg, #bcd3ff, #e0c7ff); /* 統一された背景 */
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  background: linear-gradient(135deg, #cbe0ff, #f0d6ff);
  transform: translateY(-2px);
}

/* -------------------- ボタン（エンジンスタート） -------------------- */

.btn-engine-start {
  position: relative;
  width: 145px;
  height: 145px;
  margin: 0 auto;
  border-radius: 50%;
  /* デザインを統一: メタリックなパープル/ブルー系に調整 */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(230, 230, 255, 0.8) 22%,
    rgba(180, 180, 220, 0.7) 44%,
    rgba(120, 120, 160, 0.6) 52%,
    #2d1f69 100%
  );
  -webkit-box-shadow: 0 3px 12px rgba(100, 100, 200, 0.5);
  box-shadow: 0 3px 12px rgba(100, 100, 200, 0.5);
}

.btn-engine-start:before {
  position: absolute;
  top: 7.5px;
  left: 7.5px;
  display: block;
  width: 130px;
  height: 130px;
  content: "";
  border-radius: 50%;
  /* 内側のグラデーションを調整 */
  background: linear-gradient(
    135deg,
    #4a378d 0%,
    #4a378d 19%,
    #ededed 50%,
    white 77%,
    white 100%
  );
  filter: none;
}

a.btn-engine-start-in {
  font-size: 14px;
  line-height: 1.2;
  position: absolute;
  top: 18px;
  left: 18px;
  width: 109px;
  height: 109px;
  padding: 35px 0 0;
  color: #fff;
  border-radius: 50%;
  /* 押下部分の黒系グラデーションを調整 */
  background: linear-gradient(
    135deg,
    #666 0%,
    #0a0a0a 46%,
    #000 50%,
    #0a0a0a 69%,
    #1b1b1b 100%
  );
  -webkit-box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  filter: none;
}

a.btn-engine-start-in:before {
  position: absolute;
  top: 18px;
  left: calc(50% - 13px);
  width: 26px;
  height: 8px;
  content: "";
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-radius: 10px;
  background: #555; /* 初期色はグレー系 */
}

/* ホバー時の変化 (緑系の光) */
.btn-engine-start:hover a.btn-engine-start-in:before {
  top: 20px;
  background: #61c419;
  -webkit-box-shadow: 0 0 6px rgba(97, 196, 25, 0.8);
  box-shadow: 0 0 6px rgba(97, 196, 25, 0.8);
}

.btn-engine-start:hover a.btn-engine-start-in {
  padding: 37px 0 0;
  color: #b4e391;
  -webkit-box-shadow: inset 0 1px 1px black, 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 1px black, 0 1px 2px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 6px rgba(97, 196, 25, 0.5), 0 0 6px rgba(97, 196, 25, 0.5);
}

a.btn-engine-start-in span {
  font-size: 10px;
}

/* -------------------- ボタン（汎用3） -------------------- */
.button3 {
  display: inline-block;
  border-radius: 12px; /* 統一された角丸 */
  font-size: 13pt;
  text-align: center;
  cursor: pointer;
  padding: 10px 10px;
  background: linear-gradient(135deg, #e0c7ff, #bcd3ff); /* ボタンと逆のグラデーション */
  color: #4a378d; /* 文字色をパープル系に */
  line-height: 1.75em;
  transition: .3s;
  border: 1px dotted #808080; /* 枠線を点線で残す */
}
.button3:hover {
  background: linear-gradient(135deg, #f0d6ff, #cbe0ff);
  transform: translateY(-2px);
}

/* -------------------- リスト -------------------- */

/* 左線付きリスト */
.list-front {
  padding: 0;
  position: relative;
}

.list-front li {
  color: #333;
  /* 左側の線をブルー系に統一 */
  border-left: solid 8px #a8b8ff;
  /* 背景色を統一 */
  background: rgba(244, 244, 255, 0.85);
  margin-bottom: 5px;
  line-height: 1.5;
  border-radius: 0 10px 10px 0; /* 右側の角だけ丸く */
  padding: 0.5em;
  list-style-type: none!important;
}

/* ol.niju（二重線付きリスト） */
ol.niju {
  color: #4a378d;
  border: double 5px #a8b8ff; /* 二重線をブルー系に統一 */
  background: #f4f4ff; /* 背景を統一 */
  padding: 0.5em 0.5em 0.5em 2em;
  border-radius: 10px; /* 角丸追加 */
}
ol.niju li {
  line-height: 1.5;
  padding: 0.5em 0;
}

/* ol.sikaku（四角番号付きリスト） */
ol.sikaku {
  counter-reset:number;
  list-style-type: none!important;
  padding:0.5em;
  border: dashed 1px #a8b8ff; /* 枠線をブルー系に統一 */
  background: rgba(255, 255, 255, 0.7); /* 半透明背景 */
  border-radius: 10px;
}
ol.sikaku li {
  position: relative;
  line-height: 1.5em;
  padding: 0.5em 0.5em 0.5em 30px;
}
ol.sikaku li:before{
  position: absolute;
  counter-increment: number;
  content: counter(number);
  /* 数字のデザインを統一 */
  display:inline-block;
  background: #a8b8ff; /* ブルー系に統一 */
  color: white;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 15px;
  left: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  border-radius: 4px; /* 四角だが少し角丸 */
}

/* ol.Nested（入れ子式番号リスト） */
ol.Nested {
    list-style:none;
    counter-reset:counter;
    background: rgba(244, 244, 255, 0.7); /* 背景を追加 */
    padding: 1em;
    border-radius: 10px;
}
ol.Nested li::before {
    content:counters(counter, "-") "｜ ";
    counter-increment:counter;
    color: #4a378d; /* 番号の色を統一 */
    font-weight: bold;
}
ol.Nested li ol {
    list-style:none;
    counter-reset:counter;
    padding-left: 1.5em;
}

/* -------------------- ボックス -------------------- */

/* box27（左上角タイトルボックス - ブルー系） */
.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #a8b8ff; /* ブルー系に統一 */
    background: rgba(255, 255, 255, 0.75); /* 背景を統一 */
    border-radius: 10px;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #a8b8ff; /* ブルー系に統一 */
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

/* box27-2（左上角タイトルボックス - ピンク系） */
.box27-2 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 3px #e0c7ff; /* ピンク/ラベンダー系に統一 */
    background: rgba(255, 244, 255, 0.8); /* 背景を統一 */
    border-radius: 10px;
}
.box27-2 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #e0c7ff; /* ピンク/ラベンダー系に統一 */
    color: #4a378d; /* 文字色を濃い色に */
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.box27 p, .box27-2 p {
    margin: 0;
    padding: 0;
}


/* box17（四隅縦線ボックス） */
.box17{
    margin:2em 0;
    position: relative;
    padding: 0.5em 1.5em;
    border-top: solid 2px #4a378d; /* 上下線をパープル系に統一 */
    border-bottom: solid 2px #4a378d;
    background: rgba(255, 255, 255, 0.7); /* 背景を追加 */
    border-radius: 10px;
}
.box17:before, .box17:after{
    content: '';
    position: absolute;
    top: -10px;
    width: 2px;
    height: -webkit-calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: #4a378d; /* 縦線をパープル系に統一 */
}
.box17:before {left: 10px;}
.box17:after {right: 10px;}
.box17 p {
    margin: 0;
    padding: 0;
}

/* box11（上太線影付きボックス） */
.box11{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #4a378d; /* 文字色をパープル系に統一 */
    background: rgba(255, 255, 255, 0.85); /* 背景を統一 */
    border-top: solid 5px #a8b8ff; /* 上線をブルー系に統一 */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
.box11 p {
    margin: 0;
    padding: 0;
}

/* -------------------- 続きを読む機能 -------------------- */
.readmore{
    position: relative;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8); /* 背景を追加 */
    padding: 10px;
    border-radius: 15px;
}

.readmore-content{
    position: relative;
    overflow: hidden;
    height: 200px;
}
.readmore-content::before {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    content: "";
    height: 100px;
    /* グラデーションの色を統一した背景色に合わせて調整 */
    background: linear-gradient(to top, rgba(244, 244, 255, 1) 0%, rgba(244, 244, 255, 1) 50%, rgba(244, 244, 255, 0.8) 50%, rgba(244, 244, 255, 0) 100%);
    background: -webkit-linear-gradient(to top, rgba(244, 244, 255, 1) 0%, rgba(244, 244, 255, 1) 50%, rgba(244, 244, 255, 0.8) 50%, rgba(244, 244, 255, 0) 100%);
}

/* 続きを読むボタン */
.readmore-label{
    display: table;
    bottom: 5px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    margin: 0 auto;
    z-index: 2;
    padding: 0 10px;
    background-color: #6c2bc1; /* パープル系に統一 */
    border-radius: 10px;
    color: #FFF;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.readmore-label:before{
    content: '続きを読む';
}

.readmore-check{
    display: none;
}
/*チェック時にボタンを非表示/「閉じる」表示*/
.readmore-check:checked ~ .readmore-label{
    position: static;
    transform: translateX(0);
    -webkit-transform: translateX(0);
}
.readmore-check:checked ~ .readmore-label:before{
    content: '閉じる';
}
/*チェック時に高さを自動に戻す*/
.readmore-check:checked ~ .readmore-content{
    height: auto;
}
/*チェック時グラデーション等を削除*/
.readmore-check:checked ~ .readmore-content::before {
    display: none;
}

/* -------------------- 装飾・ユーティリティ -------------------- */

/* ミラーテキスト */
.mirror {
  position: relative;
  color: #4a378d; /* 文字色をパープル系に統一 */
  font-size: 30px;
  line-height: 1.2;
  -webkit-box-reflect: below -10px -webkit-linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 90%); /* リフレクションを調整 */
}

/* 打ち消し線 */
span.del {
  text-decoration-line: line-through;
  text-decoration-style:solid;
  text-decoration-color: #dd0000; /* 赤色を統一 */
}

/* -------------------- テーブル -------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; /* 全体フォントに統一 */
    font-size: 16px;
    text-align: left;
    table-layout: auto;
    background: rgba(255, 255, 255, 0.9); /* 背景を半透明化 */
    border-radius: 10px;
    overflow: hidden; /* 角丸を効かせるため */
}

/* 表ヘッダー */
table thead tr {
    background-color: #a8b8ff; /* ブルー系に統一 */
    color: #3a2d6f; /* 文字色を濃いパープルに */
}

/* ヘッダー・データセル共通 */
table th,
table td {
    padding: 12px 15px;
    border: 1px solid #cce0ff; /* 枠線を薄いブルー系に統一 */
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 80px;
    max-width: 300px;
}

/* 偶数行背景 */
table tbody tr:nth-child(even) {
    background-color: #f4f4ff; /* 薄いラベンダー系に統一 */
}

/* ホバー時 */
table tbody tr:hover {
    background-color: #d8e0ff; /* ホバー色を統一 */
}

/* リンク */
table a {
    color: #3546b3; /* 統一されたリンク色 */
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* -------------------- テキストの折り返し -------------------- */
p, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}