/*
Theme Name: EACUS Column Theme
Theme URI: https://eacus.jp/column/
Author: Antigravity
Description: EACUSのコラムセクション専用のミニマルなオリジナルテーマ。既存サイトのデザインを完全に踏襲しています。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eacus-column
*/

/* ============================================
   EACUS - Mansion House Renovation
   Base Stylesheet (Integrated for WordPress)
   ============================================ */

*,
*::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: "Oswald", "DIN Alternate", "Barlow", sans-serif;
  --font-nav: "Barlow", sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-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;
}

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

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

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

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

.site-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Navigation --- */
.header-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 35px;
  padding: 15px 40px 25px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.nav-item:hover {
  opacity: 0.6;
}

/* Dropdown CSS */
.nav-item-dropdown {
  position: relative;
}

.column-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.column-menu-wrapper a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.dropdown-arrow {
  width: 8px;
  height: 8px;
  transition: transform 0.3s;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
  list-style: none;
  border: 1px solid var(--color-gray-100);
}

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

.dropdown-menu li a {
  display: block;
  padding: 10px 25px;
  font-size: 13px;
  color: var(--color-gray-700);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
  text-transform: none;
  letter-spacing: 0.05em;
}

.dropdown-menu li a:hover {
  background: var(--color-gray-100);
  color: var(--color-black);
}

/* --- Column CTA Section --- */
.column-post-container .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-post-container .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-post-container .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-post-container .column-cta-button:hover {
    opacity: 0.8 !important;
}

.nav-instagram svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* --- Page Hero --- */
.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 45vh;
  min-height: 300px;
  max-height: 450px;
  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.4) 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(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 25px 40px;
  font-size: 10px;
  color: var(--color-gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  transition: color 0.3s;
}

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

.breadcrumb span {
  margin: 0 10px;
}

/* --- Column Grid --- */
.column-section {
  padding: 10px 40px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 30px;
  margin-top: 20px;
}

.column-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.column-card:hover {
  opacity: 0.8;
}

.column-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--color-gray-100);
}

.column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.column-card:hover .column-image img {
  transform: scale(1.05);
}

.column-meta {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--color-gray-500);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.column-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--color-black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-excerpt {
  font-size: 13px;
  color: var(--color-gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 4px;
  align-self: flex-start;
}

/* --- Single Post Styles --- */
.column-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.column-post-header {
    margin-bottom: 40px;
}

.column-post-header h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.column-post-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 60px 0 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-gray-200);
}

.column-post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.column-post-content p {
    margin-bottom: 1.8em;
}

.column-post-content img {
    margin: 40px 0;
}

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

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

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

.footer-nav a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* WordPress specific */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }

@media (max-width: 900px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-title { display: none; }
  .site-header {
    padding: 20px 20px 10px;
  }

  .header-nav {
    padding: 10px 20px 20px;
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .page-hero {
    height: 35vh;
  }

  .column-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .column-card-title {
    font-size: 18px;
  }
}
/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-gray-700);
  transform: translateY(-3px);
  color: var(--color-white);
}

/* ============================================
   MOBILE: Hamburger Menu
   ============================================ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-black);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 150;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 40px 60px;
}
.mobile-nav-overlay.open {
  display: flex;
}
.mobile-nav-overlay a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-200);
  width: 100%;
  transition: opacity 0.2s;
}
.mobile-nav-overlay a:last-child { border-bottom: none; }
.mobile-nav-overlay a:hover { opacity: 0.5; }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--color-black);
  line-height: 1;
}

/* ============================================
   MOBILE: Fixed Bottom CTA Bar
   ============================================ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 998;
}
.mobile-bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mobile-bottom-bar a:hover { opacity: 0.85; }
.mobile-bottom-bar .btn-contact {
  background: var(--color-black);
  color: var(--color-white);
}
.mobile-bottom-bar .btn-inquiry {
  background: #856859;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .header-nav { display: none !important; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 56px; }
}
