/* ===============================
   Theme
================================ */
:root {
  --main-color: #0067B1;
  --accent-color: #FFD700;
  --card-title-border: #FFD700;
  --main-bg-color: #ffffff;
  --footer-bg-color: #ffffff;
  --footer-text-color: #0067B1;
  --text-color: rgba(0, 30, 80, 0.95);
  --text-color-white: #ffffff;
  --card-bg: #ffffff;
  --card-border: #0067B1;
  --hero-pad-x: 24px;
  --hero-img-h-min: 280px;
  --hero-img-h-vh: 52vh;
  --hero-img-h-max: 520px;
}
 

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--main-bg-color);
  /* 白背景 */
  color: var(--text-color);
  /* 全体の文字色 */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===============================
   Header / Nav
================================ */

/* ロゴ画像のスタイル */
.header-logo {
  height: 30px;
  max-width: auto;
  display: block;
}

.site-header {
  padding-block: 5px;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  background-image: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
/*  gap: 1rem;*/
  padding: 4px 12px;
  background: rgba(0, 50, 100, 0.85);
  backdrop-filter: blur(6px);
}
.site-header h1,
.site-header p {
  margin: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-name {
  margin: 0;
  line-height: 0;
  /* ← これで余白がグッと減ります */
  font-size: 0;
  /* 画像のみなので行ボックスを作らない */
}

.company-name .site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.company-name .site-logo img {
  display: block;
  height: 38px;
  width: auto;
}

.site-header nav ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header nav a {
  display: block;
  padding-block: 4px;
  line-height: 1.2;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: 0.25s;
}

/* 「未訪問」のリンクの色を白に指定 */
nav a {
  color: #fff;
}

/* 「訪問済み」のリンクの色をライトグレーに指定 */
nav a:visited {
  color: #d3d3d3;}


/* マウスを乗せた時（ホバー）の色は共通 */
nav a:hover,
nav a:focus {
  color: var(--accent-color); 
  border-bottom-color: var(--accent-color);
  outline: none;
}


/* ===============================
   Purpose Card
================================ */
.purpose-card,
.content-section {
  background: var(--card-bg);
  /* 白背景 */
/*  border: 1px solid var(--card-border);
  box-shadow: none;*/
  border-radius: 12px;  /* 影を消してフラットに */
  color: var(--text-color);
  padding: 2rem;
  margin: 1.25rem 2rem;
  width: calc(100% - 4rem);
  /* 左右の余白込みで調整 */
  border: 1px solid transparent;
  /* ぼかした枠を box-shadow で再現 */
  box-shadow: 0 0 8px rgba(0, 103, 177, 0.35);
}
.purpose-card h2,
.purpose-card p {
  text-align: left;
}

.content-section h2 {
  margin-top: 0;
  font-size: 1.6rem;
  border-left: 4px solid var(--card-title-border);
  padding-left: .6rem;
}

/* キー情報（会社概要用） */
.kv-list {
  display: grid;
  gap: 0.9rem;
}

.kv-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.kv-list span {
  opacity: .85;
}

.kv-list strong {
  font-weight: 700;
}

/* サービス一覧 */
.service-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 2;
}

/* ===============================
   Form
================================ */
form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 700;
}

input,
textarea {
  padding: 0.85rem;
  border: 1px solid #4d5a6a;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  width: 100%;
  max-width: 100%;
}


input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 103, 177, 0.35);
  border-color: rgba(0, 103, 177, 0.6);
}

button[type="submit"] {
  justify-self: start;
  background: var(--main-color);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: background .2s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 10px 24px rgba(0, 103, 177, 0.25);
}

button[type="submit"]:hover {
  background: #004c85;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 103, 177, 0.35);
}

/* ===============================
   Footer
================================ */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--footer-bg-color);
  /* 白背景に変更 */
  border-top: 1px solid rgba(0, 103, 177, 0.35);
  /* 枠線をブルーに */
  font-size: 0.92rem;
  color: var(--footer-text-color);
  /* テキストもブルー系 */
}

.footer-logo {
  display: block;
  margin: 0 auto 0.75rem;
  height: 42px;
  filter: none;
  /* 白背景なので影やフィルターを外してもOK */
}

/* ===============================
   Responsive
================================ */
@media (max-width: 640px) {

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo-area {
    margin-bottom: 1rem;
  }

  .header-logo {
    height: 40px;
  }
  
  nav {
    width: 100%;
  }

  nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-between;
    width: 100%;                   
  }

  .kv-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .content-section h2 {
    font-size: 1.4rem;
  }

  .purpose-card,
  .content-section {
    margin:1rem;
    padding:1.5rem;
    width: auto;
    max-width:100%;
  }
}


/*トップ画像追記 未運用*/
/* === HERO（背景＋右側アート） === */
 
.hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
/*  align-items: center;*/
  margin-right: calc(-1 * var(--hero-pad-x));
}
/* 画像を < 形状でクリップ */
.hero-art img {
  height: clamp(var(--hero-img-h-min), var(--hero-img-h-vh), var(--hero-img-h-max));
  width: clamp(260px, 32vw, 420px);
  object-fit: cover;
  display: block;
  border-radius: 0;

  /* 左を尖らせる（< 形状） */
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 14% 100%, 0% 50%);
  -webkit-clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 14% 100%, 0% 50%);

  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, .20));
}

.hero {
  position: relative;
  padding: 0 var(--hero-pad-x);
  overflow: hidden;
  background:
      radial-gradient(1200px 600px at 70% 50%, rgba(10, 132, 255, 0.20), transparent 60%),
      linear-gradient(180deg, #0B1736 0%, #283B73 100%);
  color: #fff;
}


.hero-inner {
  grid-template-columns: 1fr max-content;
  align-items: stretch;
  min-height: unset;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
/*  grid-template-columns: 1.3fr 0.7fr;*/
  align-items: stretch;
  gap: 32px;
}

.hero-copy {
  padding-right: 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 8px;
}

.hero-copy h3 {
  font-size: clamp(16px, 2.1vw, 22px);
  font-weight: 600;
  margin: 0 0 12px;
  opacity: .95;
}

.hero-copy p {
  font-size: clamp(14px, 1.8vw, 18px);
  margin: 0;
  opacity: .9;
}

/* ---- 狭くなったら「画像最小を維持」＋「テキストをオーバーラップ」 ---- */
@media (max-width: 720px) {

  /* 画像サイズを変数化して一元管理 */
  .hero {
    --artW: clamp(220px, 56vw, 340px);
    /* 画像の幅（以前より少し控えめ） */
    --artH: clamp(240px, 52vh, 460px);
    /* 画像の高さ */
    padding-block: 0;
  }

  /* 背景高さ＝画像高さを保証 */
  .hero-inner {
    position: relative;
    grid-template-columns: 1fr;
    /* 1カラム扱い */
    align-items: stretch;
    min-height: var(--artH);
  }

  .hero-art {
    position: absolute;
    right: calc(-1 * var(--hero-pad-x, 0px));
    /* 右端ピタ（変数が無ければ0） */
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
    z-index: 0;
    pointer-events: none;
  }

  .hero-art img {
    width: var(--artW);
    height: var(--artH);
  }

  /* テキスト側：画像ぶんの右余白を確保して重なり崩れを防ぐ */
  .hero-copy {
    position: relative;
    z-index: 1;
    padding-right: calc(var(--artW) + 12px);
    /* ← これが効きます */
    max-width: 60ch;
    /* 行の暴れ防止（任意） */
    line-height: 1.35;
  }

  /* モバイル用に “最小値” を下げたタイポ設定 */
  .hero-copy h2 {
    font-size: clamp(20px, 6vw, 26px);
    margin: 0 0 6px;
  }

  .hero-copy h3 {
    font-size: clamp(14px, 4.8vw, 18px);
    margin: 0 0 8px;
    opacity: .95;
  }

  .hero-copy p {
    font-size: clamp(13px, 4.2vw, 16px);
    margin: 0;
  }

  /* 読みやすさ補助（軽い影） */
  .hero-copy h2,
  .hero-copy h3,
  .hero-copy p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
  }
}
/* Purpose セクション*/
.content-section.purpose {
  position: relative;
  overflow: hidden;
  /* 画像がはみ出さないように */
  color: #fff;
  padding: clamp(40px, 8vw, 96px) 24px;
  min-height: clamp(280px, 42vh, 560px);

  /* “カード”系の装飾は無効化（残っていれば） */
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: none;
}

/* 背景画像（index.htmlから読み込む） */
.purpose-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* セクション全体をカバー */
  z-index: -1;
  /* 文字の背面へ */
}

/* 読みやすさ用オーバーレイ（任意：濃さは数値で調整） */
.content-section.purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, .28));
  pointer-events: none;
}

.content-section.purpose h2,
.content-section.purpose p {
  display: block;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius:0;
}

.content-section.purpose h2 {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--text-color-white);
  /* ヒーローの上側の色 */
  -webkit-text-stroke: 0 !important;
  text-shadow:
        0 2px 10px rgba(0, 0, 0, .45),
        0 6px 18px rgba(0, 0, 0, .35),
        0 1px 0 rgba(0, 0, 0, .35);
/*  text-shadow: none !important;+/
  margin: 0 0 .4em;

  /* 左の黄色バーが残る場合の完全無効化 */
  border-left: 0 !important;
  padding-left: 0 !important;
}

.content-section.purpose p {
  color: var(--text-color-white);
  -webkit-text-stroke: 0 !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, .45),
    0 6px 18px rgba(0, 0, 0, .35),
    0 1px 0 rgba(0, 0, 0, .35);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0;
}
/*
.content-section.purpose p {
  color: var(--text-color-white);
  -webkit-text-stroke: 1.1px rgba(0, 0, 0, .7);
  text-shadow:
      .8px 0 0 rgba(0, 0, 0, .7),
      -.8px 0 0 rgba(0, 0, 0, .7),
      0 .8px 0 rgba(0, 0, 0, .7),
      0 -.8px 0 rgba(0, 0, 0, .7);
  font-size: clamp(20px, 3vw, 28px);
  margin: 0;
}*/

.content-section.purpose .back-to-top a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Service Section */
/* 事業内容：テキスト左／画像右の2カラムレイアウト */
/* カード感を消す */
#services.services-band {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

#services.services-band {
  background: linear-gradient(180deg, #F6FAFF 0%, #EEF4FF 100%);
  padding: clamp(32px, 6vw, 72px) 24px;
}

#services .services-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
}

#services .service-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: .6em;
}

#services .service-list li {
  position: relative;
  padding-left: 1.4em;
  line-height: 1.6;
}

#services .service-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: #2B55D0;
  font-weight: 700;
}

/* 右カラム：キャプションを上、画像を下に */
#services .services-art {
  display: flex;
  flex-direction: column;
  /* ← 縦積み */
  align-items: flex-end;
  /* PCでは右寄せ */
  justify-content: center;
  gap: 8px;
  /* キャプションと画像の間隔 */
}

/* キャプションの見た目（お好みで調整） */
#services .services-art .lead {
  margin: 0;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  color: #1f2a44;
  /* バンド背景上で読みやすい濃色 */
  text-align: right;
  /* 右寄せに揃える */
}

/* モバイル時は中央寄せに */

#services .services-art img {
  width: min(460px, 100%);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

@media (max-width:840px) {
  #services .services-art {
    align-items: center;
  }
  
  #services .services-art .lead {
    text-align: center;
  }
  #services .services-inner {
    grid-template-columns: 1fr;
  }

  #services .services-art img {
    width: min(88vw, 520px);
  }
}

/* トップの社名（下線を完全オフ） */
.company-name,
.company-name a {
  color: #ffffff;
/*      font-family: 'Orbitron', sans-serif;*/
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  border-bottom: 0;
  box-shadow: none;
}
