@charset "utf-8";

/* =========================================================
   共通スタイル /common/common.css
   for S.I.Mエレック corporate site
========================================================= */

/* ------------------------------
   カラーバリエーション
------------------------------ */
:root {
    --main-blue: #182578;
    /* ブランドカラー（深い青） */
    --sub-blue: #4250b8;
    /* 明るめの青 */
    --accent-orange: #ff7b00;
    /* 強調用（少し温かみ） */
    --light-bg: #f7f9ff;
    /* 背景用淡青 */
    --text-main: #333;
    --text-sub: #555;
}

/* ------------------------------
   共通フォント設定
------------------------------ */
body {
    font-family: "Noto Sans JP", "Inter", sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    background: #fff;
}

/* ------------------------------
   共通余白
------------------------------ */
section {
    padding: 6rem 5%;
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 6%;
    }
}

/* ------------------------------
   セクションタイトル
------------------------------ */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-blue);
    margin-bottom: 2.5rem;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--main-blue);
    border-radius: 2px;
}

/* ------------------------------
   ボタンスタイル（2種）
------------------------------ */
.btn-area {
    text-align: center;
    margin-top: 4rem;
}

.btn-blue {
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #1b2a7e 0%, #243fb5 50%, #1b2a7e 100%);
    background-size: 200% auto;
    box-shadow:
        0 0 8px rgba(36, 63, 181, 0.4),
        0 0 20px rgba(24, 37, 120, 0.2);
    transition: all 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* 光の縁取りアニメーション */
.btn-blue::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.6s ease;
}

.btn-blue:hover {
    background: #fff;
    color: var(--main-blue);
    border: 2px solid var(--main-blue);
    transform: translateY(-2px);

}

.btn-blue:hover::after {
    transform: scale(1);
    opacity: 1;
}

/* ホバー時のアニメーション */
.btn-blue:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow:
        0 0 12px rgba(80, 120, 255, 0.5),
        0 0 25px rgba(24, 37, 120, 0.35);
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    border: 2px solid var(--main-blue);
    color: var(--main-blue);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--main-blue);
    color: #fff;
}

/* スマホ調整 */
@media screen and (max-width: 768px) {
    .btn-blue {
        padding: 0.9rem 2.4rem;
        font-size: 0.95rem;
    }
}

/* ------------------------------
   フェードアップ共通
------------------------------ */
.fadeUpTrigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fadeUp {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------
   リンク・テキスト
------------------------------ */
a {
    color: var(--main-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sub-blue);
}

/* ------------------------------
   テーブル（会社概要など）
------------------------------ */
table.info-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

.info-table th {
    width: 25%;
    background: var(--light-bg);
    color: var(--main-blue);
    font-weight: 600;
    text-align: center;
}

.info-table td {
    background: #fff;
    color: var(--text-main);
}

/* ------------------------------
   背景バリエーション
------------------------------ */
.section-white {
    background: #fff;
}

.section-blue {
    background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
}

.section-light {
    background: var(--light-bg);
}

/* ------------------------------
   レスポンシブ調整
------------------------------ */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .info-table th {
        background: var(--light-bg);
        padding-bottom: 0.4rem;
    }

    .info-table td {
        padding-top: 0;
        margin-bottom: 1rem;
    }
}

/* セクション余白統一 */
.section-white {
  background: #fff;
  padding: 6rem 1rem;
}
.section-blue {
  background: #f4f6fb;
  padding: 6rem 1rem;
}
.section-title {
  font-size: 1.8rem;
  text-align: center;
  color: #182578;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* フェードアップ */
.fadeUpTrigger {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.fadeUpTrigger.fadeUp {
  opacity: 1;
  transform: translateY(0);
}


