@charset "UTF-8";

/* =========================================
   Base Reset & Typography
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #333;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: #1e87f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* =========================================
   Structure & Layout Container
   ========================================= */
#container {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* Center Content Wrapper for Header/Footer/Main */
.inner-wrap,
#header,
#menu>.menu-inner,
.company,
#footer {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* =========================================
   Header
   ========================================= */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

#header-logo h1 {
    margin: 0;
    padding: 0;
}

#header-logo img {
    height: 40px;
    width: auto;
}

#header-link {
    text-align: right;
}

#header-link ul {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

#header-link li {
    font-size: 11px;
}

#header-link li a {
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

#header-link li a::before {
    content: ">";
    color: #f39800;
    margin-right: 5px;
    font-weight: bold;
    font-size: 10px;
}

/* =========================================
   Global Navigation
   ========================================= */
.menu-toggle {
    display: none;
    background: #f39800;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

#menu {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

.menu-inner {
    display: flex;
    justify-content: space-between;
    height: 50px;
    padding: 0;
    /* Override generic padding */
    margin: 0 auto;
}

.menu-inner li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.menu-inner li:first-child {
    border-left: 1px solid #e0e0e0;
}

.menu-inner li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #333;
    font-weight: bold;
    font-size: 13px;
}

.menu-inner li a:hover {
    background: #fff;
    color: #f39800;
}

/* =========================================
   Company Content Area
   ========================================= */
.company {
    display: flex;
    padding-top: 40px;
    padding-bottom: 60px;
    align-items: flex-start;
}

/* --- Sidebar --- */
.company_side {
    width: 240px;
    /* Fixed width for stability */
    flex-shrink: 0;
    margin-right: 40px;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.company_side ul {
    margin: 0;
    padding: 0;
}

.company_side li {
    margin-bottom: 15px;
}

.company_side li a {
    display: block;
    padding: 10px;
    color: #666;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 15px;
}

.company_side li a::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #f39800;
}

.company_side li.company_side_l a {
    background: #f39800;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    border-bottom: none;
}

.company_side li.company_side_l a::before {
    content: "";
}

/* --- Main Content --- */
.company_main {
    flex-grow: 1;
    width: auto;
    /* Take remaining space */
}

#path {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.company_top {
    border-bottom: 2px solid #f39800;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.company_top p {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.company_top span {
    font-size: 32px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

/* Message Section */
.top_massage {
    margin-bottom: 50px;
    position: relative;
}

.massage_header_row {
    display: flex;
    justify-content: flex-end;
    /* Packs items to the "start" of the reverse axis (visually Left) */
    flex-direction: row-reverse;
    /* Image (2nd) goes Left, Title (1st) goes Right */
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    gap: 40px;
}

.massage_header_row span {
    font-size: 20px;
    font-weight: bold;
    color: #f39800;
}

.massage_img {
    width: 400px;
}

.massage_img img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.massage_text_container {
    background: #fafafa;
    padding: 30px;
    border-radius: 8px;
    line-height: 2;
}

.massage_text {
    margin-bottom: 1.5em;
    font-size: 15px;
}

/* Animation */
@keyframes endRoll {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.end-roll-text {
    opacity: 0;
    animation: endRoll 1.0s ease-out forwards;
}

.end-roll-text:nth-child(1) {
    animation-delay: 0.2s;
}

.end-roll-text:nth-child(2) {
    animation-delay: 0.4s;
}

.end-roll-text:nth-child(3) {
    animation-delay: 0.6s;
}

.end-roll-text:nth-child(4) {
    animation-delay: 0.8s;
}

.end-roll-text:nth-child(5) {
    animation-delay: 1.0s;
}

.end-roll-text:nth-child(6) {
    animation-delay: 1.2s;
}

.sign {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
}

/* Specs Table */
.company_spec table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 14px;
}

.company_spec th {
    width: 25%;
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
    font-weight: bold;
    vertical-align: top;
}

.company_spec td {
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.business_link {
    margin-top: 10px;
}

.business_link a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #f39800;
    color: #f39800;
    border-radius: 20px;
    font-size: 12px;
}

.business_link a:hover {
    background: #f39800;
    color: #fff;
}

/* --- History Page (Enkaku) Specs --- */
.enkaku_spec {
    width: 100%;
    margin-bottom: 40px;
}

.enkaku_spec table {
    width: 100%;
    border-collapse: collapse;
}

.enkaku_spec th {
    width: 25%;
    padding: 15px;
    background-color: #ededed;
    text-align: left;
    border: 1px solid #ccc;
}

.enkaku_spec td {
    width: 75%;
    padding: 15px;
    border: 1px solid #ccc;
    line-height: 1.8;
}

/* Maps */
.map,
.g_map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.g_map iframe {
    display: block;
}

.pagetop {
    text-align: right;
    margin-top: 20px;
}

.pagetop a {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #ccc;
}

/* =========================================
   Footer
   ========================================= */
#footer-all {
    background: #f0f0f0;
    padding: 40px 0;
    margin-top: 60px;
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#footer-link {
    flex: 1;
}

#footer-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#footer-link li {
    font-size: 11px;
    color: #666;
}

#footer-link a {
    color: #666;
}

#footer-logo {
    text-align: right;
}

#footer-logo img {
    width: 140px;
    margin-bottom: 10px;
}

#footer-logo address {
    font-style: normal;
    font-size: 10px;
    color: #999;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media screen and (max-width: 768px) {

    /* Container & Layout */
    .company {
        flex-direction: column;
    }

    .company_side {
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .company_side ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .company_side li {
        width: 48%;
        /* 2 cols on mobile */
        margin-bottom: 10px;
    }

    /* Header & Nav */
    #header {
        flex-direction: column;
        align-items: flex-start;
    }

    #header-link {
        width: 100%;
        margin-top: 15px;
        text-align: left;
    }

    #header-link ul {
        justify-content: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    #menu {
        display: none;
        /* JS toggle */
    }

    .menu-inner {
        flex-direction: column;
        height: auto;
    }

    .menu-inner li {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .menu-inner li a {
        padding: 15px;
        justify-content: flex-start;
    }

    /* Main Content */
    .massage_header_row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .massage_img {
        width: 100%;
        margin-top: 20px;
    }

    .company_spec th,
    .company_spec td {
        display: block;
        width: 100%;
    }

    .company_spec th {
        background: #eee;
    }

    /* History Page (Enkaku) Mobile */
    .enkaku_spec th,
    .enkaku_spec td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .enkaku_spec th {
        text-align: center;
        background: #ededed;
        padding: 10px;
    }

    .enkaku_spec td {
        padding: 15px;
        word-wrap: break-word;
        /* Prevent overflow */
    }

    /* Mobile Title Fix */
    .company_top p {
        display: block;
        line-height: 1.4;
    }

    .company_top span {
        display: block;
        font-size: 28px;
        margin-bottom: 5px;
    }

    /* Footer */
    #footer {
        flex-direction: column;
    }

    #footer-link,
    #footer-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    #footer-link ul {
        justify-content: center;
    }
}