@charset "UTF-8";

/*
Theme Name: TAKETAKE LP
Description: オリジナルLPテーマ
Template: cocoon-master
Author: たけ坊
Version: 1.0
*/

.tm-page {
  color: #243233;
  background: #f8fbfa;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: .03em;
  overflow-x: clip;
}

.tm-page *,
.tm-page *::before,
.tm-page *::after {
  box-sizing: border-box;
}

.tm-page img,
.tm-page svg {
  display: block;
  max-width: 100%;
}

.tm-page svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-page a {
  color: inherit;
}

.tm-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.tm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #dfe8e7;
  backdrop-filter: blur(10px);
}

.admin-bar .tm-header {
  top: 32px;
}

.tm-header__top {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tm-header__tagline {
  flex: 1;
  margin: 0;
  color: #8b9697;
  font-size: 12px;
}

.tm-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #008276;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.tm-brand__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #008276;
  color: #fff;
  font-size: 14px;
}

.tm-nav {
  height: 44px;
  border-top: 1px solid #edf2f1;
}

.tm-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #516061;
  font-size: 13px;
}

.tm-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  text-decoration: none;
}

.tm-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #008276;
  transform: translateX(-50%);
  transition: .2s;
}

.tm-nav a:hover::after {
  width: 100%;
}

.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s ease;
}

.tm-button--header {
  padding: 10px 22px;
  background: #008276;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 130, 118, .18);
  font-size: 13px;
}

.tm-button--header:hover,
.tm-button--primary:hover {
  background: #00695f;
  transform: translateY(-1px);
}

.tm-button--primary {
  min-width: 300px;
  padding: 14px 28px;
  background: #008276;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 130, 118, .16);
}

.tm-button--outline {
  min-width: 330px;
  padding: 9px 28px;
  border: 1.5px solid #008276;
  background: #fff;
  color: #008276;
  font-size: 13px;
}

.tm-button--outline:hover {
  background: #eef8f6;
}

.tm-button--footer {
  min-width: 270px;
  padding: 10px 22px;
  background: #fff;
  color: #008276;
  font-size: 13px;
}

.tm-hero {
  background: linear-gradient(90deg, #f8fbfa 0%, #f8fbfa 48%, #eef8f6 48%, #eef8f6 100%);
  border-bottom: 1px solid #edf2f1;
}

.tm-hero__inner {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 46px;
}

.tm-hero__copy h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.55;
  letter-spacing: .05em;
  font-weight: 900;
}

.tm-hero__copy h1 span {
  color: #008276;
}

.tm-hero__copy p {
  margin: 0 0 28px;
  color: #455658;
  font-weight: 700;
}

.tm-hero__image {
  margin: 0;
}

.tm-hero__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 0 0 0 28px;
}

.tm-section {
  padding: 56px 0;
}

.tm-section--white {
  background: #fff;
}

.tm-section--soft {
  background: #f8fbfa;
}

.tm-section-title {
  position: relative;
  margin: 0 0 32px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
}

.tm-section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 10px auto 0;
  background: #d6c56f;
}

.tm-card {
  background: #fff;
  border: 1px solid #dfe8e7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.tm-card-grid {
  display: grid;
  gap: 14px;
}

.tm-card-grid--worries,
.tm-card-grid--service {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-card-grid--flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-card-grid--voice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-worry-card {
  position: relative;
  min-height: 210px;
  padding: 24px 18px 22px;
  text-align: center;
}

.tm-worry-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.tm-check {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #b9c4bd;
  border-radius: 50%;
  background: #fffdf5;
  color: #008276;
  font-weight: 900;
}

.tm-icon {
  margin-inline: auto;
}

.tm-icon--line {
  width: 84px;
  height: 84px;
  margin-top: 10px;
  margin-bottom: 14px;
  color: #798586;
}

.tm-icon--main {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: #008276;
}

.tm-lead-center {
  margin: 22px 0 0;
  text-align: center;
  color: #546163;
  font-weight: 800;
}

.tm-profile {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.tm-profile__image {
  margin: 0;
}

.tm-profile__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.tm-profile__body h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
}

.tm-profile__body p {
  margin: 0 0 18px;
  color: #4b5d5f;
  font-weight: 600;
}

.tm-service-card {
  min-height: 225px;
  padding: 28px 20px;
  text-align: center;
}

.tm-service-card h3 {
  margin: 0 0 12px;
  color: #008276;
  font-size: 18px;
  font-weight: 900;
}

.tm-service-card p {
  margin: 0;
  color: #566667;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.tm-flow-card {
  position: relative;
  min-height: 180px;
  padding: 28px 22px 24px;
}

.tm-flow-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #eef8f6;
  color: #008276;
  font-size: 16px;
  font-weight: 900;
}

.tm-flow-card h3 {
  margin: 0 0 10px;
  color: #008276;
  font-size: 18px;
  font-weight: 900;
}

.tm-flow-card p {
  margin: 0;
  color: #566667;
  font-size: 13px;
  font-weight: 600;
}

.tm-button-center {
  margin-top: 26px;
  text-align: center;
}

.tm-price-box {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  align-items: center;
  gap: 30px;
  padding: 36px 52px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #f1faf8 0%, #e8f5f3 100%);
}

.tm-price-box__icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: #dff4f0;
  color: #008276;
}

.tm-price-box__icon svg {
  width: 82px;
  height: 82px;
}

.tm-price-box__text h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tm-price-box__text strong {
  color: #00695f;
  font-size: 34px;
  letter-spacing: .02em;
}

.tm-price-box__text ul {
  margin: 10px 0 22px;
  padding: 0;
  list-style: none;
  color: #4b5d5f;
  font-size: 14px;
  font-weight: 700;
}

.tm-price-box__text li::before {
  content: "✓";
  margin-right: 8px;
  color: #008276;
  font-weight: 900;
}

.tm-price-box__person {
  display: grid;
  justify-items: center;
  color: #008276;
}

.tm-price-box__person > svg {
  width: 110px;
  height: 120px;
}

.tm-speech {
  position: relative;
  margin-bottom: 10px;
  padding: 18px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  color: #517072;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.tm-speech::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: #fff;
  transform: rotate(45deg);
}

.tm-voice-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
  gap: 14px;
  padding: 22px;
}

.tm-voice-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.tm-voice-card p {
  margin: 0;
  color: #4b5d5f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.tm-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f2eee0;
  color: #637173;
}

.tm-avatar svg {
  width: 44px;
  height: 44px;
}

.tm-footer {
  padding: 44px 0 26px;
  background: linear-gradient(135deg, #00665f 0%, #007c73 100%);
  color: #fff;
}

.tm-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr;
  gap: 44px;
}

.tm-footer__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.tm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.tm-footer li {
  margin-bottom: 6px;
}

.tm-footer p {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.tm-footer__sns {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  font-size: 24px;
}

.tm-footer__copy {
  margin: 26px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .75) !important;
  font-size: 12px;
}

.tm-top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  color: #008276;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

/* Cocoon標準パーツを非表示 */
#header-container,
#footer,
#navi,
.navi,
.footer,
.footer-bottom,
#mobile-menu,
.entry-title,
.date-tags,
.eye-catch-wrap,
.breadcrumb,
.sns-share,
.sns-follow,
.author-info,
.article-footer,
.comment-area {
  display: none !important;
}

/* Cocoon本文まわりの余白調整 */
#content,
.content,
#main,
.main,
.article,
.entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* LP内だけCocoon見出し装飾をリセット */
.tm-page h1,
.tm-page h2,
.tm-page h3,
.tm-page p,
.tm-page ul,
.tm-page li,
.tm-page figure {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tm-page h1::before,
.tm-page h1::after,
.tm-page h2::before,
.tm-page h2::after,
.tm-page h3::before,
.tm-page h3::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 900px) {
  .tm-header__tagline,
  .tm-nav {
    display: none;
  }

  .tm-hero {
    background: #f8fbfa;
  }

  .tm-hero__inner,
  .tm-profile,
  .tm-price-box,
  .tm-footer__grid {
    grid-template-columns: 1fr;
  }

  .tm-hero__inner {
    min-height: auto;
    gap: 28px;
    padding: 34px 0 44px;
  }

  .tm-hero__image {
    order: -1;
  }

  .tm-hero__image img {
    height: auto;
    max-height: 360px;
    border-radius: 18px;
  }

  .tm-profile {
    gap: 28px;
  }

  .tm-price-box {
    gap: 24px;
    padding: 30px 24px;
    text-align: center;
  }

  .tm-price-box__text ul {
    display: inline-block;
    text-align: left;
  }

  .tm-card-grid--worries,
  .tm-card-grid--service {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tm-card-grid--flow,
  .tm-card-grid--voice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tm-container {
    width: min(100% - 28px, 1120px);
  }

  .tm-header__top {
    min-height: 64px;
    gap: 10px;
  }

  .tm-brand__name {
    font-size: 13px;
  }

  .tm-brand__mark {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .tm-button--header {
    padding: 9px 12px;
    font-size: 11px;
  }

  .tm-button--primary,
  .tm-button--outline,
  .tm-button--footer {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .tm-button--primary {
    padding-inline: 16px;
    font-size: 14px;
  }

  .tm-section {
    padding: 44px 0;
  }

  .tm-section-title {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .tm-hero__copy h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.55;
  }

  .tm-hero__copy p {
    font-size: 14px;
  }

  .tm-card-grid--worries,
  .tm-card-grid--service {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-card-grid--flow,
  .tm-card-grid--voice {
    grid-template-columns: 1fr;
  }

  .tm-worry-card {
    min-height: 0;
    padding: 18px 10px;
  }

  .tm-worry-card p {
    font-size: 12px;
    line-height: 1.55;
  }

  .tm-check {
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .tm-icon--line {
    width: 62px;
    height: 62px;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .tm-icon--main {
    width: 56px;
    height: 56px;
  }

  .tm-service-card {
    min-height: 0;
    padding: 20px 12px;
  }

  .tm-service-card h3 {
    font-size: 15px;
  }

  .tm-service-card p {
    font-size: 12px;
  }

  .tm-lead-center {
    font-size: 14px;
  }

  .tm-profile__body h2 {
    font-size: 22px;
  }

  .tm-price-box {
    padding: 28px 18px;
  }

  .tm-price-box__text h3 {
    font-size: 16px;
  }

  .tm-price-box__text strong {
    display: inline-block;
    font-size: 30px;
  }

  .tm-top-button {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 390px) {
  .tm-button--header {
    max-width: 150px;
    white-space: normal;
    text-align: center;
  }

  .tm-worry-card p,
  .tm-service-card p {
    font-size: 11px;
  }
}

/* ===== ヒーロー完全リセット ===== */
.tm-page .tm-hero {
  background: linear-gradient(
    90deg,
    #f8fbfa 0%,
    #f8fbfa 50%,
    #eef8f6 50%,
    #eef8f6 100%
  ) !important;
}

.tm-page .tm-hero__inner {
  min-height: 420px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  gap: 46px !important;
}

.tm-page .tm-hero__image {
  margin: 0 !important;
}



.tm-page .tm-hero__image img {
  width: 100% !important;
  height: 360px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 0 0 28px !important;
}

/* ヒーローの左右ズレを修正 */
.tm-page .tm-hero {
  background: #f8fbfa !important;
}

.tm-page .tm-hero__inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 60px 20px !important;
}

.tm-page .tm-hero__image {
  width: 100% !important;
}

.tm-page .tm-hero__image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 18px !important;
}

/* ===== ヒーロー右半分を画像で埋める：安全版 ===== */
.tm-page .tm-hero {
  background: #f8fbfa !important;
}

.tm-page .tm-hero__inner {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 50% 50% !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 520px !important;
}

.tm-page .tm-hero__copy {
  width: min(560px, calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: 56px !important;
  align-self: center !important;
}

.tm-page .tm-hero__image {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #eef8f6 !important;
}

.tm-page .tm-hero__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

/* ===== ヘッダーをフルワイド化 ===== */
.tm-page .tm-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
  border-bottom: 1px solid #e5ecea;
}

/* 中身は中央に固定 */
.tm-page .tm-header__top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
}

/* ナビ部分 */
.tm-page .tm-header__nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 12px;
}

/* ヘッダー中身を左右に広げる */
.tm-header__top {
  width: min(1440px, calc(100% - 80px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
}

/* ロゴ側を左へ、ボタン側を右へ */
.tm-header__top {
  justify-content: space-between !important;
}

/* タグラインの位置調整 */
.tm-header__tagline {
  margin-left: 24px !important;
}

/* ナビも少しワイドに */
.tm-nav .tm-container {
  width: min(1440px, calc(100% - 80px)) !important;
  max-width: none !important;
}

/* ロゴ＋テキストの間を詰める */
.tm-brand {
  display: flex;
  align-items: center;
  gap: 8px !important; /* ←ここで距離調整 */
}

/* タグラインをロゴに近づける */
.tm-header__tagline {
  margin-left: 8px !important; /* ←今より小さく */
  font-size: 13px;
  color: #6b7c7c;
}

/* ヘッダー左側を1つの塊にする */
.tm-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ＋タグラインを横並びに */
.tm-header__top > .tm-brand,
.tm-header__top > .tm-header__tagline {
  display: inline-flex;
  align-items: center;
}

/* この2つを強制的にくっつける */
.tm-header__top {
  gap: 12px; /* ←ここで距離調整 */
}

/* タグラインの余白を完全リセット */
.tm-header__tagline {
  margin: 0 !important;
  font-size: 13px;
  color: #6b7c7c;
}

/* セクション見出しの中央下線 */
.tm-page .tm-section-title {
  position: relative !important;
  padding-bottom: 14px !important;
}

.tm-page .tm-section-title::after {
  content: "" !important;
  display: block !important;
  width: 48px !important;
  height: 3px !important;
  background: #008276 !important;
  margin: 10px auto 0 !important;
  border-radius: 999px !important;
}

/* ===== スマホ表示の崩れ修正：必ずCSSの一番下に追加 ===== */
@media (max-width: 640px) {
  .tm-page .tm-header__top {
    width: 100% !important;
    padding: 10px 14px !important;
    min-height: 58px !important;
    gap: 8px !important;
  }

  .tm-page .tm-header__tagline {
    display: none !important;
  }

  .tm-page .tm-brand__name {
    font-size: 13px !important;
    letter-spacing: .04em !important;
  }

  .tm-page .tm-button--header {
    width: auto !important;
    max-width: 112px !important;
    padding: 8px 10px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .tm-page .tm-hero {
    background: #f8fbfa !important;
  }

  .tm-page .tm-hero__inner {
    display: flex !important;
    flex-direction: column-reverse !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 0 34px !important;
    gap: 0 !important;
  }

  .tm-page .tm-hero__copy {
    width: min(100% - 28px, 560px) !important;
    margin: 0 auto !important;
    padding: 28px 0 0 !important;
  }

  .tm-page .tm-hero__copy h1 {
    margin-bottom: 16px !important;
    font-size: clamp(28px, 8.5vw, 36px) !important;
    line-height: 1.55 !important;
    letter-spacing: .04em !important;
  }

  .tm-page .tm-hero__copy p {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .tm-page .tm-hero__image {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    background: #eef8f6 !important;
  }

  .tm-page .tm-hero__image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 390px) {
  .tm-page .tm-hero__copy h1 {
    font-size: 30px !important;
  }

  .tm-page .tm-hero__image img {
    height: 220px !important;
  }
}

/* ===== スマホヘッダー完全修正：CSS最下部に追加 ===== */
@media (max-width: 640px) {
  html,
  body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #wpadminbar {
    display: none !important;
  }

  html.wp-toolbar {
    padding-top: 0 !important;
  }

  .admin-bar .tm-header,
  .tm-header {
    top: 0 !important;
  }

  .tm-header {
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .tm-header__top {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 0 14px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .tm-header__tagline,
  .tm-nav {
    display: none !important;
  }

  .tm-brand {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .tm-brand__mark {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
  }

  .tm-brand__name {
    font-size: 13px !important;
    letter-spacing: .06em !important;
    white-space: nowrap !important;
  }

  .tm-button--header {
    width: auto !important;
    max-width: 112px !important;
    min-width: 0 !important;
    padding: 7px 10px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    box-shadow: 0 4px 10px rgba(0, 130, 118, .18) !important;
  }

  .tm-hero {
    margin-top: 0 !important;
  }
}

/* ===== スマホ：ヒーローUI調整 ===== */
@media (max-width: 640px) {
  .tm-hero {
    padding: 0 !important;
    background: #f8fbfa !important;
    border-bottom: none !important;
  }

  .tm-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .tm-hero__copy {
    width: 100% !important;
    margin: 0 !important;
    padding: 38px 18px 30px !important;
    background: #f8fbfa !important;
  }

  .tm-hero__copy h1 {
    margin: 0 0 22px !important;
    font-size: clamp(30px, 8.5vw, 38px) !important;
    line-height: 1.55 !important;
    letter-spacing: .03em !important;
  }

  .tm-hero__copy p {
    margin: 0 0 30px !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    font-weight: 700 !important;
  }

  .tm-hero__copy .tm-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px 18px !important;
    font-size: 14px !important;
  }

  .tm-hero__image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 18px 38px !important;
    background: #f8fbfa !important;
  }

  .tm-hero__image img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 390px) {
  .tm-hero__copy {
    padding: 34px 16px 26px !important;
  }

  .tm-hero__copy h1 {
    font-size: 29px !important;
  }

  .tm-hero__image {
    padding: 0 16px 34px !important;
  }

  .tm-hero__image img {
    height: 235px !important;
  }
}

/* ===== スマホ：CTAボタン下の余白調整 ===== */
@media (max-width: 640px) {
  .tm-hero__copy {
    padding-bottom: 34px !important;
  }

  .tm-hero__copy .tm-button {
    margin-bottom: 0 !important;
  }

  .tm-hero__image {
    padding-top: 8px !important;
  }
}

@media (max-width: 390px) {
  .tm-hero__copy {
    padding-bottom: 30px !important;
  }

  .tm-hero__image {
    padding-top: 6px !important;
  }
}

/* ===== スマホ：画像 → テキストの順にする ===== */
@media (max-width: 640px) {
  .tm-hero__inner {
    display: flex !important;
    flex-direction: column !important;
  }

  .tm-hero__image {
    order: -1 !important; /* ←これが重要 */
  }

  .tm-hero__copy {
    order: 1 !important;
  }
}

/* ===== スマホ：画像を先、文字を後に強制 ===== */
@media (max-width: 640px) {
  .tm-page .tm-hero__inner {
    display: flex !important;
    flex-direction: column !important;
  }

  .tm-page .tm-hero__image {
    order: 1 !important;
    padding: 18px 18px 24px !important;
  }

  .tm-page .tm-hero__copy {
    order: 2 !important;
    padding: 0 18px 38px !important;
  }

  .tm-page .tm-hero__image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
  }
}

/* ===== スマホ：画像をフル幅にする ===== */
@media (max-width: 640px) {
  .tm-page .tm-hero__image {
    padding: 0 !important; /* 余白削除 */
  }

  .tm-page .tm-hero__image img {
    width: 100vw !important;
    height: 260px !important;
    object-fit: cover !important;

    margin-left: calc(50% - 50vw) !important; /* 画面端まで広げる */

    border-radius: 0 !important; /* 角丸削除 */
  }
}

@media (max-width: 640px) {
  .tm-page .tm-hero__image {
    margin-bottom: 20px !important; /* ←ここで余白追加 */
  }
}

/* CTAボタンの文字を白に */
.tm-page .tm-button--primary {
  color: #ffffff !important;
}

.tm-page .tm-button--primary {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
}

/* ===== モバイル：制作の流れを2×2にする ===== */
@media (max-width: 640px) {
  .tm-card-grid--flow {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .tm-flow-card {
    padding: 18px 14px !important;
    min-height: 0 !important;
  }

  .tm-flow-card__number {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  .tm-flow-card h3 {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .tm-flow-card p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
}

/* ===== タブレット最適化 ===== */
@media (max-width: 1024px) and (min-width: 641px) {
  .tm-page .tm-hero__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    padding: 40px 20px !important;
    min-height: auto !important;
  }

  .tm-page .tm-hero__copy {
    margin: 0 !important;
    padding: 0 !important;
  }

  .tm-page .tm-hero__copy h1 {
    font-size: clamp(28px, 3vw, 36px) !important;
    line-height: 1.5 !important;
  }

  .tm-page .tm-hero__copy p {
    font-size: 14px !important;
  }

  .tm-page .tm-hero__image img {
    height: 100% !important;
    border-radius: 16px !important;
  }
}

/* ===== LPページ：reCAPTCHA・Cocoon下部バーを非表示 ===== */

/* reCAPTCHAバッジ非表示 */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Cocoonのモバイル下部固定メニュー非表示 */
.mobile-footer-menu,
.mobile-footer-menu-buttons,
.navi-footer,
#navi-footer,
.footer-mobile-buttons,
#footer-mobile-buttons {
  display: none !important;
}

/* 念のため、下部固定要素の余白も消す */
body {
  padding-bottom: 0 !important;
}

/* ===== 画像をブロックにぴったりフィット ===== */
.tm-hero__image {
  width: 100% !important;
  height: 100% !important;
  display: flex;
}

.tm-hero__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* ←これが超重要 */
  border-radius: 18px !important;
}

/* ===== LPページ：広告非表示 ===== */
.tm-page .ad-area,
.tm-page .ad-wrap,
.tm-page .ad-responsive,
.tm-page .ad-label,
.tm-page ins.adsbygoogle,
.tm-page iframe[id^="aswift"],
.tm-page iframe[id^="google_ads_iframe"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}