@charset "UTF-8";

/* ========================================
   合同会社ワイテック | 共通スタイル
   ======================================== */

/* ----------------------------------------
   基本設定・共通スタイル
   ---------------------------------------- */
:root {
    --navy: #10243a;
    --blue: #1266a3;
    --teal: #00b9ef;
    --ink: #17273a;
    --muted: #586b7d;
    --bg: #f4f8fb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
    color: var(--ink);
    line-height: 1.8;
}

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

.container {
    max-width: 1120px;
    padding: 0 24px;
    margin: auto;
}

/*-----改行----*/
.br-pc{display:block;}
.br-sp{display:none;}
.br-mb{display:none;}

@media screen and (max-width:768px){
	.br-pc{display:none;}
	.br-sp{display:block;}
}
@media screen and (max-width:599px){
	.br-mb{display:block;}
}

/* ----------------------------------------
   ヘッダー・ナビゲーション
   ---------------------------------------- */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 14px #0b284015;
}

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

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.mark {
    background: var(--navy);
    color: #fff;
    border-radius: 9px;
    padding: 3px 11px;
    font-size: 21px;
    letter-spacing: -1px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .09em;
    margin-top: -6px;
}

nav {
    display: flex;
    gap: 26px;
    font-size: 13px;
    font-weight: 700;
}

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

/* ----------------------------------------
   メインビジュアル・ボタン
   ---------------------------------------- */
.hero {
    background:
        linear-gradient(120deg,rgba(5,25,43,1),rgba(17,93,140,.2)),
        url("../img/hero_bg.webp") right center / cover no-repeat;
    color: white;
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.eyebrow {
    color: #77e5dc;
    letter-spacing: .22em;
    font-weight: 800;
    font-size: 12px;
}

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

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

.btn {
    display: inline-block;
    background: var(--teal);
    color: #ffffff;
    padding: 14px 27px;
    border-radius: 6px;
    font-weight: 800;
    margin-top: 24px;
    transition: .2s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #4fd9cc;
}

.outline {
    background: transparent;
    border: 1px solid #abc6db;
    color: #fff;
    margin-left: 10px;
}

/* ----------------------------------------
   セクション共通・見出し
   ---------------------------------------- */
section {
    padding: 88px 0;
}

section.alt {
    background: var(--bg);
}

.section-head {
    text-align: center;
    margin-bottom: 42px;
}

.section-head span {
    font-size: 12px;
    letter-spacing: .15em;
    font-weight: 800;
    color: var(--blue);
}

h2 {
    font-size: clamp(26px,3vw,36px);
    margin: 4px 0 16px;
    letter-spacing: .05em;
}

h3 {
    font-size: 19px;
    margin: 0 0 12px;
}

.lead {
    max-width: 790px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 760px) {
	.lead {text-align: left;}
}

/* ----------------------------------------
   事業内容カード
   ---------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 44px;
}

.card {
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px #12324a09;
}

.number {
    color: var(--teal);
    font-size: 15px;
    letter-spacing: .1em;
    font-weight: 800;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.accent {
    height: 3px;
    width: 42px;
    background: var(--teal);
    margin: 20px 0;
}

/* ----------------------------------------
   特長・アプローチ
   ---------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    margin-top: 40px;
}

.feature {
    padding: 26px 20px;
    border-left: 3px solid var(--teal);
    background: white;
}

.feature strong {
    display: block;
    font-size: 17px;
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 0;
}

/* ----------------------------------------
   会社概要
   ---------------------------------------- */
.table {
    max-width: 850px;
    margin: 36px auto 0;
    border-top: 2px solid var(--navy);
}

.tr {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid #dce6ed;
}

.tr dt,.tr dd {
    padding: 18px 20px;
    margin: 0;
}

.tr dt {
    background: #edf4f8;
    font-weight: 800;
}

/* ----------------------------------------
   お問い合わせ
   ---------------------------------------- */
.contact {
    background: var(--navy);
    color: white;
}

.contact .section-head span {
    color: #7fe7e1;
}

.contact .lead {
    color: #c0d1df;
}

@media (max-width:760px) {
	.contact .lead {text-align:left;}
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 840px;
    margin: 35px auto 0;
}

.contact-item {
    border: 1px solid #ffffff38;
    border-radius: 10px;
    padding: 26px;
    background: #ffffff08;
}

.contact-item small {
    color: #a6c3d5;
}

.contact-item a {
    display: block;
    font-size: clamp(16px,2vw,23px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.note {
    text-align: center;
    font-size: 12px;
    color: #bacbd7;
    margin-top: 26px;
}

@media (max-width:760px) {
	.note {text-align:left;}
}

/* ----------------------------------------
   フッター
   ---------------------------------------- */
footer {
    background: #091b2b;
    color: #aec1d1;
    padding: 26px 0;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner strong {
    color: white;
}

/* ----------------------------------------
   スマートフォン表示（基本スタイル）
   ---------------------------------------- */
@media (max-width:760px) {
    .bar {
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 9px;
        font-size: 11px;
    }

    .hero {
        min-height: 490px;
    }

    section {
        padding: 64px 0;
    }

    .cards,.features,.contact-grid {
        grid-template-columns: 1fr;
    }

    .tr {
        grid-template-columns: 1fr;
    }

    .tr dt {
        padding: 10px 15px;
    }

    .tr dd {
        padding: 11px 15px;
    }

    .footer-inner {
        display: block;
    }

    .outline {
        margin-left: 0;
        margin-right: 10px;
    }
}

/* ----------------------------------------
   動きを減らす設定
   ---------------------------------------- */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}

/* ----------------------------------------
   メインビジュアル補足
   ---------------------------------------- */
.hero .hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-points span {
    border: 1px solid #ffffff55;
    border-radius: 30px;
    padding: 5px 13px;
    font-size: 12px;
    color: #dcebf5;
}

/* ----------------------------------------
   共通の補助パーツ
   ---------------------------------------- */
.section-intro {
    max-width: 840px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--muted);
}

.detail {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e2edf2;
    font-size: 13px;
    color: var(--muted);
}

/* ----------------------------------------
   建物・施設別のご相談例
   ---------------------------------------- */
.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.panel {
    /* 写真を上下全面に表示するため、カード自身を基準位置にする */
    position: relative;
    display: block;
    min-height: 230px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce7ef;
    border-radius: 20px;
    box-shadow: 0 8px 25px #12324a09;
}

.panel .tag {
    font-size: 11px;
    letter-spacing: .15em;
    color: var(--blue);
    font-weight: 800;
}

.panel p {
    font-size: 14px;
    color: var(--muted);
    margin: 8px 0 0;
}

/* ----------------------------------------
   お問い合わせの流れ
   ---------------------------------------- */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 38px;
}

.step {
    position: relative;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    padding: 23px;
    background: white;
}

.step .num {
    color: var(--blue);
    font-size: 25px;
    font-weight: 900;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

/* ----------------------------------------
   注意書き
   ---------------------------------------- */
.notice {
    margin-top: 26px;
    color: #344f62;
    font-size: 14px;
}

/* ----------------------------------------
   よくあるご質問
   ---------------------------------------- */
.faq {
    max-width: 900px;
    margin: 35px auto 0;
}

.faq details {
    background: white;
    border: 1px solid #dbe6ec;
    border-radius: 9px;
    padding: 17px 22px;
    margin-bottom: 11px;
}

.faq summary {
    font-weight: 800;
    cursor: pointer;
}

.faq p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* ----------------------------------------
   お問い合わせ導線（CTA）
   ---------------------------------------- */
.cta-panel {
    background: linear-gradient(115deg,#10243a,#165782);
    color: white;
    border-radius: 15px;
    padding: 38px;
    margin-top: 40px;
    text-align: center;
}

.cta-panel h3 {
    font-size: 24px;
}

.cta-panel p {
    color: #d4e5f0;
    max-width: 700px;
    margin: 0 auto;
}

.cta-panel .btn {
    color: #ffffff;
}

/* ----------------------------------------
   スマートフォン表示（追加パーツ）
   ---------------------------------------- */
@media (max-width:760px) {
    .panel-grid,.step-grid {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        padding: 27px 19px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-points {
        gap: 6px;
    }
	
	.cta-panel p {
		text-align:left;
	}
}


/* ----------------------------------------
   追加パーツ（ロゴ・画像・アイコン）
   ---------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: min(250px,100%);
    height: auto;
}

.footer-logo {
    display: block;
    width: min(220px,100%);
    height: auto;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.features.about-features .feature,
.features.approach-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px #eeeeee;
}

.feature-icon {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 16px;
    flex: 0 0 76px;
}

.feature-body {
    width: 100%;
}

.cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.card-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 16px;
    flex: 0 0 78px;
}

.card-body {
    width: 100%;
}

.card .accent {
    margin-left: auto;
    margin-right: auto;
}

/* パネル画像：左カラムの上端から下端まで全面に表示 */
.panel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 31%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

/* 文章は残りの横幅をすべて使用する */
.panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 230px;
    min-width: 0;
    margin-left: 31%;
    padding: clamp(22px, 3.5vw, 38px);
}

.panel-body h3 {
    margin-top: 8px;
}

/* ----------------------------------------
   スマートフォン追加調整
   ---------------------------------------- */
@media (max-width:760px) {
    .brand-logo {
        width: min(210px,100%);
    }

    .features.about-features .feature,
    .features.approach-features .feature,
    .cards .card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .feature-icon,
    .card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
        flex: 0 0 64px;
    }

    .card .accent {
        margin-left: 0;
        margin-right: 0;
    }


    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 12px;
    }
}

@media (min-width: 561px) and (max-width: 760px) {
    .panel-body {
        padding: 24px;
    }
}

/* 狭いスマホでも写真を左に保ち、文章の幅を優先する */
@media (max-width: 560px) {
    .panel {
        min-height: 200px;
        border-radius: 14px;
    }

    .panel-image {
        width: 28%;
    }

    .panel-body {
        min-height: 200px;
        margin-left: 28%;
        padding: 18px 14px;
    }

    .panel .tag {
        font-size: 10px;
        letter-spacing: .05em;
        overflow-wrap: anywhere;
    }

    .panel-body h3 {
        font-size: 17px;
        line-height: 1.5;
    }

    .panel-body p {
        font-size: 13px;
        line-height: 1.75;
    }
}


/* ========================================
   ヘッダーのレイアウト修正・モバイルナビ
   ======================================== */
/* PC：ロゴとメニューを1行に保ち、メニューの文字を折り返さない */
header {
    z-index: 30;
}

.bar {
    position: relative;
    min-height: 80px;
    height: auto;
    flex-wrap: nowrap;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    width: 240px;
    max-width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    gap: clamp(12px, 1.5vw, 24px);
    font-size: 13px;
    white-space: nowrap;
}

.site-nav a {
    display: block;
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

/* 960px以下：ナビをハンバーガーメニューに切り替える */
@media (max-width: 960px) {
    .bar {
        height: 72px;
        min-height: 72px;
        padding-top: 0;
        padding-bottom: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .brand-logo {
        width: clamp(165px, 31vw, 215px);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        gap: 6px;
        margin-left: auto;
        border: 1px solid #dce7ef;
        border-radius: 7px;
        background: #fff;
        color: var(--navy);
        cursor: pointer;
    }

    .nav-toggle-line {
        display: block;
        width: 23px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 24px;
        right: 24px;
        z-index: 31;
        width: auto;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0;
        padding: 8px 16px;
        background: #fff;
        border: 1px solid #dce7ef;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 14px 30px #10243a29;
        font-size: 14px;
        white-space: normal;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 13px 8px;
        white-space: nowrap;
        border-bottom: 1px solid #edf2f6;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .nav-toggle-line {
        transition: none;
    }
}


/* ========================================
   建物・施設別のご相談例：PC表示
   ======================================== */
@media (min-width: 760px) {

    /* PCでは2列 */
    .panel-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    /* カード */
    .panel {
        position: relative;
        display: block;
        min-height: 250px;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
    }

    /* 左側の写真 */
    .panel-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 35%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
    }

    /* 右側のテキスト */
    .panel-body {
        width: 65%;
        margin-left: 35%;
        padding: 25px;
        min-width: 0;
    }
}