/*
Theme Name: Machi Studio
Theme URI: https://machistudio.jp
Author: Machi Studio Team
Author URI: https://machistudio.jp
Description: 宮城の中小企業・個人事業主のための、取材から始めるWeb集客支援「マチ スタジオ」公式テーマ。
Version: 1.0.2
License: Proprietary
Text Domain: machi-studio
*/

@charset "UTF-8";

/* Contact integration: scoped to the LP form area. */
#contact { scroll-margin-top: 100px; }
#contact .p-contact__form {
  margin-top: 40px;
  padding: 36px;
  background: #fff;
  color: #2d2d2d;
  border-radius: 24px;
  text-align: left;
  overflow-wrap: anywhere;
  min-width: 0;
}
#contact .p-contact__notice { margin: 0 0 12px; line-height: 1.8; }
#contact .wpforms-container { margin: 0; max-width: 100%; font-family: inherit; }
#contact .wpforms-container .wpforms-field { padding: 12px 0; min-width: 0; }
#contact .wpforms-container .wpforms-field-label { color: #2d2d2d; font-weight: 700; margin-bottom: 8px; }
#contact .wpforms-container input[type="text"],
#contact .wpforms-container input[type="email"],
#contact .wpforms-container input[type="tel"],
#contact .wpforms-container textarea,
#contact .wpforms-container select {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  border: 1px solid #87989b; border-radius: 8px;
  background: #fff; color: #2d2d2d;
  font-family: inherit; font-size: 16px; line-height: 1.5;
  padding: 12px; height: auto; min-height: 48px;
}
#contact .wpforms-container textarea { min-height: 160px; resize: vertical; }
#contact .wpforms-container input:focus-visible,
#contact .wpforms-container textarea:focus-visible,
#contact .wpforms-container select:focus-visible,
#contact .wpforms-container button:focus-visible {
  outline: 3px solid #08717c; outline-offset: 3px;
}
#contact .wpforms-container .wpforms-submit-container { text-align: center; padding-top: 24px; }
#contact .wpforms-container button[type="submit"] {
  background: #08717c; color: #fff; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 18px; font-weight: 700;
  padding: 16px 40px; min-height: 52px; height: auto; max-width: 100%;
  white-space: normal; cursor: pointer;
}
#contact .wpforms-container button[type="submit"]:hover { background: #075b64; }
#contact .wpforms-container button[type="submit"]:disabled { opacity: .65; cursor: wait; }
#contact .wpforms-container label.wpforms-error { color: #b42318; font-size: 14px; }
#contact .wpforms-container .wpforms-field-description,
#contact .wpforms-container .wpforms-field-sublabel { color: #505050; }
#contact .wpforms-confirmation-container,
#contact .wpforms-confirmation-container-full {
  background: #eef8f8; color: #2d2d2d; border: 1px solid #08717c;
  padding: 24px; border-radius: 12px; overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  #contact { scroll-margin-top: 80px; }
  #contact .p-contact__form { padding: 24px 16px; border-radius: 16px; }
  #contact .wpforms-container .wpforms-field-row { max-width: 100%; }
  #contact .wpforms-container .wpforms-field-row-block {
    float: none; width: 100%; margin-left: 0; margin-bottom: 12px;
  }
  #contact .wpforms-container button[type="submit"] { width: 100%; padding: 16px 20px; }
}

/* ==========================================================================
   Variables (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #19A0AE;
  --color-primary-dark: #1A909C;
  --color-text-main: #2D2D2D;
  --color-text-sub: #505050;
  --color-text-light: #595959;
  --color-white: #FFFFFF;

  /* Typography */
  --font-family-base: 'Zen Maru Gothic', sans-serif;
  
  /* Layout */
  --content-width: 1155px;
  --header-height: 90px;
  --header-height-sp: 70px;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.u-no-scroll {
  overflow: hidden;
}

@media (max-width: 991px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.u-keep {
  display: inline-block;
  white-space: nowrap;
}

.u-color-primary {
  color: var(--color-primary-dark); /* メインカラー（青緑） */
}

.u-sp-only {
  display: none;
}

@media (max-width: 991px) {
  .u-sp-only {
    display: block;
  }
}

/* ==========================================================================
   Components
   ========================================================================== */
.c-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1.2;
}

.c-btn--small {
  padding: 10px 24px;
  font-size: 14px;
}

.c-btn--large {
  padding: 20px 40px;
  font-size: 24px;
}

/* ==========================================================================
   Layout (Common)
   ========================================================================== */
.l-section {
  padding: 100px 20px;
  background-color: var(--color-white);
}

.l-section--bg-light {
  background-color: var(--color-bg-light);
}

.l-section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ==========================================================================
   Components (Common)
   ========================================================================== */
/* Section Title */
.c-section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.05em; /* 約3px相当 */
  text-indent: 0.05em; /* letter-spacingによる右側の余白を相殺して完全な中央揃えにする */
  line-height: 1.2;
}

.c-section-title--white {
  color: var(--color-white);
}

@media (max-width: 767px) {
  .l-section {
    padding: 60px 20px;
  }
  .c-section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
}

/* ==========================================================================
   Layout (Header)
   ========================================================================== */
.l-header {
  height: var(--header-height);
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.l-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.l-header__logo-pc {
  text-decoration: none;
  display: block;
}

.l-header__logo-sp {
  display: none;
}

.l-header__hamburger {
  display: none;
}

.l-header__drawer {
  display: none;
}

.l-header__logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.l-header__nav-list {
  display: flex;
  gap: 32px;
}

.l-header__nav-item {
  font-size: 14px;
  font-weight: 900;
}

/* SP Header */
@media (max-width: 991px) {
  .l-header {
    width: 100%;
    max-width: 100vw;
    height: 64px;
    background-color: var(--color-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }
  .l-header__inner {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
  }
  .l-header__logo-pc {
    display: none;
  }
  .l-header__logo-sp {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .l-header__logo-sp-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
  }
  .l-header__logo-sp-text {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-primary-dark);
    letter-spacing: 0.04em;
    font-family: var(--font-family-base);
  }
  .l-header__nav {
    display: none;
  }
  .l-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
  }
  .l-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2d2d2d;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .l-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .l-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .l-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ドロワーメニュー */
  .l-header__drawer {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 105;
    padding: 48px 24px;
    overflow-y: auto;
  }
  .l-header__drawer.is-open {
    transform: translateX(0);
  }
  .l-header__drawer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .l-header__drawer-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    margin-bottom: 40px;
  }
  .l-header__drawer-item a {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-text-main);
    text-decoration: none;
  }
  .l-header__drawer-btn {
    width: auto;
    max-width: 240px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 9999px;
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(19, 154, 169, 0.3);
    margin: 0 auto;
    text-align: center;
  }
}

/* ==========================================================================
   Project (Hero / FV)
   ========================================================================== */
.p-hero {
  padding: 40px 20px 40px; /* 下部の余白を調整 */
  background: var(--color-white);
  overflow: hidden;
  position: relative; /* 疑似要素の配置基準 */
}

.p-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px); /* 左右に50pxずつの余白 */
  height: 4px;
  background-color: var(--color-primary); /* 青いボーダー */
}

.p-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  /* CSS Grid を用いて、テキストと画像を重ね合わせる */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
  min-height: 800px; /* 画像の高さ分を確保 */
}

/* ビジュアル（背景的な扱い） */
.p-hero__visual {
  grid-column: 2 / 12; /* 幅を広げて画像を大きくし、中央に配置 */
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: center; /* 中央寄せを追加 */
  z-index: 1;
}

.p-hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ロゴ（左上） */
.p-hero__logo {
  grid-column: 1 / 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* 画像とテキストをさらに密着させるため0に変更 */
  align-self: start;
  justify-self: start; /* 追加: グリッドエリア内でより左に寄せる */
  margin-top: 0; /* 上に寄せる（20pxから0に変更） */
  margin-left: 10px; /* 左端からの微調整 */
  z-index: 2;
}

.p-hero__logo-img {
  width: 100px; /* 80pxから大きく */
  height: auto;
}

.p-hero__logo-text {
  font-size: 28px; /* 24pxから少し大きく */
  font-weight: 900;
  color: var(--color-primary-dark);
  line-height: 1; /* 追加: フォント自体の上下余白を削って密着させる */
  /* letter-spacing は削除してFigmaの詰まった印象に合わせる */
}

/* キャッチコピー（右上） */
.p-hero__copy {
  grid-column: 8 / 13; /* 6/13 から 8/13 に変更し、より右側に寄せる */
  grid-row: 1;
  font-size: 36px;
  font-weight: 900;
  color: var(--color-text-light);
  line-height: 1.5;
  letter-spacing: 0.05em;
  align-self: start;
  text-align: center; /* 追加: 中央揃え */
  z-index: 2;
  margin-top: 0; /* 40pxから0に変更して上に移動 */
}

/* リード文（左下） */
.p-hero__lead {
  grid-column: 1 / 4; /* 1/5 から 1/4 に変更し、Figmaの288px幅を再現（赤い線に揃える） */
  grid-row: 3;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text-sub);
  line-height: 1.75; /* 余白を微調整（約2ポイント） */
  align-self: end;
  justify-self: end; /* 右端（赤い線）を基準に配置 */
  text-align: left; /* 中央揃えから左端揃えに変更 */
  margin-bottom: 20px;
  z-index: 2;
}

/* CTAエリア（右下） */
.p-hero__cta {
  grid-column: 8 / 13;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center; /* ボタンの幅に合わせるため */
  gap: 16px;
  align-self: end;
  margin-bottom: 20px;
  z-index: 2;
}

.p-hero__cta-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-sub);
  text-align: center;
}

/* ==========================================================================
   Responsive (SP Hero)
   ========================================================================== */
@media (max-width: 991px) {
  .p-hero {
    width: 100%;
    max-width: 100vw;
    padding: 44px 20px 72px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .p-hero::after {
    display: block;
    width: 100%;
    left: 0;
    transform: none;
    height: 4px;
    background-color: var(--color-primary);
  }
  
  .p-hero__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    gap: 0;
  }
  
  /* FV内のロゴはSPではヘッダーに配置されたため非表示 */
  .p-hero__logo {
    display: none;
  }
  
  /* 1. キャッチコピー */
  .p-hero__copy {
    order: 1;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: #333333;
    text-align: center;
    margin: 0 0 32px 0;
    width: 100%;
  }
  
  /* 2. イラスト画像 */
  .p-hero__visual {
    order: 2;
    margin: 0 auto 32px;
    width: 100%;
    max-width: 345px;
    display: flex;
    justify-content: center;
  }

  .p-hero__img {
    width: 100%;
    height: auto;
  }

  /* 3. リード文 */
  .p-hero__lead {
    order: 3;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.75;
    color: #333333;
    text-align: center;
    margin: 0 auto 36px;
    width: 100%;
  }
  
  /* 4. CTAエリア */
  .p-hero__cta {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 0;
  }
  
  .p-hero__cta .c-btn--large {
    width: 100%;
    max-width: 290px;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 9999px;
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(19, 154, 169, 0.35);
    text-align: center;
    display: inline-block;
  }

  .p-hero__cta-text {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
    text-align: center;
    margin: 0;
  }
}

/* ==========================================================================
   Project (Problems)
   ========================================================================== */
.p-problems .c-section-title {
  margin-bottom: 80px; /* 見出し下の余白を広げてコンテンツ全体を下げる */
}

.p-problems__person-sp {
  display: none;
}

.p-problems__list-wrap {
  position: relative; /* キャラクター画像の絶対配置の基準 */
  display: flex;
  justify-content: center;
  max-width: 1100px; /* キャラクター画像とリストを収める幅（余白を広げるために調整） */
  margin: 0 auto 40px;
}

.p-problems__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  z-index: 1; /* キャラクター画像より奥、または手前（必要に応じて） */
}

.p-problems__person {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* リストの縦方向の中央に配置 */
  width: 140px;
  height: auto;
  z-index: 2;
}

.p-problems__person--left {
  left: 0;
}

.p-problems__person--right {
  right: 0;
}

.p-problems__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  background-color: #DDE6E4; /* 完成イメージの箱の色（薄い緑がかったグレー） */
  border-radius: 8px; /* 箱の丸み */
  width: 100%;
}

.p-problems__check {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.p-problems__text {
  font-size: 18px; /* 文字を少し小さくして1行に収める */
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.5;
  letter-spacing: -0.02em; /* 少し字間を詰める（はみ出し防止） */
}

.p-problems__message {
  text-align: center;
  margin-top: 60px;
}

.p-problems__triangle {
  color: var(--color-primary);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 50px;
}

.p-problems__message-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.8;
}

.p-problems__message-text-pc {
  display: block;
}

.p-problems__message-text-sp {
  display: none;
}

@media (max-width: 991px) {
  .p-problems {
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .p-problems__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    width: 100%;
  }
  .p-problems__person-sp {
    display: block;
    width: 54px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
  }
  .p-problems .c-section-title.p-problems__title {
    font-size: 21px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.35;
    text-align: center;
    margin-bottom: 0;
  }
  .p-problems__list-wrap {
    margin: 0 auto 32px;
    max-width: 100%;
  }
  .p-problems__person {
    display: none; /* PC用の絶対配置画像は非表示 */
  }
  .p-problems__list {
    gap: 10px;
    max-width: 100%;
  }
  .p-problems__item {
    padding: 12px 14px;
    gap: 10px;
    align-items: flex-start;
    border-radius: 8px;
    background-color: #DDE6E4;
  }
  .p-problems__check {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    flex-shrink: 0;
  }
  .p-problems__text {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-main);
  }
  .p-problems__message {
    margin-top: 32px;
  }
  .p-problems__triangle {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 24px;
  }
  .p-problems__message-text-pc {
    display: none;
  }
  .p-problems__message-text-sp {
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    text-align: center;
  }
}


/* ==========================================================================
   Project (Wrapper Primary)
   ========================================================================== */
.l-wrapper-primary {
  max-width: var(--content-width);
  margin: 80px auto;
  background-color: var(--color-primary);
  border-radius: 40px;
  padding: 60px 40px;
}

.l-wrapper-primary__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media (max-width: 991px) {
  .l-wrapper-primary {
    border-radius: 24px;
    padding: 36px 16px 44px;
    margin: 40px auto;
  }
  .l-wrapper-primary__inner {
    gap: 44px;
  }
}

/* ==========================================================================
   Project (Concept)
   ========================================================================== */
.p-concept__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.p-concept__img-wrap {
  flex: 0 0 45%;
  border-radius: 20px;
  overflow: hidden;
}

.p-concept__img {
  width: 100%;
  height: auto;
  display: block;
}

.p-concept__content {
  flex: 1;
  max-width: 480px;
  color: var(--color-white);
}

.p-concept__catch {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  margin-left: -0.4em; /* 鉤括弧の字形余白を相殺し、下の「私」「ホ」の左端ラインと視覚的に整列 */
}

.p-concept__lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: nowrap;
}

.p-concept__text {
  font-size: 14px;
  line-height: 2;
  font-weight: 500;
  opacity: 0.9;
  max-width: 480px;
}

@media (max-width: 991px) {
  .p-concept__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .p-concept__content {
    display: contents;
  }
  .p-concept__catch {
    order: 1;
    font-size: clamp(21px, calc((100vw - 32px) / 14.72), 26px);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 0;
    margin-left: 0;
    color: var(--color-white);
  }
  .p-concept__img-wrap {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
  }
  .p-concept__lead {
    order: 3;
    font-size: 18.5px;
    font-weight: 900;
    line-height: 1.55;
    margin-top: 8px;
    margin-bottom: 12px;
    white-space: normal;
    text-align: center;
    color: var(--color-white);
  }
  .p-concept__text {
    display: none;
  }
}

/* ==========================================================================
   Project (Features)
   ========================================================================== */
.p-features__list {
  display: flex;
  gap: 24px;
}

.p-features__item {
  flex: 1;
  background-color: var(--color-white);
  padding: 32px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.p-features__number {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 16px;
}

.p-features__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  line-height: 1.5;
}

.p-features__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.p-features__text-pc {
  display: block;
}

.p-features__text-sp {
  display: none;
}

@media (max-width: 991px) {
  .p-features .c-section-title {
    font-size: clamp(20px, 5.6vw, 21.5px);
    font-weight: 900;
    margin-bottom: 20px;
    white-space: nowrap;
    text-align: center;
  }
  .p-features__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .p-features__item {
    padding: 14px 14px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 8px;
    align-items: baseline;
  }
  .p-features__number {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--color-primary);
  }
  .p-features__content {
    display: contents;
  }
  .p-features__title {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(11.5px, 3.25vw, 12.5px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.015em;
    white-space: nowrap;
    margin-bottom: 0;
    color: var(--color-text-main);
  }
  .p-features__text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .p-features__text-pc {
    display: none;
  }
  .p-features__text-sp {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.6;
    color: #555555;
  }
}

/* ==========================================================================
   Project (Services)
   ========================================================================== */
.p-services--white-box {
  background-color: var(--color-white);
  border-radius: 24px;
  padding: 40px;
}

.p-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.p-services__card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-services__card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s ease;
}

.p-services__card:hover .p-services__card-bg {
  transform: scale(1.05);
}

.p-services__card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.p-services__card-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.p-services__card-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.p-services__card-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991px) {
  .p-services--white-box {
    padding: 24px 12px 28px;
    border-radius: 16px;
  }
  .p-services--white-box .c-section-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--color-primary-dark);
    margin-bottom: 18px;
    white-space: nowrap;
    text-align: center;
  }
  .p-services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .p-services__card-img-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }
  .p-services__card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .p-services__card-title {
    font-size: clamp(13px, 3.8vw, 15px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  }
  .p-services__card-title .u-keep {
    display: block;
    white-space: nowrap;
  }
  .p-services__card-text {
    display: none;
  }
}

/* ==========================================================================
   Project (Flow)
   ========================================================================== */
.p-flow {
  position: relative;
  padding-bottom: 80px; /* 下部ボーダーのための余白 */
}

/* セクション上部のボーダー */
.p-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px); /* 左右に余白 */
  height: 4px;
  background-color: var(--color-primary);
}

/* セクション下部のボーダー */
.p-flow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px); /* 左右に余白 */
  height: 4px;
  background-color: var(--color-primary);
}

.p-flow__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.p-flow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 12px;
  padding: 32px;
}

/* 左上の番号バッジ */
.p-flow__number {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-30%, -30%);
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.p-flow__img-wrap {
  flex: 0 0 45%; /* 画像エリアの幅 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-flow__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.p-flow__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-flow__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.p-flow__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-text-main);
  line-height: 1.4;
}

.p-flow__badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  line-height: 1.2;
}

.p-flow__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.p-flow__text-sp {
  display: none;
}

@media (max-width: 991px) {
  .p-flow {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .p-flow .c-section-title {
    margin-bottom: 20px;
  }
  .p-flow::before,
  .p-flow::after {
    width: 100%;
    left: 0;
    transform: none;
    height: 4px;
    background-color: var(--color-primary);
  }
  .p-flow__grid {
    grid-template-columns: 1fr; /* タブレット以下は1列 */
    gap: 20px;
  }
  .p-flow__text-pc {
    display: none;
  }
  .p-flow__text-sp {
    display: block;
  }
}

@media (max-width: 767px) {
  .p-flow__item {
    flex-direction: column;
    padding: 20px 14px 16px;
    gap: 12px;
  }
  .p-flow__number {
    width: 42px;
    height: 42px;
    font-size: 16px;
    transform: translate(-20%, -20%);
  }
  .p-flow__img-wrap {
    width: 52%;
    margin: 0 auto;
  }
  .p-flow__content {
    gap: 8px;
  }
  .p-flow__title {
    font-size: 18px;
  }
  .p-flow__text-sp {
    font-size: 12.5px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .p-flow__badge {
    font-size: 12px;
    padding: 3px 12px;
  }
}

/* ==========================================================================
   Project (Works)
   ========================================================================== */
.p-works {
  position: relative;
  padding-bottom: 80px; /* 下部ボーダーのための余白 */
}

/* セクション下部のボーダー */
.p-works::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px); /* 左右に余白 */
  height: 4px;
  background-color: var(--color-primary);
}

.p-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.p-works__item {
  display: flex;
  flex-direction: column;
}

.p-works__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形に近い比率（完成イメージに寄せる） */
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* 画像にドロップシャドウ */
  margin-bottom: 24px;
}

.p-works__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 各画像ごとに頭の高さ（トリミング位置）を個別に調整 */
.p-works__item:nth-child(1) .p-works__img {
  object-position: center 20%; /* 左の男性 */
}
.p-works__item:nth-child(2) .p-works__img {
  object-position: center 35%; /* 中央の女性（少し下げる） */
}
.p-works__item:nth-child(3) .p-works__img {
  object-position: center 30%; /* パーセンテージを増やして画像を上に引き上げ、頭の位置を高くする */
}

.p-works__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左寄せ */
  padding: 0 8px; /* 少しだけ内側に余白 */
}

.p-works__badge {
  display: inline-block;
  background-color: #E0F2F1; /* 薄い水色 */
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 999px; /* カプセル型 */
  margin-bottom: 16px;
}

.p-works__title {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 4px;
}

.p-works__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.p-works__info-sp {
  display: none;
}

@media (max-width: 991px) {
  .p-works {
    padding-bottom: 64px;
  }
  .p-works::after {
    width: 100%;
    left: 0;
    transform: none;
    height: 4px;
    background-color: var(--color-primary);
  }
  .p-works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .p-works {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .p-works .c-section-title {
    margin-bottom: 24px;
  }
  .p-works__grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 300px;
    margin: 0 auto;
  }
  .p-works__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .p-works__img-wrap {
    flex: 0 0 44%;
    border-radius: 20px;
    margin-bottom: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .p-works__content {
    flex: 1;
    padding: 4px 0 0;
    gap: 8px;
  }
  .p-works__badge {
    font-size: 11.5px;
    padding: 3px 12px;
    margin-bottom: 0;
    letter-spacing: 0.05em;
  }
  .p-works__info-pc {
    display: none;
  }
  .p-works__info-sp {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .p-works__sp-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13.5px;
    font-weight: 900;
    color: var(--color-text-main);
    line-height: 1.45;
  }
  .p-works__sp-text {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-sub);
    line-height: 1.45;
  }
}

/* ==========================================================================
   Project (Price)
   ========================================================================== */
.p-price {
  position: relative;
  padding-bottom: 80px;
}

.p-price .c-section-title {
  margin-bottom: 30px; /* 見出しとテキストの間隔を詰める（デフォルトは60px） */
}

.p-price__intro {
  text-align: center;
  margin-bottom: 60px;
}

.p-price__intro-text {
  font-size: 22px; /* 18pxから拡大して完成イメージに寄せる */
  font-weight: 900; /* より太く強調 */
  color: var(--color-text-sub);
  line-height: 1.6; /* 行間を少し詰める */
  letter-spacing: 0.25em; /* 文字間をさらに広げて横に長くする */
  text-indent: 0.25em; /* letter-spacing分のズレを相殺して中央揃えを維持 */
  display: flex;
  flex-direction: column;
  align-items: center; /* 各行を中央揃えにする */
}

.p-price__intro-text--sp {
  display: none;
}

.p-price__list-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.5em; /* 文字間を思い切って広げる */
  text-indent: 0.5em; /* 中央揃えのズレを相殺 */
}
.p-price__list-title::before,
.p-price__list-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-primary-dark);
}

.p-price__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.p-price__item {
  background-color: var(--color-white);
  border: 2px solid var(--color-primary-dark);
  border-radius: 24px; /* カプセル状の大きな角丸 */
  padding: 32px 40px; /* 全体に余白を設ける */
}

.p-price__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-primary-dark);
  margin-bottom: 24px; /* bodyとの余白 */
}

.p-price__ex {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.p-price__problem {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.p-price__body {
  /* headと統合するため、paddingなどは削除 */
}

.p-price__row {
  display: flex;
  margin-bottom: 12px;
  padding-left: 20px; /* 少しインデントさせる */
}

.p-price__row:last-child {
  margin-bottom: 0;
}

.p-price__label {
  width: 90px; /* 「ご提案：」「料　金：」に合わせた幅 */
  flex-shrink: 0;
  font-weight: 900;
  color: var(--color-text-sub); /* グレーに統一 */
}

.p-price__desc {
  flex-grow: 1;
  font-weight: 700;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.p-price__text--sp {
  display: none;
}

@media (max-width: 991px) {
  .p-price {
    padding-bottom: 64px;
  }
}

@media (max-width: 767px) {
  .p-price__text--pc {
    display: none;
  }
  .p-price__text--sp {
    display: inline;
  }
  .p-price__list-title {
    font-size: 18px;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    margin-bottom: 24px;
    gap: 16px;
  }
  .p-price__list {
    gap: 12px;
  }
  .p-price__item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid var(--color-primary-dark);
  }
  .p-price__head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
    padding: 0;
  }
  .p-price__ex {
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    color: var(--color-primary-dark);
  }
  .p-price__problem {
    font-size: 12.8px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--color-primary-dark);
    white-space: nowrap;
  }
  .p-price__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
  }
  .p-price__row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-bottom: 0;
    padding-left: 0;
    gap: 0;
  }
  .p-price__row--suggest {
    font-size: 11.5px;
    color: #333;
    line-height: 1.4;
  }
  .p-price__row--suggest .p-price__label {
    width: auto;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: #333;
  }
  .p-price__row--suggest .p-price__desc {
    font-size: 11.5px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
  }
  .p-price__row--price {
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 2px;
  }
  .p-price__row--price .p-price__label {
    width: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.1em;
    margin-right: 4px;
  }
  .p-price__row--price .p-price__desc {
    flex-grow: 0;
    font-size: 13px;
    font-weight: 900;
    color: #222;
    white-space: nowrap;
  }
  .p-price__intro {
    margin-bottom: 36px;
  }
  .p-price__intro-text--pc {
    display: none;
  }
  .p-price__intro-text--sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
    font-weight: 900;
    color: var(--color-text-sub);
    line-height: 1.7;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    text-align: center;
  }
  .p-price__intro-text--sp .u-keep {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Project (FAQ)
   ========================================================================== */
.p-faq {
  position: relative;
  padding-bottom: 80px;
}

.p-faq::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px);
  height: 4px;
  background-color: var(--color-primary);
}

.p-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-faq__item {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-text-main); /* ボーダー枠に変更 */
  border-radius: 12px;
  overflow: hidden;
}

.p-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-size: 16px; /* 少しすっきりと */
  font-weight: 700; /* 900から700へ */
  color: var(--color-text-main); /* 黒・グレー系に変更 */
  cursor: pointer;
  list-style: none; /* デフォルトの三角形を消す */
}

.p-faq__q::-webkit-details-marker {
  display: none;
}

.p-faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.p-faq__icon::before,
.p-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: var(--color-primary-dark); /* 青緑色に変更 */
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.p-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .p-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.p-faq__a {
  padding: 0 24px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.8;
}

@media (max-width: 991px) {
  .p-faq {
    padding-bottom: 64px;
  }
  .p-faq::after {
    width: 100%;
    left: 0;
    transform: none;
    height: 4px;
    background-color: var(--color-primary);
  }
}

/* ==========================================================================
   Project (About)
   ========================================================================== */
.p-about {
  padding: 80px 0;
  position: relative;
}

.p-about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 100px);
  height: 4px;
  background-color: var(--color-primary);
}

@media (max-width: 991px) {
  .p-about {
    padding: 60px 0 64px;
  }
  .p-about::after {
    width: 100%;
    left: 0;
    transform: none;
    height: 4px;
    background-color: var(--color-primary);
  }
}

.p-about__box {
  background-color: var(--color-primary-dark);
  border-radius: 32px;
  padding: 48px 40px; /* 上下の余白を少し減らす */
  max-width: 1040px; /* 箱自体の最大幅を狭める */
  margin: 0 auto; /* 中央寄せ */
  display: flex;
  align-items: center;
  justify-content: center; /* 中央に寄せる */
  gap: 40px; /* 間隔を狭める */
}

.p-about__left {
  flex: 0 1 auto;
  max-width: 440px; /* テキストが横に広がりすぎないように制限 */
}

.p-about__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.p-about__text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 2;
  display: flex;
  flex-direction: column;
}

.p-about__text--sp {
  display: none;
}

.p-about__right {
  flex: 0 1 auto;
  width: 440px; /* 画像エリアのサイズを固定的に制限 */
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-about__img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Project (Contact)
   ========================================================================== */
.p-contact {
  background-color: var(--color-primary-dark);
  padding: 100px 20px;
}

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

.p-contact__catch {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.6;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
}

.p-contact__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

.p-contact__text--sp {
  display: none;
}

.p-contact__btn-wrap {
  margin-top: 48px;
}

.p-contact__btn {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 900;
  padding: 20px 64px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
}

.p-contact__btn:hover {
  opacity: 0.8;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.l-footer {
  background-color: #000000;
  padding: 60px 0; /* 余白（高さ）を広げる（左右はinnerでheaderと統一） */
}

.l-footer__inner {
  max-width: 1440px; /* ヘッダーの幅と完全に一致させて左端を揃える */
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.l-footer__left {
  display: flex;
  flex-direction: row;
  align-items: flex-end; /* 下の文章にアイコンの下端を揃える */
  gap: 24px; /* アイコンとの間隔 */
}

.l-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px; /* ロゴと連絡先の間隔 */
}

.l-footer__logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-decoration: none; /* リンク下線を消す */
}

.l-footer__contact {
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.l-footer__contact a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.l-footer__contact a:hover {
  opacity: 0.7;
}

.l-footer__sns {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.l-footer__sns:hover {
  opacity: 0.7;
}

.l-footer__right {
  text-align: right;
}

.l-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 8px;
}

.l-footer__links a {
  color: var(--color-white);
  font-size: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.l-footer__links a:hover {
  opacity: 0.7;
}

.l-footer__copy {
  color: var(--color-white);
  font-size: 11px;
  opacity: 0.8;
  font-weight: 700;
  margin: 0;
}

/* ==========================================================================
   Project (Lower Pages - Terms/Privacy)
   ========================================================================== */
.p-page-header {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 80px 20px 40px;
  text-align: center;
}

.p-page-header__title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.p-document {
  max-width: 800px;
  margin: 60px auto;
  padding: 60px;
  background-color: var(--color-white);
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.p-document__section {
  margin-bottom: 40px;
}

.p-document__h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-primary-dark);
  padding-bottom: 8px;
}

.p-document__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.p-document__list {
  list-style-type: decimal;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-main);
}

.p-document__list li {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .p-faq__q {
    font-size: 14.5px;
    padding: 18px 16px;
    white-space: nowrap;
  }
  .p-faq__a {
    padding: 0 16px 16px;
  }
  .p-about {
    padding: 40px 0;
  }
  .p-about__box {
    flex-direction: column;
    padding: 36px 20px 32px;
    border-radius: 28px;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  .p-about__left {
    max-width: 100%;
  }
  .p-about__title {
    font-size: 22px;
    text-align: center;
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    margin-bottom: 12px;
  }
  .p-about__text--pc {
    display: none;
  }
  .p-about__text--sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.85;
    letter-spacing: 0.02em;
    color: var(--color-white);
  }
  .p-about__text--sp .u-keep {
    white-space: nowrap;
  }
  .p-about__right {
    width: 280px;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }
  .p-contact {
    padding: 60px 20px;
  }
  .p-contact__catch {
    font-size: 20px;
  }
  .p-contact__text--pc {
    display: none;
  }
  .p-contact__text--sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.85;
    color: var(--color-white);
  }
  .p-contact__text--sp .u-keep {
    white-space: nowrap;
  }
  .p-contact__btn {
    font-size: 16px;
    padding: 16px 40px;
  }
  .l-footer {
    padding: 32px 20px;
  }
  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .l-footer__left {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .l-footer__brand {
    align-items: center;
    text-align: center;
  }
  .l-footer__right {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .l-footer__links {
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
  }
  .p-page-header {
    padding: 60px 20px 30px;
  }
  .p-page-header__title {
    font-size: 24px;
  }
  .p-document {
    margin: 40px 20px;
    padding: 30px 20px;
  }
  .p-document__h3 {
    font-size: 18px;
  }
  .p-document__text,
  .p-document__list {
    font-size: 14px;
  }
}

/* ==========================================================================
   Animations (Scroll Fade-in)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

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

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