/*
Theme Name: Corporate Professional 2026 - App Edition
Author: Gemini & Yuki Ohashi
Description: スマホアプリのような操作感を持つ、次世代コーポレートテーマ。
Version: 1.4
*/

/* --- 1. 基本・変数設定 --- */
:root {
    --primary-color: #003366;    /* 誠実なネイビー */
    --accent-color: #e67e22;     /* 活気のあるオレンジ */
    --text-color: #333333;       /* 読みやすいグレーブラック */
    --bg-light: #f4f7f9;         /* 薄い背景色 */
    --border-color: #dddddd;     /* 境界線 */
    --white: #ffffff;
}

* { box-sizing: border-box; }
body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; color: var(--text-color); margin: 0; line-height: 1.8; background-color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
img { max-width: 100%; height: auto; }

/* --- 2. ヘッダー (ロゴ・ナビ) --- */
header { background: var(--white); padding: 15px 0; border-bottom: 3px solid var(--primary-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.custom-logo-link img { max-height: 50px; width: auto; }
nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--primary-color); font-weight: bold; transition: color 0.3s; }
nav a:hover { color: var(--accent-color); }

/* --- 3. ヒーローエリア --- */
.hero { background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('images/hero-bg.jpg') center/cover; background-color: var(--primary-color); color: var(--white); padding: 100px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: 0.05em; }

/* --- 4. ★スマホアプリ風アイコンメニュー --- */
.app-menu { padding: 50px 0; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s; }
.app-item:hover { transform: translateY(-5px); }
.app-item:active { transform: scale(0.9); }
.icon-circle { width: 85px; height: 85px; background: var(--primary-color); border-radius: 22px; display: flex; justify-content: center; align-items: center; margin-bottom: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: background 0.3s; }
.icon-circle .dashicons { font-size: 40px; width: 40px; height: 40px; color: #fff; }
.app-label { font-size: 0.95rem; font-weight: bold; color: var(--primary-color); }

/* アイコンごとの個別カラー（オプション） */
.app-item:nth-child(2) .icon-circle { background: #27ae60; } /* 事業内容：緑 */
.app-item:nth-child(3) .icon-circle { background: #2980b9; } /* お知らせ：青 */
.app-item:nth-child(4) .icon-circle { background: var(--accent-color); } /* 問い合わせ：橙 */

/* --- 5. 事業内容グリッド --- */
.services { padding: 80px 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--primary-color); position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 4px; background: var(--accent-color); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

/* --- 6. お問い合わせフォーム --- */
.form-container { max-width: 650px; margin: 0 auto; padding: 40px; background: var(--bg-light); border-radius: 12px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--primary-color); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; }
.form-submit { text-align: center; }
.form-submit input { background: var(--primary-color); color: #fff; padding: 15px 60px; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; }
.form-submit input:hover { background: var(--accent-color); transform: scale(1.05); }

/* --- 7. 会社概要・パンくず・その他 --- */
.company-profile { width: 100%; border-collapse: collapse; margin: 30px 0; }
.company-profile th, .company-profile td { padding: 18px; border-bottom: 1px solid var(--border-color); }
.company-profile th { width: 30%; background-color: var(--bg-light); color: var(--primary-color); text-align: left; }
.breadcrumb { padding: 15px 0; font-size: 0.85rem; color: #666; }
.breadcrumb a { text-decoration: none; color: var(--primary-color); }

/* --- 8. レスポンシブ --- */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 1.8rem; }
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; } /* スマホは2列 */
    .icon-circle { width: 75px; height: 75px; }
    .company-profile th, .company-profile td { display: block; width: 100%; }
    .company-profile th { background: none; padding-bottom: 0; color: var(--accent-color); }
}
/* 事業内容詳細ページ */
.service-detail-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
}

.service-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.service-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0.3;
    display: block;
    line-height: 1;
}

.service-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 10px 0 20px;
    position: relative;
}

.service-text ul {
    padding-left: 20px;
    margin-top: 20px;
}

.service-text li {
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

/* スマホ用 */
@media (max-width: 768px) {
    .service-detail-row, .service-detail-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    .service-text h2 {
        font-size: 1.5rem;
    }
}