/* ============================================
   Valley.co.jp Clone - SINEN Corp
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffffff;
  --base-font-color: #191919;
  --accent-color: #2d31a1;
  --accent-gradient: linear-gradient(135deg, #2d31a1, #5b6ad4);
  --button-bg: #32373c;
  --button-text: #ffffff;
  --section-padding: 100px 0;
  --container-width: 1100px;
  --font-size-small: 13px;
  --font-size-base: 16px;
  --font-size-medium: 20px;
  --font-size-large: 36px;
  --font-size-xlarge: 42px;
  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
  --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
  --transition-base: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  color: var(--base-font-color);
  background-color: var(--primary-color);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--base-font-color);
}

.logo .logo-mark {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-color);
}

.logo .logo-divider {
  color: #ccc;
  font-weight: 300;
}

.logo .logo-sub {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

/* --- Navigation --- */
.gnav {
  display: flex;
  align-items: center;
  gap: 0;
}

.gnav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.gnav-list li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base-font-color);
  position: relative;
}

.gnav-list li a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.gnav-list li a:hover::after {
  width: 60%;
}

.gnav-sns a {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-left: 10px;
  color: #333;
}

.gnav-sns a:hover {
  color: var(--accent-color);
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--base-font-color);
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-list {
  text-align: center;
}

.mobile-menu-list li {
  margin: 20px 0;
}

.mobile-menu-list li a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--base-font-color);
}

.mobile-menu-list li a:hover {
  color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  /* 横幅基準でアスペクト比維持（元画像 4096:2184 ≒ 53.3%） */
  height: 53.3vw;
  min-height: 360px;
  max-height: 100vh;
  background: #0a0a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  position: absolute;
  top: 35%;
  left: 56%;
  right: 20px; /* 右端でクリップされないよう制限 */
  z-index: 2;
  text-align: left;
  color: #ffffff;
  transform: translateX(0);
}

.hero-line {
  display: block;
  min-height: 1.2em;
}

.hero-line-en {
  font-size: clamp(10px, 3.0vw, 52px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.hero-line-ja {
  font-size: clamp(17px, 2.5vw, 22px);
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  text-align: left;
}

.char-wrap {
  display: inline-block;
  position: relative;
  /* 確定時は transition や transform をリセット状態にする */
  transition: none; 
}
/* ========== Per-Character Glitch ========== */


.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --- Section Common --- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--font-size-large);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.section-title-en {
  display: block;
  font-size: var(--font-size-xlarge);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-ja {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 400;
  color: #666;
  margin-top: 8px;
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: #555;
}

/* --- View More Button --- */
.btn-viewmore {
  display: inline-block;
  padding: 14px 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--button-text);
  background: var(--button-bg);
  border-radius: 9999px;
  transition: var(--transition-base);
  border: 2px solid var(--button-bg);
}

.btn-viewmore:hover {
  background: transparent;
  color: var(--button-bg);
}

.btn-viewmore-outline {
  display: inline-block;
  padding: 14px 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  transition: var(--transition-base);
}

.btn-viewmore-outline:hover {
  background: #ffffff;
  color: var(--base-font-color);
}

.btn-center {
  text-align: center;
  margin-top: 50px;
}

/* --- COMPANY Section (Top) --- */
.section-company {
  position: relative;
  padding: 120px 0;
  background: #fafafa;
}

.company-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.company-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-natural);
}

.company-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.company-text {
  flex: 1;
}

.company-text .section-title-en {
  font-size: 36px;
  text-align: left;
}

.company-text .section-title-ja {
  text-align: left;
}

.company-text .desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
  color: #555;
}

.company-text .btn-center {
  text-align: left;
}

/* --- BUSINESS Section (Top) --- */
.section-business {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #2d1b4e 100%);
  color: #ffffff;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.business-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-base);
  backdrop-filter: blur(5px);
}

.business-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
}

.business-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.business-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.business-card p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.section-business .section-title-en {
  -webkit-text-fill-color: #ffffff;
}

.section-business .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.section-business .section-title-ja {
  color: rgba(255, 255, 255, 0.5);
}

/* --- NEWS Section (Top) --- */
.section-news {
  padding: 120px 0;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  transition: var(--transition-base);
}

.news-item:first-child {
  border-top: 1px solid #eee;
}

.news-item:hover {
  opacity: 0.7;
}

.news-date {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
  min-width: 110px;
  letter-spacing: 0.05em;
}

.news-category {
  display: inline-block;
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.news-category.recruit {
  background: #e8f5e9;
  color: #2e7d32;
}

.news-category.corporate {
  background: #e3f2fd;
  color: #1565c0;
}

.news-title {
  font-size: 15px;
  color: var(--base-font-color);
  flex: 1;
}

/* --- RECRUIT Section (Top) --- */
.section-recruit {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    linear-gradient(135deg, #1a1a3e, #2d1b4e);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}

.recruit-message {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.section-recruit .section-title-en {
  -webkit-text-fill-color: #ffffff;
}

.section-recruit .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.section-recruit .section-title-ja {
  color: rgba(255, 255, 255, 0.5);
}

/* --- CONTACT Section (Top) --- */
.section-contact {
  padding: 120px 0;
  text-align: center;
}

.contact-message {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
  background: var(--base-font-color);
  color: #ffffff;
  padding: 80px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  gap: 48px;
  margin-bottom: 60px;
  align-items: start;
}

.footer-logo-col {
  /* 1st column – logo */
}

.footer-logo-col a {
  display: inline-block;
}

.footer-logo-col img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-company {
  /* 2nd column – company info */
  min-width: 0;
  overflow: hidden;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 30px;
}

.footer-logo .logo-mark {
  color: var(--accent-color);
  filter: brightness(1.5);
}

.footer-info-table {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.footer-info-table dt {
  float: left;
  clear: left;
  width: 5em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-info-table dd {
  margin-left: 5.8em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.footer-nav {
  /* 3rd column – nav links */
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-base);
}

.footer-nav-list li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid rgba(168,178,255,0.45);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(4px);
}
.scroll-top svg {
  display: block;
  width: 14px;
  height: 14px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  border-color: #a8b2ff;
  background: rgba(96,104,224,0.12);
  transform: translateY(-4px);
}
.scroll-top:hover svg polyline {
  stroke: #a8b2ff;
}

/* --- Page Header (Sub pages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 40%, #2d1b4e 100%);
  text-align: center;
  color: #ffffff;
}

.page-header .section-title-en {
  font-size: 48px;
  -webkit-text-fill-color: #ffffff;
}

.page-header .section-title-ja {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Company Page --- */
.company-about {
  padding: 100px 0;
}

.company-about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 2.2;
  color: #444;
}

.company-vision {
  padding: 100px 0;
  background: #fafafa;
}

.vision-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.vision-item {
  text-align: center;
  padding: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(168,178,255,0.12);
  border-radius: 14px;
  overflow: hidden;
}
.vision-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.vision-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.vision-item:hover .vision-img-wrap img {
  transform: scale(1.05);
}
.vision-item-body {
  padding: 24px 20px 28px;
}

.vision-num {
  display: none;
}

.vision-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.vision-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.company-message {
  padding: 100px 0;
}

.message-block {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.message-photo {
  width: 250px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-natural);
}

.message-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.message-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.message-content p {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 16px;
}

.message-name {
  text-align: right;
  font-size: 14px;
  color: #999;
  margin-top: 20px;
}

.message-name strong {
  display: block;
  font-size: 18px;
  color: var(--base-font-color);
  margin-top: 4px;
}

/* --- Company Overview Table --- */
.company-overview {
  padding: 100px 0;
  background: #fafafa;
}

.overview-table {
  max-width: 800px;
  margin: 40px auto 0;
  width: 100%;
  border-collapse: collapse;
}

.overview-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.overview-table th {
  padding: 20px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--base-font-color);
  width: 160px;
  vertical-align: top;
  background: rgba(106, 13, 173, 0.03);
}

.overview-table td {
  padding: 20px 24px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* --- Business Page --- */
.service-section {
  padding: 100px 0;
}

/* ---- Service Grid (2-col side by side) ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(168,178,255,0.12);
  border-radius: 16px;
  overflow: hidden;
}

.service-image {
  width: 100%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}

.service-content {
  padding: 28px 28px 32px;
}

.service-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.service-content .service-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.service-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
}

.service-content .service-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180,185,255,0.7);
  margin-bottom: 14px;
}

.service-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.service-content p br {
  line-height: 1;
}

/* legacy block selectors – keep for mobile fallback */
.service-block { display: none; }

/* --- Advantage Section --- */
.advantage-section {
  padding: 100px 0;
  background: #fafafa;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.advantage-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition-base);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffffff;
}

.advantage-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.advantage-item p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
}

/* --- News Page --- */
.news-page-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0;
}

/* --- Contact Page --- */
.contact-page {
  padding: 80px 0;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--base-font-color);
}

.form-label .required {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #e74c3c;
  color: #ffffff;
  border-radius: 3px;
  margin-left: 8px;
}

.form-label .optional {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #ccc;
  color: #fff;
  border-radius: 3px;
  margin-left: 8px;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.form-radio-group input[type="radio"] {
  accent-color: var(--accent-color);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: var(--transition-base);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

.form-file {
  padding: 12px 0;
}

.form-file input[type="file"] {
  font-size: 14px;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  display: inline-block;
  padding: 16px 80px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-submit:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 13, 173, 0.3);
}

/* --- Recruit Page --- */
.recruit-hero {
  padding: 100px 0;
  text-align: center;
}

.recruit-hero-message {
  font-size: 18px;
  line-height: 2.2;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Scroll Reveal Animation --- */
/* reveal: Intersection Observer不要のCSS animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  animation: fadeUp 0.8s ease-out both;
}
.reveal-left {
  animation: fadeLeft 0.8s ease-out both;
}
.reveal-right {
  animation: fadeRight 0.8s ease-out both;
}

/* activeクラスは互換のため残す（JSがあっても影響しない） */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-content {
    left: 42%;
    right: 20px;
  }

  .hero-line-en {
    font-size: clamp(12px, 3.0vw, 42px);
  }

  .hero-line-ja {
    font-size: clamp(11px, 2.0vw, 22px);
  }

  .gnav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .company-block {
    flex-direction: column;
    gap: 40px;
  }

  .company-text .section-title-en {
    text-align: center;
  }

  .company-text .section-title-ja {
    text-align: center;
  }

  .company-text .btn-center {
    text-align: center;
  }

  .company-text .desc {
    text-align: center;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .message-block {
    flex-direction: column;
    align-items: center;
  }

  .vision-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 60px 0;
    --font-size-large: 28px;
    --font-size-xlarge: 32px;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    min-height: 500px;
  }

  .logo-img {
    height: 126px; /* 10% down from 140px */
  }
  .header.scrolled .logo-img { height: 126px; }
  .header-inner { height: 90px; }

  .hero-content {
    top: 28%;
    left: 20px;
    right: 20px;
    text-align: center;
  }

  .hero-line-en {
    white-space: nowrap;
    font-size: clamp(20px, 5.5vw, 42px);
  }

  .hero-line-ja {
    font-size: clamp(12px, 3.2vw, 18px);
    white-space: normal;
  }

  .section-company,
  .section-business,
  .section-news,
  .section-recruit,
  .section-contact {
    padding: 80px 0;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .news-date {
    min-width: auto;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .form-radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header .section-title-en {
    font-size: 32px;
  }

  .footer-logo-col {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-logo-col a {
    display: block;
  }

  .footer-logo-col img {
    width: 200px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

  /* スマホ時：会社情報・ナビ非表示 */
  .footer-company {
    display: none;
  }

  .footer-nav-title {
    display: none;
  }

  .footer-nav-list li:not(:last-child) {
    display: none;
  }

  .footer-nav {
    text-align: center;
  }

  .footer-nav-list li:last-child a {
    font-size: 12px;
    color: rgba(232, 232, 244, 0.5);
  }

  .footer-inner {
    margin-bottom: 4px;
  }

  .footer-bottom {
    border-top: none;
    padding-top: 8px;
  }

  .footer-logo-col a {
    display: block;
    cursor: pointer;
  }
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

:root {
  --primary-color: #0d0d20;
  --base-font-color: #e8e8f4;
  --accent-color: #6068e0;
  --accent-gradient: linear-gradient(135deg, #3d42c0 0%, #7b86e8 100%);
  --button-bg: #4050d0;
  --button-text: #ffffff;
  /* ---- 4-tier font size system (min raised 1 step) ---- */
  --fs-min:    14px;   /* labels, captions, tiny notes    */
  --fs-sm:     16px;   /* sub-labels, footer nav, tags    */
  --fs-base:   18px;   /* body paragraphs, descriptions   */
  --fs-md:     20px;   /* card titles, sub-headings       */
  /* large/xlarge headings keep original clamp values     */
}

body {
  background: #07071a;
  isolation: isolate;
  color: #e8e8f4;
  font-size: var(--fs-base);
}
/* ---- Background breathing animation ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/logo_motif_wh.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(33.33vw, 1024px);
  animation: bgBreath 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bgBreath {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.18; }
}

/* Header – transparent gradient → solid on scroll */
.header {
  background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 100%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.header.scrolled {
  background: rgba(6,6,20,0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* Logo size + shrink on scroll */
.logo-img {
  height: 140px;
  width: auto;
  display: block;
}
.header.scrolled .logo-img { height: 140px; }
.header-inner { height: 100px; transition: height 0.35s ease; }
.header.scrolled .header-inner { height: 72px; }
.logo a { color: #ffffff; }
.logo .logo-sub { color: rgba(255,255,255,0.88); font-weight: 500; }
.logo .logo-divider { color: rgba(255,255,255,0.35); }
.gnav-list li a { color: #ffffff; font-size: var(--fs-sm); }
.gnav-list li a:hover { color: #a8b2ff; }
.gnav-list li a::after { background: #7b86e8; }
.gnav-sns a { color: rgba(255,255,255,0.75); }
.gnav-sns a:hover { color: #7b86e8; }
.hamburger span { background: #e0e0f0; }

/* Mobile menu */
.mobile-menu { background: rgba(6,6,20,0.98); }
.mobile-menu-list li a { color: #ffffff; font-size: var(--fs-base); }
.mobile-menu-list li a:hover { color: #7b86e8; }

/* Section common */
.section-label { color: #8a94f0; font-size: var(--fs-sm); }
.section-title-ja { color: rgba(232,232,244,0.72); font-size: var(--fs-sm); }
.section-desc { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }

/* Buttons */
.btn-viewmore {
  background: #3d42c0;
  border-color: #3d42c0;
  color: #fff;
}
.btn-viewmore:hover {
  background: transparent;
  color: #7b86e8;
  border-color: #7b86e8;
}
.btn-viewmore-outline {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
}
.btn-viewmore-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

/* TOP – COMPANY section */
.section-company { background: transparent; }
.company-text .desc { color: rgba(232,232,244,0.88); font-size: var(--fs-base); }
.section-company .section-title-ja { color: rgba(232,232,244,0.72); }

/* TOP – NEWS section */
.news-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.news-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.news-date { color: rgba(232,232,244,0.6); font-size: var(--fs-sm); }
.news-title { color: rgba(232,232,244,0.92); font-size: var(--fs-base); }
.news-category.recruit {
  background: rgba(46,125,50,0.22);
  color: #72cb72;
  font-size: var(--fs-min);
}
.news-category.corporate {
  background: rgba(21,101,192,0.22);
  color: #74b5f5;
  font-size: var(--fs-min);
}

/* TOP – CONTACT section */
.section-contact { background: transparent; }
.contact-message { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }
.section-contact .section-title-ja { color: rgba(232,232,244,0.72); }

/* COMPANY page */
.company-about { background: transparent; }
.company-about-text { color: rgba(232,232,244,0.9); font-size: var(--fs-base); }
.company-vision { background: transparent; }
.vision-item h3 { color: #a8b2ff; font-size: var(--fs-md); }
.vision-item p { color: rgba(232,232,244,0.82); font-size: var(--fs-base); }
.company-message { background: transparent; }
.message-content h3 { color: #ffffff; font-size: var(--fs-md); }
.message-content p { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }
.message-name { color: rgba(232,232,244,0.65); font-size: var(--fs-sm); }
.message-name strong { color: #e8e8f4; }
.company-overview { background: transparent; }
.overview-table tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.overview-table th {
  background: rgba(91,106,212,0.12);
  color: rgba(232,232,244,0.92);
  font-size: var(--fs-sm);
}
.overview-table td { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }

/* BUSINESS page */
.service-section { background: transparent; }
.service-content h3 { color: #ffffff; font-size: var(--fs-md); }
.service-content p { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }
.advantage-section { background: transparent; }
.advantage-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.advantage-item:hover {
  background: rgba(91,106,212,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  border-color: rgba(91,106,212,0.35);
}
.advantage-item h4 { color: #ffffff; font-size: var(--fs-md); }
.advantage-item p { color: rgba(232,232,244,0.82); font-size: var(--fs-base); }

/* CONTACT page */
.contact-page { background: transparent; }
.form-label { color: rgba(232,232,244,0.92); font-size: var(--fs-sm); }
.form-label .optional { background: rgba(255,255,255,0.18); }
.form-radio-group label { color: rgba(232,232,244,0.88); font-size: var(--fs-sm); }
.form-input,
.form-textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #e8e8f4;
  font-size: var(--fs-base);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(232,232,244,0.35); }
.form-input:focus,
.form-textarea:focus {
  background: rgba(255,255,255,0.09);
  border-color: #6068e0;
  box-shadow: 0 0 0 3px rgba(96,104,224,0.2);
}
.form-file input[type="file"] { color: rgba(232,232,244,0.75); }

/* RECRUIT page */
.recruit-hero { background: transparent; }
.recruit-hero-message { color: rgba(232,232,244,0.85); font-size: var(--fs-base); }
.recruit-hero .section-title-ja { color: rgba(232,232,244,0.72); }

/* NEWS page */
.news-page-list .news-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.news-page-list .news-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }

/* Footer */
.footer { background: rgba(4,4,15,0.95); }
.footer-logo .logo-mark { filter: brightness(1.6); }
.footer-info-table dt { color: rgba(232,232,244,0.65); font-size: var(--fs-min); }
.footer-info-table dd { color: rgba(232,232,244,0.88); font-size: var(--fs-min); }
.footer-nav-title { color: rgba(232,232,244,0.72); font-size: var(--fs-sm); }
.footer-nav-list li a { color: rgba(232,232,244,0.82); font-size: var(--fs-sm); }
.footer-nav-list li a:hover { color: #a8b2ff; }
.footer-bottom { color: rgba(232,232,244,0.5); font-size: var(--fs-min); }

/* CREATOR page (card dark overrides) */
.creator-section { background: transparent; }
.creator-card {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}
.creator-card:hover {
  box-shadow: 0 12px 40px rgba(91,106,212,0.3);
  border-color: rgba(91,106,212,0.38);
}
.creator-card-name { color: #ffffff; font-size: var(--fs-md); }
.creator-card-name-en { color: rgba(232,232,244,0.65); font-size: var(--fs-sm); }

/* CONTACT page inline-style overrides */
.form-type-card label {
  font-size: var(--fs-sm) !important;
  color: rgba(232,232,244,0.85) !important;
}
.contact-form label.field-label,
.contact-form p[style],
.contact-notes h4 {
  font-size: var(--fs-sm) !important;
  color: rgba(232,232,244,0.82) !important;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  font-size: var(--fs-base) !important;
  color: #e8e8f4 !important;
}
.contact-notes ul li {
  font-size: var(--fs-min) !important;
  color: rgba(232,232,244,0.72) !important;
}
.market-table th, .market-table td { color: rgba(232,232,244,0.85) !important; }
.market-table td:first-child { color: #a8b2ff !important; }

/* Language toggle button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  border: 1px solid rgba(168,178,255,0.35);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: rgba(232,232,244,0.55);
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: rgba(96,104,224,0.35);
  color: #fff;
}
.lang-toggle button:hover:not(.active) { color: #fff; }
.mobile-menu .lang-toggle { margin-left: 0; }

/* Unify COMPANY/WORKS/CONTACT section text color */
.section-title-en { color: #ffffff; }
.company-about-text,
.service-content p,
.contact-page p,
.message-content p,
.vision-item p { color: rgba(232,232,244,0.88) !important; }

/* ============================================
   PAGE BANNER (全サブページ共通ヒーロー帯)
   ============================================ */
.page-banner {
  position: relative;
  height: 300px;
  background-image: url('../images/hero_bg.webp');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5,5,22,0.72) 0%,
    rgba(18,18,52,0.65) 50%,
    rgba(38,18,62,0.72) 100%
  );
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(7,7,26,0.88) 100%
  );
}
.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.page-banner-title {
  display: block;
  font-size: clamp(30px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #a8b2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-banner-sub {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.72);
  text-transform: none;
}

@media (max-width: 600px) {
  .page-banner {
    height: 200px;
    margin-top: 60px;
  }
  .message-content {
    padding: 20px !important;
  }
}

/* ========== Landscape (スマホ横向き) ========== */
@media (max-width: 968px) and (orientation: landscape) {
  .logo-img {
    height: 60px;
  }
  .header.scrolled .logo-img { height: 60px; }
  .header-inner { height: 64px; }

  .hero {
    min-height: 280px;
  }

  .hero-content {
    top: 22%;
    left: 33%;
    right: 20px;
    text-align: left;
  }

  .hero-line-en {
    font-size: clamp(14px, 3.8vw, 36px);
  }

  .hero-line-ja {
    font-size: clamp(10px, 1.8vw, 16px);
  }
}
