/* Noto Sans JP - local font files */
@font-face {
  font-display: swap; 
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/noto-sans-jp-v52-japanese-regular.woff2') format('woff2'); 
}

@font-face {
  font-display: swap;
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/noto-sans-jp-v52-japanese-700.woff2') format('woff2');
}


/* 基本スタイル */
:root {
    --primary-color: #004a99; /* コーポレートカラー（青系） */
    --secondary-color: #f0f8ff; /* 明るい背景色 */
    --text-color: #333;
    --white-color: #fff;
    --border-color: #ddd;
    --header-height: 90px; /* ヘッダーの高さを調整 */
}

/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #007bff;
}

/* 電話番号のリンクスタイルをリセット */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.content-section {
    padding: 80px 20px; /* 上下のpaddingを調整 */
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--secondary-color);
}

/* ヘッダー */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 50px; 
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
}

.header-menu-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-nav {
    display: flex;
    gap: 15px;
}

.header-nav a {
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-contact-info {
    font-size: 0.75rem;
    line-height: 1.5; /* 行間を調整 */
    color: #333;
    white-space: nowrap;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
    text-align: center; /* センタリング */
}
.header-contact-info p {
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.mirait-logo {
    height: 45px;
}

.mobile-nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
}

/* メインコンテンツ */
main {
    padding-top: var(--header-height);
}

/* Heroセクション */
.hero {
    position: relative;
    text-align: center;
    color: var(--white-color);
    height: 500px;
    background-color: #333; /* Fallback background */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 社長挨拶 */
.greeting-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}
.greeting-photo-wrapper {
    flex: 0 0 220px; /* 写真の幅を固定 */
}
.greeting-photo {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.greeting-text-content {
    flex: 1; /* 残りの幅をテキストが使用 */
}
.greeting-text-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.president-name {
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* 企業概要 */
.history-list {
    margin-top: 20px;
    padding-left: 20px;
}
.history-list li {
    margin-bottom: 10px;
}
.history-list span {
    font-weight: bold;
    margin-right: 5px;
}

.organization-chart {
    margin: 40px 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.info-table th, .info-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background-color: #f2f2f2;
    width: 25%;
    font-weight: bold;
}

.sub-th {
    font-size: 0.8em;
    font-weight: normal;
}

.partners-cell {
    line-height: 1.8;
}

.qualifications-cell .qualification-item {
    margin-bottom: 15px;
}
.qualifications-cell .qualification-item:last-child {
    margin-bottom: 0;
}
.qualifications-cell .qualification-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}
.qualifications-cell .qualification-item ul {
    list-style: none;
    padding-left: 0;
}
.qualifications-cell .qualification-item ul li {
    margin-bottom: 5px;
    padding-left: 1em;
    text-indent: -1em;
}
.qualifications-cell .qualification-item p {
    padding-left: 1em;
    text-indent: -1em;
}
.qualifications-cell .business-types {
    display: inline-block;
    padding-left: 1em;
    text-indent: -1em;
}

.heading-note {
    font-size: 0.8rem;
    font-weight: normal;
}

.qualifications-table th {
    width: 20%;
    text-align: center;
    vertical-align: middle;
}

.qualifications-table td ul {
    list-style: none;
    padding-left: 0;
}

.qualifications-table td ul li {
    padding: 5px 0;
    border-bottom: 1px dotted var(--border-color);
}

.qualifications-table td ul li:last-child {
    border-bottom: none;
}


/* 経営方針 */
.policy-card {
    background: var(--white-color);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.policy-list {
    list-style: none;
    padding: 0;
    counter-reset: policy-counter;
}

.policy-list li {
    margin-bottom: 25px;
    padding-left: 2.5em;
    position: relative;
}

.policy-list li::before {
    content: counter(policy-counter) ".";
    counter-increment: policy-counter;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.policy-list li strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.policy-list li p {
    margin: 0;
    line-height: 1.8;
}

/* 一般事業主行動計画 */
.action-plan-content {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.action-plan-content h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.action-plan-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.plan-period {
    font-size: 1rem;
    margin-top: 15px;
}

.goal-item {
    margin-bottom: 25px;
    padding-left: 15px;
}

.goal-item h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.goal-item ul {
    list-style: none;
    padding-left: 0;
}

.goal-item ul li {
    margin-bottom: 8px;
    display: flex;
}

.goal-item ul li span:first-child {
    flex-shrink: 0;
    width: 130px;
    font-weight: normal;
    padding-right: 10px;
}
.goal-item ul li span:last-child {
    flex-grow: 1;
}

/* 業務一覧 */
.business-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.business-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}
.business-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.business-card ul li {
    margin-bottom: 8px;
}
.business-list-container {
    display: flex;
    gap: 20px;
}
.business-list-container ul {
    flex: 1;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-study-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.case-study-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #e9f5ff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.case-study-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.case-study-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white-color);
}

.category-env {
    background-color: #3498db;
}

.category-comm {
    background-color: #2c3e50;
}
.category-ict {
    background-color: #27ae60;
}


/* 採用情報 */
.recruitment-table {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0 40px;
}
.recruitment-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.recruitment-row:last-child {
    border-bottom: none;
}
.recruitment-label {
    background-color: var(--secondary-color);
    padding: 15px;
    font-weight: bold;
    flex: 0 0 150px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.recruitment-description {
    padding: 15px;
    flex: 1;
}
.recruitment-contact-box {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
}
.recruitment-contact-box h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}
.recruitment-contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.recruitment-contact-label {
    flex: 0 0 100px;
    font-weight: bold;
}
.recruitment-contact-data {
    flex: 1;
}

.support-system-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.support-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
}
.support-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}


/* アクセス */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.access-info h4 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.access-info p {
    margin-bottom: 20px;
}

.map-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}
.map-button:hover {
    background-color: #0056b3;
    color: var(--white-color);
}

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


/* お問い合わせ */
.contact-intro {
    text-align: center;
    margin-bottom: 30px;
}

.contact-details-container {
    max-width: 800px;
    margin: 0 auto;
}
.contact-row {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.contact-label {
    flex: 0 0 150px;
    font-weight: bold;
    font-size: 1.1rem;
}
.contact-data {
    flex-grow: 1;
}
.contact-data p {
    margin: 0;
}


/* フッター */
.footer {
    background-color: #333;
    color: var(--white-color);
    text-align: center;
    padding: 20px;
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .header-contact-info {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header-menu-container {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 0;
    }
    .header-menu-container.active {
        display: flex;
    }
    .header-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .header-nav a {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
    }
    .header-contact-info, .header-right {
        display: block;
        padding: 15px 0;
        border-left: none;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }
    .header-inner {
        justify-content: space-between;
    }
}


@media (max-width: 900px) {
    .grid-2, .contact-grid {
        grid-template-columns: 1fr;
    }
    .access-grid {
        grid-template-columns: 1fr;
    }
    .access-photo {
        margin-top: 20px;
    }
    .greeting-container {
        flex-direction: column;
    }
    .greeting-photo-wrapper {
        width: 200px;
        margin: 0 auto 20px;
    }
    .case-study-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 768px) {
    .recruitment-row {
        flex-direction: column;
    }
    .recruitment-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .business-list-container {
        flex-direction: column;
        gap: 0;
    }
    .case-study-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-content h3 {
        font-size: 1.5rem;
    }
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    .info-table th {
        border-bottom: none;
    }
    .info-table td {
        border-top: none;
        margin-bottom: 10px;
    }
    .goal-item ul li {
        flex-direction: column;
    }
    .goal-item ul li span:first-child {
        width: auto;
        margin-bottom: 5px;
    }
    .header-left {
        transform: scale(0.9);
        transform-origin: left;
    }
    .contact-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-label {
        margin-bottom: 10px;
    }
}
