@charset "UTF-8";

/* =========================================================
   common.css — 全ページ共通パーツ（旧 main.css から分離）
   reset / header / footer / breadcrumb / フォーム / 共通ユーティリティ / page_top
   ※ main.css は home(TOP)固有のみ。common.css は全非LPページで読込。
========================================================= */
:where(*, *::before, *::after) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
}
:where(ul, ol) {
  list-style: none;
}
:where(img) {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  pointer-events: none;
}
:where(hgroup, time) {
  display: block;
}
:where(html) {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
@media (width >= 751px) {
  :where(html) {
    scroll-padding: 6.25rem;
  }
}
@media (width <= 750px) {
  :where(html) {
    scroll-padding: 1.5625rem;
  }
}
:where(body) {
  font-family: "Yuji Syuku", serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.875;
  color: #171717;
}
/* page_top(mix-blend-mode:difference)が透過要素の上でも黒く描画されるよう、
   ページ背景を不透明な白に固定（media.css と同じ挙動。透過要素の裏が白でないと橙化する問題の対策）。 */
body {
  background-color: #fff;
}
@media (width >= 751px) {
  :where(body) {
    font-size: 1rem;
  }
}
@media (width <= 750px) {
  :where(body) {
    font-size: 4.2666666667vw;
  }
}
:where(a) {
  text-decoration: none;
  color: inherit;
}
@media (width <= 750px) {
  :where(a) {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
}
@media (width >= 751px) {
  body {
    min-width: 80rem;
  }
}
body.menu-open {
  overflow: hidden !important;
}
.font-michroma {
  font-family: "Michroma", serif;
}
@media (width >= 751px) {
  .sp-only {
    display: none;
  }
}
@media (width <= 750px) {
  :where(img) {
    width: 100%;
  }
  .pc-only {
    display: none;
  }
}
.header {
  position: relative;
  z-index: 100;
}
@media (width >= 751px) {
  .header {
    margin-inline: auto;
    position: sticky;
    top: 0;
    left: 0;
    width: 76.875rem;
  }
}
body.hone .header::before {
  content: "";
  width: 100dvw;
  height: 0;
  position: absolute;
  top: 0;
  left: calc(50% - 50dvw);
  background: linear-gradient(#bf1515 0%, rgba(191, 21, 21, 0) 100%);
  opacity: 0;
  transition:
    opacity 0.5s,
    height 0.5s;
}
body.home .header.js-white .header-logo img {
  filter: brightness(0) invert(1);
}
@media (width >= 751px) {
  body.hone .header.js-white::before {
    height: 200px;
    opacity: 1;
  }
  .header.js-white .header-nav-list a {
    color: #fff;
  }
}
@media (width >= 751px) and (hover: hover) and (pointer: fine) {
  .header.js-white .header-nav-list a:hover {
    color: #e0b269;
  }
}
.header.js-bg .header-inner {
  background: #edecea;
}
.header.js-bg .header-logo img {
  filter: none;
}
@media (width >= 751px) {
  .header.js-bg::before {
    display: none;
  }
  .header.js-bg .header-nav-list a {
    color: inherit;
  }
}
@media (width >= 751px) and (hover: hover) and (pointer: fine) {
  .header.js-bg .header-nav-list a:hover {
    color: #a30707;
  }
}
@media (width >= 751px) {
  .header-inner {
    padding-inline: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 62.5rem;
    height: 4rem;
    position: absolute;
    top: 0.75rem;
    left: 0;
    border-radius: 2rem;
    transition: background-color 0.3s;
  }
}
@media (width <= 750px) {
  .header-logo {
    width: 29.8666666667vw;
    position: absolute;
    top: 5.3333333333vw;
    left: 9.8666666667vw;
  }
}
.header-logo img {
  transition: filter 0.3s;
}
@media (width >= 751px) {
  .header-nav-toggle {
    display: none;
  }
}
@media (width <= 750px) {
  .header-nav-toggle {
    width: 14.9333333333vw;
    height: 14.9333333333vw;
    position: fixed;
    top: 0;
    right: 6.4vw;
    z-index: 2;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  .header-nav-toggle span {
    display: block;
    width: 10.6666666667vw;
    position: absolute;
    transition: all 0.3s;
  }
  .header-nav-toggle span:nth-child(1) {
    top: 5.3333333333vw;
    left: 2.1333333333vw;
  }
  .header-nav-toggle span:nth-child(2) {
    bottom: 5.3333333333vw;
    right: 2.1333333333vw;
    transform: scaleX(-1);
  }
}
@media (width >= 751px) {
  .header-nav-list {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}
@media (width <= 750px) {
  .header-nav-list {
    padding-bottom: 5.3333333333vw;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 14.9333333333vw;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    font-size: 5.3333333333vw;
    text-align: center;
    line-height: 1.65;
    background: url(../img/common/header-nav-bg-sp.webp) 0 0/100% no-repeat #edecea;
  }
}
@media (width >= 751px) {
  .header-nav-item a {
    transition: color 0.3s;
  }
}
@media (hover: hover) and (pointer: fine) {
  .header-nav-item a:hover {
    color: #a30707;
  }
}
.header-contact {
  overflow: hidden;
}
@media (width >= 751px) {
  .header-contact {
    height: 5.8125rem;
    position: absolute;
    top: 0;
    right: -1.25rem;
    border-radius: 0 0 5.8125rem 5.8125rem;
  }
}
@media (width <= 750px) {
  .header-contact {
    width: 34.1333333333vw;
    height: 16.5333333333vw;
    position: fixed;
    bottom: 0;
    left: -2.6666666667vw;
    border-radius: 16.5333333333vw 16.5333333333vw 0 0;
  }
}
.header-contact a {
  display: block;
}
@media (width >= 751px) {
  .header-contact a {
    background: url(../img/common/header-contact-pc-on.webp) 0 0/100% no-repeat;
  }
  .header-contact a img {
    transition: opacity 0.3s;
  }
}
@media (hover: hover) and (pointer: fine) and (width >= 751px) {
  .header-contact a:hover img {
    opacity: 0;
  }
}
@media (width <= 750px) {
  .header.menu-open .header-logo {
    position: fixed;
    z-index: 2;
  }
}
@media (width <= 750px) {
  .header.menu-open .header-nav-toggle span:nth-child(1) {
    top: 6.8vw;
    transform: rotate(-135deg);
  }
  .header.menu-open .header-nav-toggle span:nth-child(2) {
    bottom: 6.8vw;
    transform: scaleX(-1) rotate(-135deg);
  }
}
@media (width <= 750px) {
  .header.menu-open .header-nav-list {
    display: flex;
  }
}
/* 共通フッター（新デザイン 2026-06）
   PC: ロゴ左上 / 侍画像 右上(absolute) / 下段に メニュー左・コピーライト右
   SP: ロゴ → 侍画像 → メニュー → コピーライト の縦積み */
.footer {
  background-color: #fff;
  padding: 60px 0;
  overflow: hidden; /* 侍スライドインのはみ出しをクリップ */
}
.footer__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer__logo {
  margin-bottom: 100px;
}
.footer__logo a {
  display: inline-block;
}
.footer__logo img {
  display: block;
  width: 136px;
  height: auto;
}
.footer__samurai {
  position: absolute;
  top: 0;
  right: 0;
  width: 447px;
  max-width: 36%;
  pointer-events: none;
}
.footer__samurai img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.footer__samurai.inview img {
  opacity: 1;
  transform: translateX(0);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__menu {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__menu-item {
  font-family: "Yuji Syuku", serif;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}
.footer__menu-item a {
  color: #333;
  transition: opacity 0.3s ease;
}
.footer__menu-item a:hover {
  opacity: 0.7;
}
.footer__copyright {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  white-space: nowrap;
}
.footer__copyright-icon {
  margin-right: 0.25em;
  font-family: "Noto Sans JP", sans-serif;
}
@media (max-width: 750px) {
  /* SP は全て可変。@750(=@2x)基準の実数値から算出。
     padding/margin = calc(値 / 750 * 100%)、font = 比較関数 min(値/750*100vw, 値px)、gap/幅 = vw。 */
  .footer {
    padding: calc(80 / 750 * 100%) 0 calc(240 / 750 * 100%);
  }
  .footer__inner {
    padding: 0 calc(40 / 750 * 100%);
  }
  .footer__logo {
    margin-bottom: calc(120 / 750 * 100%);
  }
  .footer__logo img {
    width: calc(272 / 750 * 100vw);
  }
  .footer__samurai {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: calc(120 / 750 * 100%);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(32 / 750 * 100vw);
  }
  .footer__menu {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: calc(16 / 750 * 100vw);
    /* 左右に余白を設けつつ space-between（値は調整可） */
    padding: 0 calc(20 / 750 * 100%);
  }
  .footer__menu-item,
  .footer__copyright {
    font-size: min(28 / 750 * 100vw, 28px);

  }
}
:where(input, button, select, textarea) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
  color: inherit;
}
:where(input[type="submit"], input[type="button"], label, button, select) {
  cursor: pointer;
}
textarea {
  resize: none;
}
::placeholder {
  color: #a2a2a2;
}
input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  border-style: solid;
  border-color: #171717;
}
@media (width >= 751px) {
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 0.6875rem 1rem;
    border-width: 0.125rem;
    border-radius: 0.25rem;
  }
}
@media (width <= 750px) {
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 2.9333333333vw 4.2666666667vw;
    border-width: 0.5333333333vw;
    border-radius: 1.0666666667vw;
  }
}
.required-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #a30707;
}
@media (width >= 751px) {
  .required-icon {
    margin-right: 0.75rem;
    padding-bottom: 1px;
    width: 2.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
    border-radius: 0.125rem;
    transform: translateY(0.0625rem);
  }
}
@media (width <= 750px) {
  .required-icon {
    margin-right: 2.1333333333vw;
    padding-bottom: 0.4vw;
    width: 9.0666666667vw;
    height: 4.8vw;
    font-size: 2.9333333333vw;
    border-radius: 0.5333333333vw;
    transform: translateY(0.2666666667vw);
  }
}
input[type="submit"],
button[type="submit"] {
  margin-inline: auto;
  display: block;
  color: #fff;
  background: #171717;
  transition: background-color 0.3s;
}
@media (width >= 751px) {
  input[type="submit"],
  button[type="submit"] {
    width: 12.5rem;
    height: 3rem;
    font-size: 1rem;
    border-radius: 1.5rem;
  }
}
@media (hover: hover) and (pointer: fine) {
  input[type="submit"]:hover,
  button[type="submit"]:hover {
    background: #a30707;
  }
}
@media (width <= 750px) {
  input[type="submit"],
  button[type="submit"] {
    width: 53.3333333333vw;
    height: 12.8vw;
    font-size: 4.2666666667vw;
    border-radius: 6.4vw;
  }
}
@media (width >= 751px) {
  .form {
    margin-left: 20.625rem;
    width: 49.5rem;
  }
}
@media (width >= 751px) {
  .form-item {
    display: grid;
    grid-template-columns: 14.375rem 1fr;
    align-items: start;
  }
  .form-item:not(:last-child) {
    margin-bottom: 1rem;
  }
}
@media (width <= 750px) {
  .form-item {
    margin-bottom: 3.7333333333vw;
  }
}
.form-item-title {
  display: flex;
  align-items: center;
}
@media (width >= 751px) {
  .form-item-title {
    margin-top: 0.578125rem;
    font-size: 1.25rem;
  }
}
@media (width <= 750px) {
  .form-item-title {
    margin-bottom: 1.0666666667vw;
  }
}
@media (width >= 751px) {
  .form-submit {
    margin-top: 2rem;
  }
}
@media (width <= 750px) {
  .form-submit {
    margin-top: 5.3333333333vw;
  }
}
@media (width >= 751px) {
  .form textarea {
    height: 12.875rem;
  }
}
@media (width <= 750px) {
  .form textarea {
    height: 54.9333333333vw;
  }
}
.wpcf7 form .wpcf7-response-output {
  margin: 2em 0 0;
  padding: 0;
  border: none;
  text-align: center;
  color: #00a0d2;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #46b450;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  color: #dc3232;
}
.wpcf7 form.spam .wpcf7-response-output {
  color: #f56e28;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #ffb900;
}
.wpcf7-not-valid-tip {
  color: #a30707;
}
@media (width >= 751px) {
  .wpcf7-not-valid-tip {
    font-size: 0.875rem;
  }
}
@media (width <= 750px) {
  .wpcf7-not-valid-tip {
    font-size: 3.7333333333vw;
  }
}
.wpcf7-spinner {
  display: none;
}
.no_article {
  font-size: 20px;
}
.breadcrumb {
  margin: 2rem 5.25rem 0;
}
.breadcrumb_list {
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb span {
  font-size: 14px;
}
@media (width <= 750px) {
  header.menu-open .header-nav-item a {
    color: inherit;
  }
  .no_article {
    font-size: min(30 / 750 * 100vw, 30px);
  }
  .breadcrumb {
    margin: min(40 / 750 * 100vw, 40px) calc(40 / 750 * 100vw) 0;
  }
  .breadcrumb_list {
    gap: min(24 / 750 * 100vw, 24px);
    white-space: nowrap;
    overflow-x: auto;
  }
  header.menu-open ~ .breadcrumb .breadcrumb_list {
    white-space: wrap;
  }
  .breadcrumb span {
    font-size: min(20 / 750 * 100vw, 20px);
  }
}

/* ========================================
   ページトップへ戻る（全ページ共通・media仕様ベース）
   markup: template-parts/page-top.php / JS: main.js（body.loaded 付与・js_page_top）
======================================== */
.page_top {
  position: fixed;
  top: 63.5%;
  right: 1%;
  cursor: pointer;
  z-index: 3;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded .page_top {
  opacity: 1;
}
@media (max-width: 750px) {
  .page_top {
    top: 78%;
    width: min(34 / 750 * 100vw, 34px);
    height: min(197 / 750 * 100vw, 197px);
  }
}
