html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  overflow-x: hidden;  /* 横スクロール防止用 */
}

/* アンカー用ダミー（固定ヘッダー対策） */
.anchor {
  position: relative;
  top: -70px;      /* ← ヘッダーの高さに合わせて必要なら微調整 */
  visibility: hidden;
}

.nav-hover {
  position: relative;
  display: inline-block;
  color: #333;       /* 薄墨色 */
  transition: color 0.3s ease;
}

.nav-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%; /* ← 最初はゼロ幅 */
  height: 2px;
  background-color: #FF5656;
  transition: width 0.3s ease;
}

.nav-hover:hover::after {
  width: 100%; /* ← ホバー時に全体に伸びる！ */
}

#header{
	display:flex;
	padding:20px 40px 20px 40px;
	flex-direction:row;
	justify-content:space-between;
	align-items:center;
	position:fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	right: 0;
	width:100%;
	height:auto;
	flex-wrap:nowrap;
	text-decoration:#000000;
	background-color:#ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header-add-rogo{
	color:black;
	width:228px;
	height:31px;
	padding:0px 0px 0px 0px;
	position:sticky;
}


.nav-bar-content{
	padding:10px 10px 10px 10px;
	width:auto;
	border-bottom:5px solid;
	height:auto;
	font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
	font-weight: 600;
	color: #646464;
	min-height:auto;
	margin:0px 20px 0px 0px;
	border:0px solid;
	transition:all 0.2s ease-out;transform:unset;
	text-decoration: none;  /* 下線を消す */
    display: inline-block;  /* divと同じ扱い */
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
}

.nav-right {
  display: flex;
  align-items: center;
}

#top-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero {
  position: relative;
  height: 100vh; /* ← 画面の高さぴったり */
  overflow: hidden;
}

.hero-text {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%); 
  text-align: center;
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
  font-weight: 600;
  font-size: 34px;
  line-height: 180%;
  color: #ffffff;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeInOnly 1.5s ease-out forwards;
}

@keyframes fadeInOnly {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.section-wrapper {
  position: relative;
  margin-top: 200px; /* 全体の上余白（必要に応じて） */
}

.section-wrapper.right-align {
  margin-top: 200px;
  text-align: right;
}

.title-group {
  position: absolute;
  top: -110px;  /* ← 見出し位置を少し上にずらす */
  left: 60px;
  z-index: 10;
}

.title-group.right-align {
  position: absolute;
  top: -110px;
  right: 60px;
  left: auto;
  z-index: 10;
  text-align: right;
}

.subtitle {
  display: block;
  font-size: 18px;
  color: #333;       /* 薄墨色 */
  font-weight: bold;
  margin-bottom: 0px;
  margin-left: 8px;
  letter-spacing: 1px;
}

.floating-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 100px;
  color: #FF5656;
  margin: 0;
  line-height: 1;
}

.section-rounded-right {
  background-color: #FF5656;
  padding: 40px 200px 40px 60px;
  width: 60%;
  margin-left: 0;
  margin-right: auto;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  color: white;
  position: relative;
  z-index: 1;
}

.section-rounded-left {
  background-color: #FF5656;
  padding: 40px 60px 100px 200px;
  width: 60%;
  margin-left: auto;
  margin-right: 0;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  color: white;
  position: relative;
  z-index: 1;
}

.section-text-right {
  position: relative;
  z-index: 1;
  text-align: justify;
  margin-right: auto;        
  width: 100%;              /* ← 親要素いっぱい使えるように */
  max-width: 630px;         /* ← 最大幅を指定（これ以上は広がらない） */
  min-width: 320px;         /* ← スマホで崩れないための最小幅 */
}

.section-text-left {
  position: relative;
  z-index: 1;
  text-align: justify;
  margin-left: auto;        /* ← 右寄せの基本 */
  width: 100%;              /* ← 親要素いっぱい使えるように */
  max-width: 630px;         /* ← 最大幅を指定（これ以上は広がらない） */
  min-width: 320px;         /* ← スマホで崩れないための最小幅 */
}

/* 共通アニメーション */
.floating-image {
  position: absolute;
  bottom: -80px;
  left: 60%;
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* 表示後 */
.floating-image.show {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* 初期非表示状態 */
.floating-image.hidden {
  opacity: 0;
  transform: scale(0.8);
}

/* 個別にランダム風の位置と角度を調整 */
.img-1 {
  top: -50px;
  left: 55%;
  transform: scale(0.8) rotate(-5deg);
  transition-delay: 0s;
  z-index: 1;
	width: 250px;
}

.img-2 {
  top: 80px;
  left: 59%;
  transform: scale(0.8) rotate(3deg);
  transition-delay: 0.2s;
  z-index: 2;
  width: 280px;
}

.img-3 {
  top: 220px;
  left: 52%;
  transform: scale(0.8) rotate(-7deg);
  transition-delay: 0.4s;
  z-index: 3;
  width: 320px
}

.img-4 {
  top: -300px;
  right: 50%;
  left: auto;
  transform: scale(0.8) rotate(5deg);
  transition-delay: 0.6s;
  z-index: 2;
  width: 400px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 16px;
  background-color: #FF5656;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;

  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 40px;      /* 柔軟に対応 */
  flex-shrink: 0;
  line-height: 1;
  box-sizing: border-box;
}

.contact-button:hover {
  background-color: #e04a4a;
}

.icon {
  width: 1.5em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-button .icon img {
  width: 1.5em;
  height: 1.5em;
  display: block;
}

/* 正円カードの外枠 */
.card-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1280px;           /* ← PC最大幅をここで調整 */
  margin: -80px auto 40px;    /* ← 上は赤セクションと重ねるためのマイナス、下は余白 */
  padding: 0 24px;            /* ← パディングで可変余白に */
  gap: 24px;                  /* ← カード同士の最大間隔 */
  position: relative;
  z-index: 3;
}

/* 正円カード本体 */
.service-card {
  background-color: #FFE36F;
  color: #333;
  border-radius: 50%;
  width: 230px;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  transition: transform 0.3s ease; 
}

/* ホバー効果 */
.service-card:hover {
  transform: translateY(-6px);
}

/* アイコン中央揃え */
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  position: static;
}

/* タイトル */
.service-card h3 {
  font-size: 20px;
  margin: 6px 0;
  font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
	font-weight: 600;
}

/* リスト中央寄せ */
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}


/* 会社概要 */
.company-section {
  background-color: #f5f5f5;
  width: 100%;
  position: relative; /* ← これが重要！ */
  padding: 10px 60px 100px 60px;
  margin: 250px 0 0 0;
}


/* タイトル左寄せで、.title-groupと同じ位置に配置 */
.company-title-area {
  position: absolute;
  top: -125px;
  left: 60px;
  z-index: 10;
  text-align: left;
}

.company-title-ja {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-left: 8px;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.company-title-en {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 100px;
  color: #f5f5f5;
  margin: 0;
  line-height: 1;
}

/* 内容全体の中央揃え用 */
.center-style {
  max-width: 1200px;  /* ← 画面幅の制限をつける！ */
  margin: 0 auto;     /* ← 中央寄せ */
  padding: 0 24px;
}

.center-style .company-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-top: 100px; /* タイトルとの距離 */
}

.center-style .company-table div {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
}

.center-style .company-table dt {
  font-weight: bold;
  width: 120px;
  flex-shrink: 0;
  color: #333;
}

.center-style .company-table dd {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.company-content-wrapper {
  display: flex;
  flex-direction: row;  /* ← 横並びにする */
  align-items: flex-start;
  justify-content: flex-start;
}

.company-table {
  width: calc(100% - 360px - 60px); /* 画像幅＋余白ぶん引く */
  padding-right: 60px;
}

.company-photo-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 520px;
  height: auto;
  z-index: 1;
}

.company-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 40px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ====== Contact page ====== */
.contact-wrap{
  margin-top: 280px;              /* 固定ヘッダー分 */
  background: #f5f5f5;            /* 薄いグレー帯 */
}
.contact-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 360px 1fr;  /* 左：説明 / 右：フォーム */
  gap: 48px;
  position: relative;
	
}

/* 左側：見出し群 */
.contact-kicker{
  position: absolute;
  top: -190px;     /* ← -125px より小さい（= さらに上）数値にするのがコツ */
  z-index: 2;      /* ← “Contact” より前面に */
  margin: 0;
  font-weight: 700;
  color: #333;
  font-size: 18px;
}
.contact-big{
  position: absolute;
  top: -170px;     /* ← 現状の見え方に近い基準。上下は微調整OK */
   z-index: 0;
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 1;
  color: #f5f5f5;
  pointer-events: none;
}


.contact-lead {
  position: relative;
}

.contact-intro{
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.7;
  font-weight: 700;
  color: #333;
}
.contact-desc{
  color: #666;
  line-height: 2;
}



/* 右側：フォーム本体（2カラム） */
.contact-form-2col{
  background: #f5f5f5;          /* 画像に合わせてカード無しで面に馴染ませる */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-content: start;
}
.fg{ display: flex; flex-direction: column; gap: 8px; }
.fg-span2{ grid-column: 1 / -1; }

.contact-form-2col label,
.contact-form-2col legend{
  font-weight: 700;
  color: #333;
  font-size: 14px;
}
.req{ color:#FF5656; }

.contact-form-2col input[type="text"],
.contact-form-2col input[type="email"],
.contact-form-2col input[type="tel"],
.contact-form-2col select,
.contact-form-2col textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.contact-form-2col input:focus,
.contact-form-2col select:focus,
.contact-form-2col textarea:focus{
  border-color: #FF5656;
  box-shadow: 0 0 0 3px rgba(255,86,86,.12);
}
#message { resize: none; height: 168px; overflow: auto; }

/* ラジオ */
.contact-radio{
  border: 0; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.contact-radio label{ font-weight: 400; color:#333; }
.contact-radio input{ transform: translateY(1px); }

/* 同意 */
.contact-consent .agree{
  display: inline-flex; align-items: center; gap: 8px;
  color: #333; font-size: 14px;
}
.contact-consent a{ color:#666; text-decoration: underline; }

/* 送信ボタン（赤・大きく・角丸） */
.contact-send-btn{
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #FF5656;
  cursor: pointer;
  transition: transform .06s ease, opacity .2s ease;
}
.contact-send-btn:hover{ opacity:.92; }
.contact-send-btn:active{ transform: translateY(1px); }

/* レスポンシブ */
@media (max-width: 1024px){
  .contact-inner{
    grid-template-columns: 1fr;     /* 縦積み */
    gap: 24px;
  }
  .contact-big{ left: 16px; }
  .contact-intro{ margin-top: 48px; }
}
@media (max-width: 600px){
  .contact-form-2col{ grid-template-columns: 1fr; }
}



/* ===== Thanks page: layout base（ベースライン同期版） ===== */
.thanks-page .contact-wrap {
  --thanks-top: 36px;
  --thanks-size: clamp(48px, 14vw, 140px);

  position: relative;
  background: transparent;     /* グレー帯は ::after */
  width: 100%;                 /* ← 画面幅いっぱい */
  margin: 30px 0 0 0;                   /* ← 中央寄せ解除 */
  padding-left: 24px;
  padding-right: 24px;
  min-height: 100vh;
  padding-top: calc(var(--thanks-top) + var(--thanks-size) + 24px);
}

/* 透かし大文字 “Thank You”（位置とサイズは上の変数を使用） */
.thanks-page .contact-wrap::before{
  content: "Thank You";
  position: absolute;
  top: var(--thanks-top);
  left: 50px;                 /* ← 50px→24px：本文と同じ開始位置 */
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: var(--thanks-size);
  line-height: 1;
  color: #F5F5F5;
}


/* グレー帯 */
.thanks-page .contact-wrap::after {
  content: "";
  position: absolute;
  top: calc(var(--thanks-top) + var(--thanks-size) * 0.8);
  left: 0;
  right: 0;
  bottom: 0;                   /* ← 下端まで広げる */
  background: #f5f5f5;
  z-index: 0;
}

/* 小見出し「送信完了」は透かしの上に重ねる */
.thanks-page .contact-kicker{
  position: absolute;
  top: 6px;                   /* ← 少し下げる（好みで 0〜12px） */
  left: 50px;                 /* ← 50px→24px：本文と同じ開始位置 */
  z-index: 4;
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
  color: #333;
}

/* 本文はコンテナ内で左揃え（Thank You と同じ開始位置） */
.thanks-page .thanks-inner{
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 32px 50px 80px;       /* ← 左右は0（親が 24px を持つ） */
  text-align: left;
  display: block;
  grid-template-columns: 1fr !important; /* 念のため grid を無効化 */
}

/* Thanksページの本文は1カラムに戻す（grid解除） */
.thanks-page .thanks-inner{
  display: block;           /* ← これで grid を打ち消す */
  grid-template-columns: 1fr !important; /* 念のための保険 */
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  background: #f5f5f5;
}
