/* ==============================
   COMMON STYLES (Shared sections)
   ============================== */

/* --- Header --- */
.tt-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 56px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tt-header.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 4px 10px rgba(79, 79, 79, 0.08);
}

.tt-header__logo .tt-header__logo-scrolled { display: none; }
.tt-header__logo .tt-header__logo-default  { display: block; }
.tt-header.is-scrolled .tt-header__logo .tt-header__logo-scrolled { display: block; }
.tt-header.is-scrolled .tt-header__logo .tt-header__logo-default  { display: none; }

.tt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1328px;
  margin: 0 auto;
}

.tt-header__logo {
  height: 48px;
  transition: var(--transition);
}

.tt-header__logo:hover {
  opacity: 0.8;
}

.tt-header__logo img {
  height: 100%;
  width: auto;
}

.tt-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tt-header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-header__menu li a {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  position: relative;
}

.tt-header__menu li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tt-header__menu li a:hover::after {
  transform: scaleX(1);
}

/* --- Header: Current page highlight --- */
.tt-header__menu .current-menu-item > a,
.tt-header__menu .current-menu-ancestor > a {
  color: var(--color-main);
}

.tt-header__menu .current-menu-item > a::after {
  transform: scaleX(1);
}

/* --- Header: Dropdown --- */
.tt-header__menu > li {
  position: relative;
}

.tt-header__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 100;
}

.tt-header__menu > li:hover > .sub-menu,
.tt-header__menu > li:focus-within > .sub-menu {
  display: block;
}

.tt-header__menu .sub-menu li a {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.tt-header__menu .sub-menu li a::after {
  display: none;
}

.tt-header__menu .sub-menu li a:hover {
  color: var(--color-main);
  background: rgba(60, 193, 219, 0.06);
}


/* --- CTA Section (共通) --- */
.tt-cta {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.tt-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tt-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.tt-cta__card {
  position: relative;
  z-index: 1;
  display: flex;
  width: var(--content-narrow);
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: 30px;
  text-align: center;
}

.tt-cta__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.8px;
  margin-bottom: 0;
}

.tt-cta__deco {
  width: 21.727px;
  height: 24px;
  aspect-ratio: 21.73 / 24;
  flex-shrink: 0;
}

.tt-cta__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 8px;
}

.tt-cta__title .highlight {
  color: var(--color-main);
}

.tt-cta__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tt-cta .tt-btn {
  width: 300px;
}

.tt-cta .tt-btn--line {
  color: var(--color-white);
}

.tt-cta .tt-btn--primary .tt-btn__icon {
  width: 18px;
  height: 18px;
}

.tt-cta .tt-btn--line .tt-btn__icon {
  width: 24px;
  height: 24px;
}

.tt-cta__illust {
  position: absolute;
  z-index: 2;
  bottom: 0;
}

.tt-cta__illust--left {
  left: -22.045px;
  bottom: -16.045px;
  width: 145.914px;
  height: 187.423px;
}

.tt-cta__illust--right {
  right: -22.67px;
  bottom: -40px;
  width: 160px;
  height: 151px;
}


/* --- ステップ Section --- */
.tt-steps {
  padding: 80px 0 100px;
  background: var(--color-white);
}

.tt-steps__list {
  margin-top: 40px;
}

.tt-step-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  align-self: stretch;
  background: var(--color-blue-gray);
  border: 1px solid var(--color-main);
  border-radius: 30px;
  padding: 32px 48px;
}

.tt-step-card__img {
  flex: 0 0 300px;
  height: 169px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: var(--color-white);
}

.tt-step-card__img img {
  width: 157px;
  height: 170px;
  object-fit: contain;
}

.tt-step-card__content {
  flex: 1;
}

.tt-step-card__tag {
  margin-bottom: 8px;
}

.tt-step-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.96px;
  color: var(--color-black);
  margin-bottom: 12px;
}

.tt-step-card__title-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #E0E4E8;
  margin: 12px 0;
}

.tt-step-card__desc {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  color: var(--color-black);
  margin-bottom: 12px;
}

.tt-step-card .tt-tag:not(.tt-tag--main) {
  display: flex;
  padding: 10px 16px;
  align-items: center;
  gap: 6px;
  border-radius: 200px;
  border: 1px solid var(--color-main);
  background: #FAFBFC;
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
}

.tt-step-card .tt-tag__check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tt-steps__arrow {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.tt-steps__arrow-icon {
  width: 38px;
  height: 38px;
  color: var(--color-main);
}


/* --- FAQ Section --- */
.tt-faq {
  padding: 80px 0 100px;
  background: var(--color-white);
}

.tt-faq__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tt-faq-item {
  border: 1px solid var(--color-light-blue);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.tt-faq-item.is-open {
  background: var(--color-blue-gray);
}

.tt-faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}

.tt-faq-item__q {
  width: 29px;
  height: 35px;
  flex-shrink: 0;
  color: var(--color-main);
  font-family: 'Quicksand', sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
}

.tt-faq-item__question-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  padding-top: 8px;
}

.tt-faq-item__toggle {
  width: 39.184px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-faq-item__toggle svg {
  width: 100%;
  height: 100%;
}

.tt-faq-item__toggle-minus {
  display: none;
}

.tt-faq-item.is-open .tt-faq-item__toggle-plus {
  display: none;
}

.tt-faq-item.is-open .tt-faq-item__toggle-minus {
  display: block;
}

.tt-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tt-faq-item__answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 28px 24px;
}

.tt-faq-item__a {
  width: 29px;
  height: 35px;
  flex-shrink: 0;
  color: var(--color-main);
  font-family: 'Quicksand', sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
}

.tt-faq-item__answer-text {
  font-size: 15px;
  line-height: 1.7;
  padding-top: 4px;
}


/* --- Footer --- */
.tt-footer {
  background: var(--color-footer-bg);
  padding: 80px 0 0;
  color: var(--color-white);
}

.tt-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 30px;
}

.tt-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 80px;
}

.tt-footer__brand {
  flex: 0 0 389px;
}

.tt-footer__logo {
  margin-bottom: 24px;
}

.tt-footer__logo img {
  height: 110px;
  width: auto;
}

.tt-footer__desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}

.tt-footer__social {
  display: flex;
  gap: 16px;
}

.tt-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.tt-footer__social a:hover {
  opacity: 0.8;
}

.tt-footer__social img {
  width: 100%;
  height: 100%;
}

.tt-footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.tt-footer__nav-col h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 14px;
  position: relative;
}

.tt-footer__nav-col h4::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.tt-footer__nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-footer__nav-col li {
  margin-bottom: 4px;
}

.tt-footer__nav-col a {
  font-size: 14px;
  opacity: 0.9;
  display: block;
  padding: 6px 0;
}

.tt-footer__nav-col a:hover {
  opacity: 1;
  color: var(--color-main);
}

.tt-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tt-footer__info {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.6;
}

.tt-footer__copy {
  font-size: 13px;
  opacity: 0.8;
}

/* ==============================
   Mobile Fixed CTA
   ============================== */
.tt-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  gap: 8px;
}

.tt-mobile-cta .tt-btn {
  flex: 1;
  padding: 14px 8px;
  font-size: 14px;
}

/* ==============================
   Mobile Menu Toggle
   ============================== */
.tt-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.tt-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: var(--transition);
}

/* ==============================
   Mobile menu overlay
   ============================== */
@media (max-width: 768px) {
  .tt-header__menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }

  .tt-header__menu.is-open li a {
    font-size: 20px;
    padding: 20px;
  }

  /* SP: ドロップダウンをフラット化 */
  .tt-header__menu.is-open .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-width: auto;
  }

  .tt-header__menu.is-open .sub-menu li a {
    font-size: 18px;
    padding: 12px 20px;
    color: var(--color-main);
  }

  /* SP: サブメニューがある親項目は非表示にする（子だけ表示） */
  .tt-header__menu.is-open .menu-item-has-children > a {
    display: none;
  }

  .tt-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .tt-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .tt-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Service Card (共通) --- */
.tt-service-card {
  display: flex;
  width: 520px;
  padding: 40px 48px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 30px;
  background: var(--color-white);
  flex-shrink: 0;
}

.tt-service-card__tag {
}

.tt-service-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-service-card__header-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.tt-service-card__header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tt-service-card__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 1.2px;
  color: var(--color-black);
  text-align: center;
}

.tt-service-card__img {
  align-self: stretch;
  height: 212px;
  border-radius: 20px;
  overflow: hidden;
}

.tt-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-service-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  align-self: stretch;
  overflow: hidden;
  color: var(--color-black);
  text-align: center;
  text-overflow: ellipsis;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
}

.tt-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: stretch;
  justify-content: center;
}

.tt-service-card .tt-tag:not(.tt-tag--main) {
  display: flex;
  padding: 10px 16px;
  align-items: center;
  gap: 6px;
  border-radius: 200px;
  border: 1px solid var(--color-main);
  background: #FAFBFC;
  color: var(--color-black);
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 130%;
}

.tt-service-card .tt-tag__check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tt-service-card--green .tt-tag:not(.tt-tag--main) {
  border-color: var(--color-green);
}

.tt-service-card__more {
  display: flex;
  align-self: flex-end;
}

.tt-service-card .tt-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-black);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
}

.tt-service-card .tt-more__icon {
  width: 28px;
  height: 28px;
}

/* ==============================
   RESPONSIVE: Tablet (768px) - Shared
   ============================== */
@media (max-width: 768px) {
  :root {
    --section-pt: 64px;
    --section-pb: 56px;
  }

  .tt-header {
    padding: 12px 20px;
  }

  .tt-header__menu {
    display: none;
  }

  .tt-header__nav .tt-btn {
    display: none;
  }

  .tt-header__hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Heading */
  .tt-heading__ja {
    font-size: 24px;
  }

  .tt-heading__ja .accent {
    font-size: 40px;
  }

  .tt-heading__ja .accent--sm {
    font-size: 32px;
  }

  /* Steps */
  .tt-step-card {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .tt-step-card__img {
    flex: auto;
    height: auto;
  }

  /* CTA */
  .tt-cta__card {
    width: 100%;
    padding: 32px 24px;
    border-radius: 20px;
  }

  .tt-cta__subtitle {
    font-size: 16px;
  }

  .tt-cta__btns {
    flex-direction: column;
    gap: 12px;
  }

  .tt-cta__title {
    font-size: 24px;
  }

  .tt-cta .tt-btn {
    width: 100%;
  }

  .tt-cta__illust--left,
  .tt-cta__illust--right {
    display: none;
  }

  /* Footer */
  .tt-footer__top {
    flex-direction: column;
    gap: 48px;
  }

  .tt-footer__brand {
    flex: auto;
  }

  .tt-footer__nav {
    flex-wrap: wrap;
    gap: 32px;
  }

  .tt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Service Card */
  .tt-service-card {
    width: 100%;
    padding: 24px;
  }

  /* Mobile CTA */
  .tt-mobile-cta {
    display: flex;
  }

  /* Mobile menu overlay */
  .tt-header__menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }

  .tt-header__menu.is-open li a {
    font-size: 20px;
    padding: 20px;
  }

  /* SP: ドロップダウンをフラット化 */
  .tt-header__menu.is-open .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-width: auto;
  }

  .tt-header__menu.is-open .sub-menu li a {
    font-size: 18px;
    padding: 12px 20px;
    color: var(--color-main);
  }

  .tt-header__menu.is-open .menu-item-has-children > a {
    display: none;
  }

  .tt-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .tt-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .tt-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==============================
   RESPONSIVE: Mobile (480px) - Shared
   ============================== */
@media (max-width: 480px) {
  .tt-heading__ja {
    font-size: 22px;
  }

  .tt-heading__ja .accent {
    font-size: 34px;
  }

  .tt-footer__nav {
    flex-direction: column;
  }
}
