/* デフォルトの余白削除 */
*{
margin: 0;
padding: 0;
}

/* ================== ベース ================== */
body {
    background-color: #FFDCC5;
    background-image: url(../images/background.png);
    background-size: 100%;

    color: #4F4242;
    font-family: "M PLUS 1", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>;
    font-style: normal; */
}
img { 
    max-width: 100%; 
    height: auto; 
    vertical-align: top;
    /* display: block;  */
}
a {
    text-decoration: none;
}
ul{
    padding-left:0;
  /* background-color: pink; */
}
li{
    list-style:none;
  /* background-color: #A62B22; */
}
h2{
    /* background-color: #FFFFFF; */
    font-size: 30px;
    font-weight: 800;
    padding: 10px;
}
h3{
    /* background-color: #FFFFFF; */
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
}
p{
    /* background-color: #FFFFFF; */
    font-size: 16px;
    font-weight: 500;
}

/* ======　ボタン ======　*/
.button {
    display: inline-block;
    margin: 10px;
    padding: 8px 20px;
    border: 3px solid transparent;
    border-color: #4F4242;
    border-radius: 9999px; /* pill型 */
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* 下に薄く影 */
    transition: all 0.2s ease;
}

.button_main {
  background-color: #ED4E4E;
  color: #FFFFFF;
}
.button_main:hover {
  background-color: #FFDFCA;
  color: #ED4E4E;
}

.button_sub {
  background-color: #FFDFCA;
  color: #ED4E4E;
}
.button_sub:hover {
  background-color: #ED4E4E;
  color: #FFFFFF;
}

.button_input {
    width: 200px;
}


/* ================== ヘッダー ================== */
header {
    background-image: url(../images/header.png);
    background-size: 100%;
    background-repeat: no-repeat;
    position: fixed;
    width: 100vw;
    height: 25vw;
    display: flex;
}

header > :first-child { 
    margin-right: auto 
}

.header_logo {
    /* padding-top: 10px; */
    width: 80px;
    height: 20vw;
}

.menu_icon {
    padding-right: 10px;
    width: 60px;
    height: 20vw;
}

/* ================== main ================== */

/* ====== 共通 ====== */
main {
    text-align: center;
}

.contents {
    padding-top: 80px;
}

.about, .howToRecord, .othersRecord, .record{
    margin: 10px 20px;
    padding: 40px 0px;
}

.spotlight {
  background:
    radial-gradient(ellipse 120% 48% at 45% 50%, rgba(255, 252, 238, 0.6) 100%, transparent 100%),
    radial-gradient(ellipse 120% 48% at 55% 50%, rgba(255, 252, 238, 0.4) 100%, transparent 100%);
}

.button_record {
    position: fixed;
    bottom: 40px; 
    right: -32px;
    padding: 8px 30px;
}

/* ====== hero ====== */
.hero {
    background-image: url(../images/hero_signboard.png);
    /* background-size: 100%; */
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center;
    min-height: 400px;
    max-height: 700px;

    display: flex;
    justify-content: space-between;
}
.curtain_left, .curtain_right {
    min-height: 500px;
    max-height: 800px;
    max-width: 200px;
}


/* ====== 観劇記録のススメ ====== */

.about span {
    color: #ED4E4E;
    font-size: 12px;
}

.aboutTxt {
    margin: 20px;
}

.aboutTxt p {
    margin: 10px;
}

.aboutList {
    display: flex;
    flex-direction: column;
}

.aboutListItem {
    margin: 10px;
    /* padding: 20px; */
    max-width: 100%;
    height: auto;
}

/* ====== 観劇記録のつけ方 ====== */
.howToRecord h3 span{
    background: linear-gradient(transparent 70%, #FFFECF 70%);
    padding: 0px 10px;
}

.howToList {
    display: flex;
    flex-direction: column;
}

.howToListItem {
    margin: 0px 40px;
}

.howToListItem p {
    padding: 10px;
}

.howToListImage {
    padding: 40px 20px 0px 20px ;
    max-width: 100%;
    height: auto;
}

/* ====== みんなの記録 ====== */
.recordList {
    background-color: #FFFFFF;
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 20px;
}

.recordListItem{
    margin: 10px 0px;
}

/* ====== 観劇記録を付ける ====== */
.record_input {
    text-align: left;
    margin: 20px;
}

.input_title, .input_label {
    display: flex;
}

.input_title img {
    width: 25px;
    height: 100%;
    margin: 0px 5px;
}

.input_label img {
    height: 22px;
    margin: 0px 5px;
}

.input_item {
    margin: 20px 10px;
}

input, textarea, .inputImg, .rating{
    width: 100%;
    height: 30px;
    margin: 5px 0px;
    border: 1px solid;
    border-color: #BDBCBC;
    border-radius: 5px;
    padding: 0px 10px;
}

textarea {
    height: 90px;
    padding: 10px;
}

.remark {
    font-size: 12px;
}

.inputImg {
    padding-top: 5px;
    background-color: #FFDCC5;
    border-color: #4F4242;
}

.selectImg {
    width: 100vw;
    height: 70vw;
    object-fit: scale-down;
    background-color: #ddd;
    margin: 0px 10px;
    border: 1px solid;
    border-color: #BDBCBC;
}

.rating {
    unicode-bidi: bidi-override;
    direction: rtl;
    background-color: #FFFFFF;
    padding-top: 5px;
}

.rating > input {
  display: none;    
}

.rating > label:before {
    content: "\2605"; /* ★ のUnicodeコード */
    color: #919191;
}

.rating > input:checked ~ label:before {
    content: "\2605";
    color: #FFBA19;
}

input:read-only, .rating_readonly, .textarea_readonly, .selectImg_readonly {
    background-color: #FFDCC5;
}

.record_finish_img {
    width: 100vw;
    margin: 10px 0px;
}

#input_plural {
    margin: 10px 0;
}
 
#input_plural input.form-control {
    display: inline-block;
    width: 50vw;
    /* height: 34px; */
    /* padding: 6px 12px; */
    /* font-size: 14px; */
    /* color: #555; */
}
 
#input_plural input.pluralBtn {
    width: 7vw;
    height: 7vw;
    border: none;
    border-radius: 99px;
    padding: 0;
    margin: 0;
    color: #FFFFFF;
}

#input_plural .add {
    background-color: #ED4E4E;
}

#input_plural .del {
    background-color: #9E9E9E;
}


.accordion {
    max-width: 500px;
    background-color: #f2f2f2;
}

.accordion:not([open]) {
    margin-bottom: 7px;
}

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-radius: 5px;
    background-color: #ED4E4E;
    color: #fff;
    /* font-weight: 600; */
    cursor: pointer;

    width: 100;
    height: 30px;
    margin: 5px 0px;
    font-size: 16px;
    /* border: 1px solid;
    border-color: #BDBCBC; */
    /* border-radius: 5px; */
    padding: 0px 10px;
    margin: 10px 0px;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    content: '';
    transition: transform .3s;
}

.accordion[open] summary::after {
    transform: rotate(225deg);
}

.accordion p , .accordion_content{
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: 1em 2em 2em 2em;
    transition: transform .5s, opacity .5s;
}

.accordion[open] p {
    transform: none;
    opacity: 1;
}

.accordion .button_input {
    margin-left: 25px;
}

/* TODO：項目別に星選択ができるようにする */

/* ================== フッター ================== */
/* TODO:フッターを画面下部固定にする */

.footer_image {
  width: 100%;
  height: 100px; /* 高さはデザインに合わせる */
  background-image: url(../images/footer.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; /* スマホ: 中央を大きく見せる */
}

.footer_top {
    width: 100vw;
}

.footer_bg {
    margin: 0;
    background-color: #A62B22;
}

.footer_link_top {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0px;
}

.footer_text {
    padding: 20px;
    background-color: #A62B22;
}

.footer_text a {
    color: #FFFFFF;
}

.copyright {
    padding: 20px;
    color: #FFFFFF;
    text-align: center;
}

.footer_text a:hover{
    text-decoration: underline;
}




/* ==================================== PC での表示 ==================================== */
@media screen and (min-width: 768px) {

    /* ================== ベース ================== */
    body {
        background-size: 50%;
    }

    /* ================== ヘッダー ================== */
    header {
        background-image: url('../images/header_pc.png');
        height: 15vw; /* PCはスマホより高さを低めに調整可能 */
    }
    .header_logo {
    /* padding-top: 10px; */
    width: 80px;
    height: 10vw;
    }

    .menu_icon {
        padding-right: 20px;
        width: 60px;
        height: 10vw;
    }

    /* ================== main ================== */

    /* ====== 共通 ====== */
    .about, .howToRecord, .othersRecord, .record {
        margin: 40px 80px;
        padding: 80px 0px;
    }

    .spotlight {
    background:
        radial-gradient(ellipse 70% 48% at 45% 50%, rgba(255, 252, 238, 0.6) 100%, transparent 100%),
        radial-gradient(ellipse 70% 48% at 55% 50%, rgba(255, 252, 238, 0.4) 100%, transparent 100%);
    }

    .button_record {
        bottom: 80px; 
        right: 80px;
    }

    /* ====== 観劇記録のススメ ====== */
    .aboutList {
        flex-direction: row;
        margin: 0px;
    }

    .aboutListItem {
        margin: 10px;
        max-width: 100%;
        height: auto;
    }

    /* ====== 観劇記録のつけ方 ====== */
    .howToList {
        flex-direction: row;
        margin: 0px;
    }
    .howToListItem {
        margin: 0px 20px;
    }

    /* ====== みんなの記録 ====== */
    .recordList {
        grid-template-columns: 1fr 1fr;
        margin: 40px;
    }

    .recordListItem{
        margin: 20px;
    }

    /* ================== フッター ================== */
    .footer_image {
        background-image: url(../images/footer_pc.png);
    }
}

@media screen and (min-width: 1280px){
    /* ================== main ================== */

    /* ====== 共通 ====== */
    .about, .howToRecord, .othersRecord {
        margin: 40px 240px;
        padding: 80px 0px;
    }
}