/*
Theme Name: TERRACE
Theme URI: https://fuji-glamping-villas.com/themes/terrace
Author: Hina Ono
Author URI: https://fuji-glamping-villas.com
Description: Luxury scenic stay WordPress theme designed for villas, glamping resorts, cottages, and boutique accommodations.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: terrace
*/
@font-face {
  font-family: "Zen Old Mincho";
  src: url("../fonts/zen-old-mincho-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zen Old Mincho";
  src: url("../fonts/zen-old-mincho-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --width-content: 820px;
  --width-wide: 1280px;
  --space-section: 120px;
  --space-section-sp: 72px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  /* Color */
  --color-text: #1c1c1c;
  --color-text-soft: #5c5c5c;
  --color-base: #2c3440;
  --color-sub: #7c8796;
  --color-accent: #b8a07a;
  --color-bg: #f6f8fb;
  --color-bg-soft: #edf2f7;
  --color-white: #ffffff;
  --color-border: rgba(44, 52, 64, 0.12);

  /* Typography */
  --font-base: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
 
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --lh-base: 1.8;
  --lh-heading: 1.35;

  --header-height-pc: 108px;
  --header-height-sp: 84px;
  --header-side-gap-pc: 40px;
  --header-side-gap-sp: 20px;

  /* Effect */
  --shadow-soft: 0 12px 40px rgba(44, 52, 64, 0.08);
  --transition-base: 0.35s ease;

  --transition: var(--transition-base);
  --container-width: var(--width-wide);
  --side-gap-pc: var(--header-side-gap-pc);
  --side-gap-sp: var(--header-side-gap-sp);
}

/* 最低限のベース */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-base);
background: #F7F4EF;
  font-family: var(--font-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a,
a:hover,
a:active,
a:focus,
a:visited {
  color: inherit;
  text-decoration: none;
}
.faq-cta .faq-cta__button:visited {
  color: #fff !important;
}
/* =========================
   Modern Accent Button
========================= */
.c-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 58px;
  padding: 16px 30px;
  box-sizing: border-box;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.88);
  color: var(--color-base);
  border: 1px solid rgba(28, 28, 28, 0.22);

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;

  transition:
    background .35s ease,
    color .35s ease,
    border-color .35s ease,
    transform .35s ease,
    box-shadow .35s ease;

  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );

  box-shadow: 0 8px 20px rgba(44, 52, 64, 0.06);
}

/* さりげない装飾 */
.c-btn::before,
.c-btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity .35s ease, transform .35s ease;
}

/* 左上の小装飾 */
.c-btn::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid rgba(28, 28, 28, 0.34);
  border-left: 1px solid rgba(28, 28, 28, 0.34);
}

/* 右下の小装飾 */
.c-btn::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid rgba(28, 28, 28, 0.34);
  border-bottom: 1px solid rgba(28, 28, 28, 0.34);
}

.c-btn:hover {
  background: rgba(28, 28, 28, 0.96);
  color: var(--color-white);
  border-color: rgba(28, 28, 28, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(44, 52, 64, 0.12);
}

.c-btn:hover::before,
.c-btn:hover::after {
  opacity: 1;
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* 黒ベース版 */
.c-btn--dark {
  background: rgba(28, 28, 28, 0.96);
  color: var(--color-white);
  border-color: rgba(28, 28, 28, 0.96);
}

.c-btn--dark::before {
  border-top-color: rgba(255,255,255,0.4);
  border-left-color: rgba(255,255,255,0.4);
}

.c-btn--dark::after {
  border-right-color: rgba(255,255,255,0.4);
  border-bottom-color: rgba(255,255,255,0.4);
}

.c-btn--dark:hover {
  background: #111;
  color: #fff;
}

/* 幅いっぱい */
.c-btn--block {
  width: 100%;
}

/* 小さめ */
.c-btn--sm {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .c-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    font-size: 14px;
    letter-spacing: 0.04em;
    white-space: normal;
  }
}
.c-btn,
.c-btn:visited {
  color: var(--color-base);
}

.c-btn--dark,
.c-btn--dark:visited {
  color: var(--color-white);
}

.room-detail-link,
.room-detail-link:visited {
  color: var(--cta-color);
}
/* =========================
   Room CTA
========================= */
.room-features-cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.room-detail-link {
  --cta-color: #231815;
  --cta-line: rgba(35, 24, 21, 0.72);
  --cta-ring: rgba(35, 24, 21, 0.28);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--cta-color);
  padding: 10px 0;
  transition: color .5s ease, opacity .35s ease;
}

.room-features.is-dark-mode .room-detail-link {
  --cta-color: #f8f5ef;
  --cta-line: rgba(255, 255, 255, 0.78);
  --cta-ring: rgba(255, 255, 255, 0.3);
}

/* 内側の丸を少し小さく */
.room-detail-link__icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--cta-color);
}

/* 外側リング */
.room-detail-link__icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--cta-ring);
  border-radius: 50%;
  transform: scale(1);
  opacity: 0.95;
  animation: roomCtaBreath 2.8s ease-in-out infinite;
}

.room-detail-link__label {
  font-size: 14px;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

/* 矢印 */
.room-detail-link__arrow {
  position: relative;
  width: 58px;
  height: 12px;
  flex: 0 0 58px;
  transition: transform .35s ease;
}

/* 横線 */
.room-detail-link__arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--cta-line);
  transform: translateY(-50%);
}

/* 斜め上線：横線の右端につながるように配置 */
.room-detail-link__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 140%;
  width: 25px;
  height: 12px;
  border-top: 1.2px solid var(--cta-line);
  transform: translateY(calc(-50% - 5px)) rotate(30deg);
  transform-origin: top right;
}
.room-detail-link {
  transition: color .4s ease;
}

/* hover時：黒系に反転 */
.room-detail-link:hover {
  --cta-color: #231815;
  --cta-line: rgba(35, 24, 21, 0.85);
  --cta-ring: rgba(35, 24, 21, 0.35);
}

.room-detail-link:hover .room-detail-link__arrow {
  transform: translateX(4px);
}

.room-detail-link:hover .room-detail-link__icon::before {
  animation-duration: 1.9s;
}

@keyframes roomCtaBreath {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.38;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
.SP{display:none;}
.PC{display:block;}

@media (min-width: 769px) {
  .room-features-cta {
    margin-top: 84px;
    justify-content: flex-end;
    width: min(1320px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
  }

  .room-detail-link {
    gap: 20px;
  }

  .room-detail-link__label {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .room-detail-link__arrow {
    width: 64px;
    flex-basis: 64px;
  }
}

@media (max-width: 768px) {
.SP{display:block;
}
.PC{display:none;}
  .room-features-cta {
    justify-content: center;
  }
}