/* =============================
   Minimal Visual (PC/SP切替 + ゆっくりズーム&フェード)
   ============================= */

:root{
  --hero-h-pc: 640px;
  --hero-ratio-sp: 150%; /* 元CSSの padding-top:150% を踏襲 */
  --anim-duration: 5s;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{ margin:0; }

.hero{
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #fafafa;
  height: var(--hero-h-pc);
}

/* 背景（画像） */
.hero__bg{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity: 0;
  transform: scale(1.05);
  animation: heroZoomFade var(--anim-duration) ease-out forwards;
  will-change: transform, opacity;
}

.hero__bg--pc{ 
  background-image: url('/wp/wp-content/themes/tgc-jinza/img/image.png'); 
  background-size: 1600px;
}
.hero__bg--sp{ background-image: url('/wp/wp-content/themes/tgc-jinza/img/image_sp.jpg'); }

/* 初期表示：PCはPC画像のみ */
.hero__bg--pc{ display:block; }
.hero__bg--sp{ display:none; }

@keyframes heroZoomFade{
  to{
    opacity: 1;
    transform: scale(1);
  }
}

/* SP（767px以下）：高さは比率で作る（元の実装に近い見え方） */
@media (max-width: 767px){
  .hero{
    height: auto;
    padding-top: var(--hero-ratio-sp);
  }
  .hero__bg--pc{ display:none; }
  .hero__bg--sp{ display:block; }
}

/* ユーザー設定でアニメーション抑制（アクセシビリティ） */
@media (prefers-reduced-motion: reduce){
  .hero__bg{ animation: none; opacity:1; transform:none; }
}


.hero {
  position: relative;
  overflow: hidden;
}

/* 画像は既存のままでOK */
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキスト全体を中央に */
.hero-text {
  position: absolute;
  inset: 0;               /* top/right/bottom/left:0 */
  display: flex;
  align-items: center;    /* 縦中央 */
  justify-content: center;/* 横中央 */
  z-index: 2;
  pointer-events: none;   /* クリックを邪魔しない */
  margin-top: -100px;
}

/* Enable interactions for CTA inside hero-text */
.hero-text a,
.hero-text button,
.hero-text .btn,
.hero-text .btn-c{
  pointer-events: auto;
  cursor: pointer;
}


/* タイトル文字 */
.hero-title {
  color: #fff;
  text-align: center;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* スマホ用調整 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 20px;
  }
}


.hero-text a{ text-decoration: none; }

.mainTxt {
    margin-bottom: 30px;
}


.mainTxt p {
	font-size:4rem !important;
	font-weight:555!important;
}
@media only screen and (max-width: 896px) {
	.mainTxt p {
	font-size:3.3rem !important;
	font-weight:555 !important;
	}
	.main .mainVisual .mvBtn p {
	margin-bottom: 41px !important;	
	}
}
.btn--orange {
  color: #fff;
  background-color: #eb6100;
}

.btn--orange:hover {
  color: #fff;
  background: #db3914;
}

.btn--green {
  color: #fff;
  background-color: #00b164;
}

.btn--green:hover {
  color: #fff;
  background: #8ac395;
}

.btn-c {
  font-size: 2rem;
  position: relative;
  padding: 1.5rem 3rem 1.5rem 2rem;
  border-radius: 15px;
}

.btn-c i.fa {
  margin-right: 1rem;
}
.mb50 {
	margin-bottom:50px;
}
@media only screen and (min-width:897px){
.mt200 {
	margin-top:200px;
}
}
.login {
	width:285px;
	margin:250px auto 0 auto;
	text-align: center;
}
img.tgc_name {
    width: 65.13vw;
    max-width: 1251px;
    display: block;
    position: absolute;
    right: 15.43%;
    bottom: -6.64vw;
}
@media only screen and (max-width: 896px) {
img.tgc_name {
    width: 80.13vw;
    max-width: 1251px;
    display: block;
    position: absolute;
    right: 20.43%;
    bottom: -20.64vw;
}
.login {
	width:285px;
	margin:150px auto 0 auto;
	text-align: center;
}
}