@charset "UTF-8";

/* =========================================================
   合同会社ホットリンク：サイト共通スタイル
   HTMLから読み込み：css/common.css
   既存の指定・適用順は維持しています。
   ========================================================= */

/* ===== カラーパレット・共通変数 ===== */

:root {
    --navy: #122742;
    --blue: #276c9f;
    --accent: #c8161d;
    --light: #f3f7fa;
    --text: #273647;
}

/* ===== 基本スタイル・共通レイアウト ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
    color: var(--text);
    line-height: 1.85;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1120px,90%);
    margin: auto;
}

/* ===== ヘッダー・ナビゲーション ===== */

header {
    position: sticky;
    top: 0;
    background: #fffefef5;
    backdrop-filter: blur(12px);
    z-index: 10;
    border-bottom: 1px solid #e5ebef;
}

.head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 190px;
  height: auto;
}

/* スマートフォン */
@media (max-width: 800px) {
  .logo img {
    width: 150px;
  }
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 650;
}

nav a:hover {
    color: var(--blue);
}

/* PC：お問い合わせだけ強調したボタンとして表示 */
nav .nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
    white-space: nowrap;
    transition: background-color .2s ease;
}

nav .nav-contact:hover {
    background: #df0615;
    color: #fff;
}

nav a:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

/* PCではハンバーガーメニューを非表示 */
.menu-toggle {
    display: none;
}

/* ===== メインビジュアル ===== */

.hero {
        background:
        linear-gradient(120deg,rgba(5,25,43,.5),rgba(17,93,140,.2)),
        url("../img/fv.webp") right center / cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}


.hero .wrap {
    padding: 112px 0 120px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: .22em;
    font-weight: 750;
    text-transform: uppercase;
    color: #98c9e6;
}

.hero h1 {
    font-size: clamp(34px,5vw,60px);
    letter-spacing: .04em;
    line-height: 1.45;
    margin: 22px 0;
}

.hero p {
    font-size: 17px;
    max-width: 670px;
    color: #e2edf4;
}

/* ===== ボタン・セクション見出し ===== */

.btn {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 28px;
    border-radius: 5px;
    background: var(--accent);
    color: #fff;
    font-weight: 750;
}

.btn:hover {
    filter: brightness(1.08);
}

section {
    padding: 88px 0;
}

.sub {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--blue);
    text-transform: uppercase;
}

.secttitle {
    margin: 6px 0 24px;
    font-size: clamp(27px,3vw,35px);
    color: var(--navy);
}

.lead {
    max-width: 800px;
}

/* ===== 私たちについて・事業カード ===== */

.about {
    background: #fff;
}

.services {
    background: var(--light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 36px;
}

.card {
    background: #fff;
    padding: 30px 26px;
    border-radius: 8px;
    border: 1px solid #e6edf2;
    box-shadow: 0 5px 22px #15304a09;
}

.card .num {
    font-size: 13px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .12em;
}

.card h3 {
    font-size: 19px;
    line-height: 1.5;
    color: var(--navy);
    margin: 12px 0;
}

.card p {
    font-size: 14px;
    margin: 0;
}

/* ===== 事業への想い ===== */

.message {
    background: var(--navy);
    color: #fff;
}

.message .secttitle {
    color: #fff;
}

.message p {
    max-width: 790px;
    color: #d5e4ef;
}

/* HTMLのインライン指定をCSSへ移動 */
.message .sub {
    color: #98c9e6;
}

/* ===== 会社概要 ===== */

.company table {
    width: 100%;
    border-collapse: collapse;
    max-width: 900px;
}

.company th,.company td {
    text-align: left;
    padding: 19px 18px;
    border-bottom: 1px solid #dae4eb;
    font-size: 15px;
    vertical-align: top;
}

.company th {
    width: 210px;
    color: var(--navy);
    background: #f6f9fb;
}

/* ===== お問い合わせ ===== */

.contact {
    background: #eaf2f7;
    text-align: center;
}

.contact .wrap {
    max-width: 720px;
}

.contact .subnote {
    font-size: 12px;
    padding-top:20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-links a {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-weight: 750;
}

.contact-links a:nth-child(2) {
    background: var(--accent);
}

/* ===== フッター ===== */

footer {
    padding: 28px 0;
    background: #0b1b30;
    color: #c9d8e5;
    font-size: 12px;
    text-align: center;
}

/* ===== レスポンシブ：基本スタイル ===== */

@media (max-width:800px) {
    /* ヘッダーはロゴとハンバーガーボタンを横並びに */
    .head {
        position: relative;
        align-items: center;
        flex-direction: row;
        min-height: 70px;
        padding: 10px 0;
        gap: 12px;
    }

    /* 3本線の開閉ボタン */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #dce6ec;
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
    }

    .menu-toggle-bar {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 1px;
        background: var(--navy);
        transition: transform .2s ease, opacity .2s ease;
    }

    /* メニューが開いた状態は閉じる（×）アイコンに変化 */
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* メニューは初期状態で閉じ、ボタン操作で開く */
    #primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 11;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 18px;
        border: 1px solid #e5ebef;
        border-top: 0;
        border-radius: 0 0 8px 8px;
        background: #fff;
        box-shadow: 0 15px 25px #1227421a;
        font-size: 14px;
    }

    #primary-nav.is-open {
        display: flex;
    }

    #primary-nav > a:not(.nav-contact) {
        padding: 12px 2px;
        border-bottom: 1px solid #edf1f4;
    }

    #primary-nav .nav-contact {
        margin-top: 15px;
        min-height: 46px;
        text-align: center;
    }

    .hero .wrap {
        padding: 78px 0 92px;
    }

    .cards {
        grid-template-columns: repeat(2,1fr);
    }

    section {
        padding: 65px 0;
    }
}

@media (max-width:560px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .hero p {
        font-size: 15px;
    }

    .company th,.company td {
        display: block;
        width: 100%;
        padding: 10px 14px;
    }

    .company td {
        padding-bottom: 19px;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* ===== ABOUT US：会社紹介と3つの視点 ===== */

/* 横幅・英語ラベル・メイン見出しは共通の .wrap / .sub / .secttitle を使用 */
.about {
    background: #fff;
}

/* 本文：他セクションと同じ基本文字サイズ・文字色で1カラム表示 */
.about-description {
    margin-top: 36px;
}

.about-description p {
    margin: 0 0 14px;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* 3つの視点：見出しの大きさは他セクションの小見出しに揃える */
.about-values-heading {
    margin: 54px 0 28px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
}

/* 他の3列カードと同じ間隔で並べる */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 285px;
    padding: 25px 20px;
    border-radius: 24px;
    background: #f3f7fa;
    text-align: center;
}

/* 仮アイコン（PNG／透過）：ファイル差し替え可能 */
.about-value-icon {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* カード見出し・説明は既存の .card h3 / .card p と同じサイズ */
.about-value-card h4 {
    margin: 10px 0 12px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

.about-value-card p {
    max-width: 19em;
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
}

/* スマホ幅（640px以下）になるまでは、タブレットも含め3列表示を維持 */

/* スマートフォン：カードは1列、アイコンを左側の縦中央／文章を右に配置 */
@media (max-width: 640px) {
    .about-description {
        margin-top: 28px;
    }

    .about-values-heading {
        margin: 42px 0 24px;
        font-size: 22px;
    }

    .about-values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .about-value-card {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        align-items: center;
        justify-items: start;
        column-gap: 16px;
        row-gap: 4px;
        min-height: 150px;
        padding: 20px 18px;
        border-radius: 18px;
        text-align: left;
    }

    .about-value-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        width: 76px;
        height: 76px;
    }

    .about-value-card h4 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .about-value-card p {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
    }
}

/* 小さいスマホでも本文の幅を確保する */
@media (max-width: 360px) {
    .about-value-card {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
        padding: 18px 14px;
    }

    .about-value-icon {
        width: 64px;
        height: 64px;
    }
}

/* ===== 5つの事業領域 ===== */

.services-list {
    margin-top: 34px;
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
    align-items: center;
    gap: 46px;
    padding: 36px 0;
    border-bottom: 1px solid #dce6ec;
}

.service-detail:last-child {
    border-bottom: 0;
}

.service-media {
    width: 100%;
}

.service-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
    background: #e7e9ec;
}

.service-content {
    min-width: 0;
}

.service-detail .tag {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: .18em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.service-detail h3 {
    margin: 0 0 28px;
    color: #000;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.5;
}

.service-detail p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.85;
}

.service-detail ul {
    margin: 18px 0 0;
    padding-left: 1.15em;
}

.service-detail li {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
}

/* ===== ご相談例 ===== */

.examples {
    background: #fff;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px 30px;
    margin-top: 32px;
}

.example {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
    align-items: center;
    gap: 28px;
    padding: 30px;
    border: 1px solid #d8e0e6;
    border-radius: 20px;
    background: linear-gradient(145deg,#f6f9fb,#f2f6f9);
}

.example-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-icon {
    display: block;
    width: 108px;
    height: 108px;
}

.example-content {
    min-width: 0;
}

.example h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--navy);
}

.example p {
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
}

/* ===== ご相談からお取引まで ===== */

.steps {
    background: var(--light);
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-top: 32px;
}

.step {
    background: #fff;
    padding: 24px;
    border: 1px solid #e2eaf0;
    border-radius: 8px;
}

.step b {
    font-size: 28px;
    color: var(--blue);
}

.step h3 {
    color: var(--navy);
    font-size: 17px;
    margin: 6px 0;
}

.step p {
    font-size: 14px;
    margin: 0;
}

/* ===== よくあるご質問 ===== */

.faq details {
    border-bottom: 1px solid #dae4ea;
    padding: 17px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 750;
    color: var(--navy);
    padding-right: 20px;
}

.faq details p {
    margin: 12px 0 2px;
    max-width: 850px;
}

/* ===== お問い合わせ誘導エリア ===== */

.cta-bar {
    background: linear-gradient(110deg,#143452,#28628c);
    color: #fff;
    padding: 40px 0;
}

.cta-bar .wrap {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
}

.cta-bar h2 {
    margin: 0;
    font-size: 24px;
}

.cta-bar p {
    margin: 6px 0 0;
}

.cta-bar .btn {
    margin: 0;
    white-space: nowrap;
}

@media (max-width:8000px) {
  .cta-bar .btn { margin: 0 auto;}
}

/* ===== 補足テキスト・問い合わせ案内 ===== */

.small-note {
    font-size: 12px;
    color: #637381;
    margin-top: 18px;
}

.contact-points {
    text-align: left;
    max-width: 520px;
    margin: 20px auto 0;
    padding-left: 1.5em;
}

/* ===== レスポンシブ：追加コンポーネント ===== */

@media (max-width:800px) {
    .service-detail {
        gap: 28px;
        padding: 30px 0;
    }

    .example {
        grid-template-columns: 120px minmax(0,1fr);
        gap: 22px;
        padding: 28px 24px;
    }

    .example-icon {
        width: 92px;
        height: 92px;
    }

    .example h3 {
        font-size: 18px;
    }

    .example p {
        font-size: 15px;
    }

    .step-list {
        grid-template-columns: repeat(2,1fr);
    }

    .cta-bar .wrap {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width:640px) {
    .services-list {
        margin-top: 28px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 0;
    }

    .service-media img {
        border-radius: 22px;
    }

    .service-detail .tag {
        margin-bottom: 16px;
    }

    .service-detail h3 {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .service-detail p,
    .service-detail li {
        font-size: 15px;
    }
}

@media (max-width:640px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .example {
        grid-template-columns: 96px minmax(0,1fr);
        gap: 18px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .example-icon {
        width: 78px;
        height: 78px;
    }

    .example h3 {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .example p {
        font-size: 15px;
        line-height: 1.75;
    }

    .example p br {
        display: none;
    }
}

@media (max-width:560px) {
    .step-list {
        grid-template-columns: 1fr;
    }

    .cta-bar h2 {
        font-size: 21px;
    }
}
