/* ================= 共通 Fonts ================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ================= ヘッダー（統合ロゴ版） ================= */

/* 左上のロゴリンク（整列用） */
.logo-header {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* 統合SVG（①＋②） */
.brand-lockup {
  display: block;
  height: 50px;     /* 全体の見え方をここで一括コントロール */
  width: auto;
}

/* ヘッダー全体のレイアウト */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

/* グローバルナビ */
.global-nav .menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav .nav-link {
  text-decoration: none;
  font-size: 16px;
  color: #333;
}
.global-nav .nav-link:hover {
  color: #0073aa;
}

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .header-inner { padding: 6px 14px; }
  .brand-lockup { height: 34px; } /* モバイルで少し小さく */
}

/* ===== モバイル調整 ===== */
@media (max-width: 640px) {
  .header-inner { padding: 6px 14px; }
  .main-logo { height: 32px; }
  .company-name-svg { height: 24px; }
  .global-nav .menu { gap: 12px; }
}

/* === Header: place language switch at the left side of nav === */
.header-nav{
  display: flex;
  align-items: center;
  gap: 14px;            /* プルダウンとナビの間隔 */
}

/* プルダウン見た目 */
.lang-switch select{
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
}

/* ラベルは視覚的に非表示（スクリーンリーダー向けに残す） */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* モバイル時は少しコンパクトに */
@media (max-width: 640px){
  .lang-switch select{ font-size: 13px; padding: 5px 8px; }
}


/* ===== Key Visual ===== */
.keyvisual {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.keyvisual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* 文字を中央揃えで重ねる */
.keyvisual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  z-index: 1;
  background: rgba(0,0,0,0.25);
}

.site-title {
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.site-caption {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

/* ===== Philosophy ===== */
.philosophy, .philosophy * {
  font-family: 'Montserrat', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN',
               'Yu Gothic', 'Meiryo', sans-serif;
}

.philo-head {
  text-align: center;
  padding: clamp(24px, 6vw, 56px) 0;
}
.philo-overline {
  font: 700 clamp(12px, 1.6vw, 14px) 'Montserrat', sans-serif;
  letter-spacing: .12em;
  color: #7a8aa0;
  margin: 0 0 6px;
}
.philo-title {
  font: 800 clamp(26px, 4.6vw, 44px) 'Montserrat', sans-serif;
  letter-spacing: .02em;
  margin: 0 0 14px;
  color: #23384d;
}
.philo-lead {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.9;
  color: #3a4a5a;
  margin: 0 auto;
  max-width: 900px;
}

.philo-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: clamp(24px, 6vw, 56px);
}

.philo-text .philo-sub {
  font: 800 clamp(20px, 3vw, 28px) 'Noto Sans JP', sans-serif;
  color: #23384d;
  margin: 0 0 10px;
}
.philo-text p {
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.9;
  color: #324456;
  margin: 0 0 12px;
}

.philo-illust {
  width: 100%;
  background: #f5f7fa;
  border-radius: 12px;
  overflow: hidden;
}
.philo-illust img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .philo-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}

/* ===== Service (一覧) ===== */
.service-head {
  text-align: center;
  padding: clamp(24px, 6vw, 56px) 0;
}
.service-overline {
  font: 700 clamp(12px, 1.6vw, 14px) 'Montserrat', sans-serif;
  letter-spacing: .12em;
  color: #7a8aa0;
  margin: 0 0 6px;
}
.service-title {
  font: 800 clamp(26px, 4.6vw, 44px) 'Noto Sans JP', 'Montserrat', sans-serif;
  letter-spacing: .02em;
  margin: 0;
  color: #23384d;
}
.service-heading {
  font: 700 clamp(18px, 2.6vw, 22px) 'Noto Sans JP', 'Montserrat', sans-serif;
  color: #23384d;
  margin: 0 0 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  list-style: none;
  padding: 0;
  margin: 40px 0;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.service-media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-body .asterisk {
  font-size: 18px;
  margin-bottom: 6px;
  display: block;
}
.service-desc {
  font-size: clamp(14px, 1.8vw, 15px);
  line-height: 1.7;
  margin: 0;
}

/* MORE ボタン（一覧カード用） */
.buttonBox { margin-top: 10px; }
.seeDetail{
  display:inline-block;
  padding:6px 16px;
  font-size:14px;
  border:1px solid #333;
  background:transparent;
  color:#333;
  text-decoration:none;
  border-radius:4px;
  line-height:1.2;
  cursor:pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.seeDetail:hover,
.seeDetail:focus-visible{
  background:#333;
  color:#fff;
  border-color:#333;
  text-decoration:none;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-link { flex-direction: row; align-items: center; gap: 20px; }
  .service-card.image-right .service-link { flex-direction: row-reverse; }
  .service-media { flex: 1 1 50%; }
  .service-body { flex: 1 1 50%; }
}

/* ================= News ================= */
#news .news-header { margin: 24px 0 8px; }
#news .news-heading-en {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-block;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
  border-top: 1px solid #e5e5e5;
}
.news-row { border-bottom: 1px solid #e5e5e5; }
.news-link {
  display: grid;
  grid-template-columns: 0px 160px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  text-decoration: none;
  color: inherit;
}
.news-thumb { width: 0; height: 0; overflow: hidden; border-radius: 6px; }
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}
.news-row.has-thumb .news-link {
  grid-template-columns: 180px 160px 1fr auto;
}
.news-row.has-thumb .news-thumb { width: 180px; height: auto; }
.news-meta { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.news-date { font-size: 14px; color: #333; }
.news-label {
  font-size: 12px;
  padding: 4px 10px;
  border: 1.5px solid #4a4dff;
  color: #4a4dff;
  border-radius: 3px;
  line-height: 1;
}
.news-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-arrow {
  font-size: 24px;
  padding-left: 12px;
  color: #4a4dff;
}
.news-more { display: flex; justify-content: flex-end; margin-top: 16px; }
.news-more-btn {
  display: inline-block;
  background: #4a4dff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .25s;
}
.news-more-btn:hover { opacity: .9; }
@media (max-width: 768px) {
  .news-link {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
  }
  .news-meta { order: -1; }
  .news-title { grid-column: 1/2; }
  .news-arrow { grid-column: 2/3; align-self: center; }
  .news-row.has-thumb .news-link { grid-template-columns: 1fr auto; }
  .news-row.has-thumb .news-thumb { width: 100%; grid-column: 1/-1; order: 2; }
}

/* ================= Contact Hero ================= */
.contact-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  margin: 16px 0 32px;
  border-bottom: 4px solid;
}
.contact-hero-media,
.contact-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.2) 60%,
    rgba(0,0,0,0) 100%);
  z-index: 1;
}
.contact-hero-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(16px,4vw,32px);
  z-index: 2;
}
.contact-hero-copy { color: #fff; }
.contact-hero-en {
  font-size: clamp(28px,6vw,64px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 8px;
}
.contact-hero-ja {
  font-size: clamp(16px,2.6vw,28px);
  font-weight: 700;
  margin: 0;
}
.contact-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #4a4dff;
  color: #fff;
  text-decoration: none;
  padding: clamp(12px,2vw,20px) clamp(16px,3vw,28px);
  border-radius: 8px;
  font-weight: 800;
  font-size: clamp(14px,2vw,20px);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transition: transform .1s, opacity .25s;
}
.contact-hero-cta:hover { opacity: .92; transform: translateY(-1px); }
.contact-hero-cta:active { transform: translateY(0); }
.contact-hero-cta .cta-arrow { font-size: 1.4em; line-height: 1; }
@media (max-width: 768px) {
  .contact-hero { aspect-ratio: 16/9; }
  .contact-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    gap: 12px;
  }
}

/* ================= Footer (final) ================= */
.footer { background:#000; color:#fff; }
.footerContents{ max-width:1200px; margin:0 auto; padding:40px 20px 20px; }

.footer-inner{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:20px; margin-bottom:20px;
}

/* 左ロゴ */
.footer-left{ flex:1 1 40%; display:flex; justify-content:center; align-items:center; text-align:center; }
.footer-left .enterprise-logo img{ max-width:240px; height:auto; display:block; }

/* 右情報 */
.footer-right{ flex:1 1 50%; font-size:.95rem; text-align: center;}
.footer-right .footer-title{ font-weight:700; margin-bottom:8px; }
.footer-right .address,.footer-right .contact,.footer-right .license{ margin-bottom:6px; line-height:1.6; }
.footer-right a{ color:#fff; text-decoration:underline; }
.footer-right a:hover{ color:#ccc; }

/* サイトマップ */
.footerContents-sitemap{ border-top:1px solid rgba(255,255,255,.2); padding-top:14px; margin-top:6px; }
.footer-nav .menu{ list-style:none; padding:0; margin:0; display:flex; gap:18px; flex-wrap:wrap; justify-content:center; }
.footer-nav .nav-link{ color:#fff; text-decoration:none; font-size:14px; }
.footer-nav .nav-link:hover{ color:#ccc; text-decoration:underline; }

/* コピーライト */
.copyright{ text-align:center; padding:12px 0 6px; border-top:1px solid rgba(255,255,255,.2); }
.copyright-text{ color:rgba(255,255,255,.85); font-size:12px; }

/* SP */
@media (max-width:768px){
  .footer-inner{ flex-direction:column; align-items:center; }
  .footer-left,.footer-right{ flex:1 1 100%; text-align:center; }
  .footer-left .enterprise-logo img{ max-width:180px; }
}
/* Footer: プライバシーポリシー */
.footer-privacy{
  margin-top: 8px;        
  text-align: center;
}
.footer-privacy .privacy-link{
  display: inline-block;
  font-size: 12px;       
  line-height: 1.8;
  color: #9aa0a6;        
  text-decoration: none;
}
.footer-privacy .privacy-link:hover,
.footer-privacy .privacy-link:focus{
  text-decoration: underline;
  color: #b0b7c3;
  outline: none;
}