/*
Theme Name: rinzo_theme
Theme URI: 
Author: 
Author URI: https://example.com
Description: A custom theme with a contact page.
Version: 1.0
*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
}

#page {
    height: 100vh; /* 画面高さを100%に設定 */
    display: flex;
    flex-direction: column;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header H1 {
    font-family: 'Aoboshi One', sans-serif;
}

footer {
    font-family: 'Aoboshi One', sans-serif;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 70px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* TOP */
#social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#social-links a {
    display: block;
    width: 30%;
    height: auto;
    overflow: hidden;
}

#social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TOP:スマートフォン表示時 */
@media screen and (max-width: 767px) {
    main {
        padding: 20px;
    }

    header {
        padding: 10px 20px;
    }

    #social-links {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    #social-links a {
        width: 150px;
        height: auto;
    }
}

/* 固定ページ */
#page-content {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 20px;
    background-color: #fff;
}

/* 共通 */
a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul li {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

ul li a {
    display: block;
    text-decoration: none;
}

ul li:hover {
    background-color: #005bb5;
    color: #fff;
}

/* Newsのスタイル */
#news-single {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 20px;
    background-color: #fff;
}

.news-back-to-list {
    margin-top: 20px;
    text-align: center;
}

.news-back-to-list .back-to-news-list {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.news-back-to-list .back-to-news-list:hover {
    background-color: #005bb5;
    color: #fff;
}

.article a {
    color: #005bb5; 
}

.article a:hover {
    color: #fff;
}

html {
    margin-top: 0 !important;  /* 強制的にmargin-topを0にする */
}

/* フォーム */
input {
    width: 80%;
}

textarea {
    width: 80%;
}