/* =========================================================
   Wkey Inc. — Design Refinement Layer（洗練・ミニマル）
   元の構造・レイアウトは変えず、全ページの見た目を統一・洗練する。
   すべてのページで「最後に」読み込むこと（インラインCSSも上書き）。
   ========================================================= */

/* ---------------------------------------------------------
   0. デザイントークン（参考値。既存の濃紺 #0f172a を踏襲）
   --------------------------------------------------------- */
:root {
    --wk-ink: #1f2531;          /* 本文の基準色（真っ黒を避け上品に） */
    --wk-ink-soft: #5b6472;     /* 補足テキスト */
    --wk-muted: #8b93a1;        /* ラベル・キャプション */
    --wk-navy: #0f172a;         /* アクセント／濃色背景 */
    --wk-hairline: #e8e8e4;     /* 罫線 */
    --wk-tint: #f4f4f1;         /* 薄い面（グレーボックス） */
    --wk-radius: 8px;
}

/* ---------------------------------------------------------
   1. ベースのタイポグラフィ
   --------------------------------------------------------- */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    color: var(--wk-ink);
    letter-spacing: 0.01em;
    font-feature-settings: "palt"; /* 和文の詰め組みで読みやすく */
}
img { max-width: 100%; }
::selection { background: rgba(15, 23, 42, 0.12); }

/* 本文まわりのゆとり */
.mission-text,
.concept-text,
.service-lead,
.map-text,
.detail-description,
.recruit-message,
.job-body {
    color: var(--wk-ink-soft);
    line-height: 1.95;
}

/* Afacad の英字見出しは字間を少し開けて上品に */
.section-title,
.section-title-white,
.section-sub-title,
.section-sub-title-white,
.page-title,
.detail-label,
.sub-label,
.vision-label,
.footer-logo,
.recruit-center .section-title {
    letter-spacing: 0.04em;
}
.section-title,
.service-title,
.detail-title,
.job-title,
.page-title,
.concept-catch,
.vision-catch {
    line-height: 1.22;
}

/* ---------------------------------------------------------
   2. ヘッダー（全ページで見た目を統一）— PC/タブレットのみ
   --------------------------------------------------------- */
@media screen and (min-width: 769px) {
    .header {
        padding: 20px 48px;
    }
    .header-logo a img {
        width: 112px;
    }
    .header-nav ul {
        gap: 44px;
        align-items: center;
    }
    .header-nav a {
        font-size: 1.7rem;
        font-weight: 600;
        letter-spacing: 0.06em;
    }
    /* 下線アニメ（animation.css）と喧嘩しないよう色だけ整える */
    .header-nav > ul > li > a {
        color: var(--wk-navy);
        padding: 12px 4px;
    }
}

/* ---------------------------------------------------------
   3. セクション見出しの色・字間の統一
   --------------------------------------------------------- */
.sub-label,
.detail-label,
.vision-label,
.job-label,
.service-cat,
.detail-label {
    color: var(--wk-muted);
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   4. ボタン類（統一トーン）
   --------------------------------------------------------- */
.btn-view,
.btn-detail-view {
    letter-spacing: 0.08em;
    font-weight: 600;
    border-radius: 2px;
}
.btn-detail-view {
    border-color: rgba(255, 255, 255, 0.4);
}
.entry-btn {
    border-radius: 2px;
    letter-spacing: 0.04em;
}
.entry-btn .label,
.entry-btn .entry-title {
    letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   5. サービスの円形ボタン（index / service）
   --------------------------------------------------------- */
.service-item {
    border-color: rgba(255, 255, 255, 0.28);
}
.service-nav-item {
    border-color: #dcdcd8;
}
.service-cat,
.detail-label {
    letter-spacing: 0.12em;
    font-size: 1.4rem;
}

/* ---------------------------------------------------------
   6. サービスマップ / 詳細（service-*.html）
   --------------------------------------------------------- */
.map-list {
    border-top-color: var(--wk-hairline);
}
.map-item {
    border-bottom-color: var(--wk-hairline);
    padding: 44px 0;
}
.map-head {
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.service-hero {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---------------------------------------------------------
   7. 会社概要（index / aboutus）— 面と罫線を上品に
   --------------------------------------------------------- */
.about-info {
    background-color: var(--wk-tint);
}
.about-info dt {
    color: var(--wk-navy);
    letter-spacing: 0.02em;
}
.about-info dd {
    color: var(--wk-ink-soft);
}
.map-container {
    border-radius: var(--wk-radius);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* VALUE 番号を上品に */
.value-num {
    color: var(--wk-navy);
    letter-spacing: 0.04em;
}
.value-desc {
    color: var(--wk-ink-soft);
}

/* ---------------------------------------------------------
   8. NEWS 一覧
   --------------------------------------------------------- */
.news-list {
    border-top-color: var(--wk-hairline);
}
.news-item {
    border-bottom-color: var(--wk-hairline);
}
.news-item:hover {
    background-color: #faf9f7;
}
.news-date {
    letter-spacing: 0.04em;
}
.news-cat {
    letter-spacing: 0.08em;
    border-color: rgba(15, 23, 42, 0.35);
    color: var(--wk-navy);
    border-radius: 2px;
}
.news-title {
    color: var(--wk-ink);
    letter-spacing: 0.01em;
}

/* ---------------------------------------------------------
   9. 採用（recruit）ジョブテーブル
   --------------------------------------------------------- */
.job-section {
    border-top-color: var(--wk-hairline);
}
.job-table,
.job-row {
    border-color: var(--wk-hairline);
}
.job-label {
    letter-spacing: 0.08em;
    text-transform: none;
}
.job-header {
    color: var(--wk-navy);
    letter-spacing: 0.02em;
    line-height: 1.5;
}
.recruit-message p {
    color: var(--wk-ink-soft);
}

/* ---------------------------------------------------------
   10. お問い合わせフォーム（contact）
   --------------------------------------------------------- */
.form-group {
    border-bottom-color: var(--wk-hairline);
}
.form-label {
    color: var(--wk-navy);
    letter-spacing: 0.02em;
    font-weight: 600;
}
.form-control {
    background-color: #f3f3f0;
    border: 1px solid transparent;
    border-radius: var(--wk-radius);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--wk-navy);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.form-control::placeholder {
    color: #b4b9c2;
}
.page-subtext {
    color: var(--wk-ink-soft);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   11. フッター（全ページ共通の質感）
   --------------------------------------------------------- */
.footer-links p {
    letter-spacing: 0.2em;
}
.footer-links ul li a {
    position: relative;
    transition: opacity 0.25s ease;
}
.footer-links ul li a:hover {
    opacity: 0.7;
}
.footer-logo {
    letter-spacing: 0.02em;
}
.copyright {
    color: #7b8494;
    letter-spacing: 0.04em;
}
.contact-box p,
.card-title {
    letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   12. 仕上げの微調整
   --------------------------------------------------------- */
/* リンク・ボタンのフォーカスを見やすく（アクセシビリティ） */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.45);
    outline-offset: 2px;
}

/* 画像のがたつき防止 */
.about-image img,
.recruit-img img,
.case-grid img,
.detail-image img {
    border-radius: 2px;
}

/* =========================================================
   13. スタイル強化（統一感 + オシャレ）
   ── 既存レイアウトは維持し、装飾のニュアンスだけ足す
   ========================================================= */

/* 13-1. 英字ラベル（eyebrow）に短いアクセント線を付ける
   例: REAL ESTATE / VACANT HOUSE / VISION など */
.sub-label,
.detail-label,
.vision-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.14em;
}
.sub-label::before,
.detail-label::before,
.vision-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    flex: none;
}

/* 13-2. セクション大見出しに極細のアクセント下線
   （左揃え見出し。中央寄せの service / about は別途中央化） */
.service-title,
.detail-title,
.job-title,
.concept-catch {
    position: relative;
    padding-bottom: 22px;
}
.service-title::after,
.detail-title::after,
.job-title::after,
.concept-catch::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: currentColor;
    opacity: 0.85;
}
/* 濃紺背景の detail-title は白系で */
.service-detail-section .detail-title::after { opacity: 0.5; }

/* 中央寄せ見出し（SERVICE / ABOUT US ページタイトル）はアクセントも中央に */
.service-hero .page-title,
.about-profile h2 {
    position: relative;
    padding-bottom: 24px;
}
.service-hero .page-title::after,
.about-profile h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 2px;
    background: var(--wk-navy);
    opacity: 0.85;
}

/* 13-3. ボタンの「+」「矢印」をホバーで動かす（上品なマイクロ動作） */
.btn-view span,
.btn-detail-view span,
.entry-btn .plus-icon,
.entry-btn > span:last-child {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-view:hover span,
.btn-detail-view:hover span,
.entry-btn:hover .plus-icon,
.entry-btn:hover > span:last-child {
    transform: rotate(90deg);
}

/* 13-4. カードとボックスの影を柔らかく統一 */
.service-nav-item,
.contact-box,
.footer-contact-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.service-item:hover,
.service-nav-item:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* 13-5. NEWS 一覧：ホバーで左に細いアクセントバー */
.news-item a {
    position: relative;
    transition: padding-left 0.3s ease, background-color 0.3s ease;
}
.news-item a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--wk-navy);
    transition: width 0.3s ease;
}
.news-item:hover a {
    padding-left: 28px;
}
.news-item:hover a::before {
    width: 3px;
}

/* 13-6. サービスマップ番号（01｜…）の視認性を少し上げる */
.map-head {
    color: var(--wk-navy);
}

/* 13-7. フッター：上部に極細ライン、リンクを少し洗練 */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links ul li a {
    display: inline-block;
}
.footer-links ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}
.footer-links ul li a:hover::after {
    width: 100%;
}

/* 13-8. リクルート中央テキストの円形ホバー枠（さりげない装飾） */
.recruit-center .plus-icon {
    width: 46px;
    height: 46px;
    line-height: 44px;
    margin: 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.35);
    border-radius: 50%;
    text-align: center;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.recruit-center:hover .plus-icon {
    background: var(--wk-navy);
    color: #fff;
}

/* 13-9. 選択メニュー・入力欄の統一感（contact） */
select.form-control {
    background-color: #f3f3f0;
}

/* 13-10. リンクや見出しの過剰な下線化を防ぎつつ、本文の可読性を担保 */
.service-lead,
.concept-text,
.mission-text {
    max-width: 76ch;
}

/* 13-11. 不動産事業の詳細ボタン群（社宅／仲介／民泊） */
.btn-detail-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}
.btn-detail-group .btn-detail-view {
    margin-top: 0;
    min-width: 180px;
    justify-content: space-between;
}
@media screen and (max-width: 768px) {
    .btn-detail-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn-detail-group .btn-detail-view {
        width: 100%;
    }
}
