/* =============================================
  CSS - common
  ============================================= */

:root {
  --color-primary-1: #4d2c6c;
  --color-primary-2: #7241a0; /* ボタン等のhover用 */
  --color-primary-3: #9a5de2; /* テキストのhover用 */
  --color-accent-1: #d1d646;
  --color-accent-2: #f4f4b3;
  --color-text: #333;
  --color-text-light: #bfbfbf;
  --color-bg-body: #fefefe;
  --color-bg-light: #f7f7f7;
  --color-white: #fff;
  --color-border: #eeeeee;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --transition: 0.4s ease;
  --shadow: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary-1);
  text-decoration: none;
}

/* font */
.font-small { font-size: 70%; }

/* form */
input[type="radio"] {
  appearance: none; /* デフォルトのスタイルを消す */
  border: 1px solid var(--color-primary-1);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin: 0;
  position: relative;
  cursor: pointer;
}
input[type="radio"]::before { /* 内側の丸 */
  background-color: var(--color-primary-1);
  border-radius: 50%;
  bottom: 0;
  content: "";
  width: 8px;
  height: 8px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
}
input[type="radio"]:checked::before {
  opacity: 1;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-primary-1);
  accent-color: var(--color-primary-1);
  cursor: pointer;
}

::placeholder {
  color: var(--color-text-light);
}

/* PC/モバイルの表示切替 */
.sp { display: none; }

/* ボタン */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 2px;
  color: var(--color-white);
  font-size: 16px;
  background: var(--color-primary-1);
  padding: 24px 40px;
  border-radius: 48px;
}
.btn-cta:hover {
  background: var(--color-primary-2);
  transition: background var(--transition);
}
.arrow-white {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 1px;
  margin-top: 6px;
  border-radius: 12px;
  background-color: var(--color-white);
}
.arrow-white::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  width: 15px;
  height: 1px;
  border-radius: 9999px;
  background-color: var(--color-white);
  transform: rotate(45deg);
  transform-origin: calc(100% - 1px) 50%;
}
.btn-cta .arrow-white {
  transition: transform var(--transition);
}
.btn-cta:hover .arrow-white { transform: translateX(4px); }

/* WPスタイル調整 */
.contact-form .form-submit p .wpcf7-spinner {
  display: block;
}
.contact-form .wpcf7 form.sent .wpcf7-response-output { /* thanks msg */
  border-color: var(--color-accent-1);
  border-radius: 3px;
  background: var(--color-accent-2);
  padding: 16px;
  text-align: center;
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output {
  border-color: #cf0000;
  border-radius: 3px;
  padding: 16px;
  color: #cf0000;
  text-align: center; 
}
.grecaptcha-badge { /* reCAPTCHA logo */
  /*  display:none は非推奨 */
  visibility: hidden;
}


/* =============================================
  HEADER
  ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
  background: rgba(255,255,255,0.15);
}

#header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo a {
  display: block;
  width: 220px;
  height: auto;
}

.header-wrap {
  display: flex;
}
.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-desktop a {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 30px;
  color: var(--color-primary-1);
  transition: color var(--transition);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary-2);
  transition: width var(--transition);
}

.nav-desktop a:hover::after { width: 100%; }

#header:not(.scrolled) .nav-desktop a {
  color: var(--color-primary-1);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 2rem;
}

.tel-number {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-desktop a:hover,
.tel-number:hover {
  color: var(--color-primary-3);
  transition: color var(--transition);
}

.tel-hours {
  font-size: 10px;
  color: var(--color-text-light);
}

#header:not(.scrolled) .nav-desktop a,
#header:not(.scrolled) .tel-number,
#header:not(.scrolled) .tel-hours {
  color: var(--color-white);
}
#header:not(.scrolled) .nav-desktop a:hover,
#header:not(.scrolled) .tel-number:hover { color: var(--color-primary-2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

#header:not(.scrolled) .hamburger span {
  background: white;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.hamburger.active span { background: var(--color-text) !important; }

/* =============================================
  MOBILE MENU
  ============================================= */
.mobile-menu {
  opacity: 0;
  position: fixed;
  top: 72px;
  right: -100%;
  width: 100%;
  height: 65vh;
  background: linear-gradient(to bottom, #fff 70%, rgba(255,255,255,0.5) 90%, transparent);
  z-index: 1050;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  transition: right var(--transition), opacity var(--transition);
}

.mobile-menu.open { right: 0; opacity: 1; }

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav-link {
  padding: 14px;
  transition: color var(--transition), padding var(--transition);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.mobile-nav-link:hover {
  color: var(--color-accent-1);
  padding-left: 8px;
}

.mobile-nav-link .section-en {
  margin-bottom: 1px;
  font-size: 8px;
  letter-spacing: 2px;
}
.mobile-nav-link .section-title {
  font-size: 18px;
  letter-spacing: 1px;
}
.mobile-nav-link .section-title::after {
  display: none;
}

.mobile-tel {
  display: flex;
  flex-direction: column;
  margin-left: 14px;
  gap: 2px;
}

.mobile-tel a {
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--color-text);
}

.mobile-tel span {
  font-size: 11px;
  color: var(--color-text-light);
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  margin-top: 72px;
  background: rgba(255,255,255,0.9);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* main-vis entrance animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.1s; }
.delay-5 { animation-delay: 1.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
  SECTIONS COMMON
  ============================================= */
.section {
  padding: 160px 0;
}

.section a:hover {
  color: var(--color-primary-3);
  transition: color var(--transition);
}

.section-light {
  background: var(--color-bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-en { /* TOP */
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-accent-1);
  margin-bottom: 8px;
  display: block;
}
.section-sub-en { /* 下層 */
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--color-accent-1);
  margin-bottom: 8px;
}

.section-title { /* TOP */
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 5px;
  color: var(--color-primary-1);
  line-height: 1.3;
}
.section-sub-title { /* 下層 */
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 4px;
  color: var(--color-primary-1);
  line-height: 1.2;
}

.section-title::after,
.section-sub-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-primary-1);
  margin: 16px auto 0;
}

.section-desc {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.7;
  color: var(--color-text-light);
  text-align: center;
  margin: 1em 0;
}


/* =============================================
  SUB VIS
  ============================================= */
#sub-vis {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sub-vis-media {
  position: absolute;
  inset: 0;
  background: url(../img/vis.jpg) no-repeat bottom 50% left 25%;
  background-size: 180% auto;
}

.sub-vis-content {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 60px 0;
  z-index: 2;
}

.sub-vis-sub {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.sub-vis-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 3px;
  color: var(--color-primary-1);
  line-height: 1.3;
}

/* お知らせ・物件情報ページのスタイル統一 */
.single + .main-content .container {
  padding: 100px 20px 150px;
  max-width: 1000px;
  margin: 0 auto;
}
.single + .main-content .entry-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.single + .main-content .entry-header .date {
  letter-spacing: 1px;
  color: var(--color-text-light);
  font-size: 14px;
}
.single + .main-content .entry-header .entry-title {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-top: 10px;
  letter-spacing: 2px;
}
.single + .main-content .entry-content {
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 1px;
}
.single + .main-content article + p {
  margin-top: 5em;
  color: var(--color-text-light);
  font-size: 14px;
  cursor: pointer;
}



/* =============================================
  SCROLL REVEAL
  ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }



/* =============================================
  新着情報・成約事例
  ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
}
.news-card:not(.no-link) {
  border-left: 5px solid #d2bee8;
}
.news-card:not(.no-link):hover {
  border-left-color: #ddd1e9;
  transition: border-left-color var(--transition);
}
.news-card.sold:not(.no-link) {
  border-left: 5px solid var(--color-accent-1);
}
.news-card.sold:not(.no-link):hover {
  border-left-color: var(--color-accent-2);
  transition: border-left-color var(--transition);
}

/* 外部リンクがない成約事例の投稿記事（旧サイトの記事） */
.news-card.no-link a { pointer-events: none; }

.news-card a {
  display: block;
  padding: 24px 32px;
  /* color: var(--color-primary-2); */
}
.news-card.no-link a {
  color: var(--color-text);
}
.news-card:not(.no-link) a:hover {
  color: var(--color-primary-3);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-date {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-primary-1);
}
a:hover .news-date {
  color: var(--color-primary-2);
}

.news-category {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
  padding: 3px 10px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

/* 新着情報（新規物件情報）バッジ */
.news-card.property .news-category.property {
  background: var(--color-primary-2);
  color: var(--color-white);
  border-color: var(--color-primary-2);
}
.news-card.property:not(.no-link):hover .news-category.property {
  background: var(--color-primary-3);
  border-color: var(--color-primary-3);
  transition: background var(--transition);
}

/* 成約御礼バッジ */
.news-card.sold .news-category.sold {
  background: var(--color-accent-1);
  color: var(--color-text);
  border-color: var(--color-accent-1);
}
.news-card.sold:not(.no-link):hover .news-category.sold {
  background: var(--color-accent-2);
  transition: background var(--transition);
}

.news-title {
  text-align: left;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.6;
}


/* =============================================
  FORM
  ============================================= */
.contact-form {
  max-width: 750px;
  margin: 32px auto 0;
}

.form-row {
  margin-bottom: 28px;
}

/* .form-row label:not(.radio-label) { */
.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.required {
  display: inline-block;
  font-size: 10px;
  background: var(--color-accent-1);
  padding: 2px 10px;
  margin-left: 8px;
  line-height: 12px;
  border-radius: 18px;
  vertical-align: text-bottom;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-row input[type="number"] { width: 15%; margin: 0 8px; padding: 8px; }
.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary-1);
}

/* WPスタイル調整 */
.radio-group p .wpcf7-radio,
.check-group p .wpcf7-checkbox {
  display: flex;
  gap: calc(28px - 1em);
  flex-wrap: wrap;
  font-size: 16px;
}
.radio-group p .wpcf7-radio { margin-bottom: 8px; }
.radio-group .wpcf7-list-item,
.check-group .wpcf7-list-item { /* contact form label span */
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.form-row p .wpcf7-not-valid-tip { /* error msg */
  font-size: 12px;
  margin: 5px 0 0 16px;
}
.form-checks p {
  display: flex;
  flex-direction: column;
}
.form-row .check-label label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-label a {
  color: var(--color-primary-1);
}
/* /WPスタイル調整 */

.recaptcha-note {
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
  margin: 64px 0 32px;
  line-height: 1.8;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  background: var(--color-primary-1);
  color: var(--color-white);
  border-radius: 40px;
  padding: 18px 80px;
  font-size: 16px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--color-primary-2);
}



/* =============================================
  FOOTER
  ============================================= */
#footer {
  color: var(--color-white);
  background: var(--color-primary-1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo a {
  display: block;
  width: 220px;
  height: 32px;
  /* 白く変換 */
  filter: invert(1) brightness(100);
}

.footer-nav {
  display: flex;
  gap: 32px;
  /* margin-top: calc(32px + 48px + 5px); */
  justify-content: flex-end;
}

.footer-nav a {
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--color-white);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--color-accent-1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
}

.copyright {
  font-size: 10px;
  letter-spacing: 1px;
}

.back-to-top {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-accent-1);
  transition: opacity var(--transition);
  cursor: pointer;
}

.back-to-top:hover { color: var(--color-accent-2); }


/* =============================================
  RESPONSIVE - TABLET / MOBILE
  ============================================= */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .header-contact { display: none; }
  .footer-nav { 
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    margin-left: 10%;
  }
}

@media (max-width: 850px) {
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 24px;
  }
  .footer-inner { padding: 0; }
  .footer-top {
    padding: 0;
    grid-template-columns: 1fr;
  }
  .footer-logo { margin: 24px 24px 0; }
  .footer-bottom { padding: 16px 24px; }
}

@media (max-width: 768px) {
  #sub-vis { height: 280px; }
  .sub-vis-sub { margin-bottom: 3px; }
  .sub-vis-content { padding: 0 32px; }

  .section { padding: 72px 0; }
  .container { padding: 0 24px; }
  .single + .main-content .container { padding: 100px 60px 150px; }

  .header-inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  /* PC/モバイルの表示切替 */
  .sp { display: block; }

  .logo a { width: 180px; }
  .header-inner { padding: 0 10px; }
  .section-header { margin-bottom: 48px; }
  .section-en { margin-bottom: 3px; }
  .section-title { letter-spacing: 3px; }

  #sub-vis { height: 220px; }
  .sub-vis-media {
    background-position: bottom 60% left 25%;
    background-size: 250% auto;
  }
  .sub-vis-content { padding: 0 24px; }
  /* iPhone safari only */
  @supports (-webkit-touch-callout: none) {
    .sub-vis-content { padding: 40px 24px 0; }
  }
  .sub-vis-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .sub-vis-sub { font-size: 11px; }
  
  .section-sub-en { font-size: 12px; }
  .section-sub-title {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .single + .main-content .container { padding: 50px 24px 100px; }
  .single + .main-content .entry-header .date { font-size: 12px; }
  .single + .main-content .entry-header .entry-title { font-size: 22px; letter-spacing: 1px; }
  .single + .main-content .entry-content { font-size: 14px; }

  .form-row input[type="number"] { width: 35%; }

  .news-grid { grid-template-columns: 1fr; }

  .btn-cta { padding: 16px 24px; font-size: 12px; }
  .arrow-white { width: 20px; margin-top: 5px; }
  .arrow-white::before { width: 10px; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .copyright { font-size: 9px; }
  .back-to-top { display: none; }
}



/* =============================================
  for PRIVACY & request_survey
  ============================================= */
#privacy .container {
  max-width: 1000px;
}
#privacy .section-header { 
  margin-bottom: 10px;
}
#privacy .container > .section-header { 
  margin-bottom: 7em;
}
#privacy {
  line-height: 1.8;
  letter-spacing: 1px;
}
#privacy .section-body {
  margin: 7em 0 0;
  text-align: left;
}
#survey .section-body {
  margin: 5em 0 0;
  padding: 0;
  text-align: left;
}
#privacy .section-body .section-sub-title {
  font-size: clamp(28px, 2vw, 40px);
  letter-spacing: 2px;
  text-align: left;
}
#survey .section-body .section-sub-title {
  margin-bottom: 1em;
  font-size: clamp(24px, 1.5vw, 36px);
  letter-spacing: 2px;
  text-align: left;
}
#privacy .section-body .section-sub-title::after {
  margin: 16px 0 0;
  text-align: left;
}
#survey .section-body .section-sub-title::after {
  display: none;;
}
#privacy ol { padding: 1em 0 1em 2em; list-style: decimal; }
#privacy .font-small { margin-top: 2em; }

#survey p {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 1em 0;
}

/*----- RESPONSIVE - MOBILE -----*/
@media (max-width: 480px) {
  #privacy .container > .section-header { 
    margin-bottom: 5em;
  }
  #privacy .section-body,
  #survey .section-body {
    margin: 3em 0 0;
    padding: 0;
  }
  #privacy .section-body .section-sub-title,
  #survey .section-body .section-sub-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
  #privacy p,
  #privacy ol,
  #survey p { font-size: 14px; }
  #privacy li { margin-top: 0.5rem; }
}
