/* ==========================================
   企業情報ページ専用スタイル
   ========================================== */

/* 
   このファイルには企業情報ページ固有のスタイルが含まれます:
   - 企業情報TOPのカードレイアウト
   - 下層ページのコンテンツスタイル
   - 企業情報専用セクション
*/

/* ==========================================
   共通ヒーローセクション（下層ページ用）
   ========================================== */

/* ==========================================
   企業情報共通
   ========================================== */

.page-company {
    background-color: #fff;
}

/* ==========================================
   企業情報下層ページ - メインコンテンツ
   ========================================== */

/* サイトTOPの.company-contentのdisplay:gridを上書き */
.page-company .company-content {
    display: block;
    padding: 6rem 0;
}

.company-content-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 20px;
}

.company-content-section:last-child {
    margin-bottom: 0;
}

.company-section-title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #1a5490;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
}

.company-section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: #1a5490;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.company-section-text {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #495057;
    line-height: 2.0;
    margin-bottom: 2rem;
}

/* 2カラムレイアウト（画像+テキスト） */
.company-two-column {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 3rem;
}

.company-two-column.reverse {
    flex-direction: row-reverse;
}

.company-column-image {
    flex: 0 0 40%;
}

.company-column-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.company-image-caption {
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    color: #495057;
    text-align: left;
    margin-top: 1rem;
    line-height: 1.6;
}

.company-column-text {
    flex: 1;
}

/* テキストブロックの間隔調整 */
.company-text-block {
    margin-bottom: 2rem;
}

.company-text-block:last-child {
    margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-company .company-content {
        display: block;
        padding: 3rem 0;
    }
    
    .company-content-section {
        margin-bottom: 3rem;
    }
    
    .company-two-column,
    .company-two-column.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .company-column-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ==========================================
   3つの基本方針（インライン型・事業への思いページ専用）
   ========================================== */

.company-principles-inline {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.company-principles-inline-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #1a5490;
}

.company-principles-inline-title .number {
    font-size: clamp(3rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1;
}

.company-principles-inline-title .text {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
}

.company-principles-inline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.company-principle-inline-item {
    padding: 1.5rem 0;
    border-top: 1px solid #d1d5db;
}

.company-principle-inline-item:last-child {
    border-bottom: 1px solid #d1d5db;
}

.company-principle-inline-title {
    font-size: clamp(1.125rem, 1.4vw, 1.25rem);
    font-weight: 700;
    color: #1a5490;
    line-height: 1.6;
}

/* ==========================================
   3つの基本方針セクション（事業への思い用）
   ========================================== */

.company-principles {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.company-principles-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1a5490;
    text-align: center;
    margin-bottom: 1rem;
}

.company-principles-title .number {
    font-size: clamp(3rem, 5vw, 4rem);
    display: block;
    margin-bottom: 0.5rem;
}

.company-principles-list {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 20px;
}

.company-principle-item {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #dee2e6;
}

.company-principle-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.company-principle-title {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #1a5490;
    margin-bottom: 1rem;
}

.company-principle-subtitle {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #495057;
    line-height: 1.8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-principles {
        padding: 3rem 0;
    }
    
    .company-principle-item {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

/* ==========================================
   企業情報内リンクセクション（共通パーツ）
   ========================================== */

.company-links {
    padding: 4rem 0;
    background: #F1F3F8;
    border-top: 1px solid #E5E5E5;
}

.company-links-title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #005095;
}

.company-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
}

.company-links-column {
    /* 列ごとのスタイル（必要に応じて） */
}

.company-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-links-list li {
    margin-bottom: 0;
    position: relative;
    padding: 1.5rem 0;
    border-bottom: 1px solid #D1D5DB;
}

.company-links-list li:first-child {
    border-top: 1px solid #D1D5DB;
}

.company-links-list li:last-child {
    margin-bottom: 0;
}

.company-links-list a {
    color: #333333;
    text-decoration: none;
    font-size: clamp(1rem, 1.2vw, 1.0625rem);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-links-list a::after {
    content: '›';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #186EA9;
    color: white;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.company-links-list a:hover {
    color: #186EA9;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .company-links-grid {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .company-links {
        padding: 3rem 0;
    }
    
    .company-links-title {
        margin-bottom: 2rem;
    }
    
    .company-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-links-list li {
        padding: 1rem 0;
    }
    
    .company-links-list a {
        font-size: 1rem;
    }
}

/* ==========================================
   会社概要ページ - 会社情報テーブル
   ========================================== */

.company-overview-section {
    padding: 6rem 0;
    background-color: #fff;
}

.company-info-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.company-info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.company-info-row:nth-child(odd) {
    background-color: #f8f9fa;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
}

.company-info-label {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 600;
    color: #1a5490;
    padding-top: 0.25rem;
}

.company-info-value {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #495057;
    line-height: 1.9;
    margin: 0;
}

.company-info-link {
    color: #1a5490;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-info-link:hover {
    color: #0d3a6f;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-overview-section {
        padding: 3rem 0;
    }
    
    .company-info-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .company-info-row:nth-child(odd) {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .company-info-label {
        font-weight: 700;
        padding-bottom: 0.5rem;
    }
}

/* ヒーローセクションのレスポンシブ対応 */
@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    
    .page-hero-content {
        padding-left: 5%;
        gap: 1rem;
    }
}

/* ==========================================
   会社情報テーブル（会社概要ページ専用）
   ========================================== */

/* 会社概要ページ専用のmax-width設定 */
.page-company-overview .company-content-section {
    max-width: 960px;
}

.company-info-table {
    width: 100%;
    margin: 0;
    padding: 0;
}

.company-info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    border-bottom: 1px solid #E5E7EB;
}

.company-info-row:first-child {
    border-top: 1px solid #E5E7EB;
}

.company-info-row dt {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 600;
    color: #1F2937;
    line-height: 1.8;
    margin: 0;
}

.company-info-row dd {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #4B5563;
    line-height: 1.9;
    margin: 0;
}

.company-info-row dd a {
    color: #1a5490;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.company-info-row dd a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .company-info-row dt {
        font-weight: 700;
        color: #1a5490;
    }
}

/* ==========================================
   経営理念ページ専用スタイル
   ========================================== */

/* 経営理念ページ専用のmax-width設定 */
.page-company-philosophy .company-content-section {
    max-width: 1200px;
}

/* 2カラムレイアウト（左: 項目名、右: 内容） */
.philosophy-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.philosophy-row:first-child {
    padding-top: 0;
}

.philosophy-row:last-child {
    border-bottom: none;
}

/* 左カラム: 項目名 */
.philosophy-label {
    position: relative;
}

/* セクションタイトル（左側に青い縦線） */
.philosophy-section-title {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #1a5490;
    margin: 0;
    line-height: 1.4;
}

/* 右カラム: コンテンツ */
.philosophy-content {
    /* コンテンツエリア */
}

/* 見出し（「人が真ん中」など） */
.philosophy-heading {
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #1a5490;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* ビジョンラベル */
.philosophy-vision-label {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: #1a5490;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* テキストスタイル */
.philosophy-text {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #495057;
    line-height: 2.0;
    margin-bottom: 1.5rem;
}

.philosophy-text:last-child {
    margin-bottom: 0;
}

.philosophy-text-bold {
    font-weight: 700;
    color: #005095;
    font-size: 1.025rem;
}

/* 箇条書きリスト（青丸アイコン付き） */
.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.philosophy-list li {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #495057;
    line-height: 1.9;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.philosophy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: #1a5490;
    border-radius: 50%;
}

.philosophy-list li:last-child {
    margin-bottom: 0;
}

/* 方針セクション */
.philosophy-policy {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.philosophy-policy:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 2rem;
}

.philosophy-policy-title {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: #1a5490;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.philosophy-shakun-img{
    width: 100%;
    margin: 0 0 2rem;
}
.philosophy-shakun-list{

}
    .philosophy-shakun-list li{
        list-style: none;
        font-size: clamp(0.9375rem, 1.1vw, 1rem);
        margin: 0 0 10px;
    }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .philosophy-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .philosophy-section-title {
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    .philosophy-policy {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* ==========================================
   沿革ページ専用スタイル
   ========================================== */

/* 沿革ページ専用のmax-width設定 */
.page-company-development .company-content-section {
    max-width: 960px;
}

/* 沿革テーブル */
.development-table {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 沿革行 */
.development-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 3rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.development-row:first-child {
    border-top: 1px solid #E5E7EB;
}

/* 日付カラム */
.development-date {
    display: flex;
    gap: 1rem;
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 600;
    color: #1F2937;
    line-height: 1.8;
    margin: 0;
}

.development-year {
    min-width: 60px;
}

.development-month {
    /* 月表示 */
}

/* 内容カラム */
.development-content {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #4B5563;
    line-height: 1.9;
    margin: 0;
}

.development-row .font-bold{
    font-weight: 700;
    color: #005095;
    font-size: 1.025rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .development-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .development-date {
        gap: 0.75rem;
        font-weight: 700;
        color: #1a5490;
    }
}

/* ==========================================
   事業所一覧ページ専用スタイル
   ========================================== */

/* 事業所一覧ページ専用のmax-width設定 */
.page-company-location .company-content-section {
    max-width: 1200px;
}

/* 事業所行（2カラムレイアウト） */
.location-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 3rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.location-row:first-child {
    padding-top: 0;
}

.location-row:last-child {
    border-bottom: none;
}

/* 左カラム: 事業所名 */
.location-label {
    position: relative;
}

.location-title {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #1a5490;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 4px solid #1a5490;
    line-height: 1.4;
}

/* 右カラム: コンテンツ */
.location-content {
    /* コンテンツエリア */
}

/* 情報リスト */
.location-info {
    margin: 0 0 2rem 0;
    padding: 0;
}

.location-info-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.location-info-item:last-child {
    margin-bottom: 0;
}

.location-info-item dt {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 600;
    color: #1F2937;
    line-height: 1.8;
    margin: 0;
}

.location-info-item dd {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    color: #4B5563;
    line-height: 1.9;
    margin: 0;
}

/* ビジュアルエリア（写真+地図） */
.location-visual {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.location-image {
    width: 250px;
    aspect-ratio: 1 / 1.4;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-map {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .location-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .location-title {
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    .location-info-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .location-info-item dt {
        font-weight: 700;
        color: #1a5490;
    }
    
    .location-visual {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================
   認証画像セクション（会社概要ページ）
   ========================================== */

.certification-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.certification-item {
    position: relative;
    flex: 0 0 auto;
    max-width: 100px;
}

.certification-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ツールチップ付きアイテム */
.certification-item-with-tooltip {
    cursor: pointer;
}

.certification-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    padding: 1rem 1.25rem;
    background-color: #1a5490;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.7;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 吹き出しの三角形 */
.certification-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1a5490;
}

.certification-tooltip p {
    margin: 0;
}

/* ホバー時にツールチップ表示 */
.certification-item-with-tooltip:hover .certification-tooltip {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .certification-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
    }
    
    .certification-item {
        max-width: 80px;
    }
    
    /* 4番目と5番目（くるみん・健康経営）は2行目で中央寄せ */
    .certification-item:nth-child(4) {
        grid-column: 1 / 2;
        justify-self: end;
        margin-right: 0.5rem;
    }
    
    .certification-item:nth-child(5) {
        grid-column: 2 / 3;
        justify-self: start;
        margin-left: 0.5rem;
    }
    
    /* スマホではツールチップを非表示（タップでは使いにくいため） */
    .certification-tooltip {
        display: none;
    }
}
