/* ========================================================
   common.css  —  株式会社新成  共通パーツ
   対象: ヘッダー / グローバルナビ / コンタクトセクション / フッター
   ======================================================== */

/* ========== CSS VARIABLES (共通) ========== */
:root {
  --primary: #1e9d8d;
  --primary-dark: #157a6e;
  --primary-light: #e6f7f5;
  --accent: #f5a623;
  --navy: #0b2d42;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #f0f4f3;
  --white: #fff;
  --grad: linear-gradient(135deg, #1e9d8d 0%, #157a6e 50%, #0b6b5c 100%);
}

/* ========== HEADER LOGO ========== */
#header h1 a img { width: 100%; display: block; }

/* ========== FOOTER LOGO ========== */

/* ========== HEADER ========== */
.menu_wrap { position: relative; z-index: 500; }

#header {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 10000;
  padding: 10px 72px;
  background-color: #fff;
}
#header h1 a {
  display: block;
  width: 230px;
}
#header .menu_list {
  display: flex;
  gap: 36px;
}
#header .menu_list a {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .04em;
  position: relative;
}
#header .menu_list a span {
  display: block;
  font-size: .9rem;
  margin-top: 5px;
  opacity: .7;
  font-family: 'Kanit', sans-serif;
}
#header .menu_list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width .3s ease;
}
#header .menu_list a:hover::after { width: 100%; }

/* hamburger */
.hamburger {
  display: block;
  position: relative;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 99999;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hamburger_line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.25, .46, .45, .94), opacity .35s ease;
}
.hamburger_line-1 { top: 0; }
.hamburger_line-2 { top: 9px; }
.hamburger_line-3 { top: 18px; }
body.nav-open .hamburger_line-1 { transform: translateY(9px) rotate(45deg); }
body.nav-open .hamburger_line-2 { opacity: 0; }
body.nav-open .hamburger_line-3 { transform: translateY(-9px) rotate(-45deg); }

/* global nav overlay */
.global-nav {
  display: block;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 45, 66, .95);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
  overflow-y: auto;
}
body.nav-open .global-nav { opacity: 1; visibility: visible; }
.navi_wrap { max-width: 900px; margin: 0 auto; padding: 80px 5% 60px; }
.cls_btn {
  display: block;
  position: absolute;
  top: 28px;
  right: 4vw;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 999;
  background: none;
  border: none;
}
.cls_btn::before, .cls_btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
.cls_btn::before { transform: translateY(-50%) rotate(45deg); }
.cls_btn::after  { transform: translateY(-50%) rotate(-45deg); }
.navi_inr h2 {
  margin-bottom: 48px;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #fff;
  letter-spacing: .12em;
}
.navi_inr h2 span { display: block; font-size: .9rem; opacity: .6; letter-spacing: .2em; margin-top: 3px; }
.link_area h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: .2em;
  margin-bottom: 16px;
}
.link_area ul { margin-bottom: 40px; }
.link_area ul li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.link_area ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.link_area ul li a .en { font-size: 1.1rem; opacity: .5; font-family: 'Kanit', sans-serif; }
.navi_inr .copy {
  display: block;
  color: rgba(255, 255, 255, .3);
  font-size: .9rem;
  font-family: 'Kanit', sans-serif;
  margin-top: 40px;
}

/* ========== CONTACT SECTION ========== */
.contact_section {
  padding: 100px 0 120px;
  background: var(--bg);
  position: relative;
}
.contact_section .section_header {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}
.tell_mail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.tm_con {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.tm_con h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1;
  letter-spacing: .04em;
  margin-right: 20px;
  flex-shrink: 0;
}
.tm_con h3 span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: .06em;
  margin-top: 6px;
}
.tm_con .divider {
  width: 1px;
  height: 60px;
  background: rgba(11, 45, 66, .2);
  margin: 0 28px;
  flex-shrink: 0;
}
.tm_con .txt .en02 {
  display: block;
  font-family: 'Lexend Tera', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 2.8vw, 3.2rem);
  color: var(--navy);
  letter-spacing: .02em;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color .3s;
}
.tm_con .txt .en02:hover { color: var(--primary); }
.tm_con .txt > p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  white-space: nowrap;
}
.tm_con_sep {
  width: 1px;
  height: 70px;
  background: rgba(11, 45, 66, .15);
  margin: 0 48px;
  flex-shrink: 0;
}
.tm_con_mail {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tm_con_mail h3 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1;
  letter-spacing: .04em;
  margin-right: 20px;
  flex-shrink: 0;
}
.tm_con_mail h3 span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: .06em;
  margin-top: 6px;
}
.tm_con_mail .divider {
  width: 1px;
  height: 60px;
  background: rgba(11, 45, 66, .2);
  margin: 0 28px;
  flex-shrink: 0;
}
.contact_mail_btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  width: 280px;
  height: 64px;
  background: #fff;
  border: 1px solid rgba(11, 45, 66, .15);
  border-radius: 3px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .3s, color .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.contact_mail_btn::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact_mail_btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.contact_mail_btn:hover::after { background: #fff; }

/* contact section title helpers (con_tit / con_s_tit は各ページで定義) */
@media screen and (max-width: 900px) {
  .tell_mail { flex-direction: column; align-items: flex-start; gap: 40px; }
  .tm_con_sep { width: 100%; height: 1px; margin: 0; }
  .contact_mail_btn { width: 240px; }
}
@media screen and (max-width: 600px) {
  .contact_section .section_header { flex-direction: column; gap: 4px; }
  .tm_con, .tm_con_mail { flex-wrap: wrap; gap: 16px; }
  .tm_con .divider, .tm_con_mail .divider { display: none; }
}

/* ========== FOOTER ========== */
#footer {
  background: var(--navy);
  padding: 56px 0 0;
}
.footer_inr {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}
.footer_grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 210px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer_logo img { background-color: #fff; width: 230px; }
.footer_addr {
  margin-top: 20px;
  font-size: 1.43rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 8px;
}
.footer_links { width: 540px; }
.footer_links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-top: 69px;
}
.footer_links ul li { border-bottom: none; }
.footer_links ul li a {
  display: inline-block;
  padding: 8px 0;
  font-size: 1.54rem;
  color: rgba(255, 255, 255, 1);
}
.footer_links ul li a:hover { color: #fff; opacity: .7; }
.footer_bottom {
  padding: 20px 0;
  text-align: center;
}
.footer_bottom p {
  font-size: 1.32rem;
  color: rgba(255, 255, 255, .3);
  font-family: 'Kanit', sans-serif;
}

/* top link */
.top_link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.top_link::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}
.top_link.show { opacity: 1; visibility: visible; }

@media screen and (max-width: 900px) {
  .footer_grid { grid-template-columns: 1fr; gap: 32px; }
  .footer_links { width: 100%; }
}

/* ========== RESPONSIVE HEADER ========== */
@media screen and (min-width: 801px) {
  .hamburger { display: none; }
}
@media screen and (max-width: 800px) {
  #header .menu_list { display: none; }
  #header { padding: 10px 20px; }
  .contact_section { padding: 56px 0 64px; }
  .contact_section .section_header { margin-bottom: 32px; }
}
