/* ベース設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic",
    "YuGothic", "Meiryo", sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.7;
}

/* レイアウトの共通コンテナ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ナビゲーション */
.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #0f0f0f;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #7e7e7e;
  transition: width 0.2s ease;
}

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

/* スマホ用ナビボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* セクション共通 */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #f8fafc;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-en {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0077ff;
  margin: 0 0 8px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.section-lead {
  margin: 0;
  color: #555;
}

/* ヒーロー */
.hero {
  padding: 96px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #2c2c2c;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  color: #2c2c2c;
}

.hero-desc {
  margin: 0 0 24px;
  color: #2c2c2c;
}

/* ボタン */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #ececec;
  color: #2c2c2c;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #cacaca;
  transform: translateY(-1px);
}

/* 画像プレースホルダー */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #d4dbe5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-size: 0.8rem;
}

.img-placeholder-large {
  aspect-ratio: 16 / 10;
}

.img-placeholder-map {
  aspect-ratio: 16 / 9;
}

/* 事業内容 */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.business-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.business-img {
  margin-bottom: 4px;
}

.business-img-vertical {
  aspect-ratio: 3 / 4;
}

.business-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.business-tag {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.business-list {
  margin: 8px 0 0;
}

.business-list dt {
  font-weight: 600;
  margin-top: 6px;
  font-size: 0.9rem;
}

.business-list dd {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: #475569;
}

.business-card-wide {
  grid-column: 1 / -1;
}

.business-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* 企業理念・Mission・Value */
.philosophy-block {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.philosophy-copy {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0 12px;
}

.mv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.mv-column h3 {
  margin-top: 0;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li + li {
  margin-top: 12px;
}

.value-list h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.value-list p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* 採用情報 */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.recruit-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.recruit-img {
  margin-bottom: 8px;
}

.recruit-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.recruit-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.recruit-card ul {
  margin: 0 0 8px 1.2em;
  padding-left: 0;
  font-size: 0.9rem;
  color: #475569;
}

.recruit-common {
  background-color: #eef2ff;
  border-radius: 16px;
  padding: 20px;
  font-size: 0.9rem;
}

.recruit-common h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.recruit-common dl {
  margin: 0;
}

.recruit-common dt {
  font-weight: 600;
  margin-top: 6px;
}

.recruit-common dd {
  margin: 0 0 4px 0;
}

.recruit-note {
  margin-top: 8px;
  color: #4b5563;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.required {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: #fee2e2;
  color: #b91c1c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 1px rgba(0, 119, 255, 0.1);
}

.form-row-center {
  align-items: center;
}

/* アクセス */
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.access-info h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.access-address,
.access-tel,
.access-mail {
  margin: 0 0 8px;
}

/* フッター */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  background-color: #f9fafb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.footer-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 4px;
}

.footer-sns {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-sns a {
  text-decoration: none;
  color: #374151;
}

.footer-sns a:hover {
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 960px) {
  .hero-inner,
  .business-card-inner,
  .mv-grid,
  .access-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .business-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .recruit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner { height: 56px; }

  .nav{
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;                 /* ←重要：画面下まで */
    background: rgba(255,255,255,0.82);  /* メニューはガラス白 */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transform: translateY(-110%); /* ←確実に隠す */
    transition: transform .22s ease;
    z-index: 90;

    overflow: auto;
    padding: 14px 16px;
    pointer-events: none;         /* 閉じてる時は触れない */
  }

  .nav.nav-open{
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav ul{
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav a{
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
  }

  .nav-toggle{ display: flex; }
}




/* ===== ヒーロー：背景画像を背面にして文字を重ねる ===== */
.hero-bg {
  position: relative;
  padding: 140px 0 110px; /* 高さはお好みで調整 */
  background-image: url("images/hero.jpg"); /* ← ここが画像指定 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 文字を読みやすくするための半透明オーバーレイ */
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(238, 238, 238, 0.55); /* 白い幕。濃さは調整OK */
  z-index: 0;
}

/* 中の文字を前面に */
.hero-bg__inner {
  position: relative;
  z-index: 1;
}

/* 背景上のテキスト幅を制限 */
.hero-text--on-bg {
  max-width: 720px;
}

/* もともとの2カラム指定を解除 */
.hero-inner {
  display: block;
}

/* スマホ時 */
@media (max-width: 720px) {
  .hero-bg {
    padding: 110px 0 80px;
  }

  .hero-bg__overlay {
    background: rgba(255, 255, 255, 0.75);
  }
}


body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic",
    "YuGothic", "Meiryo", sans-serif;
  color: #222;
  line-height: 1.7;

  /* ===== 背景グラデーション（以前のサイトと同じ） ===== */
  background:
    radial-gradient(circle at 20% 30%, rgba(160, 200, 255, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 75% 25%, rgba(255, 215, 150, 0.6) 0%, transparent 65%),
    radial-gradient(circle at 40% 70%, rgba(255, 180, 220, 0.45) 0%, transparent 70%),
    radial-gradient(circle at 85% 65%, rgba(255, 170, 130, 0.35) 0%, transparent 75%),
    radial-gradient(circle at 30% 90%, rgba(120, 170, 255, 0.55) 0%, transparent 80%),
    linear-gradient(to bottom, #a8d4ff 0%, #e3f0ff 50%, #ffffff 100%);
  
  background-attachment: fixed;
  background-size: cover;
}

.section-story,
.section-about,
.section-contact,
footer {
  background: transparent !important;
}

footer {
  background: #000 !important;
  color: #fff;
}

.hero-bg {
  background-image: url("images/hero.jpg");
}

/* グラデーションを見せたいなら、セクションの背景は透明に */
section {
  background: transparent;
}

/* もし section-alt が薄い背景を持っているなら無効化 */
.section-alt {
  background: transparent !important;
}

.business-card {
  background: rgba(255, 255, 255, 0.55);  /* ← 半透明 */
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recruit-card {
  background: rgba(255, 255, 255, 0.55);   /* 半透明 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);     /* Safari対応 */
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.business-image {
  width: 100%;
  aspect-ratio: 4 / 3;      /* ← 元の枠の比率を維持 */
  border-radius: 12px;
  overflow: hidden;        /* ← 枠からはみ出た部分を切り取る */
  background: #e5e7eb;
  display: block;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* ← 枠いっぱいに表示＆自動トリミング */
  object-position: center;/* ← 中央を基準にトリミング */
  display: block;
}

.business-image .img-placeholder{
  width: 100%;
  height: 100%;
  border-radius: 0; /* 枠側で角丸を管理 */
  aspect-ratio: auto; /* 親が管理 */
}

business-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  display: block;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 枠でトリミング */
  object-position: center; /* 中央基準 */
  display: block;
}

.business-image iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.business-image {
  touch-action: pan-x pan-y;
}

.site-header{
  background: rgba(255,255,255,0.35); /* 透明感 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

/* ==============================
   スマホではヘッダーを不透明にする
============================== */
@media (max-width: 720px) {
  .site-header {
    background: #ffffff !important;   /* ← 透明をやめる */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* ==============================
   スマホ：Heroを中央揃え
============================== */
@media (max-width: 720px) {
  .hero {
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    align-items: center;
  }

  .hero .label,
  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero .btn-primary {
    margin: 0 auto;   /* ボタンも中央 */
  }
}

/* ==============================
   スマホ：採用カードを縦1列にする
============================== */
@media (max-width: 720px) {

  /* 採用カードの親（グリッド or フレックス） */
  .recruit-grid {
    display: grid;
    grid-template-columns: 1fr;   /* ← 1列に */
    gap: 20px;
  }

  /* 各カードの横幅をフルに */
  .recruit-card {
    width: 100%;
  }
}

/* ==============================
   Story / About（移植）
   ============================== */

.section-tag{
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0077ff;
  margin: 0 0 10px;
}

.section-tag-light{
  color: rgba(255,255,255,0.85);
}

/* Story */
.section-story{
  /* 既存の.sectionがpaddingを持つのでここでは最小限 */
}

.story-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.story-heading{
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.6;
  color: #2c2c2c;
}

.story-photo{
  display: flex;
  justify-content: flex-end;
}

.story-photo img{
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

/* About */
.section-about{
  padding: 0; /* 上のヒーローと本文で余白を管理 */
}

.about-hero{
  position: relative;
  height: 420px;
  background-image: url("images/about.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 0;
  overflow: hidden;
}

.about-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
}

.about-hero-inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.about-hero-text{
  margin-right: 100px; /* 以前のサイトの雰囲気 */
}

.about-hero-title{
  font-size: 1.5rem;
  margin: 4px 0 0;
}

.section-about-body{
  padding: 56px 0 64px;
}

.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.about-name{
  margin: 18px 0 0;
  font-weight: 600;
}

.about-card{
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.about-info-img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 960px){
  .story-inner{
    grid-template-columns: 1fr;
  }
  .story-photo{
    justify-content: center;
  }
  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-hero-text{
    margin-right: 0;
  }
}

@media (max-width: 720px){
  .about-hero{ height: 260px; }
  .story-heading{ font-size: 1.25rem; }
}
