@charset "UTF-8";

/* ==========================================================================
   株式会社Elvect コーポレートサイト スタイルシート

   ▼ 色や文字サイズを変えたいときは、すぐ下の「基本設定」だけ触ればOKです。
      （それ以外の場所は、レイアウトが崩れる可能性があるのでご注意ください）
   ========================================================================== */


/* ==========================================================================
   1. 基本設定（ここで色・文字・余白をまとめて調整できます）
   ========================================================================== */
:root {

  /* --- 色の設定 ------------------------------------------------ */
  --color-main:     #e0374b;   /* メインの赤（ボタン・見出しの装飾）      */
  --color-main-dk:  #b8283a;   /* 濃い赤（ホバー時・引き締め用）          */
  --color-accent:   #ff9052;   /* アクセントのオレンジ                    */

  --color-ink:      #3d2b2e;   /* 見出し・本文の文字色（やわらかい濃茶）  */
  --color-ink-sub:  #7b686b;   /* 補足文の文字色                          */
  --color-line:     #f3e3e0;   /* 罫線の色                                */
  --color-bg:       #ffffff;   /* 背景色                                  */
  --color-bg-soft:  #fff6f3;   /* 背景色（やわらかいピンクベージュ）      */
  --color-dark:     #3a1f24;   /* フッターの背景色                        */

  /* --- 文字の設定 ---------------------------------------------- */
  --font-base: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4",
               "Hiragino Kaku Gothic ProN", Meiryo, "メイリオ",
               "Yu Gothic Medium", "游ゴシック Medium", YuGothic,
               "Noto Sans JP", sans-serif;
  --font-en:   "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-size:   1.6rem;        /* 本文の文字サイズ（16px）                */
  --text-height: 2;             /* 行の高さ（読みやすさ）                  */

  /* --- レイアウトの設定 ---------------------------------------- */
  --width-max:   1120px;        /* コンテンツの最大幅                      */
  --space-section: 120px;       /* セクション上下の余白（PC）              */
  --radius:      22px;          /* 角丸の大きさ（大きいほど柔らかい印象）  */
  --shadow:      0 10px 34px rgba(224, 55, 75, .10);
  --shadow-lg:   0 22px 56px rgba(224, 55, 75, .18);

  /* --- グラデーション ------------------------------------------ */
  --gradient: linear-gradient(100deg, var(--color-main), var(--color-accent));
}


/* ==========================================================================
   2. リセット・共通
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 62.5%;            /* 1rem = 10px に調整 */
  scroll-behavior: smooth;
  scroll-padding-top: 90px;    /* 固定ヘッダーの分だけ余白を確保 */
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-size);
  line-height: var(--text-height);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity .25s, color .25s;
}
a:hover { opacity: .7; }

img { max-width: 100%; height: auto; display: block; }

/* 中央寄せの共通枠 */
.container {
  width: min(100% - 48px, var(--width-max));
  margin-inline: auto;
}

/* キーボード操作用のスキップリンク */
.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus {
  left: 16px; top: 16px;
  padding: 12px 20px;
  background: var(--color-main);
  color: #fff;
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
}


/* ==========================================================================
   3. ロゴ
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.logo:hover { opacity: .75; }

.logo__img { width: auto; height: 42px; }

.logo__sub {
  font-size: 1.1rem;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--color-ink-sub);
  padding-left: 12px;
  border-left: 1px solid var(--color-line);
}


/* ==========================================================================
   4. ヘッダー（上部固定メニュー）
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243, 227, 224, .9);
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 1.4rem;
  font-weight: 700;
}
.nav__list a { color: var(--color-ink); }

.nav__cta {
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(224, 55, 75, .32);
}
.nav__cta:hover { opacity: .88; }

/* スマホ用のメニューボタン（PCでは非表示） */
.nav-button { display: none; }

/* 開閉用のチェックボックス自体は見せない（キーボード操作は可能なまま） */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle:focus-visible ~ .nav-button {
  outline: 3px solid var(--color-main);
  outline-offset: 3px;
  border-radius: 8px;
}


/* ==========================================================================
   5. ヒーロー（トップの大きな見出し）
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
  background: linear-gradient(170deg, #fff8f4 0%, #ffeee8 55%, #ffe4dc 100%);
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

/* 背景のやわらかい丸 */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__glow--1 {
  width: 520px; height: 520px;
  top: -140px; right: -100px;
  background: rgba(255, 144, 82, .30);
}
.hero__glow--2 {
  width: 420px; height: 420px;
  bottom: -160px; left: -80px;
  background: rgba(224, 55, 75, .16);
}

/* 左：文章／右：メインビジュアル の2列 */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 40px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(224, 55, 75, .14);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-main);
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(4rem, 7.6vw, 7.6rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
  margin-bottom: 28px;
}
.hero__title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 620px;
  font-size: 1.6rem;
  line-height: 2.1;
  color: var(--color-ink-sub);
}
.hero__lead em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-main);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero__figure { justify-self: end; width: 100%; max-width: 560px; }

/* メインビジュアル
   PNG・JPGに差し替えても高さが変わらないよう、表示比率を固定しています。
   object-fit: cover  … はみ出す部分を中央でトリミング（既定）
   object-fit: contain … 画像全体を収める（余白ができます）        */
.hero__visual {
  width: 100%;
  aspect-ratio: 56 / 52;
  object-fit: cover;
  border-radius: 24px;
}


/* ==========================================================================
   6. ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(224, 55, 75, .34);
}
.btn--primary:hover { box-shadow: 0 18px 40px rgba(224, 55, 75, .44); }

.btn--ghost {
  background: #fff;
  color: var(--color-main);
  box-shadow: 0 8px 22px rgba(224, 55, 75, .12);
}
.btn--ghost:hover { background: #fff; }

.btn--lg { padding: 20px 52px; font-size: 1.8rem; }


/* ==========================================================================
   7. セクション共通
   ========================================================================== */
.section { padding: var(--space-section) 0; }
.section--alt { background: var(--color-bg-soft); }

.section__head { max-width: 760px; margin-bottom: 60px; }

.section__label {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section__label::after {
  content: "";
  flex: 0 0 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}
.section__label--light { color: #fff; justify-content: center; }
.section__label--light::after { display: none; }

.section__title {
  font-size: clamp(2.8rem, 4.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-ink);
}

.section__desc { margin-top: 20px; color: var(--color-ink-sub); }


/* ==========================================================================
   8. 私たちについて
   ========================================================================== */
.about__lead p + p { margin-top: 24px; }
.about__lead strong { color: var(--color-main); }

/* 社名の由来 */
.origin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  border: 2px dashed #f6d3cc;
}

.origin__item { text-align: center; min-width: 160px; }

.origin__word {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 700;
  color: var(--color-ink);
}
.origin__mean { margin-top: 6px; font-size: 1.4rem; color: var(--color-ink-sub); }

.origin__plus,
.origin__eq {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-accent);
}

.origin__item--result .origin__word {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.origin__item--result .origin__mean {
  font-weight: 700;
  color: var(--color-main);
}

/* 3つの価値観 */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.values__item {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}
.values__item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 14px;
}
.values__item h3::before {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
}
.values__item p { font-size: 1.5rem; color: var(--color-ink-sub); }


/* ==========================================================================
   9. 事業案内カード
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 30px 40px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* 事業のイラスト（img/service-*.svg）
   PNG・JPGや写真に差し替えても、3枚の高さが揃うよう比率を固定しています。 */
.card__illust {
  width: 100%;
  aspect-ratio: 13 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #fff1ec;
  margin-bottom: 24px;
}

.card__num {
  position: absolute;
  top: 40px;
  right: 44px;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-main);
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(224, 55, 75, .18);
}

.card__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 14px;
}

.card__text {
  font-size: 1.5rem;
  color: var(--color-ink-sub);
  margin-bottom: 24px;
}

.card__list {
  margin-top: auto;
  padding-top: 22px;
  border-top: 2px dotted var(--color-line);
  font-size: 1.4rem;
}
.card__list li { position: relative; padding-left: 24px; }
.card__list li + li { margin-top: 10px; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: .35;
}
.card__list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.06em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-main);
}


/* ==========================================================================
   10. 会社概要（表）
   ========================================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
}
.table th,
.table td {
  padding: 26px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}
.table th {
  width: 220px;
  font-weight: 700;
  color: var(--color-main);
  white-space: nowrap;
}
.table tr:first-child th,
.table tr:first-child td { border-top: 1px solid var(--color-line); }


/* ==========================================================================
   11. お問い合わせ（フォーム）
   ========================================================================== */
.section--contact {
  position: relative;
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
}
.section--contact::before,
.section--contact::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.section--contact::before { width: 420px; height: 420px; top: -160px; left: -120px; }
.section--contact::after  { width: 320px; height: 320px; bottom: -140px; right: -90px; }

.contact { position: relative; text-align: center; }

.contact__title {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}
.contact__text {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 48px;
}

/* --- フォーム本体 --- */
.form {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(150, 30, 45, .28);
  text-align: left;
  color: var(--color-ink);
}

.form__note {
  font-size: 1.3rem;
  color: var(--color-ink-sub);
  margin-bottom: 28px;
}

.form__row { margin-bottom: 24px; }

.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.form__required,
.form__optional {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.form__required { background: var(--color-main); color: #fff; }
.form__optional { background: var(--color-bg-soft); color: var(--color-ink-sub); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--color-ink);
  background: var(--color-bg-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color .25s, background .25s;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-main);
}
.form__textarea { min-height: 160px; resize: vertical; line-height: 1.8; }

.form__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-main) 50%),
                    linear-gradient(135deg, var(--color-main) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 16px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

/* 同意チェック */
.form__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  font-size: 1.35rem;
  line-height: 1.8;
  cursor: pointer;
}
.form__agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--color-main); flex: 0 0 auto; }

/* 迷惑メール対策（人には見えません） */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form__submit {
  width: 100%;
  margin-top: 28px;
}

.form__after {
  margin-top: 22px;
  font-size: 1.3rem;
  color: var(--color-ink-sub);
  text-align: center;
}


/* ==========================================================================
   12. 送信完了ページ
   ========================================================================== */
.thanks {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(170deg, #fff8f4 0%, #ffeee8 60%, #ffe4dc 100%);
  text-align: center;
}
.thanks__inner { max-width: 620px; margin-inline: auto; }
.thanks__illust {
  width: min(260px, 70%);
  aspect-ratio: 13 / 10;
  object-fit: contain;
  margin: 0 auto 32px;
}
.thanks__title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.thanks__text { color: var(--color-ink-sub); margin-bottom: 40px; }


/* ==========================================================================
   13. フッター
   ========================================================================== */
.footer {
  padding: 64px 0 32px;
  background: var(--color-dark);
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__logo { width: auto; height: 44px; }
.footer__addr {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 1.4rem;
}
.footer__nav a { color: rgba(255, 255, 255, .85); }

.copyright {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .45);
}


/* ==========================================================================
   14. タブレット・スマートフォン対応
   ========================================================================== */

/* --- タブレット（横幅 900px 以下） --- */
@media (max-width: 900px) {
  :root { --space-section: 88px; }

  .values,
  .cards { grid-template-columns: 1fr; gap: 24px; }

  .hero { padding: 130px 0 90px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__figure { justify-self: center; max-width: 460px; }

  .card__num { top: 40px; right: 46px; }
}

/* --- スマートフォン（横幅 768px 以下） --- */
@media (max-width: 768px) {

  .container { width: calc(100% - 40px); }

  .logo__img { height: 36px; }
  .logo__sub { display: none; }

  /* メニューボタン（三本線）を表示 */
  .nav-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    padding: 0 9px;
    cursor: pointer;
    z-index: 110;
  }
  .nav-button span {
    display: block;
    height: 3px;
    background: var(--color-main);
    border-radius: 3px;
    transition: transform .3s, opacity .3s;
  }
  .nav-toggle:checked ~ .nav-button span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 250, 248, .98);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-toggle:checked ~ .nav { opacity: 1; visibility: visible; }

  .nav__list { flex-direction: column; gap: 28px; font-size: 1.8rem; }
  .nav__cta { padding: 14px 34px; }

  .hero__title { line-height: 1.34; }
  .hero__actions .btn { flex: 1 1 100%; }

  /* 社名の由来 */
  .origin {
    flex-direction: column;
    gap: 14px;
    padding: 36px 20px;
    margin: 44px 0;
  }
  .origin__plus, .origin__eq { font-size: 2rem; }

  /* 会社概要の表を縦積みにする */
  .table, .table tbody, .table tr, .table th, .table td {
    display: block;
    width: 100%;
  }
  .table tr { padding: 20px 0; border-bottom: 1px solid var(--color-line); }
  .table tr:first-child { border-top: 1px solid var(--color-line); }
  .table th { padding: 0 0 6px; border: none; font-size: 1.3rem; }
  .table td { padding: 0; border: none; }

  /* フォーム */
  .form { padding: 32px 22px; border-radius: 22px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 18px 24px; }

  .btn--lg { padding: 18px 32px; font-size: 1.6rem; width: 100%; }
}


/* ==========================================================================
   15. 印刷用（ページを紙に出したときの調整）
   ========================================================================== */
@media print {
  .header, .form__submit { display: none; }
  body { color: #000; }
  .hero, .section--contact, .footer { background: #fff; color: #000; }
  .card { break-inside: avoid; box-shadow: none; }
}


/* ==========================================================================
   16. アニメーションを控えたい方への配慮（OS設定に追従）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
