/*
Theme Name: Japan Innovation App
Theme URI: https://j-innovation.jp/
Author: Japan Innovation Inc.
Author URI: https://j-innovation.jp/
Description: ジャパンイノベーション株式会社のコーポレートサイト用テーマ。アプリ開発・販売事業を紹介するためのモダンでレスポンシブなテーマです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ji-app
Tags: business, corporate, app, responsive, japanese
*/

/* ========================================================================
   デザインシステム（CSS変数）
   - カラー、フォント、余白、影など全体共通の値をここで定義
   ======================================================================== */
:root {
  /* カラー：ブランド */
  --primary:        #0F2D5F; /* 深い青：信頼感・テック */
  --primary-light:  #1E4A8F;
  --primary-dark:   #081B3A;
  --accent:         #FF6B35; /* オレンジ：行動喚起 */
  --accent-light:   #FF8A5E;
  --accent-dark:    #E5501A;

  /* カラー：ニュートラル */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* テキスト */
  --text:        #1E293B;
  --text-light:  #64748B;
  --text-muted:  #94A3B8;

  /* 角丸 */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 影 */
  --shadow-sm: 0 1px 3px rgba(15, 45, 95, 0.06);
  --shadow:    0 4px 12px rgba(15, 45, 95, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 45, 95, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 45, 95, 0.14);

  /* アニメーション */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* レイアウト */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ========================================================================
   ベース・リセット
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--gray-900);
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

/* ========================================================================
   共通レイアウト
   ======================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ========================================================================
   ボタン
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ========================================================================
   ヘッダー
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

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

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.site-logo a:hover {
  color: var(--accent);
}

.site-logo .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

/* ヘッダー会社ロゴ画像（logo-ji.png 用） */
.site-logo-image {
  height: 44px;
  width: auto;
  display: block;
}

/* アプリカード上部のアプリロゴ（front-page）— 絵文字に代わるアイコン画像 */
.app-icon-image {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 45, 95, 0.18);
}

/* 事業内容ページのアプリビジュアル（service-visual の画像版） */
.service-visual-image {
  width: 180px;
  height: 180px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 45, 95, 0.22);
}

/* その他の事業（ドローン）セクション — トップページに表示 */
.other-services {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}
.other-service-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 45, 95, 0.08);
  max-width: 1000px;
  margin: 0 auto;
}
.other-service-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 18px;
}
.other-service-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 16px;
  line-height: 1.4;
}
.other-service-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
/* レスポンシブ：スマホでは縦並びに */
@media (max-width: 768px) {
  .other-service-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .other-service-image {
    min-height: 200px;
  }
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.main-nav .nav-cta a {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  margin-left: 8px;
}

.main-nav .nav-cta a:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================================
   ヒーロー（トップページ用）
   ======================================================================== */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 74, 143, 0.30), transparent 50%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero .hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

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

/* ========================================================================
   数値バッジセクション
   ======================================================================== */
.stats {
  background: var(--gray-50);
  padding: 60px 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-unit {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ========================================================================
   アプリ紹介カード
   ======================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.app-card:hover::before {
  opacity: 1;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--white);
}

.app-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.app-card .app-tagline {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.app-card .app-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.app-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto;
}

.app-link:hover {
  color: var(--accent);
}

.app-link::after {
  content: '→';
  transition: var(--transition);
}

.app-link:hover::after {
  transform: translateX(4px);
}

/* Coming Soon カード */
.app-card.coming-soon {
  background: var(--gray-50);
  border-style: dashed;
}

.app-card.coming-soon .app-icon {
  background: var(--gray-300);
}

.app-card.coming-soon .badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ========================================================================
   強み・特徴セクション
   ======================================================================== */
.features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #1a4a9e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 45, 95, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 45, 95, 0.35);
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* ========================================================================
   会社紹介ミニ・代表メッセージ
   ======================================================================== */
.about-mini {
  background: var(--white);
}

.about-mini-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-mini blockquote {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 2;
  color: var(--gray-700);
  margin: 0 0 32px;
  padding: 0;
  position: relative;
}

.about-mini blockquote::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  line-height: 1;
}

.about-mini .signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.about-mini .signature strong {
  color: var(--primary);
  font-size: 1.05rem;
}

/* ========================================================================
   CTAセクション
   ======================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========================================================================
   ページ共通：ヘッダー部分（下層ページ）
   ======================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb a:hover {
  color: var(--accent-light);
}

/* ========================================================================
   会社概要ページ
   ======================================================================== */
.company-table {
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.company-table th {
  background: var(--gray-50);
  color: var(--primary);
  font-weight: 700;
  width: 30%;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* ========================================================================
   事業内容ページ
   ======================================================================== */
.service-detail {
  max-width: 960px;
  margin: 0 auto;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-block:hover {
  box-shadow: var(--shadow);
}

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

.service-block.reverse .service-visual {
  order: 2;
}

.service-visual {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.service-block h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-block .service-tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ========================================================================
   お問い合わせフォーム
   ======================================================================== */
.contact-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.contact-info-item .value {
  font-size: 0.95rem;
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--accent);
  font-size: 0.75rem;
  margin-left: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 45, 95, 0.12);
}

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

.form-submit {
  text-align: center;
}

#form-message.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

#form-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ========================================================================
   ブログ・お知らせ一覧
   ======================================================================== */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 90px;
}

.news-category {
  background: var(--gray-100);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-title {
  flex: 1;
  min-width: 200px;
}

.news-title a {
  color: var(--gray-800);
  font-weight: 500;
}

.news-title a:hover {
  color: var(--accent);
}

/* ========================================================================
   フッター
   ======================================================================== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-brand .footer-logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================================================
   スクロールアニメーション（IntersectionObserver連動）
   ======================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   レスポンシブ（タブレット）
   ======================================================================== */
@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-block.reverse .service-visual {
    order: 0;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ========================================================================
   レスポンシブ（モバイル）
   ======================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 70px 0 90px;
  }

  /* ハンバーガーメニュー */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .main-nav .nav-cta a {
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }

  /* ヒーロー */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 30px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* アプリカード */
  .apps-grid {
    grid-template-columns: 1fr;
  }

  /* 数値バッジ */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  /* 強み */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  /* 会社概要テーブル */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 18px;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  /* ニュース項目 */
  .news-item {
    gap: 8px;
  }

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

/* ========================================================================
   ユーティリティ
   ======================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================
   言語切替（JA / EN）
   - ヘッダー右側、CTAボタンの隣に小さく表示
   - active 状態は primary 色で塗り、ホバー時はアクセント色
   ======================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  color: var(--accent);
  background: var(--gray-100);
}

.lang-switch-btn.is-active {
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lang-switch-btn.is-active:hover {
  color: var(--white);
  background: var(--primary-light);
}

.lang-switch-sep {
  color: var(--gray-300);
  user-select: none;
}

/* 英語表示時に少し読みやすさを上げる微調整 */
body.lang-en {
  /* 英文の方が一般的に行長が短い方が読みやすいため、行間を少し詰める */
  letter-spacing: 0;
}

/* モバイル：ハンバーガーで開いたメニュー内でも自然に並ぶように */
@media (max-width: 768px) {
  .lang-switch {
    margin: 16px 0 0;
    align-self: center;
  }
}
