@charset "UTF-8";

body {
    display: block;
    background: none;
}

/* スマホ専用の白背景エリア */
.intro-box {
    background-color: white;
    padding: 1.5rem;
}

/* 背景画像を付けたいエリア */
.bg-area {
    background-image: url(../images/251031-fuji_design.png);
    background-repeat: no-repeat;
    background-size: cover;
/* 👇 2. 写真を中央合わせにします（上が切れるのを防ぐ） */
    background-position: center;

    /* 👇 3. 器の「高さ」をしっかり確保します（ここを調整してください） */
    min-height: 1000px; /* もしくは 50vh（画面の高さの半分）など */
}

/* スマホだけ表示 */
@media screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* PCでは非表示（幅 769px 以上） */
@media screen and (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

.hero {
    padding: 2rem 1rem;
    height: auto;
}

h1 {
    font-size: 6rem;
    color: white;
    text-align: center;
    margin-top: 6rem;
}

h2 {
    font-size: 2rem;
    color: black;
    text-align: center;
}
#pdfOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 999999999;  /* ← 非常に高くする */
  display: none;   /* ← これが絶対に必要 */
  overflow: hidden;
}

#pdfOverlay .back-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000000000;
  background: white;
  padding: 8px 12px;
  : 1px solid #333;
  -radius: 4px;
  cursor: pointer;
}
.top-navigation-container {
    display: flex;            /* 横並びにする */
    align-items: center;      /* 上下の中央を揃える */
    justify-content: center;  /* 画面の真ん中あたりに配置する（左寄せにしたい場合は flex-start ） */
    gap: 50px;                /* ★重要：AIの案内とボタンの間の「離す距離」です。自由に数値を調整してください */
    margin-top: 30px;         /* 上のヘッダーエリアとの隙間 */
    padding: 0 20px;          /* 画面端の余白 */
}

/* AI案内テキストの幅を少し制限してバランスを取る（もし必要なら） */
.clean-ai-section {
    max-width: 500px;         /* テキストが横に広がりすぎないように制限 */
}

/* 右側のボタンエリアの見た目（元の装飾を活かす場合） */
.clean-next-section {
    width: 200px;
    height: auto;
    background-color: #fff6fa;
    border: 1px solid #ffccd5; /* 枠線（お好みの色に） */
    border-radius: 8px;        /* 角丸 */
    padding: 15px;             /* 内側の余白 */
    text-align: center;        /* 文字を中央揃えに */
    font-size: 1.1em;
    font-weight: bold;
}

/* リンク自体の装飾 */
.clean-next-section a {
    text-decoration: none;     /* 下線を消す */
    color: #d63384;            /* リンクの色（お好みの色に） */
    display: block;            /* ボタンっぽく押しやすくする */
    margin-top: 5px;
}
.next {
    width: 200px;
    height: auto;
    position: relative;
    bottom: 100px;
    left: 200px;
    margin-left: 500px;
    background-color: #fff6fa;
    -radius: 8px;
    -style: solid;

    font-size: 1.2em;
    font-weight: bold;
}
.next a {
    text-decoration: none; /* リンクの下線を消す */
}


@media screen and (max-width: 768px) {
    .bg-area {
        background-size: contain;
        background-position: top;
        background-repeat: no-repeat;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.2rem;
    }

    article {
        flex-direction: column;
        margin-top: 20vh;
        padding: 1rem;
    }

    main {
        width: 100%;
    }

    aside {
        width: 100%;
        margin-top: 2rem;
        order: 999;
    }



   .issued_paper {
        height: auto;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .issued_paper > div {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }
/* 1. notice を中央に戻す */
    .notice {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* 2. sample_of_paper を画面いっぱいに */
    .sample_of_paper {
        width: 100% !important;
        margin: 0 auto;
        padding: 0 10px;
    }

    .sample_of_paper .item_3 {
        width: 100% !important;
        font-size: 1rem;
        line-height: 1.4;
    }

   /* 3. AI_corner も同じく画面いっぱいに */
    .AI_corner {
        width: 100% !important;
        margin: 0 auto;
        padding: 0 10px;
    }

    .AI_explain {
        width: 100% !important;
        font-size: 1rem;
        line-height: 1.4;
    }

.show_essays {
        height: auto;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .show_essays > div {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }

.explanation_root {
       font-size: 1rem;
    }

.hide-on-mobile {
        display: none;
    }

    .hide-on-mobile {
        content: attr(data-mobile-label);
        display: block;
        padding: 10px;
        background: #eef;
        -radius: 6px;
        font-size: 1.2rem;
        color: #333;
    }
}

