@charset "UTF-8";
@import url('https://fonts.cdnfonts.com/css/georgia');

/* ---------- 全ページ共通 ---------- */
/* 全体の指定 */
html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    padding: 10px 0 0 0;
    box-sizing: border-box;
    border-top: solid 5px #C9171E;
    font-family: 'Noto Serif JP', 'Yu Mincho', 'MS PMincho', serif;
    color: #333;
}

main {
    flex: 1;
    background-image: url(image/back.gif);
}

/* ヘッダー */
header {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: auto auto;
    white-space: nowrap;
    position: relative;
}

.header_top {
    display: flex;
    justify-content: space-between;
}

.header_top_left p {
    font-size: 0.7em;
    line-height: 1.2;
    margin-bottom: 5px;
}

.header_logo_img {
    max-width: 100%;
    width: 450px;
    height: auto;
}

.header_top_right {
    margin-top: .5em;
}

.header_top_right dl {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 5px;
}

.header_top_right dl dd {
    width: 5em;
    height: 1.5em;
    line-height: 1.5em;
    margin: 0 1em 0 0;
    padding: 0 0.5em;
    border-radius: 15px;
    font-size: 0.8em;
    color: white;
    text-align: center;
}

.hdc1 {
    background-color: #A00000;
}

.hdc2 {
    background-color: #B22222;
}

.hdc3 {
    background-color: #CD5C5C;
}

.header_top_right dl dt {
    font-size: 1.2em;
}

.header_top_right dl dt span {
    font-size: 0.8em;
}

.header_top_right dl dt,
.header_top_right dl dt a {
    color: #333;
    text-decoration: none;
}

.logo_r {
    color: #C9171E;
    font-family: 'Times New Roman', 'MS PMincho', serif;
    font-style: italic;
    font-size: 1.2em;
}

/* フッターの「株式会社 REDIC」デザイン調整用 */
.footer_logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2em;
    margin: .5em 0;
}

.footer_logo_img {
    max-width: 100%;
    width: 250px;
    height: auto;
}

.footer_company_text {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'MS PMincho', serif;
    font-size: 0.7em;
    font-weight: bold;
    font-style: normal;
    color: #333;
}

.footer_logo_redic {
    font-family: 'Georgia', sans-serif;
    font-size: 1.15em;
    font-weight: bold;
    font-style: italic;
    /* REDIC全体を斜体に */
    color: #1A1A1A;
    /* EDICはダークグレー/黒 */
    letter-spacing: -0.02em;
}

.footer_logo_redic .logo_r {
    color: #C9171E;
    /* Rは鮮やかな赤 */
    font-family: 'Georgia', sans-serif;
    font-style: italic;
    font-weight: bold;
    font-size: 1.0em;
}

/* PC Menu */
.header_menu ul {
    display: flex;
    justify-content: space-around;
    padding-left: 0;
    padding: 1em;
    list-style: none;
    text-align: center;
    border-top: solid 1px rgba(201, 23, 30, 0.3);
    border-bottom: solid 1px rgba(201, 23, 30, 0.3);
}

.header_menu ul li strong {
    font-size: 1.4em;
    font-weight: normal;
}

.header_menu ul li a {
    display: block;
    width: 100%;
    margin: auto auto;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.hmul_active {
    color: #C9171E !important;
}

.header_menu ul li a:hover {
    color: #C9171E;
    background-color: #fcfcfc;
    border-radius: 5px;
}

/* Hamburger */
.hamburger {
    display: none;
}

.globalMenuSp {
    display: none;
}

/* フッター */
footer {
    display: block;
    margin-top: 50px;
    color: #333;
}

.footer_main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: auto auto;
    padding-bottom: 30px;
}

.footer_copyright {
    text-align: center;
    color: white;
    background-color: #C9171E;
    padding: 15px 0;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

.footer_main_left p {
    margin: .5em;
    line-height: 1.5;
}

.footer_main_left p strong {
    font-size: 1.6em;
}

.footer_main_right {
    display: flex;
    gap: 3em;
}

.footer_main_right ul {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.footer_main_right ul li {
    margin-bottom: 15px;
}

.footer_main_right ul li a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer_main_right ul li a::before {
    content: "〉";
    color: #C9171E;
    font-size: 0.8em;
    margin-right: 5px;
}

.footer_main_right ul li a:hover {
    color: #C9171E;
    transform: translateX(5px);
}

.pagetop_photo,
.pagetop_photo img {
    width: 100%;
}

/* 上へ戻るボタン */
#page-top {
    position: fixed;
    bottom: -10px;
    right: 20px;
    font-size: 14px;
    line-height: 1;
    z-index: 99;
}

#page-top a {
    background: #C9171E;
    text-decoration: none;
    color: #fff;
    width: 60px;
    padding: 28px 5px;
    text-align: center;
    display: block;
    border-radius: 90px;
    opacity: 0.9 !important;
    transition: all .3s ease;
    border: solid 1px white;
}

#page-top a:hover {
    text-decoration: none;
    opacity: .5;
}

/* ====================================
   Responsive Styles (Max Width: 1000px)
   ==================================== */
@media screen and (max-width: 1000px) {

    header,
    .footer_main {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .header_top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header_top_left p {
        white-space: normal;
    }

    .header_top_right {
        margin-top: 15px;
        width: 100%;
    }

    .header_top_left {
        padding-right: 60px;
        /* ハンバーガーアイコンと被らないように余白を追加 */
    }

    /* Hamburger Menu Icon */
    .hamburger {
        display: block;
        width: 45px;
        height: 45px;
        position: fixed;
        right: 15px;
        top: 15px;
        cursor: pointer;
        z-index: 100;
        background-color: #C9171E;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        position: absolute;
        left: 10px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 12px;
    }

    .hamburger span:nth-child(2) {
        top: 21px;
    }

    .hamburger span:nth-child(3) {
        top: 30px;
    }

    .hamburger.active span:nth-child(1) {
        top: 21px;
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        top: 21px;
        transform: rotate(45deg);
    }

    /* Hide PC Menu */
    .header_menu {
        display: none;
    }

    /* SP Menu overlay */
    .globalMenuSp {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        z-index: 99;
        overflow-y: auto;
    }

    .globalMenuSp.active {
        display: block;
    }

    .globalMenuSp ul {
        margin-top: 80px;
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .globalMenuSp ul li {
        margin-bottom: 20px;
    }

    .globalMenuSp ul li a {
        font-size: 1.5em;
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    .globalMenuSp ul li a span {
        display: block;
        font-size: 0.6em;
        color: #666;
        font-weight: normal;
    }

    /* Footer */
    .footer_main {
        flex-direction: column;
    }

    .footer_logo {
        font-size: 1.6em;
        /* SPでは画面幅に合わせて少し控えめに微調整 */
    }

    .footer_main_right {
        margin-top: 20px;
    }

    .footer_main_right ul {
        flex-direction: column;
        margin-bottom: 0;
    }

    .footer_main_right ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}


/* ====================================
   Tab Menu Styles
   ==================================== */
.tab_menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 40px auto 20px;
    max-width: 1000px;
}

.tab_menu li {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: 2px solid #C9171E;
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.tab_menu li:first-child {
    border-right: none;
}

.tab_menu li:hover {
    background: #e9e9e9;
}

.tab_menu li.active {
    background: #fff;
    color: #C9171E;
    border-top: 3px solid #C9171E;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 2px solid transparent;
}

.tab_container {
    max-width: 1000px;
    margin: 0 auto 50px;
    background: #fff;
}

.tab_content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab_content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 1000px) {
    .tab_menu {
        flex-direction: column;
        margin-left: 15px;
        margin-right: 15px;
    }

    .tab_menu li {
        border: 1px solid #ddd !important;
        border-left: 3px solid transparent !important;
    }

    .tab_menu li.active {
        border-left: 3px solid #C9171E !important;
        border-top: 1px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
    }

    .tab_container {
        padding: 0 15px;
    }
}


/* ====================================
   Loading Overlay
   ==================================== */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-overlay.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-icon {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* ====================================
   文中の「株式会社REDIC」ロゴ風デザイン再現用
   ==================================== */
.company_logo_text {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'MS PMincho', serif;
    font-weight: bold;
    color: #333;
}

.company_logo_text .logo_redic {
    font-family: 'Georgia', sans-serif;
    font-style: italic;
    font-weight: bold;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.company_logo_text .logo_redic .logo_r {
    color: #C9171E;
    font-family: 'Georgia', sans-serif;
    font-style: italic;
    font-weight: bold;
}