@charset "UTF-8";

/* ==========================================================================
   1. サブページ共通設定
   ========================================================================== */
body.sub-page #top-head {
    background-color: rgba(26, 61, 22, 1);
}

#technology .container,
#access .container,
#company .container,
#privacy .container,
#terms .container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#faq .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#technology .page-section,
#access .page-section,
#faq .page-section,
#company .page-section,
#privacy .page-section,
#terms .page-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

#technology .section,
#access .section,
#faq .section,
#company .section,
#privacy .section,
#terms .section {
    padding: 80px 0;
}

body.sub-page main#access,
body.sub-page main#faq,
body.sub-page main#technology,
body.sub-page main#company,
body.sub-page main#privacy,
body.sub-page main#terms {
    padding-top: 100px;
    padding-bottom: 0;
}

.sub-page .hero-text {
    position: static;
    transform: none;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    color: #333;
    padding: 0 20px;
}

.sub-page .sub-visual-area {
    width: 100%;
    background-color: transparent;
    padding: 20px 0 0;
    display: block;
}

.sub-visual-area .en-title {
    display: flex;
    align-items: center;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    color: #00BFA5;
}

.sub-visual-area .en-title::after {
    content: "";
    display: block;
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #00BFA5, transparent);
    margin-left: 25px;
    opacity: 0.5;
}

.sub-page .jp-title {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 25px;
}

.sub-page .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #999;
}

.sub-page .breadcrumb a {
    color: #00BFA5;
    text-decoration: none;
}

/* 共通セクション見出し設定 */
.sub-page .section-title .en-title {
    display: block;
    font-size: 0.8rem;
    color: #00BFA5;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.sub-page .section-h2 {
    font-size: 1.3rem;
    color: #1a3d16;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    margin-bottom: 30px;
}

.sub-page .section-h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background-color: #00BFA5;
}

/* ==========================================================================
   2. アクセスページ専用：#access
   ========================================================================== */
#access .page-section.intro {
    padding-top: 30px;
}

#access .intro-flex {
    display: flex;
    flex-direction: column;
}

#access .intro-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3d16;
    margin-bottom: 20px;
    padding-left: 18px;
    border-left: 3px solid #00BFA5;
    line-height: 1.4;
}

#access .company-visual {
    margin-top: 40px;
}

#access .company-visual img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#access .page-section.info {
    background-color: #f8f9f8;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
}

#access .page-section.info h2,
#access .page-section.traffic h2 {
    font-size: 1.4rem;
    color: #1a3d16;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00BFA5;
    display: inline-block;
}

#access .profile-table,
#company .profile-table,
.legal-table {
    width: 100%;
    border-collapse: collapse;
}

#access .profile-table th,
#access .profile-table td,
#company .profile-table th,
#company .profile-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

#access .profile-table th,
#company .profile-table th {
    width: 25%;
    background-color: #fcfcfc;
    font-weight: bold;
    color: #1a3d16;
}

#access .access-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#access .access-grid .info-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

#access .access-grid .info-item h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3d16;
    margin-bottom: 20px;
}

#access .access-grid .info-item h3 i {
    color: #00BFA5;
    margin-right: 15px;
    font-size: 1.4em;
}

#access .access-grid .info-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

#access .access-grid .info-item p:last-child {
    margin-bottom: 0;
}

#access .access-grid .info-item strong {
    color: #1a3d16;
    font-weight: 700;
}

#access .access-map {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.access-map iframe {
    width: 100%;
    display: block;
}

/* ==========================================================================
   3. よくある質問専用：#faq
   ========================================================================= */
#faq .page-section.faq-intro {
    padding-top: 30px;
}

#faq .page-section.faq-list {
    background-color: #f8f9f8;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
}

#faq .faq-category {
    margin-bottom: 60px;
}

#faq .faq-cat-title {
    font-size: 1.3rem;
    color: #1a3d16;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #00BFA5;
    font-weight: bold;
}

#faq .faq-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

#faq .faq-q {
    position: relative;
    padding: 20px 50px 20px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #1a3d16;
}

#faq .faq-q::after {
    content: '\f067';
    font-family: FontAwesome;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00BFA5;
}

#faq .faq-a {
    display: none;
    padding: 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.8;
}

/* ==========================================================================
   4. 技術・設備紹介専用：#technology
   ========================================================================== */
#technology .page-section.tech-intro {
    padding-top: 30px;
}

#technology .page-section.achievements {
    background-color: #f8f9f8;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
    padding-top: 80px;
    padding-bottom: 80px;
}

#technology .label-issue,
#technology .label-result {
    display: block;
    width: fit-content;
    padding: 2px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

#technology .label-issue {
    background-color: #777;
    color: #fff;
}

#technology .label-result {
    background-color: #00BFA5;
    color: #fff;
}

#technology .achievement-grid {
    counter-reset: achievement-counter;
}

#technology .achievement-item {
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
    padding-top: 45px;
    padding-left: 40px;
}

#technology .achievement-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50px;
    bottom: -50px;
    width: 1px;
    background: linear-gradient(to bottom, #00BFA5, #eee);
}

#technology .achievement-item:last-child::before {
    background: linear-gradient(to bottom, #00BFA5, transparent);
}

#technology .achievement-item::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 50px;
    width: 9px;
    height: 9px;
    background: #00BFA5;
    border-radius: 50%;
}

#technology .achievement-item h3::before {
    counter-increment: achievement-counter;
    content: "0" counter(achievement-counter);
    display: block;
    font-size: 0.9rem;
    color: #00BFA5;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    font-weight: 800;
}

#technology .bg-letter {
    position: absolute;
    top: 13px;
    right: 0;
    z-index: 1;
    font-weight: 800;
    color: #b8cfcc;
    line-height: 1;
    font-family: 'Arial', sans-serif;
    opacity: 0.8;
    pointer-events: none;
}

#technology .bg-letter::before {
    font-size: clamp(3.0rem, 7vw, 4.0rem);
}

#technology .achievement-item:nth-child(1) .bg-letter::before {
    content: "Quality";
}

#technology .achievement-item:nth-child(2) .bg-letter::before {
    content: "Speed";
}

#technology .achievement-item:nth-child(3) .bg-letter::before {
    content: "Adaptability";
}

#technology .achievement-item h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a3d16;
    margin-bottom: 25px;
    line-height: 1.4;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff;
}

#technology .detail p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #444;
}

#technology .benefit {
    background: #faecd4;
    border-left: 4px solid #ffc078;
    padding: 20px;
    font-weight: bold;
    color: #222;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

#technology .equipment-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

#technology .eq-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

#technology .eq-img {
    width: 100%;
    line-height: 0;
}

#technology .eq-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#technology .eq-content {
    padding: 30px;
}

#technology .eq-header {
    margin-bottom: 20px;
}

/* タグ色：メインカラーで統一 */
#technology .eq-tag {
    display: inline-block;
    font-family: 'DIN', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #1a3d16;
    color: #fff;
}

#technology .eq-card h4 {
    font-size: 1.25rem;
    color: #1a3d16;
    font-weight: 700;
    margin: 0;
}

#technology .eq-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* ==========================================================================
   5. 会社概要専用：#company
   ========================================================================== */
#company .message-area {
    padding-top: 30px;
}

#company .message-h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a3d16;
    margin-bottom: 30px;
    line-height: 1.4;
}

#company .message-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#company .message-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#company .message-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#company .message-text {
    flex: 1;
}

#company .message-text p {
    line-height: 2;
    margin-bottom: 20px;
    color: #444;
}

#company .ceo-name {
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    color: #333;
}

#company .philosophy-area {
    background-color: #f8f9f8;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
}

.philosophy-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.ph-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

.ph-num {
    font-size: 0.9rem;
    color: #00BFA5;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.ph-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a3d16;
    margin-bottom: 15px;
}

.history-list-wrapper {
    position: relative;
    padding-left: 30px;
    margin-bottom: 60px;
}

.history-list-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 1px;
    background: #00BFA5;
}

.history-item {
    position: relative;
    margin-bottom: 40px;
}

.history-item::after {
    content: "";
    position: absolute;
    left: -34px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: #00BFA5;
    border-radius: 50%;
}

.history-item .year {
    font-weight: 800;
    color: #00BFA5;
    display: block;
    margin-bottom: 5px;
}

.spec-box {
    margin-top: 60px;
}

/* ==========================================================================
   6. リーガル（プライバシー・規約）共通：#privacy, #terms
   ========================================================================== */
.legal-content {
    padding-top: 30px;
}

#privacy .privacy-intro,
#terms .terms-intro {
    padding-top: 0;
    padding-bottom: 0;
}

.legal-item {
    margin-bottom: 50px;
    line-height: 1.8;
    color: #444;
}

.legal-item h3 {
    font-size: 1.2rem;
    color: #1a3d16;
    border-bottom: 2px solid #00BFA5;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.legal-item p {
    margin-bottom: 15px;
}

.legal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #eee;
}

.legal-table th,
.legal-table td {
    border: 1px solid #eee;
    padding: 15px;
    font-size: 0.9rem;
    text-align: left;
}

.legal-table th {
    background: #fcfcfc;
    color: #1a3d16;
    font-weight: bold;
}

.legal-contact-box {
    background: #f8f9f8;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 25px;
}

.contact-detail {
    font-weight: bold;
    color: #1a3d16;
    margin-top: 15px;
    line-height: 1.6;
}

.standard-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.standard-list li {
    margin-bottom: 10px;
}

.text-right {
    text-align: right;
    margin-top: 40px;
    color: #888;
}

/* ==========================================================================
   7. フッター設定（全ページ共通）
   ========================================================================== */
footer .footer-nav,
footer #Copyright {
    display: block;
    width: 100%;
    text-align: center;
}

footer .footer-nav {
    margin-bottom: 0;
}

/* ==========================================================================
   8. CTA & レスポンシブ
   ========================================================================== */
.section.cta {
    background-image: url("/images/back-cta.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.section.cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.section.cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.section.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFCC80;
    color: #333;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 15px 40px rgba(0, 191, 165, 0.3);
}

@media screen and (max-width: 639px) {
    .sub-page main {
        padding-top: 90px;
    }

    #access .profile-table th,
    #access .profile-table td,
    #company .profile-table th,
    #company .profile-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }

    #technology .bg-letter::before {
        font-size: 3rem;
    }

    .section.cta {
        background-attachment: scroll;
    }

    #technology .page-section.achievements,
    #faq .page-section.faq-list,
    #access .page-section.info,
    #company .page-section.philosophy-area {
        padding-left: 20px;
        padding-right: 20px;
    }

    #access .access-map {
        width: auto;
        margin: 0 10px 40px;
    }
}

@media all and (min-width: 640px) {
    .sub-page main {
        padding-top: 130px;
    }

    #access .intro-flex {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    #access .intro-box {
        flex: 1.2;
    }

    #access .company-visual {
        flex: 1;
        margin-top: 0;
    }

    #access .access-grid {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }

    #access .access-grid .info-item {
        flex: 1;
    }

    #company .message-flex {
        flex-direction: row;
        align-items: flex-start;
        gap: 35px;
    }

    #company .message-img {
        flex: 0 0 240px;
        margin: 0;
    }

    #technology .equipment-grid {
        flex-direction: row;
        align-items: stretch;
    }

    #technology .eq-card {
        flex: 1;
    }
}

@media all and (min-width: 1024px) {
    .sub-page main {
        padding-top: 160px;
    }

    #access .intro-flex {
        align-items: flex-start;
    }

    #access .company-visual {
        max-width: 450px;
    }

    .philosophy-grid {
        flex-direction: row;
    }

    .ph-card {
        flex: 1;
    }

    #company .message-flex {
        gap: 60px;
    }
}

@media all and (min-width: 1280px) {
    .sub-page .hero-text {
        max-width: 1200px;
        margin: 0 auto;
    }

    #technology .container,
    #access .container,
    #faq .container,
    #company .container,
    #privacy .container,
    #terms .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   エラーページ専用設定 (#error-403, #error-404, #error-500)
   ========================================================================== */

#error-403 .error-container,
#error-404 .error-container,
#error-500 .error-container {
    text-align: center;
    padding: 60px 0;
}

#error-403 .error-code,
#error-404 .error-code,
#error-500 .error-code {
    font-family: 'DIN', sans-serif;
    font-size: clamp(4rem, 10vw, 6rem);
    color: #00BFA5;
    /* サイトのアクセントカラーに準拠 */
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

#error-403 .error-image-wrapper,
#error-404 .error-image-wrapper,
#error-500 .error-image-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

#error-403 .error-image-wrapper img,
#error-404 .error-image-wrapper img,
#error-500 .error-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#error-403 .error-text,
#error-404 .error-text,
#error-500 .error-text {
    margin-bottom: 50px;
}

#error-403 .error-text h2,
#error-404 .error-text h2,
#error-500 .error-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3d16;
    margin-bottom: 20px;
}

#error-403 .error-text p,
#error-404 .error-text p,
#error-500 .error-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

#error-403 .btn-area,
#error-404 .btn-area,
#error-500 .btn-area {
    margin-top: 40px;
}

/* 1024px以上のPC表示での調整 */
@media all and (min-width: 1024px) {

    #error-403 .error-container,
    #error-404 .error-container,
    #error-500 .error-container {
        padding: 100px 0;
    }
}