body {
    min-height: 100vh;
    position: relative;
    /*←相対位置*/
    padding-bottom: 120px;
    /*←footerの高さ*/
    box-sizing: border-box;
    /*←全て含めてmin-height:100vhに*/

}
.container{
    padding: 10%;
}

button {
    /* 背景色を無色に */
    background: transparent;
    /* 枠線を消す */
    border: none;
    /* クリックした際に枠線をnone消す */
    outline: none;
    /* 影を消す */
    box-shadow: none;
}

img {
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
    z-index: -1;
}

.hamburger-morph {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hamburger-morph__icon {
    width: 100%;
    height: 100%;
}

.hamburger-morph__line {
    fill: none;
    stroke: #000;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 60 207;
}

.hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 60 60;
}

.hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 60 207;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(1) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(2) {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
}

.hamburger-morph.active .hamburger-morph__line:nth-child(3) {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
}

.nav-morph {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(29, 29, 31, 0.98);
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
}

.nav-morph.active {
    clip-path: circle(150% at calc(100% - 44px) 44px);
}

.nav-morph__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-morph__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    flex-flow: column;
}

.nav-morph__item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin: 0;
}

.nav-morph.active .nav-morph__item {
    opacity: 1;
    transform: translateY(0);
}

.nav-morph.active .nav-morph__item:nth-child(1) {
    transition-delay: 0.3s;
}

.nav-morph.active .nav-morph__item:nth-child(2) {
    transition-delay: 0.4s;
}

.nav-morph.active .nav-morph__item:nth-child(3) {
    transition-delay: 0.5s;
}

.nav-morph.active .nav-morph__item:nth-child(4) {
    transition-delay: 0.6s;
}

.nav-morph__link {
    position: relative;
    display: inline-block;
    padding: 20px 0;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.nav-morph__item ul li {
    margin: 0;
}

/* .nav-morph__text, */
/* .nav-morph__hover {
    display: block;
    transition: transform 0.3s ease;
} */

/* .nav-morph__hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0%);
} */

/* .nav-morph__link:hover .nav-morph__text {
    transform: translateY(-100%);
}

.nav-morph__link:hover .nav-morph__hover {
    transform: translateY(-100%);
} */

/* -----------------header */
#header {
    justify-content: space-between;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

#header ul {
    display: flex;
}

#header li {
    margin-top: auto;
    margin-bottom: auto;
}

.header_title a {
    font-size: 25px;
}

.header_title {
    padding: 20px;
}
/* -----------------home */
#title {
    position: relative;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}
.title-text{
    margin: -10% auto 0;
}

#title h1 {
    padding: 0 10%;
    letter-spacing: -0.12em;
    z-index: 100;
}

#title h1 span {
    display: inline-block;
    padding: 0;
    font-size: min(10vw, 75px);
    font-weight: 600;
    text-align: left;
}

#title p {
    margin: 20px 0 0;
    text-align: left;
    padding: 0 10%;
    z-index: 100;
    line-height: 1.4;
}

#title p span {
    display: inline-block;
    padding-top: 2%;
    font-size: min(4.5vw, 25px);
    word-break: break-all;
}
#title {
    .top-img{
        display: inline-block;
        position: relative;
        margin: 0 auto;
        top: 0;
        left: -25%;
        width: 150%;
        object-fit: cover;
        animation: fadeuptop 2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    }
    .down-img{
        display: inline-block;
        position: relative;
        margin: 0 auto;
        left: -25%;
        width: 150%;
        animation: fadeupdown 2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    }
}
@keyframes fadeuptop {
    0% {
      transform: translateY(30px);
      opacity: 0;
    }
    80% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeupdown {
    0% {
      transform: translateY(-30px);
      opacity: 0;
    }
    80% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

#intro-form {
    margin-top: 30px;
    text-align: center;
}

#intro-form form {
    padding-bottom: 30px;
}

.form-btn {
    display: inline-block;
    position: relatives;
    padding: 1em 2em;
    background-color: #e3364a;
    box-shadow: 0 5px 0 #ca1c30;
    border-radius: 40px;
    border-width: 0px;
    color: #fff;
    cursor: pointer;
}

.form-btn:active {
    box-shadow: none;
    transform: translateY(5px);
}


#form {
    margin: auto;
}

.form-grid {
    grid-template-areas:
        "areaA areaA"
        "areaB areaC"
        "areaD areaD";

    display: grid;
    grid-template-rows: auto 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    border-color: 1;
    border-radius: 2px;

    place-content: center;

}

.name-grid {
    grid-area: areaB;
    padding-bottom: 10px;
}

.subjects-grid {
    grid-area: areaC;
    padding-bottom: 20px;
    text-align: right;

}

.contents-grid {
    grid-area: areaA;
    text-align: right;
    padding-bottom: 20px;
    width: 100%;

}


.submit-grid {
    text-align: center;
    grid-area: areaD;
    padding-top: 30px;

}

#form textarea {
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    border-color: #ff7e39;
    border-width: 2px;
    border-radius: 5px;
    white-space: break-spaces;
    line-break: anywhere;
    width: 100%;
    resize: none;
}


#form .grade-grid select {
    width: 80%;
    background-color: rgba(0, 0, 0, 0);
    border-color: #ff7e39;
    border-width: 2px;
    border-radius: 5px;
}


#form .subjects-grid select {
    width: 80%;
    background-color: rgba(0, 0, 0, 0);
    border-color: #ff7e39;
    border-width: 2px;
    border-radius: 5px;

}

#form .submit-grid input {
    color: #fff;
    border: 0;
}
#imageArea {
    display: block;
    background-size: 100px;
    width: 100px;
    height: 100px;
    margin: 30px auto;
}
.submit-btn {
    padding: 1em 2em;
    background-color: #ff7e39;;
    box-shadow: 0 5px 0 #cd4328;
    border-radius: 40px;
    cursor: pointer;
}

#post-notice {
    margin: 0 auto;
    margin-bottom: 10%;
}
.status-message{
    text-align: left;
    margin: 0 auto;
    font-weight: 500;
    font-size: min(4.5vw, 40px);
}
.action-form{
    margin: 20px 0;
}
.combined-form{
    display: flex;
    justify-content: space-between;
}
#other-posts p {
    text-align: center;
    font-size: 1em;
}

.other-posts-search {
    position: relative;
    border: 1px solid #999;
    padding: 3px 10px;
    border-radius: 20px;
    width: 150px;
    align-items: center;
    justify-content: center;

}

.other-posts-search input {
    border: none;
    height: 3.0em;
    width: 100px;
    margin: 0 auto;
}

.other-posts-search button {
    position: absolute;
    font-size: 1.3em;
    border: none;
    background: none;
    width: 3em;
    height: 1em;
    right: 0;
    outline: none;
}

.submit-btn:active {
    box-shadow: none;
    transform: translateY(5px);
}
.posts-sort{
    padding: 10px 3px;
    border: 1px solid #999;
    border-radius: 20px;
}
.posts-sort input {
    cursor: pointer;
    font-size: 1em;
    border: none;
    background: none;
    right: 0;
    outline: none;
    margin-right: 5px;
}

.posts-grid {
    word-wrap: break-word;
    word-break: break-all;
    padding: 5px;
    border-top:  1px solid dodgerblue;
    position: relative;
    margin: 30px 0 0;
}

.post-group-grid {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 2px dotted #000;
}

.post-contents-grid {
    padding:10px 0 30px 3%;
    text-align: left;
    line-height: 1.7;
    position: relative;
}

.post-report-grid {
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 5%;
}

.submit-report-btn:active {
    color: dimgrey;
}

.post-favorite-grid {
    text-align: right;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 5%;
}
.material-symbols-outlined{
    width: 30px;
    height: 30px;
}
.post-favorite-grid .material-symbols-outlined:hover {
    color: #ca1c30;
}
.post-favorite-grid .material-symbols-outlined:active {
    color: #ca1c30;
}
.liked.material-symbols-outlined {
    color: #ca1c30;
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20 
}
.favorite_num{
    position: absolute;width: 100px;
    z-index: -1;
}



/* ----------------footer */
#footer {
    background-color: darkgrey;
    position: absolute;
    bottom: -10px;
    text-align: center;
    margin: 0;
    padding: 0;
    padding: 30px 0;
    width: 100%;
}
#footer p{
    padding: 0 0 20px;
}

.material-symbols-outlined {
    position: absolute;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 48;
    color: gray
}