/* =============================================
   co-nect Corporate Theme — theme.css
   ============================================= */

/* ---------- カスタムプロパティ ---------- */
:root {
  --orange:       #ff6600;
  --orange-dark:  #e55a00;
  --orange-light: #fff4ee;
  --orange-mid:   #ffede0;
  --dark:         #1a1a1a;
  --off-white:    #fafaf9;
}

/* ---------- ベース ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; position: relative; z-index: 10; }

/* ---------- カスタムカラークラス ---------- */
.bg-orange       { background-color: var(--orange); }
.bg-orange-light { background-color: var(--orange-light); }
.bg-dark         { background-color: var(--dark); }
.bg-off-white    { background-color: var(--off-white); }
.text-orange     { color: var(--orange); }
.border-orange   { border-color: var(--orange); }

/* ---------- オレンジ環境光グロー（全ページ fixed） ---------- */
.orange-glow-fixed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orange-glow-fixed .glow-tr {
  position: absolute;
  top: -10%; right: -5%;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,102,0,.10) 0%,
    rgba(255,130,0,.05) 45%,
    transparent 70%);
}
.orange-glow-fixed .glow-ml {
  position: absolute;
  top: 35%; left: -8%;
  width: 40vw; height: 40vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,102,0,.07) 0%,
    transparent 68%);
}
.orange-glow-fixed .glow-br {
  position: absolute;
  bottom: -5%; right: 10%;
  width: 45vw; height: 45vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255,120,0,.08) 0%,
    transparent 65%);
}

/* ---------- セクション内スクロールグロー ---------- */
.scroll-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.site-header .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { height: 1.75rem; width: auto; }

.nav-primary { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-primary { display: flex; } }

/* wp_nav_menu の ul/li を flex レイアウトに透過させる */
.nav-primary > ul,
.mobile-nav > ul { list-style: none; padding: 0; margin: 0; display: contents; }
.nav-primary > ul > li,
.mobile-nav > ul > li { display: contents; }

.nav-primary a {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color .15s;
}
.nav-primary a:hover { color: var(--orange); }

.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  background: var(--orange);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .15s;
}
.btn-contact:hover { background: var(--orange-dark); }

/* モバイルメニュー */
.menu-toggle {
  display: flex;
  align-items: center;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--orange); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--dark);
  color: #fff;
}
.site-footer .inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.site-footer .footer-logo img { height: 1.75rem; width: auto; filter: brightness(0) invert(1); }
.site-footer p, .site-footer li { font-size: .875rem; color: #9ca3af; }
.site-footer h4 {
  font-size: .75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.site-footer a { color: #9ca3af; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-copy {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  color: #6b7280;
}
@media (min-width: 640px) {
  .footer-copy { flex-direction: row; justify-content: space-between; }
}

/* ---------- セクション共通見出し ---------- */
.section-heading { text-align: center; margin-bottom: 3.5rem; }
.section-heading .en {
  font-size: 4.5rem;
  font-weight: 100;
  color: var(--dark);
  letter-spacing: .2em;
  line-height: 1;
}
@media (min-width: 768px) { .section-heading .en { font-size: 6rem; } }
.section-heading .ja { font-size: .875rem; color: #6b7280; margin-top: 1rem; }
.section-heading .bar {
  width: 2rem; height: 2px;
  background: var(--orange);
  margin: 1rem auto 0;
}

/* ---------- CTAセクション（背景写真） ---------- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-section .cta-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  width: 100%; height: 100%;
}
.cta-section .cta-overlay { position: absolute; inset: 0; background: rgba(26,26,26,.75); }
.cta-section .cta-fade-top {
  position: absolute;
  inset-inline: 0; top: 0;
  height: 10rem;
  background: linear-gradient(to bottom, var(--from-color, #fafaf9) 0%, rgba(250,250,249,0) 100%);
}
.cta-section .cta-fade-bottom {
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
}
.cta-section .cta-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cta-section .cta-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cta-section h2 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.4;
}
@media (min-width: 768px) { .cta-section h2 { font-size: 2.25rem; } }
.cta-section p { color: #d1d5db; font-size: 1rem; line-height: 1.75; margin-bottom: 2.5rem; }

/* ---------- ボタン ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  border: 1px solid #d1d5db;
  color: var(--dark);
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- ページヒーロー共通 ---------- */
.page-hero {
  position: relative;
  background: #fff;
  overflow: hidden;
  padding: 6rem 0;
}
.page-hero .inner { position: relative; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.page-hero .label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-size: 4.5rem;
  font-weight: 100;
  color: var(--dark);
  letter-spacing: .2em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 6rem; } }
.page-hero .sub { font-size: .875rem; color: #6b7280; }
.page-hero .bar { width: 2rem; height: 2px; background: var(--orange); margin-top: 1rem; }

/* ---------- ニュース一覧 ---------- */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 640px) {
  .news-item { flex-direction: row; align-items: center; }
}
.news-item:hover { border-color: rgba(255,102,0,.3); box-shadow: 0 1px 6px rgba(0,0,0,.05); }

.news-date { font-size: .875rem; color: #9ca3af; font-weight: 500; flex-shrink: 0; min-width: 7rem; }

.news-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.news-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  flex: 1;
  transition: color .15s;
}
.news-item:hover .news-title { color: var(--orange); }

/* ---------- カードコンポーネント ---------- */
.card {
  background: var(--off-white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #f3f4f6;
  transition: border-color .15s;
}
.card:hover { border-color: rgba(255,102,0,.3); }

/* ---------- ヒーロー装飾（幾何学図形） ---------- */
.deco-rect {
  position: absolute;
  border-radius: .5rem;
  background: var(--orange);
  pointer-events: none;
}

/* ---------- ヒーローグリッド（トップページ） ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  padding: 6rem 0;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 4fr 6fr;
    gap: 4rem;
    padding: 4rem 0 4rem;
  }
}
.hero-img-mobile { display: block; border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.15); aspect-ratio: 4/3; }
.hero-img-mobile img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-img-desktop { display: none; }
@media (min-width: 1024px) {
  .hero-img-mobile { display: none; }
  .hero-img-desktop {
    display: block;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.18);
    height: 78vh;
    margin-bottom: -12rem;
  }
  .hero-img-desktop img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }
}

/* ---------- サービスグリッド（レスポンシブ） ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .service-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- フラグカードアイコン ---------- */
.flag-card-icon { display: flex; justify-content: center; margin-bottom: 1rem; color: var(--orange); }
.flag-card-icon svg { width: 1.75rem; height: 1.75rem; }

/* ---------- アニメーション ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .7s ease-out forwards; }

@keyframes flagShape1 {
  0%, 100% { transform: rotate(-9deg) translateY(0px); opacity: .6; }
  50%       { transform: rotate(-7deg) translateY(-6px); opacity: .85; }
}
@keyframes flagShape2 {
  0%, 100% { transform: rotate(-9deg) translateX(0px); opacity: .4; }
  50%       { transform: rotate(-6deg) translateX(4px); opacity: .6; }
}
@keyframes flagShape3 {
  0%, 100% { transform: rotate(6deg) translateY(0px); opacity: .35; }
  50%       { transform: rotate(8deg) translateY(-4px); opacity: .55; }
}
