:root{--font-zen-kaku:'Zen Kaku Gothic New';}

/* ===========================================================
   FYNO Corporate Site — Global styles
   デザイントークンは README / FYNO.dc.html を忠実に反映
   =========================================================== */

:root {
  --bg: oklch(98% 0.006 250);          /* ページ背景 */
  --text: oklch(24% 0.02 255);         /* 本文テキスト */
  --accent: oklch(52% 0.10 250);       /* アクセント(ブルー) */
  --accent-hover: oklch(44% 0.10 250); /* アクセント ホバー */
  --card-bg: oklch(99% 0.003 250);     /* カード背景 */
  --card-border: oklch(92% 0.01 250);  /* カードボーダー */
  --input-border: oklch(88% 0.01 250); /* 入力欄ボーダー */
  --nav-hover: oklch(94% 0.02 250);    /* ナビ ホバー背景 */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-zen-kaku), "Zen Kaku Gothic New", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* full-bleed 5% コンテナ */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── ヘッダー ─────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: oklch(98% 0.006 250 / 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  margin: 0 -5%;
  border-bottom: 1px solid oklch(91% 0.01 250);
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo svg {
  flex: none;
  transform: rotate(38deg);
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: oklch(32% 0.02 255);
}
.nav a {
  text-decoration: none;
  color: inherit;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.nav a:hover {
  background: var(--nav-hover);
  color: inherit;
}
.nav a.pill {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  padding: 9px 18px;
  margin-left: 8px;
}
.nav a.pill:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ── ヒーロー ─────────────────────────────── */
.hero {
  padding: 52px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.hero-blob-orange {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: oklch(90% 0.04 55 / 0.5);
  filter: blur(10px);
  z-index: -1;
}
.hero-blob-blue {
  position: absolute;
  bottom: 20px;
  left: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: oklch(90% 0.03 250 / 0.6);
  filter: blur(10px);
  z-index: -1;
}
.hero-title {
  font-size: clamp(20px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-image {
  position: relative;
  width: 100vw;
  margin-top: 16px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  aspect-ratio: 1672 / 941;
  height: auto;
}

/* ── セクション共通 ────────────────────────── */
.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
}

/* ── MVV ─────────────────────────────────── */
.mvv {
  padding: 44px 5% 60px;
  margin: 0 -5%;
  background: oklch(96% 0.02 250 / 0.5);
  border-radius: 0 0 36px 36px;
}
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.mvv-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.mvv-card svg {
  flex: none;
}
.mvv-card-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.mvv-card-body {
  font-size: 15px;
  line-height: 1.9;
}
.value-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.8;
}

/* ── 社名の由来 ────────────────────────────── */
.origin {
  text-align: center;
}
.origin-blob-orange {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: oklch(91% 0.045 55 / 0.55);
  filter: blur(10px);
  z-index: -1;
}
.origin-blob-blue {
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: oklch(91% 0.03 250 / 0.5);
  filter: blur(10px);
  z-index: -1;
}
.origin-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}
.origin-body {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
  color: oklch(38% 0.02 255);
  text-align: left;
}

/* ── 事業内容 ─────────────────────────────── */
.biz-blob {
  position: absolute;
  top: -60px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: oklch(91% 0.03 250 / 0.5);
  filter: blur(10px);
  z-index: -1;
}
.biz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.biz-card {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 30px 24px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.biz-accent {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.biz-accent.orange {
  background: oklch(78% 0.09 55);
}
.biz-accent.blue {
  background: oklch(70% 0.09 250);
}
.biz-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.biz-body {
  font-size: 13px;
  line-height: 1.8;
  color: oklch(45% 0.02 255);
}

/* ── 代表メッセージ ────────────────────────── */
.message-blob {
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: oklch(91% 0.045 55 / 0.5);
  filter: blur(10px);
  z-index: -1;
}
.message-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.rep-photo {
  width: 160px;
  height: 160px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.message-text {
  flex: 1 1 380px;
  min-width: 260px;
}
.message-body {
  font-size: 15px;
  line-height: 2;
  color: oklch(38% 0.02 255);
}
.message-sign {
  margin-top: 18px;
  font-size: 14px;
  color: oklch(45% 0.02 255);
}

/* ── お問い合わせ ─────────────────────────── */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--card-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
/* ハニーポット(人間には非表示) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.submit-btn {
  margin-top: 6px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s ease;
}
.submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-message {
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 16px;
  border-radius: 12px;
}
.form-message.success {
  background: oklch(95% 0.05 150 / 0.5);
  color: oklch(40% 0.09 150);
  border: 1px solid oklch(85% 0.06 150);
}
.form-message.error {
  background: oklch(95% 0.05 25 / 0.5);
  color: oklch(45% 0.12 25);
  border: 1px solid oklch(85% 0.07 25);
}

/* ── 会社概要 ─────────────────────────────── */
.company {
  padding: 56px 0 28px;
  border-top: 1px solid oklch(90% 0.01 250);
  text-align: center;
}
.company-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.company-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  color: oklch(38% 0.02 255);
  max-width: 460px;
  margin: 0 auto;
}
.company-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid oklch(92% 0.01 250);
  padding-bottom: 16px;
}
.company-row .key {
  color: oklch(55% 0.02 255);
  flex: none;
}
.company-row .val {
  text-align: right;
}
.company-row.address .val {
  font-size: 14px;
}
.copyright {
  margin-top: 32px;
  font-size: 13px;
  color: oklch(60% 0.01 255);
}

/* ===========================================================
   レスポンシブ(スマートフォン対応)
   =========================================================== */

/* タブレット以下:ヘッダーを縦積みにしてナビを折り返す */
@media (max-width: 720px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 5%;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
    font-size: 13px;
  }
  .nav a {
    padding: 7px 12px;
  }
  .nav a.pill {
    margin-left: 0;
    padding: 8px 16px;
  }

  /* ヒーロー見出しは折り返し許可してはみ出しを防ぐ */
  .hero-title {
    white-space: normal;
    font-size: clamp(20px, 6vw, 30px);
    padding: 0 4px;
  }
  .hero {
    padding-top: 36px;
  }

  .section {
    padding: 44px 0;
  }
  .section-title,
  .company-title {
    font-size: 22px;
  }

  /* MVVカードはアイコンを上、テキストを下の縦積みでも読みやすく維持 */
  .mvv {
    padding: 36px 5% 48px;
  }

  /* 会社概要:住所が長いので折り返し許可 */
  .company-row.address {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .company-row.address .val {
    text-align: left;
    white-space: normal;
  }
}

/* 小型スマホ */
@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(18px, 6.5vw, 26px);
  }
  .company-row {
    font-size: 14px;
  }
}

/* アニメーションを控えたいユーザー向け */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .spinner {
    animation: none;
  }
}
