/*
Theme Name: Group Template
Theme URI: http://example.com/
Author: Koudai Sugiyama
Author URI: http://example.com/
Description: A blank template for group companies.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: group-template
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header, footer {
    background-color: #3F9877;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

.header-menu {
    display: flex;
    justify-content: space-around;
}

.header-menu ul, nav ul, nav .menu ul {
    list-style: none; /* リスト記号を非表示にする */
    padding: 0;
    margin: 0; /* 追加: リストのマージンをリセット */
}

.header-menu li {
    display: inline;
    margin-right: 20px;
}

.header-menu a {
    color: #FFFFFF; /* リンク色を白に変更 */
    text-decoration: none; /* リンクの下線を非表示にする */
}

.header-menu a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
}

.header-menu a:visited {
    color: #FFFFFF; /* クリック済みのリンク色を白に設定 */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .header-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-menu.active {
        display: flex;
        flex-direction: column;
    }
}

main {
    padding: 20px;
    text-align: center; /* mainセクションの見出しを中央寄せにする */
}

main .post-content {
    text-align: left; /* mainセクションの本文を左寄せにする */
}

.index main {
    text-align: center; /* index.phpのmainセクションの見出しを中央寄せにする */
}

.index main .post-content {
    text-align: left; /* index.phpのmainセクションの本文を左寄せにする */
}

.index p {
    text-align: left; /* index.phpの本文を左寄せにする */
}

.intro {
    margin-bottom: 40px;
    text-align: center; /* introセクションのテキストを中央寄せにする */
}

.links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    height: 100vh;
}

.company-link {
    margin: 10px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.company-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.link-button {
    display: inline-block;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.link-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
    .links {
        flex-direction: column;
    }

    .link-button {
        width: 100%;
        box-sizing: border-box;
    }

    .company-link {
        height: 50vh;
    }
}

.page main, .single main {
    text-align: left; /* page.phpおよびsingle.phpのmainセクションのテキストを左寄せにする */
}

article {
    padding: 20px;
    background-color: #fff;
    margin: 20px auto;
    max-width: calc(100% - 100px); /* 追加: 横幅を常に50pxのマージンを確保するように設定 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.6;
}

.post-content, h2 {
    text-align: left; /* テキストコンテンツと見出しを左寄せにする */
}

.page .post-content, .page h2,
.single .post-content, .single h2 {
    text-align: left; /* page.phpおよびsingle.phpのテキストコンテンツと見出しを左寄せにする */
}

.page .post-content, .page h2 {
    text-align: left; /* page.phpのテキストコンテンツと見出しを左寄せにする */
}

.news ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.news li {
    display: inline-block;
    padding: 10px 0;
}

.news li span {
    margin-right: 10px;
}

.news hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

.news li {
    margin-bottom: 10px;
}

.news a {
    text-decoration: none;
    color: #0073e6;
    margin-left: 10px;
}

.news a:hover {
    text-decoration: underline;
}

.breadcrumb {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #0073e6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb a:visited {
    color: #005bb5;
}

.breadcrumb span {
    margin: 0 5px;
}

@media (max-width: 600px) {
    .links {
        flex-direction: column;
        height: auto;
    }

    .link-button {
        width: 100%;
        box-sizing: border-box;
    }

    .company-link {
        height: 30vh;
    }
}
