/* ============================================
   EACUS - Mansion House Renovation
   Global Stylesheet
   ============================================ */

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

:root {
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #eeeeee;
  --color-gray-300: #d0d0d0;
  --color-gray-500: #888888;
  --color-gray-700: #555555;
  --color-accent: #c8102e;
  --font-display: "DIN Alternate", "DIN Condensed", "Barlow", sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 1300px;
  --content-width: 1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

/* --- SEO visually-hidden --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout --- */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  position: relative;
  min-height: 100vh;
}

/* --- Header --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px 10px;
  position: relative;
  z-index: 100;
}

.reft-logo img {
  height: 35px;
  width: auto;
}

.site-title img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 15px 40px 25px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
}

.header-nav a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 0.5;
}

/* Constraint for main content area to 1100px while wrapper/header stays at 1300px */
.site-wrapper > section,
.site-wrapper > footer,
.company-section,
.contact-intro,
.works-detail-spec,
.works-detail-gallery,
.column-section,
.cta-section {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  width: 10px;
  height: 6px;
  margin-left: 5px;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--color-white);
  min-width: 240px;
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--color-gray-100);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% - 5px);
}

.dropdown-menu a {
  padding: 8px 25px !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0.05em !important;
  color: var(--color-gray-700) !important;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--color-gray-100);
  opacity: 1 !important;
  color: var(--color-black) !important;
}

.header-nav .nav-instagram {
  display: flex;
  align-items: center;
}

.header-nav .nav-instagram svg {
  width: 18px;
  height: 18px;
}

/* --- Hero / Slideshow (TOP) --- */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 50px 60px;
}

.hero-text {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text .line {
  display: block;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
}

/* --- Page Hero (下層ページ共通) --- */
.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px 60px;
}

.page-hero-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================
   COMPONENT: WORKS
   ============================================ */
.section-works {
  padding: 60px 40px;
}

/* ============================================
   PAGE: FURNITURE (PREPARATION)
   ============================================ */
.prep-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 40px;
}

.prep-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    color: var(--color-black);
}

.prep-subtitle {
    font-size: 16px;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
    color: var(--color-gray-500);
}

.prep-message {
    max-width: 500px;
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 60px;
}

.back-home {
    display: inline-block;
    border: 1px solid var(--color-black);
    padding: 15px 50px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.back-home:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ============================================
   PAGE: COMPANY
   ============================================ */
.company-section {
    padding: 80px 40px 100px;
}

.company-content {
    max-width: 800px;
    margin: 0 auto;
}

.company-profile-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table tr {
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-table th,
.profile-table td {
    padding: 25px 0;
    font-size: 15px;
    text-align: left;
}

.profile-table th {
    width: 200px;
    font-weight: 500;
    color: var(--color-gray-700);
}

.profile-table td {
    color: var(--color-black);
}

/* ============================================
   PAGE: CONTACT
   ============================================ */
.contact-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 15px;
    color: var(--color-gray-700);
}

.form-label .required {
    background: var(--color-black);
    color: var(--color-white);
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 12px;
    border-radius: 2px;
}

.radio-group {
    display: flex;
    gap: 30px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.radio-group input {
    margin-right: 8px;
}

.privacy-policy {
    margin: 60px 0 40px;
    background: var(--color-gray-100);
    padding: 40px;
    font-size: 13px;
    color: var(--color-gray-700);
    line-height: 2;
}

.privacy-policy h3 {
    color: var(--color-black);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.privacy-agree {
    text-align: center;
    margin-bottom: 40px;
}

.privacy-agree label {
    font-size: 15px;
    cursor: pointer;
}

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

.submit-btn button {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 20px 80px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn button:hover {
    opacity: 0.8;
}

/* ============================================
   PAGE: WORKS DETAIL
   ============================================ */
.works-detail-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 35px 40px;
}

.spec-section h3,
.features-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  font-size: 15px;
  border-collapse: collapse;
  border-top: 2px solid var(--color-black);
}

.spec-table tr {
  border-bottom: 1px solid var(--color-gray-300);
}

.spec-table td {
  padding: 16px 0;
  vertical-align: top;
}

.spec-table td:first-child {
  width: 40%;
  color: var(--color-gray-500);
}

.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.features-tag {
  display: inline-block;
  border: 1px solid var(--color-gray-300);
  padding: 7px 20px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.works-detail-gallery {
  padding: 20px 40px 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
}

.works-detail-gallery .gallery-image {
  cursor: pointer;
  overflow: hidden;
}

.works-detail-gallery .gallery-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.works-detail-gallery .gallery-image:hover img {
  transform: scale(1.02);
}

.works-detail-gallery .gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.works-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 25px 40px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
}

.works-nav a {
  transition: color 0.3s;
}

.works-nav a:hover {
  color: var(--color-black);
}

/* ============================================
   COMPONENT: ARROWS
   ============================================ */
.dropdown-arrow {
  width: 10px;
  height: 6px;
  margin-left: 5px;
  vertical-align: middle;
}

/* --- CTA Section (Global) --- */
.cta-section {
  margin: 20px 40px 60px;
  border: 1px solid var(--color-gray-300);
  padding: 40px 30px;
  text-align: center;
}

.cta-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.cta-subtitle {
  font-size: 12px;
  color: var(--color-gray-500);
  margin-bottom: 14px;
}

.cta-link {
  font-size: 12px;
  color: var(--color-gray-700);
}

.cta-link a {
  text-decoration: underline;
  transition: opacity 0.3s;
}

.cta-link a:hover {
  opacity: 0.6;
}

/* --- Column Page Specific CTA --- */
.column-section .column-cta-section {
    background-color: #f9f9f9 !important;
    padding: 60px 20px !important;
    text-align: center !important;
    margin-top: 60px !important;
    border-radius: 4px !important;
    display: block !important;
    clear: both !important;
}

.column-section .column-cta-text {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    color: #1a1a1a !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

.column-section .column-cta-button {
    display: inline-block !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 18px 60px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
    letter-spacing: 0.1em !important;
}

.column-section .column-cta-button:hover {
    opacity: 0.8 !important;
}

/* --- Footer --- */
.site-footer {
  padding: 50px 40px 35px;
  text-align: center;
  border-top: 1px solid var(--color-gray-200);
  margin: 0 40px;
}

.footer-logo img {
  height: 24px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.5;
}

.footer-copyright {
  font-size: 10px;
  color: var(--color-gray-500);
  letter-spacing: 0.05em;
}

/* --- Fixed Contact Button --- */
.fixed-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--color-black);
  color: var(--color-white);
  padding: 20px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.fixed-contact:hover {
  background: var(--color-gray-700);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .site-header {
    padding: 24px 25px 10px;
  }
  .header-nav {
    padding: 8px 25px 18px;
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero-slideshow {
    height: 60vh;
  }
  .hero-overlay {
    padding: 30px 40px;
  }
  .page-hero {
    height: 40vh;
  }
  .page-hero-overlay {
    padding: 30px 40px;
  }
  .cta-section {
    margin: 20px 20px 40px;
    padding: 30px 20px;
  }
}
