/*====================================================================
  全体的なスタイル
====================================================================*/
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

main {
    position: relative;
    min-height: 80vh;
    margin-bottom: -8px;
    background-color: #ffffff;
}

footer {
    position: relative;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(to bottom, rgba(102, 185, 77, 0) 5%, rgb(102, 185, 77) 35%);
    color: white;
    text-align: center;
}

.center {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.twoline {
    max-width: 1300px;
    min-height: 80vh;
    margin: 20px auto;
    padding: 40px 20px;
    background-color: #f1f8e9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*====================================================================
  ヘッダーとナビゲーション
====================================================================*/
header, .main-nav {
    background-color: #ffffff;
    box-shadow: none;
    padding: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 110px;
    padding: 0 20px;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
}

.main-nav::before,
.main-nav::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, rgba(102, 185, 77, 0) 0%, rgba(102, 185, 77, 1) 20%, rgba(102, 185, 77, 1) 80%, rgba(102, 185, 77, 0) 100%);
}

.main-nav::before {
    top: 0;
}

.main-nav::after {
    bottom: 0;
}

.logo {
    width: auto;
    height: 98px;
    margin-left: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    position: relative;
    display: inline-block;
    padding: 10px 20px 5px;
    color: rgb(102, 185, 77);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav ul li a::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: grey;
    font-size: 14px;
}

.main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(102, 185, 77);
    transform: scaleX(0);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.main-nav ul li a:hover {
    color: #a8e6a3;
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
    visibility: visible;
}

.nav-translation {
    display: block;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.contact-info {
    text-align: left;
    margin-right: 20px;
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
}

.contact-info .contact-box {
    line-height: 0.5;
}

.contact-info .telephone,
.contact-info .fax {
    font-weight: 700;
    font-size: 20px;
}

/*====================================================================
  各ページ共通のコンテンツスタイル
====================================================================*/
.section-heading, .section-heading-eigyou {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    background: rgba(102, 185, 77);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 20px;
}

.box {
    border: 1px solid #ccc;
    padding: 3px 6px;
    border-radius: 0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.details {
    margin-left: 20px;
}

.details p {
    margin: 5px 0;
    color: #555;
}

/*====================================================================
  index.html
====================================================================*/
.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slideshow-container img {
    width: 100%;
    height: auto;
    filter: brightness(60%);
}

.slide {
    position: relative;
    display: none;
}

.fade {
    animation-name: fade;
    animation-duration: 3s;
}

@keyframes fade {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.catchphrase, .catchphrase2 {
    position: absolute;
    left: 50%;
    z-index: 10;
    width: 90%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.6);
}

.catchphrase {
    top: 10%;
    font-weight: bold;
    font-size: 2.2em;
}

.catchphrase2 {
    top: 18%;
    font-size: 1.5em;
}

.department-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 37px;
}

.department {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 40px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 200px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.department .subtitle {
    position: absolute;
    top: -35px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    color: white;
    font-size: 17px;
    font-weight: normal;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.department.sales {
    background-color: rgba(255, 0, 0, 0.5);
}

.department.manufacturing {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    text-shadow: none;
}

/* 「効率化を極めた」の文字からシャドウを削除 */
.department.manufacturing .subtitle {
    color: black;
    text-shadow: none;
}

.department.prototype {
    background-color: rgba(128, 128, 128, 0.7);
}

.rectangle {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 47%;
    height: 130px;
    max-width: 1000px;
    margin: 20px auto;
    background-color: rgba(102, 185, 77, 0.8);
    color: white;
    font-size: 21px;
    font-weight: bold;
    line-height: 2;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/*====================================================================
  profile.html
====================================================================*/
.trust-group-block {
    background-color: #d4edda;
    border: 2px solid #28a745;
    padding: 5px 120px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.trust-group-block h1 {
    margin: 0;
    color: #28a745;
    font-size: 2.5em;
    font-weight: bold;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company-info .column {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.company-info h2 {
    width: 100%;
    margin-bottom: 20px;
    color: #66b94d;
    text-align: center;
}

.company-info h3 {
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #66b94d;
    color: #333;
}

.office-info,
.clients-list,
.industries-list {
    list-style-type: none;
    padding-left: 20px;
}

.office-info li,
.clients-list li,
.industries-list li {
    margin: 10px 0;
    line-height: 1.4;
    color: #555;
}

/* --- 事業内容リストを強調 --- */
.business-info {
    list-style: none;
    padding: 1em;
    border: 2px solid #66b94d;
    border-radius: 8px;
    background: #f9fff9;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 6em;
}

.business-info li {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.6em;
    letter-spacing: 0.03em;
    break-inside: avoid;
    position: relative;
    padding-left: 1.4em;
    color: #333;
}

.business-info li::before {
    content: "■";
    color: #66b94d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: auto;
}

.chart-columns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 5px;
}

.chart-columns .chart-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.chart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.chart-list > li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 0;
}

.chart-list > li > .box {
    background-color: #e6ffcc;
    border: 1px solid #a3e9a4;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 0;
    white-space: nowrap;
}

.chart-list > li > ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    position: relative;
}

.chart-list > li > ul > li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 15px;
}

.chart-list > li > ul > li > .box {
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-weight: normal;
    padding: 3px 6px;
    white-space: nowrap;
}

.domestic-production > ul > li::before,
.prototype > ul > li::before,
.overseas-production > ul > li > ul > li::before {
    content: '■';
    color: #8cff66;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.overseas-production > ul > li::before {
    content: none;
}

.domestic-production > ul > li,
.prototype > ul > li,
.overseas-production > ul > li > ul > li {
    margin-bottom: 0;
}

.overseas-production > ul > li {
    margin-left: -15px;
}

.domestic-production > ul > li > .box,
.prototype > ul > li > .box,
.overseas-production > ul > li > ul > li > .box {
    padding: 0 12px;
}

.overseas-production > ul > li > .box {
    background-color: #e0e0e0;
    font-weight: bold;
}

.chart-list .box {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.domestic-production > .box,
.prototype > .box,
.overseas-production > .box {
    background-color: #e6ffcc;
    border: 1px solid #a3e9a4;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.prototype > ul,
.domestic-production > ul,
.overseas-production > ul {
    margin-top: 15px;
}

.subordinate-group {
    gap: 50px;
    justify-content: center;
    width: 100%;
}

.subordinate-group .chart-list {
    gap: 20px;
    justify-content: center;
}

.subordinate-group .chart-list li {
    margin-bottom: 10px;
}

.subordinate-group .box {
    background-color: #eeeeee;
    border: 1px solid #f8f8f8;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 8px;
}

/*====================================================================
  policy.html
====================================================================*/
.policy-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #66b94d;
    font-size: 1.5em;
    background: none;
    box-shadow: none;
    margin-top: 0;
}

.policy-heading::before,
.policy-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    margin: 0 15px;
    background-color: #ccc;
}

.iso-certificates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.iso-cert-img {
    max-width: 45%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.policy-image {
    display: block;
    flex: 0 0 70%;
    max-width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.policy-text {
    flex: 1;
    min-width: 300px;
}

.policy-text p {
    margin-top: 0;
}

/*====================================================================
  contact.html
====================================================================*/
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto 0;
    padding: 10px;
    background: rgba(102, 185, 77, 0.5);
    font-size: 18px;
}

.contact-table th, .contact-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.contact-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.contact-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/*====================================================================
  access.html
====================================================================*/
.address {
    margin-top: 20px;
    line-height: 1.5;
    text-align: left;
}

.address strong {
    margin-right: 5px;
    font-weight: bold;
}

.address ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.address .details {
    padding-left: 20px;
    margin: 5px 0;
}

.address ul li {
    padding-left: 20px;
}

.section-heading-eigyou {
    margin-top: 40px;
}

/*====================================================================
  レスポンシブデザイン (1366px以下の画面用)
====================================================================*/
@media (max-width: 1366px) {
    /* ナビゲーションを横並びに維持し、サイズを調整 */
    .main-nav {
        height: auto;
        padding-top: 10px;
    }

    .main-nav ul li {
        margin: 0 10px;
    }

    .logo {
        height: 70px;
        margin-left: 0;
    }

    .contact-info {
        text-align: center;
        margin: 10px 0;
    }

    /* キャッチフレーズのサイズを調整 */
    .catchphrase {
        font-size: 1.5em;
        top: 20%;
    }

    .catchphrase2 {
        font-size: 1em;
        top: 30%;
    }

    /* 部門紹介の円形ブロックを横並びに維持し、サイズを調整 */
    .department-container {
        flex-direction: row;
        top: 40%;
        margin-top: 0;
    }

    .department {
        width: 150px;
        height: 150px;
        font-size: 20px;
        line-height: 150px;
        margin: 0 10px;
    }

    .department .subtitle {
        font-size: 14px;
        top: -25px;
    }

    /* その他の要素の幅を調整 */
    .rectangle {
        width: 90%;
        max-width: 1000px;
        height: auto;
        position: static;
        transform: none;
        margin: 20px auto;
        padding: 20px;
        line-height: 1.5;
        font-size: 18px;
    }

    .company-info {
        flex-direction: column;
    }

    .chart-columns {
        flex-direction: column;
    }

    .chart-container {
        overflow-x: auto;
    }

    .policy-image {
        max-width: 100%;
        flex: none;
        margin: 0;
    }

    .iso-cert-img {
        max-width: 100%;
    }
}

/*====================================================================
  レスポンシブデザイン (768px以下の画面用)
====================================================================*/
@media (max-width: 768px) {
    /* 768px以下でヘッダーとナビゲーションを縦並びにする */
    .main-nav {
        flex-direction: column;
        height: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    /* 768px以下で部門紹介を縦並びにする */
    .department-container {
        flex-direction: column;
        top: 35%;
        margin-top: 20px;
    }

    .department {
        width: 150px;
        height: 150px;
        font-size: 20px;
        line-height: 150px;
        margin: 10px 0;
    }
    
    .twoline {
        padding: 20px 10px;
    }
    
    .contact-table {
        width: 100%;
        font-size: 16px;
    }

    iframe {
        width: 100%;
        height: auto;
    }

    .policy-container {
        flex-direction: column;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .policy-image {
        max-width: 100%;
        flex: none;
        margin: 0;
    }
}