/* ============================================
   株式会社エン ・タス コーポレートサイト
   配色：白基調 ＋ 濃紺 ＋ 水色アクセント
   ============================================ */

:root {
    --colorInk: #16222e;          /* 本文の濃紺グレー */
    --colorNavy: #0d1b28;         /* 濃紺（ダークセクション用） */
    --colorAqua: #0e7fa8;         /* アクセント（白背景用の濃い水色） */
    --colorAquaBright: #4cc9f0;  /* 明るい水色（暗背景用・RGB 76,201,240） */
    --colorBg: #ffffff;
    --colorBgAlt: #f5f7f8;
    --colorLine: #e3e8ec;
    --colorMuted: #5f6b76;
    --fontSans: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Meiryo", sans-serif;
    --fontMono: "Consolas", "Monaco", "Menlo", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--fontSans);
    color: var(--colorInk);
    background: var(--colorBg);
    line-height: 1.9;
    font-size: 16px;
}

img {
    max-width: 100%;
}

code {
    font-family: var(--fontMono);
    background: var(--colorBgAlt);
    border: 1px solid var(--colorLine);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.9em;
}

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

/* ============================================
   起動演出（2006年風ターミナル）
   ============================================ */

#introOverlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0a0c0e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}

#introOverlay.isHidden {
    opacity: 0;
    pointer-events: none;
}

.introTerminal {
    width: min(720px, 92vw);
    border: 1px solid #2b3138;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(76, 201, 240, 0.08);
}

.introTitlebar {
    background: #1a1f24;
    padding: 8px 14px;
    border-bottom: 1px solid #2b3138;
}

.introTitlebarText {
    font-family: var(--fontMono);
    font-size: 12px;
    color: #8b949e;
}

.introScreen {
    background: #0d1117;
    min-height: 320px;
    padding: 20px 24px;
    font-family: var(--fontMono);
    font-size: 14px;
    line-height: 2.1;
    color: var(--colorAquaBright);
    white-space: pre-wrap;
    word-break: break-all;
}

.introScreen .lineDim { color: #8b949e; }
.introScreen .lineWhite { color: #e6edf3; }
.introScreen .lineAccent { color: #ffd580; }

.introCursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--colorAquaBright);
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.introHint {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    font-family: var(--fontMono);
    font-size: 13px;
    color: var(--colorAquaBright);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.introHint.isShown {
    opacity: 1;
    animation: hintFloat 1.6s ease-in-out infinite;
}

@keyframes hintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

#introSkip {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: transparent;
    color: #8b949e;
    border: 1px solid #2b3138;
    border-radius: 6px;
    padding: 8px 18px;
    font-family: var(--fontMono);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

#introSkip:hover {
    color: var(--colorAquaBright);
    border-color: var(--colorAquaBright);
}

/* ============================================
   ヘッダー
   ============================================ */

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--colorLine);
}

.headerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--colorInk);
}

.brandMark {
    font-family: var(--fontMono);
    font-weight: bold;
    color: #ffffff;
    background: var(--colorNavy);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
}

.brandName {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.globalNav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.globalNav a {
    text-decoration: none;
    color: var(--colorInk);
    font-size: 14px;
    transition: color 0.2s;
}

.globalNav a:hover {
    color: var(--colorAqua);
}

.navCta {
    background: var(--colorNavy);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.navCta:hover {
    opacity: 0.85;
}

/* ============================================
   ヒーロー
   ============================================ */

.hero {
    border-bottom: 1px solid var(--colorLine);
    overflow: hidden;
}

.heroInner {
    padding: 96px 24px 72px;
}

.heroCode {
    font-family: var(--fontMono);
    font-size: 18px;
    color: var(--colorAqua);
    margin-bottom: 18px;
}

.codePrompt {
    color: var(--colorMuted);
}

.codeCursor {
    display: inline-block;
    width: 9px;
    height: 18px;
    background: var(--colorAqua);
    vertical-align: -2px;
    margin-left: 4px;
    animation: blink 1s steps(1) infinite;
}

.heroTitle {
    font-size: clamp(40px, 7vw, 72px);
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin-bottom: 24px;
}

.heroAccent {
    color: var(--colorAqua);
}

.heroLead {
    font-size: 17px;
    color: var(--colorMuted);
    margin-bottom: 36px;
}

.heroActions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btnPrimary {
    display: inline-block;
    background: var(--colorNavy);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 34px;
    border-radius: 6px;
    font-size: 15px;
    transition: opacity 0.2s, transform 0.2s;
}

.btnPrimary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btnLarge {
    padding: 16px 44px;
    font-size: 16px;
}

.btnGhost {
    display: inline-block;
    color: var(--colorInk);
    text-decoration: none;
    padding: 14px 34px;
    border: 1px solid var(--colorLine);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, color 0.2s;
}

.btnGhost:hover {
    border-color: var(--colorAqua);
    color: var(--colorAqua);
}

.heroTicker {
    border-top: 1px solid var(--colorLine);
    background: var(--colorBgAlt);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-family: var(--fontMono);
    font-size: 12px;
    color: var(--colorMuted);
}

.heroTicker span {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   セクション共通
   ============================================ */

.section {
    padding: 88px 0;
}

.sectionAlt {
    background: var(--colorBgAlt);
}

.sectionLabel {
    font-family: var(--fontMono);
    font-size: 14px;
    color: var(--colorAqua);
    margin-bottom: 8px;
}

.sectionTitle {
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.sectionLead {
    color: var(--colorMuted);
    margin-bottom: 36px;
    max-width: 640px;
}

/* スクロール時のふわっと表示 */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.isVisible {
    opacity: 1;
    transform: none;
}

/* ============================================
   私たちについて
   ============================================ */

.aboutGrid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

.aboutCatch {
    font-size: 22px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.aboutText p {
    color: var(--colorMuted);
    margin-bottom: 16px;
}

.timeline {
    list-style: none;
    border-left: 2px solid var(--colorLine);
    padding-left: 0;
}

.timelineItem {
    display: flex;
    gap: 18px;
    padding: 0 0 28px 24px;
    position: relative;
}

.timelineItem::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--colorAqua);
    border: 3px solid #ffffff;
}

.timelineYear {
    font-family: var(--fontMono);
    font-size: 18px;
    color: var(--colorAqua);
    min-width: 64px;
    font-weight: bold;
}

.timelineBody strong {
    display: block;
    margin-bottom: 4px;
}

.timelineBody p {
    font-size: 14px;
    color: var(--colorMuted);
}

/* ============================================
   カード
   ============================================ */

.cardGrid {
    display: grid;
    gap: 24px;
}

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

.cardGrid.three {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #ffffff;
    border: 1px solid var(--colorLine);
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 27, 40, 0.08);
}

.cardCode {
    font-family: var(--fontMono);
    font-size: 13px;
    color: var(--colorAqua);
    margin-bottom: 10px;
}

.cardTitle {
    font-size: 20px;
    margin-bottom: 12px;
}

.cardText {
    font-size: 15px;
    color: var(--colorMuted);
}

.cardList {
    margin-top: 16px;
    padding-left: 0;
    list-style: none;
}

.cardList li {
    font-size: 14px;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.cardList li::before {
    content: ">";
    font-family: var(--fontMono);
    color: var(--colorAqua);
    position: absolute;
    left: 0;
}

.workCard .workTag {
    display: inline-block;
    font-size: 12px;
    color: var(--colorAqua);
    border: 1px solid var(--colorAqua);
    border-radius: 999px;
    padding: 2px 12px;
    margin-bottom: 12px;
}

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

.companyTable {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
}

.companyTable th,
.companyTable td {
    text-align: left;
    padding: 18px 12px;
    border-bottom: 1px solid var(--colorLine);
    font-size: 15px;
}

.companyTable th {
    width: 140px;
    color: var(--colorMuted);
    font-weight: normal;
    vertical-align: top;
}

/* ============================================
   お問い合わせ（ダークセクション）
   ============================================ */

.sectionDark {
    background: var(--colorNavy);
    color: #e6edf3;
}

.sectionDark .sectionLabel {
    color: var(--colorAquaBright);
}

.contactInner {
    text-align: center;
}

.contactLead {
    color: #aeb9c4;
    margin-bottom: 28px;
}

.contactCode {
    font-family: var(--fontMono);
    font-size: 16px;
    color: var(--colorAquaBright);
    margin-bottom: 32px;
}

.sectionDark .btnPrimary {
    background: var(--colorAquaBright);
    color: var(--colorNavy);
    font-weight: bold;
}

.contactNote {
    margin-top: 20px;
    font-size: 12px;
    color: #7d8a96;
}

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

.siteFooter {
    background: #0a1420;
    color: #7d8a96;
    padding: 28px 0;
}

.footerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footerBrand {
    font-family: var(--fontMono);
    color: #aeb9c4;
}

.footerCopy {
    font-size: 13px;
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 860px) {
    .globalNav a:not(.navCta) {
        display: none;
    }

    .aboutGrid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cardGrid.two,
    .cardGrid.three {
        grid-template-columns: 1fr;
    }

    .heroInner {
        padding: 64px 24px 56px;
    }

    .pcOnly {
        display: none;
    }
}

/* アニメーションを控えたい設定の方への配慮 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .heroTicker span {
        animation: none;
    }
}
