@charset "utf-8";

/* 基本設定 */
body {
    margin: 0;
    padding: 0;
    width: 100%;

    /* 横スクロールバーが出るのを防ぐ */
    overflow-x: hidden;

    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    background-color: #F6FCFF;
    /* background: linear-gradient(to left, #FFFFFF 0%, #E6FCFF 100%); */

    background-image: url('../img/background_pattern.png');    
    background-repeat: repeat;
    background-size: 320px 128px;
    background-size: auto 128px;

    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* タイトル部分 */
.main-title-img {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    max-width: 100%;
    height: auto;
  }

.main-title-img img {
    max-width:100%;
    height: auto;
    display: block;
    width: 500px;
    object-fit: contain;
}

/* メインコンテンツ */
.container {
    flex-grow: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

/* 説明テキスト */
.description {
    color: #333333;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: bold;
    max-width: 640px;
    margin: 0 auto 0px;
    text-align: left;     /* 行の始まりを左揃えにする */
}

/* ドキュメント名 */
.document-name {
    color: #4D81FF;
    line-height: 1.6;
    font-size: 1.3rem;
    font-weight: bold;
    max-width: 640px;
    margin: 50px auto 10px;
}

/* ボタンのレイアウト */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 10px; */
    margin-bottom: 10px;
}

/* ボタンのデザイン */
.glass-button {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    padding: 16px;
    margin-bottom: 10px;

    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    border-radius: 16px;

    /* ボタンのグラデーション */
    background: linear-gradient(to bottom, #19CBFF 0%, #4D81FF 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;

    border: 4px solid #ffffff;
}

.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

/* 備考テキスト */
.footer-section {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #333333;
    font-weight: medium;
}

/* 画像リストのレイアウト */

.document-content {
    padding: 20px;
}

.document-img-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    align-items: center;
}

.document-page {
    width: 100%;
    max-width: 850px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    display: block;
}

/* 戻るボタン */
.back-link {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 70px;
    padding: 6px;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;

    text-decoration: none;
    font-size: 0.9rem;
    color: white;
    font-weight: bold;
    border-radius: 8px;

    /* ボタンのグラデーション */
    background: linear-gradient(to bottom, #19CBFF 0%, #4D81FF 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;

    border: 2px solid #ffffff;
}


@media (max-width: 900px) {
    .main-title-img img {
        width: 480px;
    }
}


@media (max-width: 600px) {
    .main-title-img {
        margin-right: 10px;
        margin-left: 10px;
    }
    .main-title-img img {
        width: 400px;
    }
    .description {
        font-size: 0.9rem;
    }
    .document-name {
        color: #4D81FF;
        font-size: 1.0rem;
    }
    .glass-button { 
        width: 90%; 
        font-size: 1.0rem;
    }
    .footer-section {
        font-size: 0.8rem;
    }

    .document-content {
        padding: 10px;
    }
}


