/* =============================================
   Exahash Security - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
  /* TODO: ブランドカラー確定後に更新 */
  --color-primary: #1a1a2e;
  --color-accent: #00d4ff;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-dark: #1a1a2e;
  --color-bg-section: #f5f7fa;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   Layout
   ============================================= */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-base);
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}

/* =============================================
   Section Heading
   ============================================= */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-heading__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-accent);
}

.section-heading__lead {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.8;
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.header__logo-name {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: 36px;
}

.header__nav-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header__nav-item a:hover {
  color: var(--color-accent);
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ドロワー（スマホメニュー） */
.header__drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-bg-dark);
  z-index: 99;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header__drawer.is-open {
  display: block;
}

.header__drawer-list {
  padding: 8px 0;
}

.header__drawer-item a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}

.header__drawer-item a:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .header__hamburger {
    display: none;
  }
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 30, 0.7) 0%,
    rgba(10, 10, 30, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 24px;
  color: #fff;
}

.hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0.9;
  text-align: left;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}

/* =============================================
   About Overview (トップ)
   ============================================= */
.about-overview {
  background: var(--color-bg);
}

.about-overview__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
}

/* =============================================
   Services (トップ)
   ============================================= */
.services {
  background: var(--color-bg-section);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.service-card__link {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-accent);
}

.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.services__more {
  text-align: center;
  margin-top: 44px;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta__text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta__privacy-note {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.8;
  max-width: 560px;
  margin: 1.5em auto 32px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 6px;
  text-align: left;
}

.cta__privacy-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cta__form-note {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* =============================================
   Page Hero（下層ページ共通）
   ============================================= */
.page-hero {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero__lead {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: #111122;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}

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

.footer__bottom {
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.45;
}

/* =============================================
   会社概要ページ
   ============================================= */
.mission {
  background: var(--color-bg);
}

.mission__vision {
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.9;
  padding: 28px 32px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-section);
  border-radius: 0 8px 8px 0;
}

.values__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  padding: 24px 28px;
  background: var(--color-bg-section);
  border-radius: 8px;
}

.value-item__title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.value-item__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.ceo-message {
  background: var(--color-bg-section);
}

.ceo-message__inner {
  max-width: 760px;
  margin: 0 auto;
}

.ceo-message__text {
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--color-text);
}

.ceo-message__name {
  margin-top: 28px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.company-info {
  background: var(--color-bg);
}

.company-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 35%;
  color: var(--color-text-light);
  font-weight: 500;
  white-space: nowrap;
}

.history {
  background: var(--color-bg-section);
}

.history-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.history-table th {
  width: 30%;
  color: var(--color-text-light);
  font-weight: 500;
}

.member {
  background: var(--color-bg);
}

.member-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-bg-section);
  border-radius: 8px;
  padding: 36px;
}

.member-card__header {
  margin-bottom: 24px;
}

.member-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.member-card__role {
  color: var(--color-accent);
  font-size: 0.9rem;
}

.member-card__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.member-card__table th,
.member-card__table td {
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.member-card__table th {
  width: 28%;
  color: var(--color-text-light);
  font-weight: 500;
}

/* =============================================
   サービスページ
   ============================================= */
.service-detail {
  padding: 72px 0;
}

.service-detail:nth-child(even) {
  background: var(--color-bg-section);
}

.service-detail__inner {
  max-width: 760px;
  margin: 0 auto;
}

.service-detail__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-accent);
  margin-bottom: 20px;
}

.service-detail__short {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.service-detail__body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 32px;
}

.service-detail__target-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-detail__target-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-detail__target-list li {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}

.service-detail__target-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* =============================================
   お問い合わせページ
   ============================================= */
.contact {
  background: var(--color-bg);
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__privacy-note {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 12px;
  background: var(--color-bg-section);
  padding: 20px 24px;
  border-radius: 8px;
  text-align: left;
}

.contact__privacy-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact__btn-wrap {
  margin-top: 40px;
}

.contact__note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* =============================================
   プライバシーポリシーページ
   ============================================= */
.privacy-policy {
  background: var(--color-bg);
}

.privacy-policy__inner {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-policy__lead {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 48px;
}

.privacy-policy__section {
  margin-bottom: 44px;
}

.privacy-policy__section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-section);
}

.privacy-policy__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text);
}

.privacy-policy__list {
  list-style: disc;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 2.1;
  color: var(--color-text);
}

.privacy-policy__contact-box {
  background: var(--color-bg-section);
  padding: 24px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 2.2;
}

.privacy-policy__date {
  margin-top: 56px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
