/*
Theme Name:tpl03
Template:astra
Version:1.0.0
*/
:root {
  --font-serif: 'Times New Roman', 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}
body {
  font-family: var(--font-sans);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
h1, h2, h3, h4, h5, h6, .serif-text, .elementor-heading-title, .uael-sub-heading {
  font-family: var(--font-serif);
  line-height: 1.3;
}
.bg-blue {
  background: linear-gradient(135deg, #0b1a30 0%, #1b3d6d 45%, #3b74b8 100%);
}
span.ib {
  display: inline-block;
}
/* テーブル */
table {
  border-collapse: collapse;
  border: none;
}
table th, table td {
  background: var(--ast-global-color-5);
}
table th {
  min-width: 30%;
  padding: 15px;
  border-right: none;
  text-align: left;
  vertical-align: top;
}
table td {
  border-right: none;
  padding: 15px;
}
table th p, table td p {
  margin: 0 !important;
}
/* Header
---------------------------------------- */
header {
  position: relative;
  z-index: 9999;
}
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: 0.3s;
  padding: 20px 0;
  background-color: transparent;
}
#header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}
/* メニュー展開時：ヘッダーの背景と影を透明にする */
#header:has(.hamburger.active) {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* メニュー展開時：ロゴをフワッと隠してクリックも無効化する */
#header:has(.hamburger.active) .logo {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.logo-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}
.logo-text .en {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.1;
}
.logo-text .jp {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
}
/* スクロール時のヘッダー会社名グラデーション */
#header.scrolled .logo-text .en {
  background: linear-gradient(90deg, #1b3d6d 0%, #3b74b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#header.scrolled .logo-text .jp {
  color: #333333;
}
ul.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  margin: 0;
}
ul.nav-list a {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
}
#header.scrolled ul.nav-list a {
  color: #333;
}
ul.nav-list a:hover {
  color: var(--ast-global-color-7);
}
ul.nav-list li.btn-contact a {
  background-color: var(--ast-global-color-7);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
}
ul.nav-list li.btn-contact:hover a {
  background-color: #a68950;
}
/* --- ハンバーガーメニュー・モバイルメニュー用 --- */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent !important;
  z-index: 10000; /* モバイルメニューより上に */
  position: relative;
  padding: 10px; /* タップ領域確保 */
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: all 0.3s;
  border-radius: 0;
}
.hamburger span:last-child {
  margin-bottom: 0;
}
/* スクロール時（白背景）のハンバーガー色 */
#header.scrolled .hamburger span {
  background-color: var(--ast-global-color-0);
}
/* メニュー開閉時のアニメーション（バツ印） */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--ast-global-color-0);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--ast-global-color-0);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
  z-index: 90 !important;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu ul.offcanvas-list {
  margin: 0;
  list-style-type: none;
}
.mobile-menu a {
  font-size: 1.1rem;
  color: var(--ast-global-color-0);
  font-weight: bold;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.mobile-menu a.btn-contact {
  background-color: var(--ast-global-color-7);
  color: #fff;
  text-align: center;
  padding: 15px 0;
  border-radius: 4px;
  margin-top: 20px;
  border-bottom: none;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* --- ここまでモバイルメニュー用 --- */
/* Footer
---------------------------------------- */
footer {
  background-color: #333333;
  color: #aaaaaa;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.copyright {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
}
/* Header/Footerのレスポンシブ
---------------------------------------- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 20px;
  }
}
@media (max-width: 1023px) {
  /*
  .nav-list {
    display: none;
  }
  .hamburger {
    display: block;
  }
*/
  /* 要素名(ul)を追加して詳細度を上げる、または .global-nav ごと消す */
  ul.nav-list, .global-nav {
    display: none !important;
  }
  /* Astraテーマなどの強力なCSSに打ち勝つために !important を付与 */
  .hamburger {
    display: block !important;
  }
  .header-inner {
    padding: 0 15px;
  }
}
@media (max-width: 768px) {
  /* スマホ時はメイン画像のみにして顔を見せる */
  .sp-only-hide {
    display: none !important;
  }
  footer .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}
/* コンテンツ
---------------------------------------- */
#results .elementor-counter-number-suffix {
  font-size: 1.4rem;
  color: var(--ast-global-color-7);
}
#results .elementor-counter-number-wrapper {
  align-items: flex-end;
}
#results .elementor-counter-title {
  padding: 10px 20px;
  background: var(--ast-global-color-6);
  border-radius: 4px;
}
#results .bg-blue::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 10px solid #2a5a9a;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}
#results .measure-list li {
  background: var(--ast-global-color-7);
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #ccc;
}
.table_corporate table th {
  width: 30%;
}
.table_corporate table td {
  width: 70%;
}
#corporate .uael-timeline-widget {
  position: relative;
  transition: transform 0.3s;
  z-index: 10;
}
#corporate .uael-timeline-widget:hover {
  transform: translateX(10px);
  z-index: 10;
}
#flow .flow-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 15px solid var(--ast-global-color-1);
  z-index: 2;
}
@media (max-width: 768px) {
#flow .flow-step::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    top: auto;
    right: auto;
    transform: translateX(-50%);
    border-top: 15px solid var(--ast-global-color-1);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: none;
    z-index: 2;
  }
}

/* フォーム
------------------------------------------ */
.look {
  padding: 2%;
  font-size: 14px;
}
.look ul li p {
  margin: 0;
}
.scroll {
  height: 200px;
  margin: 1em;
  padding: 2%;
  background: var(--ast-global-color-5);
  border: 1px solid var(--ast-global-color-7);
  font-size: 85%;
  overflow-x: hidden;
  overflow-y: scroll;
}
.scroll h3 {
  margin: 15px 0;
  font-size: 18px;
}
.scroll h4 {
  margin: 15px 0;
  font-size: 16px;
}
/*Contact Form 7カスタマイズ*/
/* 必須・任意のサイズ調整 */
table.inquiry .haveto, table.inquiry .any {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 10px;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1;
}
/*必須の調整*/
.haveto {
  background: var(--ast-global-color-7);
  color: var(--ast-global-color-5);
}
/*任意の調整*/
.any {
  background: var(--ast-global-color-1);
  color: var(--ast-global-color-5);
}
@media(max-width:767px) {
  input[type="text"], input[type="tel"], input[type="email"], textarea {
    width: 90vw !important;
    font-size: 16px !important;
  }
  table.inquiry th, table.inquiry td {
    display: block;
    width: 100%;
    border-top: none;
    box-sizing: border-box;
  }
  table.inquiry th {
    padding: 15px 0 0 0;
    border-bottom: none;
  }
  table.inquiry tr:first-child th {
    border-top: 1px solid #ccc;
  }
  table.inquiry td {
    padding: 5px 0 15px 0;
    border-bottom: 1px solid #ccc;
  }
}