@charset "UTF-8";

/*Zen Kaku Gothic New の読み込み（未インストールの環境でもデザイン通りに出すため）*/
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

/* --共通部分-- */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

:root {
    --main-color: #B51D2C;
    --accent1-color: #FED472;
    --accent2-color: #668834;
    --accent3-color: #F88E5E;
    --font-color: #470000;
    --sub-color: #FFF4D8;
    --back-color: #F9F9F9;
    --supplement1-color: #7C7473;
    --supplement2-color: #DCE2E5;
    --lattice-color: #E7EBED;
}

body, h1, h2, p, ol, li {
    /*max-width: 414px;*/
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

h2{
    border-left:4px solid var(--main-color); 
    padding:0 8px; 
}

body {
    font-family: 'Zen Kaku Gothic New';
    color: var(--font-color);
    line-height: 1.6;
    background-color: var(--back-color);
    background-image: 
        linear-gradient(0deg, var(--lattice-color) 1px, transparent 1px), 
        linear-gradient(90deg, var(--lattice-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

img {
    max-width: 100%;
}

.header-band {
    height: 20px;
    background-color: var(--main-color);
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* --ページヘッダー-- */
.page-header {
    text-align: center;
    margin-top: -14px;
    margin-bottom: 2px;
}

.logo-area {
    display: inline-block;
    position: relative;
    overflow: visible;
}

.title {
    display: block;
    position: relative;
    z-index: 2;
}

/*タイトル背後の足跡*/
.footprints {
    display: flex;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 1;
    width: 370px; 
    max-width: none; 
    justify-content: center;

    pointer-events: none;
}

/* --最初のページ-- */
.description {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: var(--font-color);
    margin-bottom: 0;
    letter-spacing: 3px;
}

.highlight-num {
    font-size: 20px;
    color: var(--main-color);
    font-weight: bold;
}

.highlight-2 {
    font-size: 20px;
    color: var(--accent2-color);
    font-weight: bold;
}

/*ステップ*/
.steps-card{
    margin: 5px -5px 4rem;
    background: var(--sub-color);
    border-radius: 14px;
    padding: 5px 20px 6px;
}
.step-image{
    max-width: 100%;
    margin: auto;
    display: block;
}
.step{
    padding: 10px 0 12px;
    border-bottom: 1px dashed var(--accent2-color);
    text-align: center;
}
.step:last-child{ border-bottom: none; }
.step h3{
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--font-color);
    font-weight: 700;
}
.step p{
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/*参加方法*/

.participation-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 20px;
    text-align: left;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 14px;
    text-align: left;
    margin-bottom: 25px;
}

.method-card {
    margin: 5px -5px 30px;
    background: var(--sub-color);
    border-radius: 14px;
    padding: 5px 20px 6px;
}

.method-title {
    font-weight: bold;
    font-size: 16px;
    margin-left: 31px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.method-card ol {
  font-size: 14px;
  list-style-type: none;
  counter-reset: my-counter;
}

.method-card ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.method-card ol li:last-child {
  margin-bottom: 0;
}

.method-card ol li::before {
  counter-increment: my-counter;
  content: counter(my-counter) ". ";
  color: #795548;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.line{
    margin-top: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--font-color);
    text-align: center;
}

.coming-soon {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-top: px;
    color: var(--font-color);
    margin-bottom: 50px;
}

/* --ロード画面（全ページ共通 / js/loading.js）-- */

.loading {
    position: fixed;
    inset: 0;
    z-index: 100;              /*メニュー・モーダルより手前*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--back-color);
    background-image:
        linear-gradient(0deg, var(--lattice-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--lattice-color) 1px, transparent 1px);
    background-size: 40px 40px;
    transition: opacity 0.3s;
}

/*hidden の間は出さない（display:flex で hidden が効かなくなるのを防ぐ）*/
.loading[hidden] {
    display: none;
}

.loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/*表示中は後ろのページをスクロールさせない*/
body.is-loading {
    overflow: hidden;
}

/*
  郵便車のコマ送り（1周 1.2秒）
    0〜45%   Group 130 … 平らな道を走る
    45〜60%  Group 129 … 前輪が段差に乗って、前が上がる
    60〜75%  Group 128 … 後輪が段差に乗って、後ろが上がる
    75〜100% Group 130 … 着地して走る
  速さを変えたいときは .loading-frame の 1.2s を変える
*/
.loading-car {
    position: relative;
    width: 310px;
    max-width: 90vw;
    height: 108px;
}

.loading-frame {
    position: absolute;
    max-width: none;
    opacity: 0;
    animation: 1.2s infinite;
    animation-timing-function: step-end;   /*コマ送り（なめらかにつながないで切り替える）*/
}

/*3枚で画像の余白が違うので、車の先頭と地面に着いているタイヤの位置をそろえる*/
.loading-frame-flat {
    left: -1px;
    bottom: -1px;
    animation-name: loading-frame-flat;
}

.loading-frame-front {
    left: -3px;
    bottom: -2px;
    animation-name: loading-frame-front;
}

.loading-frame-rear {
    left: -4px;
    bottom: -2px;
    animation-name: loading-frame-rear;
}

@keyframes loading-frame-flat {
    0%   { opacity: 1; transform: translateY(0); }
    45%  { opacity: 0; }
    75%  { opacity: 1; transform: translateY(2px); }   /*着地でちょっと沈む*/
    82%  { opacity: 1; transform: translateY(0); }
}

@keyframes loading-frame-front {
    0%   { opacity: 0; }
    45%  { opacity: 1; transform: translateY(-8px); }  /*はねて浮く*/
    60%  { opacity: 0; }
}

@keyframes loading-frame-rear {
    0%   { opacity: 0; }
    60%  { opacity: 1; transform: translateY(-5px); }
    75%  { opacity: 0; }
}

/*道路（点線が後ろに流れて、走っているように見せる）*/
.loading-road {
    width: 310px;
    max-width: 90vw;
    height: 3px;
    margin-top: 4px;
    background-image: repeating-linear-gradient(90deg, var(--supplement1-color) 0 18px, transparent 18px 32px);
    background-size: 32px 3px;
    animation: loading-road 0.4s linear infinite;
}

@keyframes loading-road {
    from { background-position: 0 0; }
    to   { background-position: 32px 0; }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/*動きを減らす設定の端末では、止まった車だけ出す*/
@media (prefers-reduced-motion: reduce) {
    .loading-frame,
    .loading-road {
        animation: none;
    }

    .loading-frame-flat {
        opacity: 1;
    }
}
