/*
Theme Name: Shinken Theme
Theme URI: https://recruit-shinken.com/
Author: Ryosuke Sato
Description: 株式会社慎剣
Version: 1.0.0
*/
@charset "UTF-8";

/* --- 1. 変数定義 --- */
:root {
    --primary-green: #004d40;
    /* 慎剣のメインカラー（深緑） */
    --light-green-bg: #e8f5e9;
    /* 薄いグリーン背景 */
    --off-white: #f9f9f9;
    /* 交互の背景用（薄グレー） */
    --text-white: #ffffff;
    --text-black: #1a1a1a;
    --text-gray: #666666;
    --bg-dark: #111111;
    /* フッター背景 */
    --accent-gold: #c5a059;
    /* 装飾用アクセントカラー */
}

/* --- 2. 全体リセット & 共通設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-black);
    line-height: 1.8;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 画像・動画の基本設定 */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. ヘッダー (Header) --- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-area {
    height: 56px;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 100%;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.group-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #888;
    margin-bottom: 2px;
}

.brand h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    color: var(--text-black);
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.header-info {
    text-align: right;
}

.header-info .area {
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--text-gray);
}

.tel {
    font-size: 22px;
    font-weight: 700;
}

.tel a {
    color: var(--primary-green);
    text-decoration: none;
    transition: opacity 0.3s;
}

.tel a:hover {
    opacity: 0.7;
}

/* --- 4. グローバルナビゲーション (Nav) --- */
.global-nav {
    background: var(--primary-green);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.global-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.global-nav a {
    display: block;
    padding: 20px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.global-nav li:first-child a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.global-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.global-nav a i {
    margin-right: 5px;
}

/* --- 5. メインビジュアル (Hero Section) --- */
.hero-section {
    width: 100%;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.hero-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-copy {
    color: #fff;
}

.sub-copy {
    font-size: 1.2vw;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-copy {
    font-family: 'Noto Serif JP', serif;
    font-size: 4vw;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- 6. 共通コンテンツエリア --- */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section {
    padding: 100px 20px;
}

/* 背景色の交互切り替え設定 */
.about-section:nth-of-type(odd),
.bg-white {
    background-color: #ffffff;
}

.about-section:nth-of-type(even),
.bg-green {
    background-color: var(--light-green-bg);
}

/* セクションタイトル */
.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left h2::after {
    left: 0;
    transform: none;
}

.section-title .en {
    display: block;
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.section-title h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: var(--text-black);
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
}

/* リード文 */
.lead-text {
    font-size: 18px;
    text-align: center;
    line-height: 2.2;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ボタン各種 */
.btn-outline {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: #fff;
}

.btn-more {
    display: inline-block;
    padding: 16px 50px;
    background-color: var(--primary-green);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-more:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- 7. 事業内容 (Service Cards) --- */
.service-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

.service-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-img-wrap {
    width: 100%;
    /* 正方形(1:1)を維持 */
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    text-align: left;
}

.card-body h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
    font-family: 'Noto Serif JP', serif;
}

.card-body p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

/* --- 8. 施工実績 (Works Gallery) --- */
.works-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* タイル感を出すために少し隙間を狭く */
    margin-bottom: 50px;
}

.works-item {
    background: #fff;
    border-radius: 4px;
    /* タイルに合わせてもう少しシャープに */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.works-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.works-img-wrap {
    /* 正方形(1:1)を強制 */
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.works-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-info {
    padding: 20px;
}

.works-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--primary-green);
    min-height: 3em;
}

.works-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 9. 採用情報セクション (Recruit Section) --- */
.recruit-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.recruit-visual {
    flex: 1;
    /* 採用も正方形に近づけると親しみやすくなります */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 25px 25px 0 var(--primary-green);
    border-radius: 4px;
}

.recruit-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruit-content {
    flex: 1.2;
}

.recruit-lead {
    font-size: 17px;
    margin-bottom: 40px;
    color: #444;
    line-height: 2;
}

/* --- 10. Instagramバナー --- */
.insta-banner-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.insta-text {
    flex: 1;
    padding-right: 50px;
}

.insta-text .en {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}

.insta-text h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-black);
}

.btn-insta {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.3s, opacity 0.3s;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.2);
}

.btn-insta:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

/* --- 11. アクセスセクション (Map & Access) --- */
.access-lead {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
    line-height: 2;
}

.map-area {
    margin: 0 auto 50px;
    max-width: 900px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-bottom: 450px;
    height: 0;
    border: 1px solid #eee;
}

.map-area iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.access-info {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.info-block {
    background-color: #fff;
    border: 2px solid var(--primary-green);
    padding: 35px 50px;
    border-radius: 12px;
    flex: 1;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.info-block h3 {
    font-size: 14px;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.info-block p {
    font-size: 16px;
    font-weight: 500;
}

.tel-link-wrap a {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s;
}

.tel-link-wrap a:hover {
    color: var(--primary-green);
}

/* --- 12. フッター (Footer) --- */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 5px;
}

.en-name {
    font-size: 11px;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-tel a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

.footer-nav a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
}

.group-logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.ariga-group-logo {
    width: 85px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ariga-group-logo:hover {
    opacity: 1;
}

.copyright {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.05em;
}

/* --- 13. アニメーション (Animation) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.5, 0, 0, 1), transform 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 14. 下層ページ固有設定 (Sub-pages) --- */
.sub-hero {
    background-color: var(--primary-green);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.sub-hero .section-title h2,
.sub-hero .section-title .en {
    color: #fff;
}

.sub-hero .section-title h2::after {
    background-color: #fff;
}

/* 代表挨拶 (Message Section) */
.message-center-layout {
    max-width: 900px;
    margin: 0 auto;
}

.message-img-wrapper img {
    border-radius: 8px;
    box-shadow: 15px 15px 0 var(--light-green-bg);
}

.message-text h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--primary-green);
    line-height: 1.5;
}

.signature {
    font-weight: 700;
    font-size: 20px;
    font-family: 'Noto Serif JP', serif;
    border-bottom: 1px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
}

/* 会社情報テーブル (Info Table) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border: 1px solid #eee;
}

.info-table th,
.info-table td {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.info-table th {
    width: 280px;
    background-color: #fcfcfc;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-green);
}

.info-table td {
    font-size: 16px;
    color: #444;
}

/* 沿革 (History) */
.history-list dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 2px solid var(--primary-green);
}

.history-list dt {
    width: 25%;
    padding: 30px 0;
    font-weight: 700;
    color: var(--primary-green);
    border-bottom: 1px solid #eee;
    font-size: 17px;
}

.history-list dd {
    width: 75%;
    padding: 30px 0 30px 30px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

/* お問い合わせ・採用連絡先カード */
.recruit-contact-area,
.contact-tel-card {
    text-align: center;
    margin-top: 80px;
    padding: 60px 20px;
    background: var(--light-green-bg);
    border: 2px solid var(--primary-green);
    border-radius: 16px;
}

.recruit-tel-btn {
    display: inline-block;
    background: var(--primary-green);
    color: #fff;
    text-decoration: none;
    padding: 22px 70px;
    font-size: 28px;
    font-weight: 700;
    border-radius: 60px;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.25);
}

/* FAQ */
.faq-item {
    margin-bottom: 35px;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    font-size: 18px;
}

.faq-question::before {
    content: "Q";
    margin-right: 15px;
    font-size: 22px;
}

.faq-answer {
    padding-left: 33px;
    position: relative;
    color: #555;
    line-height: 2;
}

.faq-answer::before {
    content: "A";
    font-weight: 700;
    position: absolute;
    left: 0;
    color: #666;
    font-size: 20px;
}

/* --- 15. レスポンシブ設計 (Responsive Design) --- */
@media (max-width: 1024px) {
    .header-container {
        padding: 15px 20px;
    }

    .nav-container ul {
        justify-content: center;
    }

    .global-nav a {
        padding: 15px 20px;
    }

    .recruit-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-info {
        text-align: center;
    }

    /* Nav */
    .nav-container ul {
        flex-wrap: wrap;
    }

    .global-nav a {
        padding: 12px 15px;
        font-size: 13px;
        border: none;
    }

    /* Hero */
    .main-copy {
        font-size: 28px;
    }

    .sub-copy {
        font-size: 14px;
    }

    /* Sections */
    .about-section {
        padding: 60px 20px;
    }

    .lead-text {
        font-size: 16px;
        text-align: left;
    }

    .section-title h2 {
        font-size: 26px;
    }

    /* 事業内容スマホ対応: 縦並びを確実に */
    .service-dual-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        flex-direction: column;
    }

    .card-img-wrap {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .card-body {
        width: 100%;
        padding: 20px;
    }

    /* 施工実績スマホ対応: 2列にすると見やすい */
    .works-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Recruit */
    .recruit-wrapper {
        flex-direction: column;
    }

    .recruit-visual {
        order: 2;
        width: 100%;
        box-shadow: 15px 15px 0 var(--primary-green);
        aspect-ratio: 1 / 1;
    }

    .recruit-content {
        order: 1;
        text-align: center;
    }

    /* Insta */
    .insta-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }

    .insta-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    /* Access */
    .access-info {
        flex-direction: column;
        align-items: center;
    }

    .info-block {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }

    .map-area {
        padding-bottom: 350px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-nav ul {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    /* Sub-pages */
    .message-center-layout {
        text-align: center;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .info-table th {
        border-bottom: none;
        background-color: #f5f5f5;
    }

    .history-list dt,
    .history-list dd {
        width: 100%;
        padding-left: 0;
    }

    .history-list dt {
        border-bottom: none;
        padding: 20px 0 5px;
    }

    .history-list dd {
        padding-top: 0;
    }

    .recruit-tel-btn {
        font-size: 20px;
        padding: 18px 40px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 22px;
    }

    .tel {
        font-size: 18px;
    }

    .btn-insta {
        padding: 15px 25px;
        font-size: 14px;
    }

    /* 極端に小さい画面では実績を1列に */
    .works-gallery {
        grid-template-columns: 1fr;
    }
}