/* =========================
  リセット & 共通設定
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
  color: #1b1b1b;
}

/* メニュー表示中：背景スクロール禁止 */
body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* =========================
  ヘッダー
========================= */
.header {
  background: #ffffff;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.logo {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  color: #000000;
}

/* =========================
  ナビ（PC）
========================= */
.nav ul {
  display: flex;
  gap: 65px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #2b2b2b;
  font-weight: 500;
  position: relative;
}

/* ホバー下線 */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e7e7e7;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* =========================
  ハンバーガー
========================= */
.hamburger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #232323;
  left: 0;
  transition: all 0.4s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* ×アニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* =========================
  フッター
========================= */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* =========================
  スマホ・タブレット
========================= */
@media (max-width: 768px) {

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }

  /* ナビをスマホ用に */
  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: 
    #eff6f4;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav.active {
    transform: translateX(0);
    opacity: 1;
  }

.nav ul {
  flex-direction: column;
  align-items: flex-start; /* ← 左寄せ */
  padding: 40px;
  gap: 24px;
}

  .nav a {
    font-size: 18px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* ロゴ全体 */
.logo {
  margin: 0;
}

/* リンクで横並び */
.logo-link {
  display: flex;
  align-items: center;
  gap: 35px;
  color: #282828;
}

/* ロゴ画像 */
.logo-img {
  height: 40px;   /* 調整OK */
  width: auto;
  display: block;
}

/* ロゴ文字 */
.logo-text {
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

/* =========================
  HERO（最終完成版）
========================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* =========================
  画像（右側）
========================= */

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* 画像本体 */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* ★ 首とPCが見える位置 */
  object-position: center  190%;
}

/* 左右フェード（境界ぼかし） */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,0.85) 10%,
    rgba(255,255,255,0.3) 25%,
    rgba(255,255,255,0) 45%
  );
  z-index: 2;
}

/* =========================
  テキスト（左側）
========================= */

.hero-text {
  position: relative;
  z-index: 3;
  width: 45%;
  padding: 100px 6vw;
  color: #1f2937;
}

/* 見出し */
.hero-text h2 {
  font-size: 65px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

/* 本文 */
.hero-text p {
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #374151;
  max-width: 520px;
}

/* =========================
  スマホ対応
========================= */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: 100vh;
  }

  /* 画像を全面に */
  .hero-image {
    position: absolute;
    width: 100%;
    height: 95%;
  }

  .hero-image img {
 object-position: center 88%;}


  /* フェードを縦方向に */
  .hero-image::before {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.75) 35%,
      rgba(255,255,255,0.4) 55%,
      rgba(255,255,255,0) 75%
    );
  }

  /* テキストを重ねる */
  .hero-text {
    width: 100%;
    padding: 64px 45px;
    text-align: left;
  }

  .hero-text h2 {
    font-size: 23px;
  }

  .hero-text p {
    font-size: 14px;
  }
}


/* =========================
  テキストアニメーション
========================= */

.hero-text {
  opacity: 0;
  transform: translateY(12px);
  animation: textFadeUp 0.8s ease forwards;
}

.hero-text p {
  opacity: 0;
  transform: translateY(12px);
  animation: textFadeUp 0.8s ease forwards;
  animation-delay: 0.15s; /* 時間差 */
}

@keyframes textFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
  スマホ：文字の可読性改善
========================= */
@media (max-width: 768px) {
  .hero-text {
    /* 下に向かって透明になる下地 */
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 255, 255, 0.42) 60%,
      rgba(255, 255, 255, 0.2) 80%,
      rgba(255, 255, 255, 0) 100%
    );

    padding: 24px 20px 32px;
    border-radius: 8px;
  }
}

  /* 見出し */
  .hero-text h2 {
    color: #111827;      /* より濃く */
    line-height: 1.55;
    letter-spacing: 0.02em;
  }

  /* 本文 */
  .hero-text p {
    color: #1f2937;      /* コントラストUP */
    line-height: 2;
  }

  /* アニメーションを弱める */
  .hero-text,
  .hero-text p {
    animation-duration: 0.6s;
    transform: translateY(6px);
  }

  /* =========================
  スマホ：テキストを縦中央・左寄せ
========================= */
@media (max-width: 768px) {

  .hero {
    position: relative;
  }

  .hero-text {
    position: absolute;
    top: 30%;
    left: 6vw;                 /* ← 左寄せ */
    transform: translateY(-50%);

    width: calc(100% - 12vw);  /* 端に寄りすぎない */
    max-width: 420px;

    /* 既存の下地グラデーションはそのまま */
  }
}




/* =========================
  スマホ：下地を均一な透明に
========================= */
@media (max-width: 768px) {
  .hero-text {
    background: rgba(255, 255, 255, 0.88); /* 均一な透け感 */
    padding: 24px 40px;
    border-radius: 8px;
  }
}

/* =========================
  NEWS
========================= */
.news {
  padding: 120px 20px;
  background: #f9fafb;
}

.news-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* リスト */
.news-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  border-top: 1px solid #e5e7eb;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: 16px;
  align-items: center;

  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* 日付 */
.news-date {
  font-size: 14px;
  color: #6b7280;
}

/* タグ */
.news-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  width: fit-content;
}

/* 本文 */
.news-text {
  font-size: 15px;
  color: #111827;
  line-height: 1.6;
}

/* =========================
  スマホ
========================= */
@media (max-width: 768px) {
  .news {
    padding: 80px 20px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-date {
    font-size: 13px;
  }

  .news-text {
    font-size: 14px;
  }
}




/* =========================
  ABOUT（ヒーロー直下の自己紹介）
========================= */
.about {
  padding: 96px 20px;
  background: #ffffff;
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* 見出し：文字幅だけ下線（上品・BtoB） */
.about-title {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #222;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
  margin: 0 0 28px 0;
}

/* 本文 */
.about-text {
  font-size: 16px;
  line-height: 2;
  color: #374151;
  max-width: 760px;
  margin: 0;
}

/* ボタン（控えめ） */
.about-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 14px;
}

.about-link.is-ghost {
  background: #f3f4f6;
  color: #111827;
}

/* スマホ */
@media (max-width: 768px) {
  .about {
    padding: 64px 20px;
  }

  .about-title {
    font-size: 1.3rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .about-link {
    padding: 10px 14px;
    font-size: 14px;
  }
}



/*---------------*/

/* =========================
  SERVICE（事業内容ページ）
========================= */

.service {
  background: #ffffff;
}

/* ページヒーロー */
.service-hero {
  padding: 120px 20px 80px;
  background: #f9fafb;
}

.service-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.service-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  color: #111827;
}

.service-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
  max-width: 640px;
}

/* =========================
  SERVICE：ヒーローと本文の境目
========================= */



/* ヒーロー直下の本文との間に余白を追加 */
.service-body {
  margin-top: 24px;
}

/* =========================
  SERVICE BODY（読みやすさ改善）
========================= */

.service-body {
  background: #e8f1f9;        /* 全体に薄背景 */
  padding: 72px 20px;
}

.service-block {
  max-width: 960px;
  margin: 0 auto 48px;        /* 余白を詰める */
  padding: 40px 48px;
  background: #ffffff;
  border-radius: 12px;
}

/* 最後の余白を削除 */
.service-block:last-child {
  margin-bottom: 0;
}

/* 見出し */
.service-block h2 {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 20px;
}

/* 本文 */
.service-block p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
  max-width: 720px;
  margin: 0 0 20px 0;
}

/* リスト */
.service-block .service-list {
  padding-left: 18px;
  margin: 0;
}

.service-block .service-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 6px;
}



/* =========================
  FOOTER（完全整理版）
========================= */

.footer {
  background: #30394b;
  color: #d1d5db;
  font-size: 14px;
}

/* =========================
  フッター本体レイアウト
========================= */

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;

  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;

  align-items: start; /* 高さズレ防止 */
}

/* =========================
  並び順（PC）
  左：会社情報 / 中：SNS / 右：ナビ
========================= */

.footer-company {
  order: 1;
  max-width: 420px;
}

.footer-sns {
  order: 3;
}

.footer-nav {
  order: 2;
}

/* =========================
  会社情報
========================= */

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #9ca3af;
  margin: 0;
}

/* =========================
  ナビゲーション
========================= */

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 13px;
  color: #d1d5db;
  white-space: nowrap; /* 折り返し防止 */
}

/* =========================
  SNS
========================= */

.footer-sns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-sns-title {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0;
}

.footer-sns ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  gap: 16px;
  flex-wrap: wrap; /* 幅が狭くても崩れない */
}

.footer-sns a {
  font-size: 13px;
  color: #d1d5db;
}

/* =========================
  下段コピー
========================= */

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

/* =========================
  タブレット・スマホ
========================= */

@media (max-width: 900px) {

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 並び順（スマホ）
     会社情報 → ナビ → SNS */
  .footer-company {
    order: 1;
  }

  .footer-nav {
    order: 2;
  }

  .footer-sns {
    order: 3;
  }
}

/* =========================
  SNSズレ修正（ここ重要）
========================= */

.footer-sns {
  display: block;        /* ← flexをやめる */
}

.footer-sns-title {
  margin-bottom: 10px;
}

/* SNSリンクをナビと同じ基準に */
.footer-sns ul {
  display: block;        /* ← 横並びを解除 */
}

.footer-sns li {
  margin-bottom: 10px;   /* navと揃える */
}

.footer-nav {
  position: relative;
  padding-right: 24px;
}

.footer-nav::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 120px;              /* 高さは調整可 */
  background: #1f2937;
}

/*-------*/


/* =========================
  COMPANY（会社概要）
========================= */

.company-hero {
  padding: 120px 20px 80px;
  background: #f9fafb;
}

.company-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.company-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  color: #111827;
}

.company-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
}

/* 本文 */
.company-body {
  background: #ffffff;
  padding: 64px 20px;
}

.company-block {
  max-width: 960px;
  margin: 0 auto;
}

/* 冒頭文 */
.company-intro {
  font-size: 15px;
  line-height: 2;
  color: #374151;
  max-width: 720px;
  margin-bottom: 40px;
}

/* テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

/* =========================
  スマホ
========================= */
@media (max-width: 768px) {

  .company-hero {
    padding: 80px 20px 56px;
  }

  .company-hero h1 {
    font-size: 1.6rem;
  }

  .company-intro {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 32px;
  }

  .company-table th {
    width: 120px;
  }

  .company-table th,
  .company-table td {
    font-size: 13px;
    padding: 12px 8px;
  }
}




/*------*/

/* =========================
  RECRUIT（採用情報）
========================= */

.recruit-hero {
  padding: 120px 20px 80px;
  background: #f9fafb;
}

.recruit-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.recruit-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  color: #111827;
}

.recruit-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
}

/* 本文 */
.recruit-body {
  background: #f9fafb;
  padding: 64px 20px;
}

.recruit-block {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 36px 44px;
  background: #ffffff;
  border-radius: 12px;
}

.recruit-block:last-child {
  margin-bottom: 0;
}

/* 見出し */
.recruit-block h2 {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 20px;
}

/* 本文 */
.recruit-block p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
  max-width: 720px;
  margin: 0 0 16px 0;
}

/* リスト */
.recruit-list {
  padding-left: 18px;
  margin: 0;
}

.recruit-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 6px;
}

/* リンク */
.recruit-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #111827;
  text-decoration: underline;
}

/* =========================
  スマホ
========================= */
@media (max-width: 768px) {

  .recruit-hero {
    padding: 80px 20px 56px;
  }

  .recruit-hero h1 {
    font-size: 1.6rem;
  }

  .recruit-body {
    padding: 48px 16px;
  }

  .recruit-block {
    padding: 26px 20px;
    margin-bottom: 28px;
    border-radius: 10px;
  }

  .recruit-block h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .recruit-block p {
    font-size: 14px;
    line-height: 1.8;
  }

  .recruit-list li {
    font-size: 13px;
  }
}



/*--------*/

/* =========================
  CONTACT（Perl対応デザイン）
========================= */

.contact-hero {
  padding: 120px 20px 80px;
  background: #f9fafb;
}

.contact-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  color: #111827;
}

.contact-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #374151;
}


/* CONTACT：ヒーローと本文の区切り */
.contact-hero {
  border-bottom: 1px solid #e5e7eb;
}

/* 本体 */
.contact-body {
  background: #f9fafb;
  padding: 64px 20px;
}

.contact-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 48px;
  background: #ffffff;
  border-radius: 12px;
}

/* フォーム全体 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 入力グループ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: #374151;
}

/* 入力欄 */
.form-group input,
.form-group textarea {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9ca3af;
}

/* 注意書き */
.form-note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

/* 送信ボタン（控えめ） */
.contact-submit {
  align-self: flex-start;
  padding: 10px 18px;
  font-size: 14px;
  color: #ffffff;
  background: #111827;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* honeypot（非表示） */
.honeypot {
  display: none;
}

/* =========================
  スマホ
========================= */
@media (max-width: 768px) {

  .contact-hero {
    padding: 80px 20px 56px;
  }

  .contact-hero h1 {
    font-size: 1.6rem;
  }

  .contact-body {
    padding: 48px 16px;
  }

  .contact-block {
    padding: 28px 20px;
    border-radius: 10px;
  }
}




/*---------*/


/* =========================
  HOME：AWS 強調セクション
========================= */

.home-aws.highlight {
  background: #eef2f7;            /* 少し濃い背景 */
  padding: 104px 20px;
}

.home-aws-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;            /* 中をカード化 */
  padding: 48px 56px;
  border-radius: 16px;
}

/* 見出しを少し強く */
.home-aws.highlight h2 {
  font-size: 1.7rem;
}

/* CTAブロック */
.home-aws-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.home-aws-cta-text {
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.8;
}

/* CTAリンク（ボタン風・控えめ） */
.home-aws-cta-link {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  color: #ffffff;
  background: #111827;
  border-radius: 6px;
}

/* =========================
  スマホ
========================= */
@media (max-width: 768px) {

  .home-aws.highlight {
    padding: 72px 16px;
  }

  .home-aws-inner {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .home-aws.highlight h2 {
    font-size: 1.4rem;
  }

  .home-aws-cta-text {
    font-size: 13px;
  }
}
/* =========================
  ヘッダー追従（固定）
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #ffffff; /* 必須：透け防止 */
}

