/* 共通 */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family:'Murecho', sans-serif;
    background-image: url("../images/background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

header{
    width: 100%;
}

.common-header{
    display: flex;
    justify-content: space-between;
    max-width: 82rem;
    width: 100%;
    margin: 20px 0 50px;
    padding-left: 20px;
    padding-right: 20px;
}

.logo img {
    width: 300px;
    margin-left: 10px;
    margin-top: 20px;
    height: auto; 
    text-align: left;
}

.mypage_link{
    font-family:'Caveat', sans-serif;
    font-size: 25px;
    padding-top: 5px;
    font-weight: bold;
}

.mypage_link a{
    text-decoration: none;
}

h1{
    font-family:'Hachi Maru Pop', sans-serif;
    margin-bottom: 50px;
}

.form-row {
    display: flex; 
    margin-bottom: 15px;
}

.form-row label {
    width: 140px; 
    text-align: right;
    margin-right: 10px; 
    padding-top: 6px; 
    font-size: 16px;
    font-weight: bold;
}

input {
    padding: 7px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: azure;
}

input:focus {
    border-color: #4d90fe;
}

/* ボタン */
input[type="submit"] {
    display: block; 
    margin: 20px auto 0; 
    padding: 10px;   
    width: 93px;       
    color: #fff; 
    background-color: #007BFF;
    border: 2px solid #007BFF; 
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* ボタンホバー時 */
input[type="submit"]:hover {
    background-color: #0056b3; 
    border-color: #0056b3;
}

/* フッター */
.footer{
    display: block;
    background-color: #e7e7e7;
    color: white;
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
}

/* TOPページ */
.top-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    flex: 1;
}

.regist_link{
    text-align:right;
    padding-top: 10px;
    padding-right: 20px;
}

.top-main {
    display: flex;
    align-items: center; 
    height: 100vh; 
}

.title img {
    width: 600px;
    height: auto; 
    margin: 35px auto;
}

.top-bottom-image img{
    width: 600px;
    height: auto; 
    margin: 35px  auto;
}

.login form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;  
}

.login input[type="email"],
.login input[type="password"]{
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: azure;
}

/* 登録画面 */
.regist-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    flex: 1;
}

.regist-form {
    max-width: 404px;
    text-align: center;
}

.input-area {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-area p,
.input-area .error {
    margin-top: 4px;
}

.input-area p {
        font-size: 12px;
    color: #555;
}

.error {
    color: red;
    font-size: 15px;
    text-align: left;
}

/* 登録確認画面 */
.regist-confirm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    flex: 1;
}

.regist-confirm-container th{
    text-align: right;
}

.regist-confirm-container td{
    font-size: 18px;
}

.regist-confirm-container .precautions{
    color: red;
    font-size: 15px;
}
.button-group {
    display: flex;
    gap: 20px; 
    margin-top: 20px;
}

/* 登録完了画面 */
.regist-complete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    flex: 1;
}

.regist-complete-container {
    font-size: 20px;
}

.regist-complete-container input[type="submit"] {
    width: 157px;
}

/* メインページ */
.page_link {
    text-align:right;
    font-size: 25px;
    padding-top: 5px;
    font-weight: bold;
}

.page_link a {
    text-decoration: none;
    margin-left: 20px;
}

.main-container {
    display: flex;
    justify-content: center;
    gap: 108px; 
    margin: 20px 0 50px;
    flex: 1;
    align-items: flex-start;
    width: 100%;
    padding-left: 100px;
    padding-right: 100px;
    height: 100vh;
}

.calendar-container h1{
    font-family:'Caveat', sans-serif;
    font-size: 40px;
}

.main-container, .page_link{
    font-family:'Caveat', sans-serif;
}

.search {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.search a {
    text-decoration: none;
    font-size: 15px;
}

.calendar-container {
    width: 32%;
    margin-left: 50px;
    min-width: 352px;
}
.calendar { 
    border-collapse: collapse; 
    font-size: 25px;
}

.calendar th, .calendar td  { 
    border: 1px solid #999; 
    width: 50px; 
    height: 50px; 
    text-align: center; 
}
.calendar th { 
    background: #f2f2f2; 
    font-family:'Hachi Maru Pop', sans-serif;
    font-size: 20px;
}

.calendar tr { 
    background: #fff; 
}

.calendar td{
    cursor: pointer;
}

.saturday {
    color: blue;
}
.sunday,
.holiday {
    color: red;
}

.post-form {
    margin-top: 20px;
    font-family:'Hachi Maru Pop', sans-serif;
    max-width: 350px;
}

textarea {
    margin-top: 20px;
    width: 100%;
    resize: none;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    background: #4CAF50;
    color: white;
    cursor: pointer;
}

.btn-wrap {
    text-align: right;
}

button:hover {
    background: #45a049;
}

.post-container {
    width: 35%;
    padding: 10px;
    border: 1px solid transparent;
}

.post-list {
    margin-top: 10px;
}

.post-item {
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
}

/* マイページ */
.mainpage_link a{
    text-decoration: none;
    font-family:'Caveat', sans-serif;
    text-align:right;
    font-size: 25px;
    padding-top: 5px;
    font-weight: bold;
}

.mypage {
    padding-top: 50px;
    width: 100%;
    font-family:'Hachi Maru Pop', sans-serif;
}

.mypage-container{
    display: flex;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    box-sizing: border-box; 
    padding-left: 200px;
    padding-right: 200px;
    min-height: 90vh;
}

.sidebar {
    width: 28%;
}

.sidebar h3{
    margin-bottom: 10px;
}

.sidebar input[type="month"] {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.search-button {
    text-align: end;
    font-size: 16px;
    cursor: pointer;
}

.links {
    margin-top: 20px;
}

.links a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    color: #007BFF;
}

.post-list {
    width: 70%;
    padding-left: 27px;
}

.mypost-item {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;    
    border: 1px solid #ccc;
    gap: 10px;
}

.delete-btn {
    background-color: #FF4B5C;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
}

.delete-btn:hover {
    background-color: #e03b4c;
}

/* 変更画面 */
.update-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 90vh;
    padding-top: 100px;
    flex: 1;
}

.update-form {
    max-width: 435px;
}

.update-form .form-row {
    display: flex; 
    align-items: center; 
    flex-wrap: wrap;
}

.update-form .form-row p {
    font-size: 12px;
    margin-left: 148px;
    text-align: justify;
}

.update-form .error {
    color: red;
    font-size: 13px;
    margin-left: 150px;
    margin-top: 4px;
    display: block;
}

/* 変更確認画面 */
.update-confirm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh;
    padding-top: 185px;
    flex: 1;
}

.btn-wrapupdate-header{
    max-width: 82rem;
}
    
.update-confirm-container th{
    text-align: right;
}

/* 変更完了画面 */
.update-complete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh;
    padding-top: 250px;
    flex: 1;
    font-family:'Hachi Maru Pop', sans-serif;
    font-weight: bold;
}
.update-complete-container p{
    font-size: 50px;
    margin-bottom: 27px;
}

.update-complete-container input[type="submit"] {
    width: 157px;
}

/* 削除画面 */
.delete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 90vh;
    padding-top: 100px;
    flex: 1;
}

.delete-container table{
    font-size: 20px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.delete-container th{
    text-align: right;
}

/* 削除確認画面 */
.delete-confirm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh;
    padding-top: 185px;
    flex: 1;
}

.delete-confirm-container{
    font-size: 20px;
}

/* 削除完了画面 */
.delete-complete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90vh;
    padding-top: 250px;
    flex: 1;
    font-family:'Hachi Maru Pop', sans-serif;
    font-weight: bold;
}

.delete-complete-container p{
    font-size: 50px;
}

.delete-complete-container input[type="submit"] {
    width: 167px;
}