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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  background: #fff;
}

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

a:hover {
  opacity: 0.75;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

p,
h1,
h2,
h3,
dt,
dd,
figure {
  margin: 0;
}

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

.pc {
  display: block;
}
.sp {
  display: none;
}

/* 5ファイルに重複していた定義をここへ集約 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
    width: 85%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 150px;
}
.container-default {
    width: 85%;
    max-width: 1180px;
    margin: 0 auto;
}
.container.full {
    width: calc(100% - 40px);
    max-width: 1400px;
    padding-left: 0;
}
@media screen and (max-width: 768px) {
  .container-default {
    width: 90%;
  }
}

.site-main section {
  position: relative;
}

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

@media (min-width: 1640px) {
  .container {
    padding-left: 0;
  }
}

/* ページ内リンク位置調整 */
#intro,
#example,
#possibility,
#works,
#owner,
#market,
#local,
#solution,
#about,
#mechanism,
#revenue,
#reserve,
#plan,
#comparison,
#anxiety,
#model,
#reserve,
#checkin,
#clean,
#contact,
#ai,
#merits,
#merit {
  scroll-margin-top: 100px;
}

@media screen and (max-width: 768px) {
  #intro,
  #example,
  #possibility,
  #works,
  #owner,
  #market,
  #local,
  #solution,
  #about,
  #mechanism,
  #revenue,
  #reserve,
  #plan,
  #comparison,
  #anxiety,
  #model,
  #reserve,
  #checkin,
  #clean,
  #contact,
  #ai,
  #merits,
  #merit {
    scroll-margin-top: 80px;
  }
}

/* ======================================
   Shared heading
====================================== */
.section-heading {
  margin-bottom: 60px;
}

.section-heading__title {
  font-size: 30px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
  margin-bottom: 0;
}
.section-heading__sub_title {
  font-size: 30px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
}

.section-heading__lead {
  margin-top: 60px;
  font-size: 15px;
  line-height: 30px;
  color: #4b4b4b;
}

/* ======================================
   Header
====================================== */
.site-header {
  z-index: 100;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
}

.site-header.is-scrolled {
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding__logo {
  width: 180px;
  display: block;
}

.global-nav {
  margin-left: 20px;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav__item {
  position: relative;
}

.global-nav__item > a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: #111;
  text-decoration: none;
}

/* ======================================
   Dropdown - PC
====================================== */
.global-nav__item--has-children {
  position: relative;
}

.global-nav__parent {
  position: relative;
  padding-right: 14px;
}

.global-nav__parent::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.global-subnav {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 220px;
  padding: 14px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

.global-subnav li {
  list-style: none;
}

.global-subnav a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: #111;
  white-space: nowrap;
  text-decoration: none;
}

.global-subnav a:hover {
  background: #f7f7f7;
}

.global-nav__item--has-children:hover .global-subnav,
.global-nav__item--has-children:focus-within .global-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-nav__item--has-children:hover .global-nav__parent::after,
.global-nav__item--has-children:focus-within .global-nav__parent::after {
  transform: translateY(-30%) rotate(225deg);
}

main {
  margin-top: 80px;
}

.page_inner_menu {
  position: fixed;
  z-index: 100;
  top: 200px;
  left: 20px;
}
.intro__list li {
  position: relative;
  font-size: 15px;
  line-height: 45px;
  color: #222;
}
/* ======================================
   Hero
====================================== */
.hero {
  padding: 22px 0 120px;
}

.hero__heading {
  margin-bottom: 38px;
}

.hero__en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 53px;
  line-height: 1.1;
  font-weight: 700;
  color: #9b9b9b;
  letter-spacing: 0.01em;
}

.hero__ja {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.hero__body {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: center;
  column-gap: 45px;
}

.hero__logo-area {
  width: 100%;
}
.hero__logo-area img {
  width: 100%;
}

.hero__logo {
  width: 230px;
}

.hero__title {
  font-size: 30px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111;
}

.hero__lead {
  margin-top: 60px;
  font-size: 15px;
  line-height: 30px;
  color: #333;
}

/* ======================================
   intro
====================================== */
.intro {
  margin-bottom: 120px;
}
.intro .section-heading {
  margin-bottom: 60px;
}

.intro .section-heading__title {
  font-size: 30px;
  line-height: 48px;
}

.intro .section-heading__sub_title {
  font-weight: 700;
  color: #111;
}

.intro__content {
    margin-bottom: 20px;
}

.intro .read_text {
  margin-top: 60px;
  font-size: 15px;
  line-height: 1.95;
  color: #333;
}
.intro-diagram {
  position: relative;
  width: 100%;
}

.intro-diagram img {
  width: 100%;
  object-fit: cover;
  background-color: #ccc;
}

.intro_summary {
    margin-top: 60px;
    font-size: 30px;
    line-height: 48px;
    font-weight: 700;
    color: #111;
    text-align: center;
}

/* ======================================
   CTA
====================================== */
.cta {
  padding: 120px 0;
}

.cta__grid {
  width: 100%;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #cfcfcf;
  border-radius: 24px;
  background: transparent;
}

.cta-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px 18px 24px;
}

.cta-card__brand img {
  width: 280px;
}

.cta-card__title {
  font-size: 18px;
  padding-left: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #222;
}

.cta-card__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #777;
  flex: 0 0 44px;
}

/* ======================================
   Pagination
====================================== */
.pagination {
  margin-top: 60px;
}

.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1;
  color: #666;
  border: 0;
  background: transparent;
}

.wp-pagenavi span.current {
  background: #fff;
  color: #020202;
}

.wp-pagenavi .pages {
  display: none;
}

/* ======================================
   Footer
====================================== */
.site-footer {
  background: #e4e4e3;
  padding: 34px 0 18px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 70px;
  align-items: start;
}

.footer-nav {
  display: grid;
  grid-template-columns: 320px 1fr;
  column-gap: 56px;
}

.footer-nav__title {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-nav__list.flex {
  flex-direction: row;
}
.footer-nav__list ul {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
  gap: 4px;
}

.footer-nav__list a {
  font-size: 14px;
  line-height: 1.7;
  color: #222;
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 28px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-links img {
  width: 18px;
  height: 18px;
}

.site-footer__copyright {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  font-weight: 600;
}

/* ======================================
   Hamburger Menu
====================================== */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__line {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle__line:nth-child(1) {
  top: 13px;
}

.menu-toggle__line:nth-child(2) {
  top: 21px;
}

.menu-toggle__line:nth-child(3) {
  top: 29px;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* PCでは通常表示 */
@media screen and (min-width: 769px) {
  .global-nav {
    display: block !important;
  }
}

/* SPでハンバーガー化 */
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  .site-header {
    height: 68px;
  }

  .site-header__inner {
    justify-content: space-between;
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    margin-left: 0;
    padding: 24px 20px 40px;
    background: rgba(255, 255, 255, 0.98);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 110;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .global-nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: normal;
    padding-bottom: 0;
  }

  .global-nav__item {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
  }

  .global-nav__item > a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.6;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* =========================
     SP Dropdown
  ========================= */
  .global-nav__item--has-children {
    position: static;
  }

  .global-nav__parent {
    display: block;
    width: 100%;
    padding: 16px 36px 16px 0;
  }

  .global-nav__parent::after {
    right: 4px;
    width: 8px;
    height: 8px;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: translateY(-60%) rotate(45deg);
  }

  .global-nav__item--has-children.is-open .global-nav__parent::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .global-subnav {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .global-nav__item--has-children.is-open .global-subnav {
    display: block;
  }

  .global-subnav li {
    border-top: 1px solid #f0f0f0;
  }

  .global-subnav a {
    padding: 12px 0 12px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.6;
    white-space: normal;
  }

  .global-subnav a:hover {
    background: transparent;
  }

  /* SPではhover展開を無効化 */
  .global-nav__item--has-children:hover .global-subnav,
  .global-nav__item--has-children:focus-within .global-subnav {
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  .site-header {
    height: 64px;
  }

  .global-nav {
    top: 64px;
    height: calc(100vh - 64px);
    padding: 20px 16px 32px;
  }

  .global-nav__item > a {
    padding: 14px 0;
    font-size: 14px;
  }

  .global-nav__parent {
    padding: 14px 32px 14px 0;
  }

  .global-subnav {
    padding-bottom: 10px;
  }

  .global-subnav a {
    padding: 10px 0 10px 14px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle__line {
    left: 7px;
    width: 26px;
  }

  .menu-toggle__line:nth-child(1) {
    top: 11px;
  }

  .menu-toggle__line:nth-child(2) {
    top: 19px;
  }

  .menu-toggle__line:nth-child(3) {
    top: 27px;
  }

  .menu-toggle.is-active .menu-toggle__line:nth-child(1),
  .menu-toggle.is-active .menu-toggle__line:nth-child(3) {
    top: 19px;
  }

    /* ======================================
     Pagination
  ====================================== */
  .pagination {
    padding-top: 40px;
  }

  .wp-pagenavi a,
  .wp-pagenavi span {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ======================================
   Common Responsive
====================================== */
@media screen and (max-width: 1024px) {
  .container {
    width: 100%;
    max-width: none;
    padding-left: 40px;
    padding-right: 20px;
  }

  .container.full {
    width: 100%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page_inner_menu {
    left: 10px;
  }

  .intro__list li {
    font-size: 12px;
    line-height: 1.8;
  }

  .site-branding__logo {
    width: 180px;
  }

  .global-nav__list {
    gap: 18px;
  }

  .global-nav__item a {
    font-size: 12px;
  }

  .hero__body {
    grid-template-columns: 260px 1fr;
    column-gap: 40px;
  }

  .hero__logo {
    width: 190px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__lead {
    font-size: 12px;
  }

  .intro_summary {
    font-size: 22px;
  }

  .cta-card__title {
    font-size: 22px;
  }

  .site-footer__inner {
    grid-template-columns: 180px 1fr;
    column-gap: 40px;
  }

  .footer-nav {
    column-gap: 32px;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container,
  .container.full {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  main {
    margin-top: 68px;
  }

  .site-header {
    height: 68px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-branding__logo {
    width: 180px;
  }

  .global-nav {
    margin-left: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav__list {
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .global-nav__item a {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .page_inner_menu {
    display: none;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading__title {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .section-heading__sub_title {
    font-size: 17px;
    line-height: 1.6;
  }

  .section-heading__lead {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.8;
  }

  .hero {
    padding: 60px 0;
  }

  .hero__heading {
    margin-bottom: 24px;
  }

  .hero__en {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero__ja {
    margin-top: 4px;
    font-size: 12px;
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0;
  }

  .hero__logo-area {
    justify-content: flex-start;
    margin-bottom: 60px;
  }

  .hero__logo {
    width: 160px;
  }

  .hero__text-area {
    padding-top: 0;
  }

  .hero__title {
    text-align: center;
    font-size: 22.5px;
    line-height: 1.55;
  }

  .hero__lead {
    margin-top: 30px;
    font-size: 12px;
    line-height: 2;
  }

  .intro {
    margin-bottom: 48px;
  }

  .intro .section-heading {
    margin-bottom: 16px;
  }

  .intro .section-heading__title {
    font-size: 24px;
  }

  .intro-diagram img {
    aspect-ratio: auto;
    height: auto;
  }

  .intro_summary {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.75;
  }

  .cta {
    padding: 60px 0;
  }

  .cta__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
  }

  .cta-card {
    border-radius: 18px;
  }

  .cta-card__link {
    min-height: 96px;
    padding: 16px 18px;
  }

  .cta-card__brand img {
    width: 100px;
  }

  .cta-card__title {
    margin-top: 6px;
    font-size: 20px;
    line-height: 1.45;
  }

  .cta-card__arrow {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 16px;
  }

  .site-footer {
    padding: 28px 0 18px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .site-footer__brand {
    text-align: left;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .footer-nav__title {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .footer-nav__list a {
    font-size: 13px;
    line-height: 1.8;
  }

  .site-footer__bottom {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .social-links {
    gap: 12px;
  }

  .social-links img {
    width: 20px;
    height: 20px;
  }

  .site-footer__copyright {
    margin-top: 16px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .container,
  .container.full {
    padding-left: 14px;
    padding-right: 14px;
  }

  main {
    margin-top: 64px;
  }

  .site-header {
    height: 64px;
  }

  .site-header.is-scrolled {
    height: 52px;
  }

  .site-branding__logo {
    width: 180px;
  }

  .global-nav {
    margin-left: 10px;
  }

  .global-nav__list {
    gap: 12px;
  }

  .global-nav__item a {
    font-size: 18px;
  }

  .section-heading__title {
    font-size: 21px;
  }

  .section-heading__sub_title {
    font-size: 15px;
  }

  .section-heading__lead {
    font-size: 11px;
  }

  .hero__en {
    font-size: 30px;
  }

  .hero__ja {
    font-size: 11px;
  }

  .hero__logo {
    width: 140px;
  }

  .hero__lead {
    font-size: 11px;
    line-height: 1.8;
  }

  .intro .section-heading__title {
    font-size: 21px;
  }

  .intro_summary {
    font-size: 16px;
    line-height: 1.7;
  }

  .cta-card__title {
    font-size: 17px;
  }

  .cta-card__link {
    min-height: 88px;
    padding: 14px 14px 14px 16px;
  }

  .cta-card__brand img {
    width: 88px;
  }

  .cta-card__arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 14px;
  }

  .footer-nav__title {
    font-size: 11px;
  }

  .footer-nav__list a {
    font-size: 12px;
  }

  .site-footer__copyright {
    font-size: 10px;
  }
}

/* ======================================
   Hamburger Menu - 最前面レイヤー
   （AI相談ウィジェット等より上に表示する）
====================================== */
.site-header {
  z-index: 10000;
}

.menu-toggle {
  z-index: 10002;
}

@media screen and (max-width: 768px) {
  .global-nav {
    z-index: 10001;
  }

  /* ドロワー表示中はAI相談ウィジェットを隠す */
  body.menu-open #omakase-product-widget,
  body.menu-open [id^="omakase-"],
  body.menu-open [class*="omakase-widget"] {
    visibility: hidden;
    pointer-events: none;
  }
}
