/* ================================================
   株式会社すみれコーポレーション — メインスタイルシート
   すみれグラデーション / 2ページ構成
   ================================================ */

/* ----------------------------------------
   カスタムプロパティ
   ---------------------------------------- */
:root {
  --brand-violet: #7B2FFF;
  --brand-blue: #5B7BFF;
  --brand-cyan: #4AEADC;
  --brand-dark: #3A1B80;
  --accent-gold: #C4963A;
  --brand-gradient: linear-gradient(135deg, #7B2FFF, #5B7BFF, #4AEADC);
  --brand-gradient-subtle: linear-gradient(135deg, #7B2FFF, #5B7BFF);
  --heading: #111111;
  --text: #3D3D3D;
  --text-light: #6B6B6B;
  --bg-white: #FFFFFF;
  --bg-alt: #F8F6FF;
  --border: #E8E4F0;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --container: 1000px;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.6s ease;
}

body.scrolled { background-color: var(--bg-alt); }

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

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

section { padding: 5rem 0; position: relative; }

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--heading);
  text-align: center;
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}

.section-subtitle {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  font-weight: 500;
}

/* ----------------------------------------
   ヘッダー・グローバルナビ
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: background 0.4s, box-shadow 0.4s;
}

.site-header.is-top {
  background: transparent;
  box-shadow: none;
}

.site-header.is-top .header-brand { color: #fff; }
.site-header.is-top .gnav a { color: rgba(255,255,255,0.85); }
.site-header.is-top .gnav a:hover { color: #fff; }
.site-header.is-top .hamburger span { background: #fff; }

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

.header-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-violet);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.3s;
}

.gnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.gnav a {
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}

.gnav a:hover { color: var(--brand-violet); }

.gnav .gnav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--brand-gradient-subtle);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gnav .gnav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(123,47,255,0.3);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

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

/* ----------------------------------------
   1. ヒーローセクション（グラデーション背景）
   ---------------------------------------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
  background: var(--brand-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,47,255,0.75), rgba(91,123,255,0.65), rgba(74,234,220,0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 700px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-content p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 2;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ----------------------------------------
   ボタン
   ---------------------------------------- */
.btn-white {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #fff;
  color: var(--brand-violet);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}

.btn-gradient {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s, opacity 0.2s;
}

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

.btn-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: #fff;
  color: var(--brand-violet);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
}

.btn-modal {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-modal:hover { opacity: 0.85; }

/* ----------------------------------------
   2. 理念セクション
   ---------------------------------------- */
.philosophy {
  text-align: center;
  padding: 6rem 0;
  background: var(--bg-white);
}

.philosophy-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2.2;
}

.philosophy-text p + p { margin-top: 1.2rem; }

/* ----------------------------------------
   3. 事業紹介セクション
   ---------------------------------------- */
.services {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 660px;
  margin: 1.5rem auto 0;
}

.service-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(123,47,255,0.12);
}

.service-card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef8, #e8e4f0);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.card-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--brand-violet);
  font-weight: 600;
}

/* ----------------------------------------
   モーダル（事業詳細）
   ---------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover { color: #333; }

.modal-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal h2 {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal p { margin-bottom: 1rem; line-height: 2; }

/* ----------------------------------------
   4. プロダクト紹介セクション
   ---------------------------------------- */
.product {
  background: var(--bg-white);
  padding: 5rem 0;
}

.product-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.product-image {
  margin-bottom: 2rem;
  background: var(--brand-gradient);
  border-radius: 12px;
  padding: 2rem;
}

.product-image img {
  border-radius: 8px;
}

.product-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 0.8rem;
}

.product-inner p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* ----------------------------------------
   5. 会社概要セクション
   ---------------------------------------- */
.company {
  background: var(--bg-alt);
  padding: 5rem 0;
}

.company-table {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.9rem;
}

.company-table th {
  width: 28%;
  font-weight: 500;
  color: #fff;
  background: var(--brand-gradient);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.company-table td {
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.company-table td a {
  color: var(--brand-violet);
  text-decoration: none;
}

.company-table td a:hover { text-decoration: underline; }

/* ----------------------------------------
   6. CTA セクション
   ---------------------------------------- */
.cta {
  background: var(--brand-gradient);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.cta > .container { position: relative; }

.cta h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* ----------------------------------------
   フッター
   ---------------------------------------- */
.footer {
  background: var(--bg-alt);
  color: var(--text-light);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.footer-brand-en {
  font-size: 0.7rem;
  color: #aaa;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.footer-message {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links { margin-bottom: 1.5rem; }

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--brand-violet); }

.footer-copy {
  font-size: 0.7rem;
  color: #aaa;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  margin-top: 0.8rem;
}

/* ----------------------------------------
   スクロールフェードインアニメーション
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ----------------------------------------
   プレースホルダー画像
   ---------------------------------------- */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0eef8, #e8e4f0);
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 8px;
}

/* ----------------------------------------
   contact.php — 小型ヒーロー
   ---------------------------------------- */
.hero-small {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--brand-gradient);
}

.hero-small h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------
   contact.php — フォーム
   ---------------------------------------- */
.contact-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.required { color: var(--brand-violet); }

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(123,47,255,0.12);
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D3D3D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-note {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
}

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

.form-submit-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  max-width: 300px;
}

.has-error .form-input {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224,82,82,0.1);
}

.error-message {
  font-size: 0.8rem;
  color: #e05252;
  margin-top: 0.4rem;
}

.alert {
  padding: 1.5rem 2rem;
  border-radius: 8px;
  line-height: 1.8;
}

.alert p + p { margin-top: 0.3rem; }

.alert-success {
  background: #f8f6ff;
  border: 1px solid rgba(123,47,255,0.2);
  color: var(--text);
}

.alert-error {
  background: #fef2f2;
  border: 1px solid rgba(224,82,82,0.3);
  color: #e05252;
}

.info-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-list { margin: 0; }

.info-list dt {
  font-size: 0.8rem;
  color: var(--brand-violet);
  font-weight: 600;
  margin-top: 0.8rem;
}

.info-list dt:first-child { margin-top: 0; }

.info-list dd {
  font-size: 0.9rem;
  margin: 0.2rem 0 0 0;
  line-height: 1.7;
}

/* ----------------------------------------
   レスポンシブ
   ---------------------------------------- */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .section-title { font-size: 1.4rem; }

  .hero { min-height: 420px; height: 70vh; }
  .hero-content h1 { font-size: 1.5rem; }

  /* ハンバーガー表示 */
  .hamburger { display: flex; }

  .gnav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 55;
  }

  .gnav.is-open { display: flex; }

  .gnav a {
    font-size: 1.1rem;
    color: var(--heading);
  }

  .site-header.is-top .hamburger.is-active span { background: var(--heading); }

  /* 事業紹介 */
  .services-grid,
  .services-grid-2 {
    grid-template-columns: 1fr;
    max-width: none;
  }

  /* 会社概要 */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
  }
  .company-table th {
    border-bottom: none;
    padding-bottom: 0.2rem;
    font-size: 0.75rem;
  }

  /* モーダル */
  .modal { padding: 2rem 1.5rem; }

  /* フォーム */
  .contact-grid { grid-template-columns: 1fr; }

  /* フッター */
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}
