/*** LP用CSS ***/

/* .main-container{
    max-width: 100%;
} */
/***  フォトコンテスト終了コメント ***/
.campaign-container {
    background-color: rgb(27, 7, 156); /* 外側の背景 */
    padding: 30px;
    text-align: center;
}
.campaign-message {
    color: #fff; /* 白文字 */
    font-size: 4vw; /* 大きい文字 */
    line-height: 1.5;
}

img {
    padding: 0px;
    margin: 0px;
    max-width: 100%;
}
@media (min-width: 1300px) {
    img {
        width: 100%; /* 幅を100%に設定 */
        padding: 0px;
        margin: 0px;
    }
}
/* navbar */
nav {
    display: flex;
    /* width: 95%; */
    height: 13vh;
    padding: 1vh 2%;
    align-items: center;
}

.logo_menu {
    max-width: 100%;
    flex: 1; /* 左寄せの要素を1つのカラムとして伸縮させます */
    /* text-align: left; */
}
.logo_pic {
    max-height: 10vh;
}
/* スマホサイズ */
@media (max-width: 768px) {
    .logo_pic {
        max-height: 7vh;
    }
}

.form_menu {
    max-width: 50%;
    flex: 1;
    /* text-align: right; */
    display: flex;
    justify-content: flex-end;
}
.form-link-item {
    margin-left: 10px;
}
/* .menu{

    display: flex;
    justify-content: space-between;
    align-items: center;
} */
.btns {
    display: flex;
    justify-content: right;
}
.content-header {
    font-size: 1.2em;
    background-color: red;
    color: white;
    padding: 10px;
    text-align: center;
    letter-spacing: 20px;
    background: radial-gradient(white 1px, orange 0.1%, red 99.9%);
}

/* メイン画像 */
.headimage {
    padding-top: 6vh;
    width: 100%;
}

/* コンテンツエリア */
.content-wrapper {
    background-image: url(../img/bkgrd_img.png);
    background-repeat: repeat;
}
.content {
    width: 95%;
    margin: 0 auto;
}

/* キャッチ文言 */
.explain {
    /* width: 90%; */
    margin-bottom: 2vh; /*下に余白*/
    padding-top: 5vh;
}
.explain_image {
    width: 100%;
}
/* 募集要項 */
.info-block {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
    width: 100%;
}
.guide {
    padding: 0 15px;
    border-spacing: 10px 50px;
    border-collapse: separate;
    border-spacing: 0 30px; /*スペース 左右0 上下30*/
}
.guide th {
    font-weight: normal;
    width: 36%; /*テーブルヘッダーセルの幅を全体の 30%*/
    text-align: center;
    vertical-align: top;
}
.guide td {
    width: 64%; /*テーブルデーターセルの幅を全体の 70%*/
    vertical-align: middle;
}

/* スマホサイズ以下の設定 */
@media (max-width: 767px) {
    .guide {
        width: 90%;
        margin: 0 auto; /* 中央揃え */
    }
    .guide th {
        width: 36%; /*テーブルヘッダーセルの幅を全体の 30%*/
    }
    .guide td {
        width: 50%; /*テーブルデーターセルの幅を全体の 70%*/
    }
}

.h-yoko1 {
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    color: white;
    text-align: center;
    margin-right: 15px;
    padding: 3px 3px;
    background-color: #ef262695;
    justify-content: center;
}
.h-yoko2 {
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    color: red;
    text-align: center;
    margin-right: 15px;
    padding: 3px 10px;
    border: 1px solid red;
    background-color: white;
    justify-content: center;
}
.d-yoko1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: bolder;
    line-height: 1em; /* 行の高さを1に設定して、テキストを上に寄せる */
}
.d-yoko2 {
    font-size: 1em;
    font-weight: bolder;
}
.largefont {
    font-size: 1.5em;
    margin: 0 1px;
}
.example-txt-decoration {
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    font-weight: bold;
    border: solid 2px #000000;
}
.example-txt {
    font-size: 1rem;
    color: black;
    text-align: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
.example-image {
    font-size: 1.2rem;
    margin: 0;
}
.example-pics {
    /*margin: 0 0 3rem; /* 上下スペース0.0.3rem */
    text-align: center; /* 中央揃え */
}

.example-container {
    width: 100%; /* 親要素の幅に合わせる */
    box-sizing: border-box; /* パディングを含む幅の計算 */
}
.example-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 画像とテキストを中央に配置 */
    width: 100%;
}

.example-pic {
    position: relative; /* 相対位置を設定 */
    text-align: center; /* 画像を中央に揃える */
    /*padding: 0; /* パディングを調整（必要に応じて） */
}

.example-image-txt {
    width: 100%; /* テキストを親要素の幅いっぱいに広げる */
    text-align: left; /* テキストを左揃えにする */
    margin: 0; /* マージンをリセット */
    padding: 0px 12px; /* 必要に応じて調整 */
}

.example-pic img {
    max-width: 100%; /* 画像を親要素の幅に合わせる */
    height: auto; /* 画像の高さを自動調整 */
}
.example-content-wrapper {
    display: inline-block; /* コンテンツのサイズに合わせる */
    text-align: center; /* テキストを中央揃え */
    margin: 0 auto; /* 中央揃え */
    width: 80%;
}
/* 参加方法 */
.sanka-guide {
    display: flex;
    margin-bottom: 50px;
}
.sanka-box {
    text-align: center;
    margin: 0 0px;
    padding: 0;
}

.explain-frame {
    width: 90%; /*外枠がその要素のサイズに合わせて描画されます*/
    height: auto;
    margin: 0 auto;
    border: 2px solid red; /* ここで赤い外枠が設定されています */
    border-radius: 20px 20px 20px 20px; /* ここで外枠角の丸みが設定されています */
    padding: 25px; /*コンテンツと外枠の間の距離*/
    display: inline-block;
    text-align: left;
    background-color: white;
}
.explain-title {
    font-size: 1.5em;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-align: center;
    color: red;
    word-wrap: break-word;
}
.explain-content {
    font-size: 1em;
}
.step {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    color: white;
    text-align: center;
    margin-right: 15px;
    padding: 3px 30px;
    background-color: red;
    border-radius: 25px 25px 25px 25px;
    line-height: 2;
}
.title {
    white-space: nowrap;
}

.uketsukechu {
    animation: flash 1s linear infinite;
    font-size: 1rem;
    position: relative;
    display: inline-block;
    padding: 0.1rem 1rem 0.1rem 1rem;
    color: #fff;
    background: navy;
}
@keyframes flash {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.form-link-btn {
    text-align: center;
}
.toolsform {
    text-align: center;
    transition: transform 0.2s;
}
.toolsform:hover {
    transform: scale(1.1);
}
.popdl {
    text-align: center;
    transition: transform 0.2s;
}
.popdl:hover {
    transform: scale(1.05);
}
.contestform {
    text-align: center;
    transition: transform 0.2s;
}
.contestform:hover {
    transform: scale(1.05);
}

/* ダウンロード */
.download {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
    transition: transform 0.2s;
}
.download:hover {
    transform: scale(1.05);
}
.download-txt {
    text-align: center;
    font-size: 1.2em;
    color: red;
}

/* 結果発表 */
.kekka {
    position: relative;
    width: 85%;
    margin: 5vh auto;
    padding: 50px;
    border: 3.2px solid #ef262695;
    border-radius: 20px 20px 20px 20px;
    background-color: #fff;
    text-align: center;
    margin-top: 10%;
}
.title-kekka {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -70%);
    -webkit-transform: translate(-50%, -70%);
    -ms-transform: translate(-50%, -70%);
    width: 50%;
    margin-top: -25px;
}
.gold-medal {
    position: relative;
    margin-top: 13%;
    margin-bottom: 10px;
}
.kekka-gold-tit {
    z-index: 10;
    width: 100%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -70%);
    -webkit-transform: translate(-50%, -70%);
    -ms-transform: translate(-50%, -70%);
}

.silver-medal {
    position: relative;
    margin-top: 8%;
    margin-bottom: 5px;
}
.kekka-silver-tit {
    z-index: 10;
    width: 70%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -70%);
    -webkit-transform: translate(-50%, -70%);
    -ms-transform: translate(-50%, -70%);
}

.kekka-pic-gold {
    position: relative;
    width: 110%; /* 親要素の110%の幅 */
    margin: 0 auto; /* 自動でセンター配置 */
    margin-bottom: 2vh;
    left: 50%; /* 左端を親要素の中央に移動 */
    transform: translateX(-50%); /* 要素全体を中央揃え */
    transition: transform 0.2s;
    display: block; /* ブロック要素に変更 */
}

.kekka-pic {
    position: relative;
    width: 90%;
    margin-bottom: 2vh;
    margin: 0 auto;
    transition: transform 0.2s;
    display: inline-block;
}
/* レシピ */
.recipe {
    text-align: center;
    margin-bottom: 0vh;
    transition: transform 0.2s;
    margin-top: 2vh; /* 上に2vhの余白を追加 */
}
.recipe:hover {
    transform: scale(1.05); /* クリック時浮く */
}

/* 事務局 */
.jimukyoku {
    width: 40%;
    text-align: center;
    margin: 5vh auto;
    transition: transform 0.3s;
}
.jimukyoku:hover {
    transform: scale(1.05); /* クリック時浮く */
}
.kumiai {
    width: 100%;
    text-align: center;
    margin: 1vh auto;
}
footer {
    width: 100%;
}

/* スマホサイズ */
@media screen and (max-width: 767px) {
    /* 事務局 */
    .jimukyoku {
        width: 80%;
        text-align: center;
        margin: 10px auto;
    }
    /* 結果発表 */
    .gold-medal {
        position: relative;
        margin-top: 15%;
        margin-bottom: 25%;
    }
    .silver-medal {
        position: relative;
        margin-top: 15px;
        margin-bottom: 13%;
    }
    .kekka-gold-tit {
        width: 100%;
    }
    .kekka-silver-tit {
        width: 80%;
    }
    .kekka {
        width: 85%;
        padding: 20px;
        margin-top: 13%;
        margin-bottom: -10px;
    }
    .kekka-pic-gold {
        margin-bottom: 0px;
    }
    .title-kekka {
        width: 60%;
        margin-top: -13px;
    }
}

/*   中枠   */
.example-txt-decoration {
    border: 1px solid red;
    display: flex;
    align-items: center;
    padding: 10px;
}

.example-title {
    color: red;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
    flex: 0 0 auto; /* 固定幅に設定 */
}

.example-txt {
    flex: 1; /* 残りのスペースを取る */
}

.example-txt p {
    margin: 0;
}

.highlight {
    color: red;
}

/*   ボタン   */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* 上下の余白を設定 */
}

/* スマホサイズ以下の設定 */
@media (max-width: 767px) {
    .button-container {
        padding: 10px 0; /* 上下の余白を10pxに設定 */
    }
}

/* 基本のボタンスタイル（PC用） */
.long-button {
    display: inline-block;
    background-color: #c13f3f;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 16px; /* 角の丸みを設定 */
    text-align: center;
    font-size: 2vw; /* テキストの大きさを設定 */
    font-weight: bold;
    text-decoration: none;
    box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.3),
        /* 上の光沢 */ 0 6px 9px rgba(0, 0, 0, 0.2); /* 外側の影 */
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 75vw; /* 横に長くするための幅の指定 */
    letter-spacing: 1.2vw; /* 文字の横の間隔を設定 */
    /*box-sizing: border-box; /* パディングを含めて幅を計算 */
    height: 50px; /* 高さ */
    line-height: 25px; /* テキストをボタンの中央に配置 */
    background-image: linear-gradient(
        to bottom,
        #d64f4f,
        #b12b2b
    ); /* 上から下にかけてのグラデーション */
}

/* ホバー時のスタイル */
.long-button:hover {
    transform: scale(1.01); /* クリック時浮く */
}
/* クリック時のスタイル */
.long-button:active {
    filter: brightness(0.7); /* クリック時に画像の色を暗くする */
    transform: scale(0.98); /* 押した感じを出すために少し縮小 */
}

/* ボタン 小さい画面（モバイルやタブレット）用のスタイル */
@media (max-width: 767px) {
    .long-button {
        width: 75%; /* 画面幅に合わせる */
        font-size: 4vw; /* フォントサイズを小さく */
        padding: 10px 20px; /* パディングの調整 */
        letter-spacing: 1.2vw; /* 文字間隔を小さくする */
        height: 36px; /* 高さ */
        line-height: 15px; /* テキストをボタンの中央に配置 */
    }
}

.wrapper {
    text-align: center; /* 親要素で全体を中央に配置 */
}

.center-text {
    text-align: center; /* テキストを中央寄せ */
    font-size: 19px; /* テキストの大きさを設定 */
    margin-top: 20px; /* 上に20pxの余白を追加 */
    /*display: inline-block; /* 要素全体を中央に配置するために使用 */
    font-weight: bolder;
}

/* スマホサイズ */
@media (max-width: 768px) {
    .center-text {
        font-size: 3.5vw; /* 同じサイズを維持 */
        margin-top: 4vw; /* 同じ余白を維持 */
        width: 75%; /* 画面幅に合わせる */
        text-align: center; /* テキストを中央寄せ */
        margin-left: auto; /* 横方向中央寄せのために自動マージン */
        margin-right: auto; /* 横方向中央寄せのために自動マージン */
    }
}

.download-button {
    margin: 0 20px; /* 左右に20pxのマージンを追加 */
    width: 100%;
}
.download-button img {
    max-width: 100%;
    height: auto;
}

/* ホバー時のスタイル */
.download-button img:hover {
    transform: scale(1.01); /* クリック時浮く */
}
/* クリック時のスタイル */
.download-button img:active {
    filter: brightness(0.7); /* クリック時に画像の色を暗くする */
    transform: scale(0.98); /* 押した感じを出すために少し縮小 */
}

/* スマホ画面用のスタイル */
@media screen and (max-width: 768px) {
    .download-button {
        display: flex;
        justify-content: center; /* ボタンを中央揃え */
        margin: 0 auto; /* ボタンを左右中央揃え */
    }

    .download-button img {
        max-width: 80%; /* スマホ画面でサイズを小さくする */
    }
}

/*   破線   */
.custom-dashed-line {
    width: 95%; /* 幅を調整 */
    height: 3px; /* 線の太さ */
    background-image: linear-gradient(
        to right,
        pink 50%,
        rgba(255, 255, 255, 0) 50%
    );
    background-size: 10px 2px; /* 破線の長さと間隔を調整 */
    margin: 20px auto; /* 上下の余白を設定し、左右は自動で中央揃い */
}
.image-container {
    position: relative;
    width: 100%;
    /*max-width: 600px; /* 画像の最大幅に合わせて調整 */
    display: flex;
    margin: 0 auto; /* 横方向の中央揃え */
}

.image-container img {
    max-width: 100%;
    height: auto;
}

.background-image {
    width: 100%;
    height: auto;
}
.text-center {
    width: 93%;
    margin: 0 auto; /* 横方向の中央揃え */
}
/* 画像重ねたボタン ホバー時    */
a:active .overlay-image,
a:focus .overlay-image:hover {
    transform: scale(1.02); /* クリック時浮く */
}
/* クリック時のスタイル */
a:active .overlay-image,
a:focus .overlay-img:active {
    filter: brightness(0.7); /* クリック時に画像の色を暗くする */
    transform: scale(0.98); /* 押した感じを出すために少し縮小 */
}

/*  画像重ねた時のサイズ   */
.overlay-image {
    position: absolute;
    top: 80%; /* 外側の画像に対する割合で位置を指定 上からの位置を調整 */
    left: 10%; /* 外側の画像に対する割合で位置を指定 左からの位置を調整 */
    width: 80%; /* 外側の画像に対する割合でサイズを指定 オーバーレイ画像の幅 */
    height: auto; /* 高さは自動調整 */
    cursor: pointer; /* クリック可能にする */
    z-index: 10; /* 背景画像の上に表示されるように設定 */
}
/*  期間画像サイズ位置   */
.kikan {
    width: 100%; /* 親要素の幅を全体に広げる */
    text-align: center; /* 画像を中央揃え */
    margin: 0 auto; /* 親要素自体を中央に配置 */
    height: auto;
}
.kikan img {
    width: 85%; /* 画像を大きくするときは150%に設定 */
    height: auto; /* 縦横比を保つ */
    max-width: none; /* 最大幅の制約を解除 */
}
/*  トップボタン   */
.button_container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 10px; /* 右との間隔調整 */
}

.button_pic {
    width: 17vw; /* ボタン画像の幅を調整 */
    height: auto;
    margin-left: 0px; /* ボタン間のスペース */
}
.btn {
    margin: 0;
    padding: 0;
}
/* ホバー時のスタイル */
.button_pic:hover {
    transform: scale(1.02); /* クリック時浮く */
}
/* クリック時のスタイル */
.button_pic:active {
    filter: brightness(0.7); /* クリック時に画像の色を暗くする */
    transform: scale(0.98); /* 押した感じを出すために少し縮小 */
}

/* サイドメニュー（ハンバーガボタン） */
.side-menu {
    position: fixed;
    top: 0;
    right: -220px;
    width: 220px; /* メニュー横調整 */
    height: 100%; /* メニュー高さ調整 */
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 100; /* 重ね画像や他の要素よりも前面に表示されるように設定 */
}
.side-menu.show {
    right: 0;
    padding-top: 14vh; /* 上にスペースを追加 */
}
.side-menu ul {
    padding: 1rem;
    list-style: none;
}
.side-menu li {
    margin: 0.3rem 0; /* 上下 文字間隔 */
}
.side-menu a {
    font-size: 1.2rem; /* 文字サイズを調整 */
    color: #333;
}

/* リンクにホバーしたときのスタイル */
.side-menu a {
    text-decoration: none; /* デフォルトの下線を取り除く */
    color: #333; /* リンクのデフォルトカラー */
    position: relative; /* 下線のための相対位置指定 */
    display: inline-block; /* 下線を文字だけに合わせるため */
}

.side-menu a:hover {
    color: #007bff; /* ホバー時のテキストカラー */
}

.side-menu a:hover::after {
    content: ""; /* 擬似要素の内容は空にする */
    position: absolute; /* 絶対位置で下線を表示 */
    left: 0;
    bottom: 10px; /* テキストの下に下線を表示する */
    width: 100%; /* テキストの幅に合わせる */
    border-bottom: 1.2px solid #007bff; /* 下線のスタイル */
}

.navbar-toggler {
    position: relative; /* トグルボタンを基準として位置を指定するために relative を設定 */
    border: none; /* ボタンの枠線を削除 */
    background: none; /* ボタンの背景を削除 */
    font-size: 1.5rem; /* ボタン内のフォントサイズを 1.5rem に設定 */
}

.navbar-toggler:focus {
    outline: none; /* デフォルトの外枠を削除 */
    box-shadow: 0 0 0 0px black; /* クリックしたときの外枠の太さと色を設定 */
}

.navbar-toggler .fa-bars,
.navbar-toggler .fa-times {
    color: black; /* アイコンの色を黒に設定 */
    font-size: 1.5rem; /* アイコンのサイズを 1.5rem に設定 */
}

/* 最初はハンバーガーアイコンを表示 */
.navbar-toggler .fa-bars {
    display: block; /* fa-bars アイコンを表示 */
}

.navbar-toggler .fa-times {
    display: none; /* fa-times アイコンを非表示 */
}

/* トグルが閉じている状態ではハンバーガーアイコンを表示 */
.navbar-toggler.collapsed .fa-bars {
    display: block; /* .collapsed クラスが付いているときに fa-bars アイコンを表示 */
}

/* トグルが開いている状態ではハンバーガーアイコンを非表示 */
.navbar-toggler:not(.collapsed) .fa-bars {
    display: none; /* .collapsed クラスがないときに fa-bars アイコンを非表示 */
}

/* トグルが開いている状態では×アイコンを表示 */
.navbar-toggler:not(.collapsed) .fa-times {
    display: block; /* .collapsed クラスがないときに fa-times アイコンを表示 */
}

/* トグルが閉じている状態では×アイコンを非表示 */
.navbar-toggler.collapsed .fa-times {
    display: none; /* .collapsed クラスが付いているときに fa-times アイコンを非表示 */
}
/* 大きな画面ではサイドメニューを表示しない */
@media (min-width: 768px) {
    .side-menu {
        display: none;
    }
}

/* 大きな画面 ボタン行の間隔を設定 (POP ポスターダウンロードボタン） */
@media (min-width: 768px) {
    .button-row {
        display: flex;
        justify-content: center;
    }

    .button-row .col-md-6 {
        margin: 0 -5vw; /* 左右の間隔を調整 (-60pxを左右合わせて-120px) */
        padding: 0 5vw; /* ボタン内の左右余白を追加して調整 */
        box-sizing: border-box; /* paddingやborderを含めて幅を計算 */
    }
    .button-row img {
        max-width: 100%; /* ボタンの画像サイズを親要素に合わせて自動調整 */
        height: auto; /* 高さは自動調整 */
    }
}
/* 参加方法バー */
.sanka {
    padding-top: 10px; /* 上に20pxを追加 */
    width: 100%;
    margin: 0 auto; /* 右 auto 中央揃え */
    display: block; /* インライン要素ではなくブロック要素として扱う */
}

/* 1300px以上の画面サイズ用スタイル */
@media (min-width: 1300px) {
    .center-text {
        font-size: 1.4vw; /* 同じサイズを維持 */
        margin-top: 2vw; /* 同じ余白を維持 */
    }
    .custom-dashed-line {
        height: 0.3vw; /* 線の太さ */
        background-size: 15px 5px; /* 破線の長さと間隔を調整 */
        /*margin: 20px auto; /* 上下の余白を設定し、左右は自動で中央揃い */
    }
    .example-image-txt {
        font-size: 1.4vw;
    }
    .long-button {
        padding: 10px 30px;
        border-radius: 1.2vw; /* 角の丸みを設定 */
        font-size: 2vw; /* テキストの大きさを設定 */
        width: 75vw; /* 横に長くするための幅の指定 */
        letter-spacing: 1.5vw; /* 文字の横の間隔を設定 */
        height: 4vw; /* 高さ */
        display: flex; /* Flexboxを使用 */
        justify-content: center; /* 水平方向に中央揃え */
        align-items: center; /* 垂直方向に中央揃え */
        text-align: center; /* テキストの中央揃え */
    }
    .guide th {
        width: 15%; /*テーブルヘッダーセルの幅を全体の 30%*/
    }
    .guide td {
        width: 50%; /*テーブルデーターセルの幅を全体の 70%*/
    }

    .h-yoko1 {
        font-size: 1.2vw;
    }
    .h-yoko2 {
        font-size: 1.2vw;
    }
    .d-yoko1 {
        font-size: 1.4vw;
    }
    .d-yoko2 {
        font-size: 1.4vw;
    }
}
