/* ============================================================
   MIMS Japan Inc. 共通スタイル
   配色: マゼンタピンク #cc2e7a / ボタンピンク #f0a0c0 / 白背景 / グレーテキスト
   ============================================================ */
:root {
  --pink:       #cc2e7a;   /* ロゴ・見出し・ナビ・タイトル文字 */
  --btn-pink:   #f0a0c0;   /* 詳しくはこちら ボタン */
  --btn-hover:  #e07aaa;   /* ボタンhover */
  --white:      #ffffff;
  --gray-bg:    #f8f8f8;
  --line:       #e8e8e8;
  --text:       #444444;
  --text-light: #888888;
}

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

body {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'メイリオ', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
#header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}

#header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
}

/* ロゴ画像がない場合のテキストロゴ */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mims {
  font-size: 22px;
  font-weight: 900;
  color: var(--pink);
  letter-spacing: 0.08em;
  font-family: 'Arial Black', 'Noto Sans JP', sans-serif;
}

.logo-japan {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.12em;
}

/* グローバルナビ */
#gnav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

#gnav a {
  font-size: 14px;
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s;
}

#gnav a:hover,
#gnav a.current { opacity: 0.65; text-decoration: none; }

/* ===== PAGE TITLE (内部ページ) ===== */
.page-title-area {
  text-align: center;
  padding: 40px 20px 32px;
  border-bottom: 1px solid var(--line);
}

.page-title-area h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.06em;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--pink); }

/* ===== MAIN ===== */
#main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1px;
}

    /* ===== HERO ===== */
    .hero {
      background: linear-gradient(135deg, var(--primary) 0%, #2a5080 100%, #1a3a5c 100%);
      color: var(--pink);
      padding: 100px 1px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

    .hero-catch {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      color: #0a1e50 !important;
      text-transform: uppercase;
      margin-bottom: 16px;
    }

    .hero h1 {
      font-family: 'Noto Serif JP', serif;
      font-size: clamp(28px, 5vw, 46px);
      color: #0a1e50 !important;
      font-weight: 700;
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .hero h1 em1 {
      font-style: normal;
      color: #cc2e7a !important;
    }

    .hero h1 em2 {
      font-style: normal;
      color: #b8860b !important;
    }

    .hero p1 {
      font-size: 16px;
      color: #cc2e7a !important;
      margin-bottom: 36px;
    }

    .hero-brand {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--pink);
    }

    .hero-section {
      position: relative;
      height: 70vw;
      min-height: 220px;
      max-height: 380px;
      width: 100%;
      max-width: 1060px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }


/* ===== SECTION ===== */
.section {
  padding: 52px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-bg {
  background: var(--gray-bg);
  margin: 0 -24px;
  padding: 52px 24px;
}

/* セクションタイトル（中央寄せ） */
.section-title-center {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

/* セクションタイトル（左寄せ） */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-text p {
  margin-bottom: 14px;
  line-height: 1.9;
  font-size: 14px;
}

.section-text p:last-child { margin-bottom: 0; }

/* ===== ボタン ===== */
.btn-pink {
  display: inline-block;
  padding: 11px 28px;
  background: var(--btn-pink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-pink:hover { background: var(--btn-hover); text-decoration: none; color: var(--white); }
.btn-pink:active { transform: translateY(1px); background: var(--btn-hover); text-decoration: none; color: var(--white); }

/* ===== CORE COMPETENCE ===== */
.core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.core-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--btn-pink);
  padding: 22px 16px;
}

.core-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 8px;
}

.core-item p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.85;
}

/* ===== サービステーブル（TOP・サービスページ共通）===== */
/* 元サイト：写真(左) | タイトル+本文(中) | ボタン(右) の3列 */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr 130px;
  gap: 0;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-child { border-top: 1px solid var(--line); }

/* 写真セル */
.service-row .col-img {
  padding-right: 20px;
}

.service-row .col-img img {
  width: 190px;
  height: 130px;
  object-fit: cover;
}

.service-row .col-img .img-ph {
  width: 190px;
  height: 130px;
  background: #f0e8ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #c090b0;
  font-size: 11px;
  text-align: center;
}

.service-row .col-img .img-ph svg {
  width: 28px;
  height: 28px;
  fill: #d8a8c0;
}

/* テキストセル */
.service-row .col-body {
  padding: 0 20px;
}

.service-row .col-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-row .col-body p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.85;
}

/* ボタンセル */
.service-row .col-btn {
  text-align: center;
  padding-left: 10px;
}

/* ===== サービス詳細（services.html）===== */
.service-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; }

.service-detail .detail-img img {
  width: 220px;
  height: 165px;
  object-fit: cover;
}

.service-detail .detail-img .img-ph {
  width: 220px;
  height: 165px;
  background: #f0e8ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #c090b0;
  font-size: 11px;
  text-align: center;
}

.service-detail .detail-img .img-ph svg { width: 32px; height: 32px; fill: #d8a8c0; }

.img-note {
  font-size: 10px;
  color: #c090b0;
  margin-top: 5px;
  text-align: center;
}

.service-detail .detail-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.service-detail .detail-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

/* ===== 会社概要テーブル ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr { border-bottom: 1px solid var(--line); }
.company-table tr:first-child { border-top: 1px solid var(--line); }

.company-table th {
  width: 180px;
  padding: 16px 18px;
  background: #fdf0f5;
  font-weight: 700;
  color: var(--pink);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  white-space: nowrap;
}

.company-table td {
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
}

.company-table td a { color: var(--pink); }
.company-table td a:hover { text-decoration: underline; }

.office-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.office-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--btn-pink);
  border-radius: 2px;
  font-size: 12px;
  color: var(--pink);
}

/* ===== お問い合わせ ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-block h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.contact-info-block p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.map-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: none;
}

/* フォームテーブル */
.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table tr { border-bottom: 1px solid var(--line); }
.form-table tr:first-child { border-top: 1px solid var(--line); }

.form-table th {
  width: 130px;
  padding: 12px 14px;
  background: #fdf0f5;
  font-weight: 700;
  font-size: 13px;
  color: var(--pink);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.form-table th .req {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px;
  background: var(--pink);
  color: var(--white);
  font-size: 10px;
  border-radius: 2px;
  font-weight: 700;
  vertical-align: middle;
}

.form-table td { padding: 10px 14px; }

.form-table input[type="text"],
.form-table input[type="email"],
.form-table textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}

.form-table input:focus,
.form-table textarea:focus {
  outline: none;
  border-color: var(--btn-pink);
}

.form-table textarea { min-height: 110px; resize: vertical; }

.form-submit { margin-top: 16px; text-align: center; }

.form-status {
  display: none;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 3px;
  font-size: 13px;
}

.core-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

 .core-icon svg { width: 50px; height: 50px; fill: #e07aaa; }

/* ===== トップへ戻るボタン ===== */
#toTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#toTop.show { opacity: 1; }
#toTop:hover { background: var(--btn-hover); }

/* ===== FOOTER ===== */
#footer {
  background: #cc2e7a;
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  text-align: center;
  margin-top: 0;
}

#footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#footer-nav a {
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}

#footer-nav a:hover { opacity: 0.7; text-decoration: none; }

.footer-copy {
  font-size: 12px;
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .core-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }

  .service-row {
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto;
  }

  .service-row .col-img img,
  .service-row .col-img .img-ph { width: 130px; height: 95px; }

  .service-row .col-btn {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 0;
    padding-top: 8px;
  }

  .service-detail { grid-template-columns: 1fr; }
  .service-detail .detail-img img,
  .service-detail .detail-img .img-ph { width: 100%; height: 200px; }
}

@media (max-width: 520px) {
  .core-grid { grid-template-columns: 1fr; }
  #header-inner { padding: 0 14px; }
  #gnav { gap: 16px; }
  #gnav a { font-size: 13px; }
  .hero-section h1 { font-size: 24px; }
  .section-title-center { font-size: 20px; }
  .company-table th { width: 90px; font-size: 12px; padding: 12px 10px; }
  .company-table td { font-size: 12px; padding: 12px 10px; }
}
