@charset "UTF-8";

/* ============================================
   オフィス・エムスリー コーポレートサイト
   白基調ミニマル × アンバーオレンジ
   ============================================ */

:root {
  --accent: #e07b1f;         /* 装飾用（アイコン・図形など。文字には使わない） */
  --accent-strong: #b45309;  /* テキスト・ボタン背景用（白と4.5:1以上を確保） */
  --accent-dark: #9c4606;    /* ホバー・淡色背景上のテキスト用 */
  --accent-light: #fdf0e0;
  --ink: #22221f;
  --ink-soft: #55534d;
  --ink-faint: #6e6b63;
  --bg: #ffffff;
  --bg-warm: #faf7f2;
  --line: #eae6df;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(34, 34, 31, 0.07);
  --shadow-hover: 0 10px 32px rgba(34, 34, 31, 0.12);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Noto Sans JP", Meiryo, sans-serif;
  interpolate-size: allow-keywords;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 固定ヘッダー分のアンカー着地位置調整 */
[id] { scroll-margin-top: 108px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* ---------- スキップリンク ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus { left: 0; }

/* ---------- レイアウト ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

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

.section-label {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- ヘッダー ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* ぼかしはデスクトップのみ（モバイルは backdrop-filter が
   固定配置ナビの基準要素になってしまうため使わない） */
@media (min-width: 901px) {
  .header {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo img { height: 40px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 8px; }

.header-nav a {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover { color: var(--accent-strong); background: var(--accent-light); }

.header-nav a.is-current { color: var(--accent-strong); }

.header-nav a.header-cta {
  background: var(--accent-strong);
  color: #fff;
  border-radius: 999px;
  padding: 11px 24px;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.header-nav a.header-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* モバイルメニュー */

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 6px auto;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ---------- ヒーロー ---------- */

.hero {
  padding: 170px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--accent-strong); }

.hero-lead {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual img,
.hero-visual video {
  border-radius: 24px;
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 34px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.42);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent-strong); color: var(--accent-strong); transform: translateY(-2px); }

/* ---------- 選ばれる理由 ---------- */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reason-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.reason-card .num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-strong);
  display: block;
  margin-bottom: 16px;
}

.reason-card h3 { font-size: 20px; line-height: 1.5; margin-bottom: 14px; }

.reason-card p { color: var(--ink-soft); font-size: 15px; }

.reason-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.reason-icon svg { width: 28px; height: 28px; stroke: var(--accent); }

/* ---------- サービスカード ---------- */

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

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.service-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-warm); }

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

.service-card .body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }

.service-card h3 { font-size: 19px; line-height: 1.5; margin-bottom: 12px; }

.service-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }

.service-card .more {
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 制作の流れ ---------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}

.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow);
}

.flow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}

.flow-step h3 { font-size: 17.5px; margin-bottom: 10px; }

.flow-step p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 24px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

/* 対応ブラウザでは開閉をアニメーション（非対応は従来動作） */
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

.faq-item .q-mark, .faq-item .a-mark {
  font-weight: 800;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.faq-item .answer {
  padding: 0 24px 24px 24px;
  color: var(--ink-soft);
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, #f7ede0 0%, var(--accent-light) 100%);
}

.cta-box { text-align: center; }

.cta-box .section-title { margin-bottom: 14px; }

.cta-box p { color: var(--ink-soft); margin-bottom: 36px; }

.cta-tel {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.cta-tel .tel-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- ページヘッダー（下層） ---------- */

.page-header {
  padding: 160px 0 72px;
  background: var(--bg-warm);
}

.page-header .breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

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

.page-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }

.page-header .sub {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ページヘッダーを持たないページの上部余白 */
.page-plain { padding-top: 180px; }

/* ---------- 会社概要 ---------- */

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.company-table th, .company-table td {
  padding: 22px 28px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  vertical-align: top;
}

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

.company-table th {
  width: 220px;
  background: var(--bg-warm);
  font-weight: 700;
  white-space: nowrap;
}

.table-note { font-size: 13.5px; color: var(--ink-faint); }

.biz-list { margin: 0; }
.biz-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.biz-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- サービス詳細 ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.service-detail + .service-detail { margin-top: 96px; }

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

.service-detail-visual img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.service-detail h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.5; margin-bottom: 18px; }

.service-detail .desc { color: var(--ink-soft); margin-bottom: 26px; }

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 15.5px;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}

.service-note {
  background: var(--accent-light);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 24px;
}

/* ---------- お問い合わせ ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: 24px; margin-bottom: 16px; }

.contact-info p { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }

.contact-photo { border-radius: 16px; }

.contact-tel-box {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}

.contact-tel-box .label { font-size: 13.5px; color: var(--ink-faint); font-weight: 700; }

.contact-tel-box .tel-number {
  font-size: clamp(21px, 6.5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: block;
  margin: 6px 0;
  color: var(--ink);
}

.contact-tel-box .note { font-size: 13.5px; color: var(--accent-dark); font-weight: 700; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-alert {
  background: #fdecea;
  border: 1px solid #f2c1ba;
  color: #a4281a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.required-badge, .optional-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

.required-badge { background: var(--accent-strong); color: #fff; }
.optional-badge { background: #eceae5; color: var(--ink-faint); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-warm);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: #fff;
}

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

/* ハニーポット（スパムボット対策・視覚的に完全非表示） */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.form-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; text-align: center; }

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

/* 送信完了 */

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

.thanks-box .thanks-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.thanks-box .thanks-icon svg { width: 44px; height: 44px; stroke: var(--accent-dark); }

.thanks-box h1 { font-size: 28px; margin-bottom: 18px; }

.thanks-box p { color: var(--ink-soft); margin-bottom: 36px; }

/* ---------- プライバシーポリシー ---------- */

.policy-body { max-width: 780px; }

.policy-body h2 {
  font-size: 20px;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent-strong);
  line-height: 1.5;
}

.policy-body p, .policy-body li { color: var(--ink-soft); font-size: 15.5px; }

.policy-body ul { margin: 10px 0; }

.policy-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.policy-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.policy-date { margin-top: 40px; color: var(--ink-faint); font-size: 14px; }

/* ---------- フッター ---------- */

.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-about img { height: 36px; width: auto; margin-bottom: 18px; }

.footer-about p { font-size: 14px; color: var(--ink-soft); line-height: 2; }

.footer-nav { display: flex; gap: 4px 32px; flex-wrap: wrap; align-items: flex-start; }

.footer-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 0;
  display: inline-block;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- フェードイン（JS有効時のみ非表示から開始） ---------- */

.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  section { padding: 72px 0; }

  .hero { padding: 130px 0 64px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-visual { max-width: 440px; margin: 0 auto; }

  /* タブレット帯はカードを2列に（1列だと画像が間延びするため） */
  .reasons-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }

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

  .service-detail { grid-template-columns: 1fr; gap: 32px; }

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

  .service-detail-visual { max-width: 480px; margin: 0 auto; }

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

  .contact-form { padding: 28px 22px; }

  .company-table th { width: auto; display: block; border-bottom: none; padding-bottom: 6px; }
  .company-table td { display: block; padding-top: 0; }

  /* モバイルナビ */
  .menu-toggle { display: block; }

  .header { background: rgba(255, 255, 255, 0.97); }

  .header-logo { position: relative; z-index: 108; }

  .header-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 105;
  }

  .header-nav.open { opacity: 1; visibility: visible; }

  .header-nav a { font-size: 19px; }
}

@media (max-width: 620px) {
  .reasons-grid, .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .flow-grid { grid-template-columns: 1fr; }

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

  .page-header { padding: 130px 0 52px; }

  .page-plain { padding-top: 150px; }
}
