@charset "utf-8";

/* =========================================================
   COMPANY 共通：H1背景
========================================================= */
.h1_bg.company{
  position: relative;
  overflow: hidden;
  min-height: clamp(180px, 22vw, 300px);
  max-height: 300px;
}

/* 背景画像 + 青グラデ */
.h1_bg.company::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0,119,192,.55), rgba(0,119,192,.55)),
    url("/wp-content/themes/tygr-tozai/images/company_h1_bg.jpg") right center / cover no-repeat;
}

/* 左の青いポリゴン */
.h1_bg.company::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0D52A0;
  clip-path: polygon(0 0, 58% 0, 48% 100%, 0 100%);
}

.h1_bg.company .h1_inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: clamp(32px, 4vw, 64px) 20px;
}

.h1_bg.company .h1_text{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* タイトル本体 */
.h1_bg.company .h1_title.company{
  color: #fff;
  margin: 0;
  padding-top: 3.3em; /* 英字大見出し分の余白 */
  position: relative; /* ::afterの基準 */
}

/* 英字の大見出し（ページ別に content を切替） */
.h1_title.company::after{
  content: "COMPANY";
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(3.6rem, 6vw, 6.0rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}

.h1_title.company.greeting::after{ content: "GREETING"; }
.h1_title.company.philosophy::after{ content: "PHILOSOPHY"; }
.h1_title.company.profile::after{ content: "PROFILE"; }








/* =========================================================
   company/philosophy
========================================================= */
.philosophy-content h3 {
	margin-top: 40px;
}
p.philosophy-p{ padding-left: 20px; }

.p-guidelines{ padding-top: 50px; }
.p-guidelines li{
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 500;
}

/* =========================================================
   company/profile（カード）
========================================================= */
.base-guide{
	margin-top: 80px;
}

.base-guide__list{
  display: grid;
  gap: 22px;
}

.base-card{
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
}

.base-card_img{
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
}

.base-card_img img{
  display: block;
  width: 100%;
  aspect-ratio: 18 / 11;
  object-fit: cover;
}

.base-card_body{ 
	padding: 6px 0; 
}

.base-card_body h3{ 
	margin-top: 0; 
    margin-bottom: 30px;
}

p.base-card_addr {
	line-height: 1.4;
}

/* 左の青い縦線（※.base-card_name側の本体スタイルは既存CSSに任せる） */
.base-card_name::before{
  content: "";
  display: inline-block;
  width: 2px;
  height: 34px;
  top: -3px;
  background: #0d52a0;
}

.base-card_access dt{
  font-weight: 700;
  color: #222;
}
.base-card_access dd{
  margin: 0;
  color: #222;
}

a.base-card_btn{
  position: relative;          
  display: inline-flex;
  align-items: center;
  justify-content: center;     
  min-width: 160px;
  padding: 10px 44px 10px 30px;
  background: #0d52a0;
  border: 1px solid var(--primary-blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2rem;
  transition: color 0.3s ease;
  z-index: 1;
}

a.base-card_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-white);
    transition: width 0.3s ease;
    z-index: -1;
}

a.base-card_btn:hover::before {
    width: 100%;
}

.base-card_btn-ico{
  position: absolute;          
  right: 16px;                 
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  background: url(../images/icon_popup.svg) no-repeat center / contain;
  transition: background 0.3s ease;
}

a.base-card_btn:hover .base-card_btn-ico {
    background: url(../images/icon_popup_navy.svg) no-repeat center / contain;
}

a.base-card_btn:hover{ 
	/*opacity: .8;*/
  color: var(--primary-blue) !important;
}


/* =========================================================
   company/greeting
========================================================= */
.greeting_inner{
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

.greeting_title{
  font-size: 28px;
  font-weight: 500;
  line-height: 1.7;
  color: #000;
  border-bottom: none;
}

.greeting_sign{
  margin: 60px 0 0;
  line-height: 1.8;
  text-align: end;
}

.greeting_photo{
  margin: 0;
  justify-self: end;
  width: 380px;
  max-width: 100%;
}

.greeting_photo img{
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.greeting_inner p{
  line-height: 1.6;
}

/* =========================================================
   SP（<=767）
========================================================= */
@media (max-width: 767px){
  /* H1背景：SPだけ画像位置調整 */
  .h1_bg.company::after{
    background-position: 75% center;
  }

  /* 左の青いポリゴン */
  .h1_bg.company::before{
    clip-path: polygon(0 0, 60% 0, 35% 100%, 0 100%);
  }		
	
  /* philosophy */
  .p-guidelines{ padding-top: 0; }
  .p-guidelines li{ font-size: 1.5rem; }

  /* profile（カード） */
  .base-card{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* greeting */
  .greeting_inner{
    grid-template-columns: 1fr;
    gap: 18px;
  }
	
  .greeting_title {
    font-size: 22px;
  }
	
  .greeting_photo{
    justify-self: center;
    width: min(320px, 90vw);
    order: -1;
  }
  .greeting_sign{
    text-align: left;
	margin-top: 30px;
  }
}
