/* =========================================================
   NEWあんぐる コーポレートサイト
   目次：基本設定 / ヘッダー / 共通部品 / トップ / 下層 / 実績 /
         会社概要 / お問い合わせ / フッター / モーダル / レスポンシブ
   ========================================================= */

/* ---------- 基本設定 ---------- */
:root {
    --red: #d9272e;
    --ink: #1d1d21;
    --muted: #6d6d75;
    --line: #e6e6ea;
    --off: #f7f7f8;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
    line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
dd { margin: 0; }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; padding: 8px 12px; color: #fff; background: var(--ink); }

/* ---------- ヘッダー ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { display: block; width: 225px; }
.global-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.global-nav a[aria-current="page"] { color: var(--red); }
.nav-cta { padding: 9px 17px; color: #fff !important; background: var(--red); border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }

/* ---------- 共通部品 ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--off); }
.section-title { font-size: clamp(34px, 5vw, 55px); line-height: 1.25; }
.section-lead, .hero-copy { color: var(--muted); }
.eyebrow, .more-link, .official-link { color: var(--red); }
.button {
    display: inline-flex;
    padding: 10px 20px;
    margin: 10px 8px 0 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
}
.button.primary { color: #fff; background: var(--red); border-color: var(--red); }
.notice { padding: 18px; margin-top: 25px; background: #fff3f3; border-left: 4px solid var(--red); }

/* ---------- 簡素化したトップページ ---------- */
.simple-home-intro { padding: 86px 0 74px; background: #fff; border-bottom: 1px solid var(--line); }
.simple-home-inner { max-width: 760px; text-align: center; }
.simple-home-logo { display: block; width: min(420px, 80vw); height: auto; margin: 0 auto 30px; }
.simple-home-copy { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 2; }
.simple-home-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.simple-home-actions .button { margin: 0; }
.simple-section-title { margin: 10px 0 34px; font-size: clamp(27px, 4vw, 40px); line-height: 1.35; letter-spacing: -0.025em; }
.simple-business { padding-top: 74px; padding-bottom: 74px; }
.simple-business-list { border-top: 1px solid var(--line); }
.simple-business-list article { display: grid; grid-template-columns: 280px 1fr; gap: 46px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.simple-business-list h2 { margin: 0; font-size: 19px; }
.simple-business-list p { margin: 0; color: var(--muted); }
.simple-company-summary { padding-top: 70px; padding-bottom: 70px; background: var(--off); }
.simple-summary-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 55px; align-items: start; }
.simple-summary-list { margin: 0; border-top: 1px solid var(--line); }
.simple-summary-list > div { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.simple-summary-list dt { color: var(--muted); }
.simple-summary-list dd { font-weight: 600; }
.simple-summary-link { grid-column: 2; justify-self: start; }

/* ---------- 下層ページ ---------- */
.page-hero { padding: 80px 0; background: #fff5f5; }
.page-hero h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1.1; margin: 18px 0; }
.breadcrumb { font-size: 12px; color: var(--muted); }

/* ---------- 開発実績 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.work-media {
    display: flex;
    width: 100%;
    height: 190px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 18px;
    border: 0;
    background: #fff;
    cursor: zoom-in;
}
.work-media img { width: 100%; height: 100%; object-fit: contain; }
.work-placeholder { flex-direction: column; gap: 10px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff, #fff5f5); }
.work-placeholder .placeholder-logo { width: min(250px, 75%); height: auto; }
.work-placeholder .placeholder-title { color: var(--red); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; }
.work-placeholder small { color: var(--muted); letter-spacing: 0.08em; }
.work-specs { margin: 0; }
.work-spec-row { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.work-spec-row dt { color: var(--muted); }
.official-link { display: inline-block; margin-top: 17px; font-weight: 800; text-decoration: underline; }
.work-copyright { color: var(--muted); font-size: 11px; line-height: 1.5; }

/* ---------- 会社概要 ---------- */
.profile, .access-box, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.profile-row { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.client-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.client-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.client-list li::before { content: none; }

/* ---------- お問い合わせ ---------- */
.contact-aside, .cta { padding: 35px; color: #fff; background: var(--red); }
.field { margin-bottom: 15px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px; border: 1px solid #ccc; }
.field textarea { min-height: 150px; }
.form-status { display: none; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0; color: #ccc; background: #19191d; }
.footer-top, .cta-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-logo { width: 220px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; gap: 18px; }
.copyright { padding-top: 15px; margin-top: 25px; border-top: 1px solid #444; }

/* ---------- 画像拡大モーダル ---------- */
.image-modal { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: 25px; background: rgba(0, 0, 0, 0.93); }
.image-modal.open { display: flex; }
.image-modal img { max-width: 95vw; max-height: 90vh; object-fit: contain; background: #fff; }
.image-modal-close { position: fixed; top: 12px; right: 18px; width: 46px; height: 46px; color: #fff; font-size: 30px; background: rgba(0, 0, 0, 0.55); border: 1px solid #fff; border-radius: 50%; }
.reveal { opacity: 1; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 800px) {
    .menu-button { display: block; }
    .global-nav { position: absolute; top: 80px; left: 0; right: 0; display: none; flex-direction: column; padding: 20px; background: #fff; }
    .global-nav.open { display: flex; }
    .works-grid, .profile, .access-box, .contact-grid, .simple-business-list article, .simple-summary-grid { grid-template-columns: 1fr; }
    .work-spec-row, .profile-row { grid-template-columns: 1fr; gap: 3px; }
    .footer-top, .cta-inner { display: block; }
    .footer-nav { flex-wrap: wrap; margin-top: 20px; }
    .brand-logo { width: 185px; }
    .simple-home-intro { padding: 60px 0 54px; }
    .simple-home-copy { font-size: 15px; }
    .simple-summary-link { grid-column: 1; }
    .simple-business-list article { gap: 7px; padding: 20px 0; }
    .simple-section-title { margin-bottom: 24px; }
}


/* =========================================================
   会社概要ページ 最終調整
   ========================================================= */

/* ページ上部の「会社概要」を中央配置 */
.company-page-hero {
    text-align: center;
}

.company-page-hero .breadcrumb {
    display: none;
}

.company-page-hero .eyebrow {
    display: block;
}

.company-page-hero h1 {
    margin-right: auto;
    margin-left: auto;
}

/* コピーエリア削除後、会社情報を中央の1カラムで表示 */
.company-profile {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
}

.company-profile .profile-list {
    margin: 0;
}

/* 主要取引先は標準的な箇条書き */
.client-list {
    padding-left: 1.5rem;
    border-top: 0;
    list-style: disc;
}

.client-list li {
    padding: 0.3rem 0;
    border-bottom: 0;
}

.client-list li::before {
    content: none;
}

@media (max-width: 800px) {
    .company-profile {
        width: min(100% - 40px, 920px);
    }
}

/* =========================================================
   お問い合わせページ簡素化・中央配置
   ========================================================= */
.contact-page-hero {
    text-align: center;
}

.contact-page-hero .eyebrow {
    display: block;
}

.contact-page-hero h1 {
    margin-right: auto;
    margin-left: auto;
}

.contact-page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

.contact-section {
    padding-top: 72px;
    padding-bottom: 90px;
}

.contact-simple {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.contact-simple-card {
    padding: 42px 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.contact-mail {
    margin: 0;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-mail a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-hours {
    margin: 20px 0 0;
    color: var(--muted);
}

@media (max-width: 800px) {
    .contact-page-hero {
        padding: 58px 0;
    }

    .contact-section {
        padding: 48px 0 64px;
    }

    .contact-simple-card {
        padding: 32px 18px;
    }
}
