@charset "utf-8";

/* =================================================================
   1. Reset & Base Styles
   ================================================================= */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    word-break: break-all;
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    color: #333;
    background-color: #f6f6f6; /* bg_page.gif の代替：上品な薄グレー */
}

img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

a {
    color: #2c79bf;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #1467b2;
    opacity: 0.8;
}

li {
    list-style-type: none;
}

/* Clearfix */
.cf::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* =================================================================
   2. Typography & Utility Classes
   ================================================================= */
.fz12 { font-size: 1.2rem; }
.fz13 { font-size: 1.3rem; }
.fz14 { font-size: 1.4rem; }
.fz15 { font-size: 1.5rem; }
.fz16 { font-size: 1.6rem; }
.fz18 { font-size: 1.8rem; }
.fz20 { font-size: 2.0rem; }
.fz22 { font-size: 2.2rem; }
.fz24 { font-size: 2.4rem; }
.fz26 { font-size: 2.6rem; }

.bold { font-weight: bold; }
.tcenter { text-align: center; }
.tleft { text-align: left; }
.tright { text-align: right; }

.mb10 { margin-bottom: 10px; }
.mb15 { margin-bottom: 15px; }
.mb20 { margin-bottom: 20px; }
.mb30 { margin-bottom: 30px; }
.mb40 { margin-bottom: 40px; }

/* =================================================================
   3. PC Layout & Typography (min-width: 769px)
   ================================================================= */
@media screen and (min-width: 769px) {
    html {
        font-size: 62.5%; /* 10px 相当 */
    }
    body {
        font-size: 1.6rem; /* 16px */
    }

    .sp {
        display: none !important;
    }

    /* Wrap & Container */
    #wrap {
        background-color: #f6f6f6;
    }

    /* Main Navigation (Horizontal bar under header) */
    nav.hdNav {
        border-top: solid 1px #efefef;
        width: 100%;
        padding: 8px 0;
        background-color: #2c79bf;
        position: sticky;
        top: var(--header-height, 92px); /* 固定ヘッダーの高さ分下げて追従 */
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    nav.hdNav .inner {
        width: 960px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }
    nav.hdNav .inner a {
        flex: 1;
        text-align: center;
        padding: 6px 4px;
        border-right: solid 1px rgba(255, 255, 255, 0.2);
        text-decoration: none;
        color: #FFF;
        font-weight: bold;
        font-size: 1.25rem;
        white-space: nowrap;
    }
    nav.hdNav .inner a:first-child {
        border-left: solid 1px rgba(255, 255, 255, 0.2);
    }
    nav.hdNav .inner a:hover {
        background-color: #1467b2;
    }

    /* Header */
    header {
        width: 100%;
        border-top: solid 4px #2c79bf;
        background-color: #FFF;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    header .inner {
        width: 960px;
        margin: 0 auto;
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header .logo {
        font-size: 2.2rem;
        font-weight: bold;
        color: #333;
    }
    header .logo a {
        display: flex;
        align-items: center;
        color: #333;
        text-decoration: none;
    }
    header .logo img {
        height: 55px;
        width: auto;
        margin-right: 12px;
    }
    header .logo span {
        display: block;
        line-height: 1.3;
    }
    header .logo .sub-title {
        display: block;
        font-size: 1.2rem;
        color: #666;
        font-weight: normal;
        margin-top: 2px;
    }
    header .right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    header .right .headerTel {
        font-size: 2.5rem;
        font-weight: bold;
        padding-left: 24px;
        background: url("../contents/img/icon_tel.png") no-repeat left center;
        background-size: 18px;
        font-family: "Century Gothic", sans-serif;
    }
    /* もし電話アイコン画像がない場合のためのフォールバック */
    header .right .headerTel {
        background: none;
        padding-left: 0;
    }
    header .right .headerTel::before {
        content: "📞 ";
        font-size: 2rem;
    }
    header .right .contactBtn {
        background-color: #2c79bf;
        border: solid 2px #236db1;
        border-radius: 5px;
        color: #FFF;
        padding: 10px 18px;
        font-size: 1.3rem;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    header .right .contactBtn:hover {
        background-color: #1467b2;
        color: #FFF;
    }

    /* Content Area */
    .contents {
        width: 960px;
        margin: 0 auto;
        background-color: #FFF;
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
        position: relative;
        display: flex;
    }
    /* 縦の区切り線 */
    .contents::before {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        left: 220px;
        top: 0px;
        background-color: #eeeeee;
    }

    /* Side Menu (Left) */
    .sideMenu {
        width: 220px;
        padding: 30px 15px;
        text-align: left;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-height, 92px) + var(--nav-height, 46px) + 15px); /* 固定ヘッダー + ナビ + 余白分下げて追従 */
        align-self: flex-start;
    }
    .sideMenu nav h1 {
        border-bottom: solid 3px #2c79bf;
        position: relative;
        font-size: 2.0rem;
        padding: 0 0 5px 5px;
        margin-bottom: 20px;
        font-weight: bold;
    }
    .sideMenu nav h1::before {
        content: "Menu";
        position: absolute;
        bottom: 2px;
        right: 0px;
        color: #DDD;
        font-size: 1.4rem;
        font-weight: normal;
    }
    .sideMenu nav h1::after {
        content: "";
        position: absolute;
        height: 1px;
        width: 100%;
        bottom: -4px;
        left: 0px;
        background-color: #2c79bf;
    }
    .sideMenu nav ul.gNav {
        margin-bottom: 20px;
    }
    .sideMenu nav ul.gNav li {
        font-weight: bold;
        border-bottom: dotted 1px #ccc;
    }
    .sideMenu nav ul.gNav li a {
        display: block;
        padding: 10px 0 10px 20px;
        color: #333;
        font-size: 1.4rem;
        position: relative;
    }
    .sideMenu nav ul.gNav li a::before {
        content: "▶";
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9rem;
        color: #2c79bf;
    }
    .sideMenu nav ul.gNav li a:hover {
        background-color: #f9f9f9;
        color: #2c79bf;
        padding-left: 23px;
    }
    .sideMenu ul.banner {
        width: 100%;
        margin-top: 30px;
    }
    .sideMenu ul.banner li a {
        display: block;
        border: solid 1px #eee;
        border-radius: 4px;
        overflow: hidden;
        background-color: #f7f9fc;
        text-align: center;
        padding: 15px 10px;
        font-weight: bold;
        color: #2c79bf;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .sideMenu ul.banner li a:hover {
        background-color: #eef3f8;
        border-color: #2c79bf;
    }

    /* Main Contents (Right) */
    .mainContents {
        width: 740px;
        text-align: left;
        padding: 30px 40px;
    }

    /* Top Back Button */
    .topBack {
        position: fixed;
        right: 40px;
        bottom: 40px;
        z-index: 99;
    }
    .topBack a {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #2c79bf;
        border: solid 2px #FFF;
        border-radius: 50%;
        color: #FFF;
        font-size: 1.0rem;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }
    .topBack a::before {
        content: "▲";
        font-size: 1.2rem;
        margin-bottom: -2px;
    }
    .topBack a:hover {
        background-color: #1467b2;
        transform: translateY(-3px);
    }

    /* Footer */
    footer {
        background-color: #2c79bf; /* bg_footer.gif 代替 */
        border-top: solid 4px #1467b2;
        color: #FFF;
    }
    footer .ftMenu {
        width: 960px;
        margin: 0 auto;
        padding: 30px 0;
        display: flex;
        flex-direction: column; /* 縦並びにして余裕を持たせる */
        align-items: center;
        gap: 25px;
    }
    footer .ftMenu a {
        color: #FFF;
    }
    footer .ftMenu nav {
        display: flex;
        flex-wrap: wrap; /* 折り返しを許可 */
        justify-content: center; /* 中央寄せ */
        gap: 12px 24px; /* 縦横の十分なスペース */
        width: 100%;
        max-width: 900px;
    }
    footer .ftMenu nav a {
        font-size: 1.4rem;
        position: relative;
        padding-left: 14px;
        white-space: nowrap; /* 各メニューが途中で改行されるのを防止 */
        transition: color 0.3s ease;
    }
    footer .ftMenu nav a::before {
        content: "〉";
        position: absolute;
        left: 0;
        font-size: 1.0rem;
        opacity: 0.8;
    }
    footer .ftMenu nav a:hover {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: underline;
    }
    footer .ftMenu .right a.ftContact {
        display: inline-block;
        border: solid 2px #FFF;
        border-radius: 4px;
        padding: 10px 30px;
        font-weight: bold;
        font-size: 1.4rem;
        transition: all 0.3s ease;
    }
    footer .ftMenu .right a.ftContact:hover {
        background-color: #FFF;
        color: #2c79bf;
    }
    footer p.copyright {
        background-color: #1467b2;
        color: #FFF;
        padding: 12px 0;
        font-size: 1.2rem;
        border-top: solid 1px rgba(255,255,255,0.2);
    }
}

/* =================================================================
   4. SP Layout & Mobile Menu (max-width: 768px)
   ================================================================= */
@media screen and (max-width: 768px) {
    html {
        font-size: 62.5%;
    }
    body {
        font-size: 1.4rem;
        background-color: #FFF;
    }
    .pc {
        display: none !important;
    }

    /* Header */
    header {
        width: 100%;
        border-top: solid 4px #2c79bf;
        background-color: #FFF;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: solid 1px #eee;
    }
    header .inner {
        padding: 12px 10px;
        text-align: left;
    }
    header .logo {
        font-size: 1.5rem;
        font-weight: bold;
        margin-right: 60px; /* メニューボタン分の余白 */
    }
    header .logo a {
        display: flex;
        align-items: center;
        color: #333;
        text-decoration: none;
    }
    header .logo img {
        height: 38px;
        width: auto;
        margin-right: 8px;
    }
    header .logo span {
        display: block;
        line-height: 1.3;
    }
    header .logo .sub-title {
        display: block;
        font-size: 1.0rem;
        color: #666;
        font-weight: normal;
    }

    /* Hamburger Menu Button */
    .menuBtn {
        width: 56px;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        border-left: solid 1px #eee;
        background: #FFF;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
    }
    .menuBtn span {
        width: 24px;
        height: 3px;
        background-color: #333;
        margin: 2px 0;
        display: block;
        transition: 0.3s;
    }
    .menuBtn p {
        font-size: 0.9rem;
        font-weight: bold;
        margin-top: 2px;
        color: #333;
    }

    /* Active Hamburger Icon */
    .menuBtn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menuBtn.active span:nth-child(2) {
        opacity: 0;
    }
    .menuBtn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Contents Area */
    .contents {
        width: 100%;
    }
    .mainContents {
        padding: 20px 15px;
    }

    /* Mobile Drawer Navigation */
    #spMenu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background-color: #1a1a1a;
        z-index: 1000;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        padding-top: 60px; /* ヘッダー高さ分の余白 */
        box-shadow: -4px 0 10px rgba(0,0,0,0.2);
    }
    #spMenu.open {
        transform: translateX(-280px);
    }
    #spMenu ul {
        padding: 0;
        margin: 0;
    }
    #spMenu ul li a {
        display: block;
        color: #fff;
        padding: 15px 20px;
        border-bottom: 1px solid #2d2d2d;
        font-size: 1.4rem;
        font-weight: bold;
        text-align: left;
    }
    #spMenu ul li a:hover {
        background-color: #2c79bf;
    }

    /* Mobile Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Footer */
    footer {
        background-color: #2c79bf;
        color: #FFF;
        padding: 30px 15px 20px;
        text-align: center;
    }
    footer nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    footer nav a {
        color: #FFF;
        font-size: 1.4rem;
        font-weight: bold;
    }
    footer .right {
        margin-bottom: 25px;
    }
    footer .right a.ftContact {
        display: inline-block;
        border: solid 2px #FFF;
        border-radius: 4px;
        padding: 10px 30px;
        font-weight: bold;
        color: #FFF;
    }
    footer p.copyright {
        font-size: 1.1rem;
        border-top: solid 1px rgba(255,255,255,0.2);
        padding-top: 15px;
    }
}

/* =================================================================
   5. News List (Shared Component)
   ================================================================= */
.newsList {
    margin-bottom: 25px;
}
.newsList li {
    padding: 12px 8px;
    border-bottom: dotted 1px #ccc;
    font-size: 1.4rem;
}
.newsList li dl {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.newsList li dl dt.date {
    color: #666;
    width: 130px;
    flex-shrink: 0;
    white-space: nowrap;
}
.newsList li dl dd.tag {
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 8px;
    text-align: center;
    min-width: 70px;
}
/* Tag Colors matching Inuzako ES */
.newsList li dl dd.tag.blog {
    border: solid 1.5px #4997ca;
    color: #4997ca;
}
.newsList li dl dd.tag.event {
    border: solid 1.5px #e8b52b;
    color: #e8b52b;
}
.newsList li dl dd.tag.pta {
    border: solid 1.5px #5c944f;
    color: #5c944f;
}
.newsList li dl dd.tag.other {
    border: solid 1.5px #999;
    color: #999;
}
.newsList li dl dd.txt {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}
.newsList li dl dd.txt a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    text-decoration: underline;
}
.newsList li dl dd.txt a:hover {
    color: #2c79bf;
}

/* Blog Section (mamewaza widget) - styling mirrors .newsList exactly */
div.mamewaza_blog h5.mamewaza_blog {
    display: none;
}
div.mamewaza_blog > div > div.mamewaza_blog_exp {
    text-align: right;
    font-size: 1.1rem;
    color: #999;
    margin-top: 6px;
}
ul.mamewaza_blog {
    margin-bottom: 0;
}
ul.mamewaza_blog li {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-bottom: dotted 1px #ccc;
    font-size: 1.4rem;
}
ul.mamewaza_blog li::before {
    content: "ブログ";
    order: 1;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 8px;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
    border: solid 1.5px #4997ca;
    color: #4997ca;
}
ul.mamewaza_blog li span.mamewaza_blog_date {
    order: 0;
    color: #666;
    width: 130px;
    flex-shrink: 0;
    white-space: nowrap;
}
ul.mamewaza_blog li a.mamewaza_blog_title {
    order: 2;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    color: #333;
    text-decoration: underline;
}
ul.mamewaza_blog li a.mamewaza_blog_title:hover {
    color: #2c79bf;
}

@media screen and (max-width: 768px) {
    .newsList li dl {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .newsList li dl dt.date {
        font-size: 1.2rem;
    }
    .newsList li dl dd.txt {
        padding-top: 4px;
        width: 100%;
    }
    ul.mamewaza_blog li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    ul.mamewaza_blog li span.mamewaza_blog_date {
        font-size: 1.2rem;
    }
    ul.mamewaza_blog li a.mamewaza_blog_title {
        width: 100%;
    }
}

/* =================================================================
   6. Shared Internal Pages Styles (Policy, History, etc.)
   ================================================================= */
.page-title {
    font-size: 2.2rem;
    color: #2c79bf;
    border-left: solid 6px #2c79bf;
    padding: 5px 12px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Breadcrumb Navigation */
#breadcrumb-list {
    display: flex;
    gap: 8px;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}
#breadcrumb-list a {
    color: #666;
}
#breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Standard Tables for content pages */
.content-table {
    width: 100%;
    margin-bottom: 30px;
    border-top: solid 2px #2c79bf;
    border-bottom: solid 2px #2c79bf;
}
.content-table th, .content-table td {
    padding: 12px 15px;
    border-bottom: solid 1px #eee;
    text-align: left;
    font-size: 1.4rem;
}
.content-table th {
    background-color: #f7f9fc;
    color: #333;
    font-weight: bold;
    width: 25%;
}

@media screen and (max-width: 768px) {
    .content-table th, .content-table td {
        display: block;
        width: 100%;
    }
    .content-table th {
        background-color: #eef3f8;
        border-bottom: none;
        padding-bottom: 4px;
    }
    .content-table td {
        padding-top: 4px;
        margin-bottom: 8px;
    }
}

/* =================================================================
   7. Responsive Data Tables (for Policy, etc.)
   ================================================================= */
.content-table.data-table {
    width: 100%;
    table-layout: fixed;
}
.content-table.data-table th,
.content-table.data-table td {
    display: table-cell !important;
    width: auto !important;
    text-align: center;
    padding: 10px 5px;
}
.content-table.data-table th {
    width: 20% !important; /* 5列均等幅 */
}

