/*====================================
リセット
===================================*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

ul,
ol {
  list-style: none;
}



/*====================================
共通設定
===================================*/
:root {
  --main-color: #4E4947;
  --en-color: #7C7471;
  --sub-color: #738064;
  --font-base-size: clamp(1.4rem, 2vw, 1.6rem);
  --font-h1-size: clamp(4rem, 6vw, 8rem);
  --font-h2-size: clamp(1.8rem, 3vw, 3rem);
  --font-txt: "Zen Kaku Gothic New", sans-serif;
  --font-hand: "Zen Kurenaido", sans-serif;
  --font-en: "Spinnaker", sans-serif;
  --sp-fixed-btn-height: 45px;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--wp-admin--admin-bar--height, 100px);
  scrollbar-gutter: stable;
}

body {
  color: var(--main-color);
  font-size: var(--font-base-size);
  font-family: var(--font-txt);
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
  background-color: #FDFCFB;

}

main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('/wp-content/themes/mmono/img/dot-yellow-bg.png');
  background-repeat: repeat-y;
  background-position: top center;
  opacity: .6;
  pointer-events: none;
  z-index: -1;
}

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

picture {
  max-width: 100%;
  display: block;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 5rem;
}

.mb-7 {
  margin-bottom: 7rem;
}

.mb-10 {
  margin-bottom: 10rem;
}

.mb-20 {
  margin-bottom: 20rem;
}

.font-500 {
  font-weight: 500;
}

.font-600 {
  font-weight: 600;
}


/* レスポンシブ対応　非表示 */
.spOnly {
  display: none;
}

.noSp {
  display: block;
}

.noTb {
  display: block;
}


@media (max-width: 767px) {
  .spOnly {
    display: block;
  }

  .noSp {
    display: none;
  }

  .mb-5 {
    margin-bottom: 3rem;
  }

  .mb-7 {
    margin-bottom: 4rem;
  }

  .mb-10 {
    margin-bottom: 5rem;
  }

  .mb-20 {
    margin-bottom: 10rem;
  }

  main::before {
    background-image: url('/wp-content/themes/hiramotomm/img/dot-yellow-bg-sp.png');
    background-size: 100% auto;
    background-position: top center;
  }
}



/*====================================
コンテンツ幅の設定
===================================*/
.content-width {
  width: 88.888%;
  max-width: 1300px;
  margin: 0 auto;
}



/*====================================
枠ドロップシャドウ
===================================*/
.layout-shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}




/*====================================
フェードインの設定
===================================*/
.fade-target {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.19, 1, .22, 1);
  will-change: transform, opacity;
}

.fade-target.is-show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .2s;
}

.delay-2 {
  transition-delay: .5s;
}

.delay-3 {
  transition-delay: .9s;
}

.delay-4 {
  transition-delay: 1.2s;
}

.delay-5 {
  transition-delay: 1.5s;
}


/*====================================
見出しフォントの設定
===================================*/
/* h2 タイトル設定 */
h2 {
  color: var(--main-color);
  font-size: var(--font-h2-size);
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

h2 .subTtl {
  color: var(--main-color);
  font-size: clamp(1.3rem, 1.5vw, 1.4rem);
  font-weight: 400;
  text-align: center;
}


/* =========================
header & nav
========================= */

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 70px);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;

  border-radius: 20px;

  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
}

/* スクロール後だけ表示 */
.site-header.is-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ロゴ */
.site-logo {
  line-height: 1;
}

.site-logo img {
  width: 110px;
  display: block;
}

/* 暗背景時だけ白化 */
.site-header.is-light .site-logo img {
  filter: brightness(0) invert(1);
}


/* ハンバーガー */
.header-menu {
  position: relative;
  width: 60px;
  height: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--en-color);
  transition: transform 0.4s ease,
    opacity 0.4s ease;
}

.header-menu span:nth-child(1) {
  top: 0;
}

.header-menu span:nth-child(2) {
  bottom: 0;
}

/* メニューOPEN中に背景スクロール止める */
body.menu-open {
  overflow: hidden;
}

/* メニューOPRN時は1本線 */
.header-menu.active span {
  background: #fff;
}

.header-menu.active span:nth-child(1) {
  transform: translateY(7px);
}

.header-menu.active span:nth-child(2) {
  opacity: 0;
}



/* =========================
   SP
========================= */

@media (max-width: 767px) {

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 1.5rem;
    border-radius: 16px;
  }

  .site-logo img {
    width: 90px;
  }

  .header-menu {
    width: 50px;
  }
}



/* =========================
ハンバーガメニュー画面
========================= */
.global-menu {
  position: fixed;
  inset: 0;

  opacity: 0;
  visibility: hidden;

  transition: opacity .4s ease,
    visibility .4s ease;

  z-index: 90;

  overflow: hidden;
}

.global-menu.active {
  opacity: 1;
  visibility: visible;
}

/* 背景画像 */
.global-menu-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.global-menu-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  display: block;
}

/* オーバーレイ */
.global-menu::after {
  content: "";
  position: absolute;
  inset: 0;

  background-color: rgba(70, 80, 60, 0.2);

  z-index: 1;
}

/* メニュー */
.global-menu-nav {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  width: 100%;
  height: 100%;

  padding:
    min(10vw, 80px) min(7vw, 60px);
}

.global-menu-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-align: left;
}

.global-menu-nav a {
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: 0.12em;
  line-height: 1;
  transition: opacity .3s ease;
}

.global-menu-nav a:hover {
  opacity: 0.7;
}



/*====================================
くわしく見るボタン
===================================*/

.circle-link {
  display: flex;
  justify-content: flex-end;
}

.circle-link-inner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--sub-color);
}

/* 円 */
.circle-link-icon {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
}

.circle-link-icon svg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  transform: rotate(-90deg);
}

/* 通常のグレー円 */
.circle-base {
  fill: none;
  stroke: #d7d4cf;
  stroke-width: 1.5;
}

/* hover用 */
.circle-hover {
  fill: none;
  stroke: #738064;
  stroke-width: 1.5;

  stroke-dasharray: 302;
  stroke-dashoffset: 302;

  transition:
    stroke-dashoffset .7s ease;
}

/* hover時 */
.circle-link-inner:hover .circle-hover {
  stroke-dashoffset: 0;
}

/* 矢印 */
.arrow {
  position: relative;
  z-index: 2;

  font-size: 18px;
  line-height: 1;

  color: #8b857d;
}

/* テキスト */
.circle-link-text {
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  letter-spacing: .1em;
}


@media (max-width: 767px) {
  .circle-link-icon {
    width: 70px;
    height: 70px;
  }
}


/* =========================
   TOPへ戻るボタン
========================= */
.page-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  background-color: #AAB5A7;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50;
}

.page-top.is-show {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
  /* ← ふわっと上がる */
}

.page-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}

/* 矢印 */
.page-top .arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
  margin-bottom: 5px;
}

/* TOP文字 */
.page-top .text {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}

@media (max-width: 767px) {
  .page-top {
    right: 15px;
    width: 60px;
    height: 60px;
  }

  .page-top .arrow {
    width: 7px;
    height: 7px;
    margin-bottom: 0px;
  }
}



/* =========================
   Footer Contact
========================= */
.site-footer {
  margin-top: 20rem;
}

.footer-contact {
  position: relative;
  overflow: hidden;
}

.footer-contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* content */
.footer-contact-inner {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 8vw, 8rem) 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* glass */
.glass-bg {
  width: min(100%, 900px);
  text-align: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: clamp(3rem, 6vw, 7rem) clamp(1.5rem, 3vw, 2rem);
  margin: 0 auto;
  position: relative;
}

/* title */
.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: #fff;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* text */
.contact-text {
  color: #fff;
  line-height: 2;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  height: 64px;
  border-radius: 999px;
  background: #fff;
  color: var(--sub-color);
  letter-spacing: 0.08em;
  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* =========================
   footer bottom
========================= */
.footer-bottom {
  max-width: 1700px;
  margin: 0 auto;
  align-items: center;
}

.footer-bottom-inner {
  padding: 60px clamp(20px, 4vw, 60px) 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-nav ul {
  display: flex;
  gap: 2.5rem;
  justify-content: flex-end;
  align-items: center;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
}

.footer-nav a {
  color: var(--en-color);
  letter-spacing: .12em;
}

/* logo */
.footer-logo img {
  width: 110px;
  height: auto;
  display: block;
}

/* copyright */
.copyright {
  padding: 20px 20px;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}


/* フッター付近で非表示 */
.site-header.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px);

  pointer-events: none;
}




/* =========================
  TABLET
========================= */
@media (max-width: 1260px) {
  .site-footer {
    margin-top: 10rem;
  }

  .footer-bottom-inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* =========================
   SP
========================= */

@media (max-width: 767px) {

  .site-footer {
    margin-top: 5rem;
  }

  .contact-btn {
    width: 100%;
    max-width: 280px;
    height: 45px;
  }

  .footer-bottom-inner {
    width: 85%;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding: 4rem 0;
  }

  /* ロゴ */
  .footer-logo {
    width: 110px;
    flex-shrink: 0;
  }

  .footer-logo img {
    width: 90%;
  }

  /* nav */
  .footer-nav ul {
    gap: 1.4rem;
  }

  .footer-nav a {
    letter-spacing: 0.08em;
  }

}


/* CONTACT　モーダルウィンドウ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.contact-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-modal-content {
  position: relative;
  width: min(90%, 650px);
  background: #fff;
  border-radius: 10px;
  padding: 5rem;
  margin: 100px auto;
}

.contact-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* 線 */
.contact-modal-close::before,
.contact-modal-close::after {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  width: 24px;
  height: 1.5px;

  background-color: var(--main-color);

  transform-origin: center;
}

/* ／ */
.contact-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ＼ */
.contact-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.frm_form_field {
  margin-bottom: 2rem;
}

.frm_form_field:nth-of-type(3) {
  margin-bottom: 4rem;
}

.frm_button_submit {
  border-radius: 100vh;
  padding: 1rem 4rem;
  width: 60%;
  border: none;
  background-color: var(--sub-color);
  color: #fff;
  font-size: var(--font-base-size);
  display: block;
  margin: 0 auto;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
}

.with_frm_style .frm_primary_label {
  font-size: var(--font-base-size);
  color: var(--main-color);
}

.contact-modal-close {
  transition: opacity 0.3s;
}

.contact-modal-close:hover {
  opacity: 0.6;
}

/* 送信するボタン */
.frm_button_submit {
  border-radius: 100vh;
  padding: 1rem 4rem;
  width: 60%;
  border: none;
  background-color: var(--sub-color);
  color: #fff;
  font-size: var(--font-base-size);

  display: block;
  margin: 0 auto;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
}

.frm_button_submit:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12);
}


@media (max-width: 767px) {
  .contact-modal-content {
    padding: 5rem 2rem;
    margin: 5rem auto;
  }

  .frm_button_submit {
    width: 70%;
  }
}


/* =========================
  page title
========================= */
.page-title {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: end;
  gap: clamp(2rem, 4vw, 6rem);
  margin-top: 10rem;
}

/* image */
.page-title-img {
  width: 100%;
}

.page-title-img picture,
.page-title-img img {
  display: block;
  width: 100%;
}

.page-title-img img {
  width: 100%;
  height: clamp(220px, 32vw, 420px);

  object-fit: cover;
  object-position: center;
}

.page-title-text {
  display: flex;
  align-items: flex-end;
}

.page-title-text h1 {
  font-weight: 400;
}


/* =========================
  pankuzu
========================= */
.pankuzu {
  width: 88.888%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 0 10rem;
}

.pankuzu ol {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pankuzu li {
  letter-spacing: 0.05em;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
}

.pankuzu li+li::before {
  content: "›";
  margin-right: 2rem;
  color: var(--en-color);
}

.pankuzu a {
  position: relative;
  display: inline-block;
}

.pankuzu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.pankuzu a:hover::after {
  transform: scaleX(1);
}



/* =========================
SP
========================= */

@media (max-width: 1600px) {

  .page-title {
    grid-template-columns: 1fr 330px;
  }
}

@media (max-width: 1000px) {

  .page-title {
    width: auto;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-title-text {
    width: auto;
    padding-inline: 20px;
    justify-content: flex-end;
  }

  .page-title-img img {
    height: 300px;
  }
}



/* =========================
TABLET
========================= */
@media (max-width: 1200px) {
  .pankuzu {
    padding: 5rem 0;
  }
}



/* =========================
SP
========================= */
@media (max-width: 767px) {

  .page-title {
    width: auto;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 7rem;
  }

  .page-title-text {
    width: auto;
    padding-inline: 20px;
    justify-content: flex-end;
  }

  .page-title-img img {
    height: 160px;
  }

  .pankuzu {
    width: 85%;
    margin-inline: auto;
    padding: 3rem 0;
  }

  .pankuzu ol {
    gap: .5rem 1.5rem;
    flex-wrap: wrap;
  }

  .pankuzu li+li::before {
    margin-right: 1rem;
  }

}



/* =========================
カスタムカーソル
========================= */
/* PCのみ */
@media (hover:hover) and (pointer:fine) {

  body {
    cursor: none;
  }

  /* 中央 */
  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  /* 外側 */
  .cursor-stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(245, 232, 178, .5);
    border: 1px solid rgba(245, 232, 178, .6);
    backdrop-filter: none;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);

    transition:
      width .3s,
      height .3s,
      background .3s;
  }

  /* hover時 */
  .cursor-stalker.is-hover {
    width: 75px;
    height: 75px;
  }
}