/* ===================================
   offeeer - Common Styles
   =================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #32b470;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: transparent;
}

.header,
main,
.page-header,
.section,
.hero,
.article-header,
.article-content {
  background-color: var(--white);
}

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

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

ul, ol {
  list-style: none;
}

/* ===================================
   Variables - offeeer Brand Colors
   =================================== */
:root {
  /* Primary Green */
  --primary-color: #32b470;
  --primary-dark: #32b470;
  --primary-light: #32b470;

  /* Accent Yellow */
  --accent-color: #d5b325;
  --accent-light: #e5c94d;

  /* Text Colors (STUDIO参考に合わせフラットな #333 系へ統一) */
  --text-color: #333333;
  --text-light: #333333;
  --text-muted: #333333;

  /* Border & Background */
  --border-color: #e2e8f0;
  --background-light: #f8fafc;
  --background-gray: #f1f5f9;
  --white: #fff;

  /* Gradients */
  --gradient-start: #32b470;
  --gradient-end: #a2d7d3;
  --gradient-yellow-start: #d5b325;
  --gradient-yellow-end: #e5c94d;

  --container-width: 1200px;
  --header-height: 90px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

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

.text-muted {
  color: var(--text-muted);
}

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

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.section-subtitle {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 1rem;
}

.section-title-img {
  max-height: 76px;
  width: auto;
}

/* セクションタイトル（トリミング付き） */
.section-title-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title-img-container {
  position: relative;
  overflow: hidden;
}

/* ADVANTAGES - offeeer_pc_top-02 */
.section-title-wrapper-advantages .section-title-img-container {
  width: 327px;
  height: 76px;
}

.section-title-img-advantages {
  position: absolute;
  width: 158.1%;
  height: 680.26%;
  left: -30.8%;
  top: -288.53%;
  max-width: none;
}

/* NEW ARRIVALS - offeeer_pc_top-05 */
.section-title-wrapper-arrivals .section-title-img-container {
  width: 342px;
  height: 69px;
}

.section-title-img-arrivals {
  position: absolute;
  width: 151.17%;
  height: 749.28%;
  left: -24.99%;
  top: -320.29%;
  max-width: none;
}

/* FLOW - offeeer_pc_top-04 */
.section-title-wrapper-flow .section-title-img-container {
  width: 225px;
  height: 74px;
}

.section-title-img-flow {
  position: absolute;
  width: 229.78%;
  height: 698.65%;
  left: -64.99%;
  top: -294.27%;
  max-width: none;
}

/* COLUMN - offeeer_pc_top-03 */
.section-title-wrapper-column .section-title-img-container {
  width: 229px;
  height: 71px;
}

.section-title-img-column {
  position: absolute;
  width: 225.76%;
  height: 728.17%;
  left: -63.08%;
  top: -290.76%;
  max-width: none;
}

.section-title-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, #32b470, #a2d7d3);
}

/* ===================================
   Header
   =================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: transparent;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  padding: 16px 24px 0;
}

.logo {
  display: flex;
  align-items: flex-start;
  position: fixed;
  top: 16px;
  left: 40px;
  z-index: 1001;
}

.logo img {
  height: 200px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  padding-top: 8px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s;
}

.nav-link:hover {
  color: #32b470;
}

.nav-link-highlight {
  color: var(--text-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 32px;
  padding-top: 8px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* 緑は #32b470 のまま濃くしない。押せる感触は影＋わずかな浮きで表現 */
.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(50, 180, 112, 0.28);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: #32b470;
}

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

.btn-white {
  background: var(--white);
  color: #32b470;
}

.btn-white:hover {
  background: var(--background-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ===================================
   Cards
   =================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===================================
   Project Cards (案件カード)
   =================================== */
.project-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.project-category {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(50, 180, 112, 0.1);
  color: #32b470;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.project-company {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.project-card-body {
  padding: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 4px 10px;
  background: #f8faf9;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.project-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #32b470;
}

.project-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-light);
}

.project-location {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-icon-large {
  width: 280px;
  height: 120px;
}

.feature-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.feature-text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.8;
}

.feature-card span {
  white-space: nowrap;
}

/* ===================================
   Article Cards (コラムカード)
   =================================== */
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-thumbnail {
  height: 200px;
  background: var(--background-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumbnail-blue {
  background: #4a9ed8;
}

.article-thumbnail-gradient {
  background: linear-gradient(135deg, #32b470 0%, #a2d7d3 100%);
  font-size: 48px;
  color: white;
}

.article-body {
  padding: 24px;
}

.article-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--background-light);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-title a:hover {
  color: #32b470;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===================================
   Grid System
   =================================== */
.grid {
  display: grid;
  gap: 32px;
}

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

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

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

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Hero Section（シンプル版 - 階層を浅くした構造用）
   =================================== */
.hero {
  position: relative;
  background-color: #faf6ef;
  background-image: url('../images/hero-bg-new.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 48px 80px 48px;
}

/* ヒーローセクション内のナビゲーション */
.hero-nav {
  position: absolute;
  top: 24px;
  right: 160px;
  display: flex;
  gap: 32px;
}

.hero-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-nav a:hover {
  color: #32b470;
}

/* ヒーロービジュアル画像 */
.hero-visual {
  position: absolute;
  right: 380px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 35%;
  height: auto;
  z-index: 1;
}

/* 左側コンテンツ */
.hero-left {
  max-width: 600px;
  z-index: 2;
}

.hero-left .hero-label {
  margin-bottom: 8px;
}

.hero-left .hero-title {
  margin-bottom: 24px;
}

.hero-left .hero-description {
  margin-bottom: 32px;
}

/* 統計アイテム */
.hero-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stat-item {
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #32b470;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #32b470;
  margin: 0;
}

/* シンプルな登録フォーム */
.hero-form-simple {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 357px;
  background: #32b470;
  border-radius: 20px;
  padding: 32px 24px 36px;
  z-index: 10;
}

.hero-form-simple .form-title {
  text-align: center;
  font-size: 16px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-form-simple label {
  display: block;
  font-size: 10px;
  color: #fff;
  margin-bottom: 6px;
  text-align: left;
}

.hero-form-simple input[type="text"],
.hero-form-simple input[type="email"],
.hero-form-simple input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background: #fff;
  height: 44px;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.hero-form-simple input[type="checkbox"] {
  width: 11px;
  height: 11px;
  margin-right: 8px;
}

.hero-form-simple button[type="submit"] {
  width: 196px;
  margin: 16px auto;
  display: block;
  padding: 8px 24px;
  background: #d5b325;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-form-simple button[type="submit"]:hover {
  opacity: 0.9;
}

.hero-form-simple .form-line-text {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0 12px;
}

.hero-form-simple .btn-line-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 196px;
  margin: 0 auto;
  padding: 8px 24px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-form-simple .btn-line-simple:hover {
  opacity: 0.9;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.hero-content {
  flex: 1;
  max-width: 720px;
}

.hero-label {
  font-size: 52px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0;
  line-height: 62.4px;
  max-width: 600px;
}

.hero-title {
  position: relative;
  margin-bottom: 24px;
  max-width: 600px;
  font-size: 52px;
  font-weight: 800;
  line-height: 62.4px;
  color: #1e293b;
}

.hero-title-line {
  position: relative;
  display: inline-block;
}

.hero-title-underline {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
  border-radius: 5px;
  z-index: 0;
}

.hero-title-text {
  position: relative;
  z-index: 1;
  font-size: 52px;
  font-weight: 800;
  line-height: 62.4px;
  color: #1e293b;
  white-space: nowrap;
}

.hero-title-text .text-green {
  color: #32b470;
  font-size: 62.4px;
  font-weight: 800;
  line-height: 74.88px;
}

.hero-description {
  font-size: 18px;
  font-weight: 400;
  color: #64748b;
  line-height: 32.4px;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-stats {
  display: inline-flex;
  background: #fff;
  border: 1px solid #32b470;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 8px;
}

.hero-stat {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  min-width: 120px;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #32b470;
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 12.8px;
  font-weight: 600;
  color: #64748b;
  margin-top: 7px;
  line-height: 23px;
}

/* Hero Form */
.hero-form-wrapper {
  flex-shrink: 0;
  width: 357px;
  margin-right: -100px;
}

.hero-form-card {
  background: #32b470;
  border-radius: 20px;
  padding: 32px 24px 36px;
}

.hero-form-title {
  text-align: center;
  font-size: 16px;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-form-title strong {
  display: block;
  font-weight: 400;
}

.hero-form .form-row {
  display: flex;
  gap: 16px;
}

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

.hero-form label {
  display: block;
  font-size: 10px;
  color: #fff;
  margin-bottom: 6px;
  text-align: left;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  background: #fff;
  height: 44px;
  box-sizing: border-box;
}

.hero-form input:focus {
  outline: none;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.form-checkbox input[type="checkbox"] {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  margin: 0;
}

.form-checkbox label {
  font-size: 10px;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.4;
}

.form-checkbox label a {
  color: #fff;
  text-decoration: underline;
}

.form-checkbox label span {
  color: #000;
}

/* ゴールドCTAボタンの正本。無料登録系ボタン（header-cta / closing-cta-primary / hero・rf の送信）と色・枠線・角丸を統一 */
.btn-submit {
  width: 196px;
  margin: 0 auto;
  display: block;
  padding: 8px 24px;
  background: var(--accent-color);
  color: #fff;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-submit:hover {
  background: #fff;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.form-divider span {
  padding: 0 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* LINE Button */
.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 196px;
  margin: 0 auto;
  padding: 8px 24px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-line:hover {
  opacity: 0.9;
}

.line-icon {
  width: 18px;
  height: 18px;
}

/* Register Page LINE Section */
.register-line-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.register-line-divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.register-line-divider::before,
.register-line-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.register-line-divider span {
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.btn-line-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-line-register:hover {
  opacity: 0.9;
}

.btn-line-register .line-icon {
  width: 20px;
  height: 20px;
}

/* Article Page LINE Section */
.article-line-section {
  margin-top: 32px;
}

.article-line-divider {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.article-line-divider::before,
.article-line-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.article-line-divider span {
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.btn-line-article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 12px 24px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-line-article:hover {
  opacity: 0.9;
}

.btn-line-article .line-icon {
  width: 20px;
  height: 20px;
}

/* Project Page LINE Section */
.project-line-section {
  margin-top: 24px;
}

.btn-full {
  width: 100%;
}

/* ===================================
   Flow Section (ご利用の流れ)
   =================================== */
.flow-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.flow-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.flow-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
}

.flow-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.flow-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.cta-text {
  margin-bottom: 24px;
  opacity: 0.9;
}

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

/* ===================================
   Footer
   =================================== */
.footer {
  background: #32b470;
  padding: 24px 0 16px;
}

.footer-cta {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-cta-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-cta-actions .btn-primary {
  background: white;
  color: #32b470;
  border-color: white;
}

.footer-cta-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.footer-cta-actions .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.footer-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 8px;
}

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

.footer-nav a:hover {
  color: white;
}

.footer-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
  padding: calc(var(--header-height) + 48px) 0 48px;
  background: var(--background-light);
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #32b470;
}

.page-subtitle {
  color: #32b470;
}

/* ===================================
   Article Page
   =================================== */
.article-header {
  padding: calc(var(--header-height) + 32px) 0 32px;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.article-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-header .article-category {
  display: inline-block;
  padding: 6px 12px;
  background: #e8f5e9;
  color: #32b470;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--text-color);
}

.article-header .article-meta {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 350;
}

.article-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.article-main {
  max-width: 800px;
  margin: 0 auto;
}

.article-sidebar {
  position: absolute;
  right: -80px;
  top: 0;
  width: 250px;
}

.article-toc {
  background: var(--background-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.article-toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.article-toc-list {
  list-style: none;
}

.article-toc-list li {
  margin-bottom: 12px;
}

.article-toc-list a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.article-toc-list a:hover {
  color: #32b470;
  border-left-color: var(--primary-color);
}

@media (max-width: 1200px) {
  .article-sidebar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .article-main {
    max-width: 100%;
  }

  .article-toc {
    position: static;
  }
}

.article-thumbnail-large {
  height: 300px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 40px;
}

.article-text {
  line-height: 2;
  color: var(--text-color);
}

.article-text h2 {
  font-size: 1.375rem;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.article-text p {
  margin-bottom: 24px;
}

.section-image {
  width: 100%;
  height: 200px;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--background-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.article-back {
  margin-top: 32px;
  text-align: center;
}

/* Related Articles */
.related-articles {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
}

.related-articles-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 32px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Table Styles
   =================================== */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
}

.table th,
.table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: var(--background-light);
  font-weight: 600;
  width: 30%;
}

.table td {
  background: var(--white);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  background: var(--background-light);
  font-weight: 600;
}

.faq-answer {
  padding: 20px 24px;
  background: var(--white);
}

/* ===================================
   Pagination
   =================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-item:hover,
.pagination-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ===================================
   Category Tabs
   =================================== */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.category-tab {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--white);
  transition: all 0.2s;
  white-space: nowrap;
}

.category-tab:hover,
.category-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ===================================
   Projects Filter & Sort Controls
   =================================== */
.projects-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
}

.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: #32b470;
}

.filter-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-dropdown label {
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

.sort-select {
  padding: 10px 36px 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--text-color);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ===================================
   Service Cards (提携サービス)
   =================================== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.service-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ===================================
   Partner Section
   =================================== */
.partner-hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.partner-logo {
  flex-shrink: 0;
  width: 360px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.partner-content {
  flex: 1;
}

.partner-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.partner-description {
  margin-bottom: 24px;
  color: var(--text-light);
}

.partner-highlights {
  display: flex;
  gap: 16px;
}

.partner-highlight {
  background: var(--background-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
}

.partner-highlight-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.partner-highlight-value {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Partner Cards (主要パートナー横型カード) */
.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.partner-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.partner-card:hover {
  box-shadow: var(--shadow-lg);
}

.partner-card-logo {
  flex-shrink: 0;
  width: 248px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--white);
  border-right: 1px solid var(--border-color);
}

.partner-card-logo img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* フリーランス協会ロゴ専用トリミング */
.partner-card-logo-freelance {
  position: relative;
  width: 248px;
  min-height: 160px;
}

.partner-card-logo-freelance img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 199px;
  height: 93px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

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

.partner-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.partner-card-text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.partner-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.partner-card-tag {
  padding: 7px 16px;
  background: rgba(50, 180, 112, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #32b470;
}

.partner-card-action {
  margin-top: auto;
}

@media (max-width: 768px) {
  .partner-card {
    flex-direction: column;
    margin: 0;
    max-width: 100%;
  }

  .partner-card-logo {
    width: 100%;
    min-height: 120px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 16px;
  }

  .partner-card-logo img {
    max-width: 160px;
    max-height: 80px;
  }

  .partner-card-logo-freelance {
    width: 100%;
  }

  .partner-card-logo-freelance img {
    width: 160px;
    height: auto;
  }

  .partner-card-body {
    padding: 20px 16px;
  }

  .partner-card-title {
    font-size: 1rem;
  }

  .partner-card-text {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .partner-card-tags {
    gap: 6px;
  }

  .partner-card-tag {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  .partner-card-action .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================================
   Responsive - Tablet (1024px)
   =================================== */
@media (max-width: 1024px) {
  /* Hero Section - Tablet */
  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
    padding: 0 24px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-label,
  .hero-title,
  .hero-description {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Logo - Tablet */
  .logo {
    left: 24px;
  }

  .logo img {
    height: 150px;
  }

  /* Section Title Images - Tablet */
  .section-title-wrapper-advantages .section-title-img-container,
  .section-title-wrapper-arrivals .section-title-img-container,
  .section-title-wrapper-flow .section-title-img-container,
  .section-title-wrapper-column .section-title-img-container {
    transform: scale(0.85);
  }
}

/* ===================================
   Responsive - Mobile (768px)
   =================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Hero Section - Mobile */
  .hero {
    padding: 120px 16px 48px;
    min-height: auto;
  }

  .hero-container {
    padding: 0;
    gap: 32px;
  }

  .hero-label {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hero-title-text {
    font-size: 28px;
    line-height: 1.4;
    white-space: normal;
  }

  .hero-title-text .text-green {
    font-size: 32px;
    line-height: 1.4;
  }

  .hero-title-underline {
    height: 8px;
    bottom: 2px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .hero-stats {
    flex-direction: column;
    border-radius: 12px;
    width: 100%;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
    min-width: auto;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .hero-stat-number {
    font-size: 24px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  /* Hero Form - Mobile */
  .hero-form-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .hero-form-card {
    padding: 24px 16px 28px;
    border-radius: 16px;
  }

  .hero-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .hero-form .form-group {
    margin-bottom: 16px;
  }

  .hero-form input[type="text"],
  .hero-form input[type="email"],
  .hero-form input[type="tel"] {
    height: 48px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .btn-submit,
  .btn-line {
    width: 100%;
    max-width: 240px;
  }

  /* Logo - Mobile */
  .logo {
    left: 16px;
    top: 12px;
  }

  .logo img {
    height: 100px;
  }

  /* Navigation - Mobile */
  .nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  /* Category Tabs - Mobile */
  .category-tabs {
    gap: 6px 8px;
    justify-content: center;
    padding-bottom: 0;
    margin-bottom: 24px;
  }

  .category-tab {
    padding: 8px 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* Section Title Images - Mobile */
  .section-title-wrapper-advantages .section-title-img-container {
    width: 240px;
    height: 56px;
  }

  .section-title-wrapper-arrivals .section-title-img-container {
    width: 250px;
    height: 50px;
  }

  .section-title-wrapper-flow .section-title-img-container {
    width: 165px;
    height: 54px;
  }

  .section-title-wrapper-column .section-title-img-container {
    width: 170px;
    height: 52px;
  }

  .section-subtitle {
    font-size: 0.875rem;
  }

  /* Feature Cards - Mobile */
  .feature-card {
    padding: 24px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  /* Project Cards - Mobile */
  .project-card-header,
  .project-card-body {
    padding: 16px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-price {
    font-size: 1.125rem;
  }

  .project-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Article Cards - Mobile */
  .article-thumbnail {
    height: 160px;
  }

  .article-body {
    padding: 16px;
  }

  /* Flow Section - Mobile */
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  /* Partner Section - Mobile */
  .partner-hero {
    flex-direction: column;
  }

  .partner-logo {
    width: 100%;
    max-width: 360px;
  }

  /* Footer - Mobile */
  .footer {
    padding: 20px 0 12px;
  }

  .footer-cta {
    padding-bottom: 12px;
    margin-bottom: 10px;
  }

  .footer-cta-title {
    font-size: 1.1rem;
  }

  .footer-cta-text {
    font-size: 0.8rem;
  }

  .footer-cta-text br {
    display: none;
  }

  .cta-actions,
  .footer-cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
  }

  .footer-nav a {
    font-size: 0.8rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  /* Footer（案件を探す/コラム/会社情報の3列＋ブランドブロック構成）- Mobile
     リンク3列を縦積みにし、ブランドブロックを最下部へ回す。DOM順は変えずorderで並び替える。
     home.css側の同名クラス（.footer-top等）と詳細度を揃えるため .footer を前置して確実に上書きする。 */
  .footer .footer-top {
    flex-direction: column;
  }

  .footer .footer-brand-col {
    order: 2;
    max-width: none;
  }

  .footer .footer-links {
    order: 1;
    flex-direction: column;
    gap: 32px;
  }

  /* Page Header - Mobile */
  .page-header {
    padding: calc(var(--header-height) + 24px) 0 32px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  /* Table - Mobile */
  .table th,
  .table td {
    padding: 12px 16px;
    font-size: 0.875rem;
  }

  .table th {
    width: 35%;
  }

  /* Buttons - Mobile */
  .btn-lg {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}

/* ===================================
   Responsive - Small Mobile (480px)
   =================================== */
@media (max-width: 480px) {
  .hero {
    padding: 100px 12px 40px;
  }

  .hero-label {
    font-size: 24px;
  }

  .hero-title,
  .hero-title-text {
    font-size: 24px;
  }

  .hero-title-text .text-green {
    font-size: 28px;
  }

  .hero-description {
    font-size: 13px;
  }

  .logo img {
    height: 80px;
  }

  .section-title-wrapper-advantages .section-title-img-container {
    width: 200px;
    height: 46px;
  }

  .section-title-wrapper-arrivals .section-title-img-container {
    width: 210px;
    height: 42px;
  }

  .section-title-wrapper-flow .section-title-img-container {
    width: 140px;
    height: 46px;
  }

  .section-title-wrapper-column .section-title-img-container {
    width: 145px;
    height: 44px;
  }

  .container {
    padding: 0 12px;
  }

  .section {
    padding: 40px 0;
  }

  .grid {
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .project-tags {
    gap: 6px;
  }

  .project-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .category-tabs {
    gap: 5px 6px;
    justify-content: center;
  }

  .category-tab {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}

/* ===================================
   Additional Responsive Utilities
   =================================== */

/* Company page 2-column layout */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .company-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Business cards centered row */
.business-cards-centered {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.business-cards-centered .feature-card {
  flex: 0 0 calc(33.333% - 22px);
  max-width: calc(33.333% - 22px);
}

@media (max-width: 1024px) {
  .business-cards-centered {
    flex-direction: column;
    align-items: center;
  }

  .business-cards-centered .feature-card {
    flex: 0 0 100%;
    max-width: 400px;
    width: 100%;
  }
}

/* History timeline */
.history-item {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.history-date {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  color: #32b470;
}

@media (max-width: 768px) {
  .history-item {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .history-date {
    width: auto;
  }
}

/* Mission section responsive */
.mission-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-title {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .mission-title {
    font-size: 1.5rem;
  }

  .mission-title br {
    display: none;
  }
}

/* Story card responsive */
.story-card {
  padding: 40px;
}

@media (max-width: 768px) {
  .story-card {
    padding: 24px;
  }
}

/* ===================================
   Mobile Hamburger Menu
   =================================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1003;
  /* 追従はしない(2026-08-25 FB)。上スクロール時はhome.css(body.header-pinned)でfixedに切り替わる */
  position: absolute;
  top: 16px;
  right: 16px;
}

/* メニューを開いている間は画面に固定する(閉じるXが常に見える必要があるため) */
.mobile-menu-btn.active { position: fixed; }

.mobile-menu-btn .hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

/* Hamburger animation when open（4本線: 1と4をX化し中2本を消す） */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2),
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(4) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer（Studio版と同じ右スライドイン+薄スクリム） */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background 0.35s ease, visibility 0s linear 0.35s;
}

.mobile-nav.active {
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.14);
  transition: background 0.35s ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(72%, 300px);
  background: #fff;
  padding: 84px 30px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-group {
  margin: 0 0 32px;
}

.mobile-nav-group-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0 12px;
  transition: color 0.2s;
}

.mobile-nav-group-title:only-child {
  margin-bottom: 0;
}

.mobile-nav-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-sub a {
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-group-title:hover,
.mobile-nav-sub a:hover {
  color: #32b470;
}

/* CTA+SNSはパネル下部に常時表示（項目が多くスクロールしても隠れないようにsticky固定） */
.mobile-nav-bottom {
  position: sticky;
  bottom: 0;
  margin: 0 -30px;
  padding: 16px 30px 22px;
  background: #fff;
  box-shadow: 0 -14px 18px -14px rgba(0, 0, 0, 0.14);
}

.mobile-nav-cta {
  margin: 0 0 14px;
}

.mobile-nav-cta .btn {
  width: 100%;
  text-align: center;
}

.mobile-nav-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-nav-social a {
  display: inline-flex;
  color: #4c4c4c;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: none;
  }
}

/* Ensure content doesn't overflow on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
  }

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

  /* Hide br tags on mobile for better text flow */
  .section-subtitle br,
  .footer-cta-text br {
    display: none;
  }

  /* Register form mobile adjustments */
  .register-form-container {
    padding: 24px 16px;
  }

  /* Partner CTA section mobile */
  .partner-cta-text br {
    display: none;
  }
}

/* ===================================
   Form Styles (for register page)
   =================================== */
.form-container {
  max-width: 500px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
}

@media (max-width: 768px) {
  .form-card {
    padding: 24px 20px;
  }
}

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

.form-group-standalone label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group-standalone input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px; /* Prevent iOS zoom */
  box-sizing: border-box;
}

.form-group-standalone input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ===================================
   Project Detail Info Cards
   =================================== */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.project-info-card {
  background: var(--background-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.project-info-card-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.project-info-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  word-break: break-word;
}

.project-info-card-value.highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: #32b470;
}

@media (max-width: 768px) {
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-info-card {
    padding: 16px 12px;
  }

  .project-info-card-label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .project-info-card-value {
    font-size: 0.9rem;
  }

  .project-info-card-value.highlight {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .project-info-grid {
    gap: 10px;
  }

  .project-info-card {
    padding: 14px 10px;
  }

  .project-info-card-value.highlight {
    font-size: 1rem;
  }
}

/* ===================================
   Partner Detail Page
   =================================== */
.partner-detail-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.partner-detail-logo-card {
  flex-shrink: 0;
  width: 363px;
  height: 380px;
  background: #f8faf9;
  border-radius: 16px;
  padding: 74px 24px 24px;
  text-align: center;
  box-sizing: border-box;
}

.partner-detail-logo-card img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.partner-detail-logo-card h3 {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.partner-detail-logo-card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.8;
}

.partner-detail-content {
  flex: 1;
  min-width: 0;
}

.partner-detail-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.partner-detail-content p {
  color: #64748b;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 24px;
}

.partner-price-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  padding-top: 8px;
}

.partner-price-box {
  background: rgba(50,180,112,0.1);
  border-radius: 12px;
  padding: 15px 24px;
  text-align: center;
  flex: 1 1 calc(50% - 8px);
  min-width: 180px;
}

.partner-price-box.highlight {
  background: #32b470;
}

.partner-price-box-label {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 4px;
  white-space: nowrap;
}

.partner-price-box.highlight .partner-price-box-label {
  color: white !important;
  opacity: 0.9;
}

.partner-price-box-value {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.partner-price-box.highlight .partner-price-box-value {
  color: white !important;
}

.partner-price-box-value.strikethrough {
  text-decoration: line-through;
  color: #1e293b;
}

.partner-price-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #32b470;
}

/* Price compare nowrap - 1行表示 */
.partner-price-nowrap {
  flex-wrap: nowrap;
}

.partner-price-nowrap .partner-price-box {
  flex: 1;
  min-width: auto;
}

@media (max-width: 768px) {
  .partner-detail-layout {
    flex-direction: column;
    gap: 24px;
  }

  .partner-detail-logo-card {
    width: 100%;
    height: auto;
    padding: 32px 24px;
  }

  .partner-detail-logo-card img {
    max-width: 200px;
  }

  .partner-detail-content h2 {
    font-size: 1.35rem;
  }

  .partner-detail-content p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .partner-price-compare {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .partner-price-box {
    padding: 12px 16px;
    min-width: auto;
    flex: 1;
  }

  .partner-price-box-label {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .partner-price-box-value {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    white-space: nowrap;
  }

  .partner-price-arrow {
    font-size: 1.25rem;
  }

  /* Price compare nowrap (1行表示) */
  .partner-price-nowrap {
    flex-wrap: nowrap !important;
  }

  .partner-price-nowrap .partner-price-box {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
  }

  .partner-price-nowrap .partner-price-box-value {
    font-size: 1.25rem !important;
  }

  /* Insurance table mobile */
  .insurance-table-wrapper {
    overflow-x: auto;
  }

  .insurance-table th,
  .insurance-table td {
    padding: 12px 10px;
    font-size: 0.8rem;
  }

  .insurance-table td:last-child {
    white-space: nowrap;
    min-width: 80px;
  }

  /* Steps flow mobile */
  .steps-flow {
    flex-direction: column !important;
    gap: 32px !important;
  }

  .steps-flow .step-item {
    display: flex;
    align-items: center;
    text-align: left !important;
    gap: 16px;
  }

  .steps-flow .step-number {
    margin: 0 !important;
    flex-shrink: 0;
    width: 60px !important;
    height: 60px !important;
    font-size: 1.25rem !important;
  }

  .steps-flow .step-content {
    flex: 1;
  }

  .steps-flow .step-content h3 {
    margin-bottom: 4px !important;
  }

  .steps-flow .step-content p {
    margin: 0 !important;
  }

  .steps-connection-line {
    display: none !important;
  }

  /* Calculation flow mobile */
  .calculation-flow {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .calculation-flow .calculation-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .calculation-flow .calculation-item:last-child {
    border-bottom: none;
  }
}

/* ===================================
   右端中央の無料登録ボタン(PCのみ表示・画面に追従)
   =================================== */
.side-register-btn {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  transition: opacity 0.3s ease-in-out;
}
.side-register-btn img { display: block; width: 72px; height: auto; }
.side-register-btn:hover { opacity: 0.85; }
@media (min-width: 1025px) {
  .side-register-btn { display: block; }
}
