/*
Theme Name: Hata Wealth Advisory
Theme URI: https://www.fphata.com
Description: Hata Wealth Advisoryのカスタムテーマ
Author: Hata Wealth Advisory
Version: 1.0
Text Domain: fphata
*/

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #5a6b4f;
  --color-primary-dark: #485740;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f5f5;
  --color-bg-dark: rgba(40, 45, 35, 0.85);
  --color-accent: #c4a265;
  --color-border: #ddd;
  --font-jp: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.site-logo h1 {
  font-family: var(--font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.site-logo .tagline {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links { display: flex; gap: 12px; }
.social-links a { color: #333; font-size: 18px; }

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-top: 1px solid #eee;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  color: #333;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.nav-menu > li > a:hover { background: #f5f5f5; }

/* Dropdown */
.nav-menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  list-style: none;
  z-index: 200;
}

.nav-menu li:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.sub-menu li a:hover { background: #f9f9f9; }

.nav-right { display: flex; align-items: center; gap: 15px; }

.nav-legal {
  font-size: 13px;
  text-decoration: underline;
  color: #333;
}

.btn-line {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 25px;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: background 0.2s;
}

.btn-line:hover { background: var(--color-primary-dark); opacity: 1; }

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a3020 0%, #4a5540 50%, #2a3525 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 35, 25, 0.55);
}

.hero-content { position: relative; z-index: 1; padding: 0 20px; }

.hero h2 {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 2;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Section Common */
.section { padding: 80px 0; }
.section-gray { background: var(--color-bg-gray); }

.section-title {
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.section-title-en {
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  background: #ddd;
  border-radius: 4px;
}

.two-col-text p {
  margin-bottom: 20px;
  color: var(--color-text-light);
  line-height: 2;
}

.btn-detail {
  display: inline-block;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 10px 30px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.btn-detail:hover {
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 40px 30px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.service-card h3 {
  font-family: var(--font-jp);
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Blog Section */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.blog-card { background: #fff; border: 1px solid var(--color-border); overflow: hidden; }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eee;
}

.blog-card-body { padding: 20px; }

.blog-card-body h3 {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.blog-card-body .date { font-size: 12px; color: #999; }

/* Contact Section */
.contact-section {
  background: var(--color-bg-gray);
  padding: 80px 0;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info address {
  font-style: normal;
  font-size: 15px;
  margin-bottom: 10px;
}

.contact-info .tel {
  font-size: 24px;
  font-family: var(--font-jp);
  letter-spacing: 0.05em;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group { margin-bottom: 15px; }

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea { height: 120px; resize: vertical; }

.btn-submit {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}

.site-footer .footer-logo {
  font-family: var(--font-jp);
  font-size: 20px;
  margin-bottom: 15px;
}

.site-footer p { font-size: 13px; opacity: 0.7; }

/* Accordion */
.accordion { margin: 20px 0; }

.accordion-item {
  border: 1px solid var(--color-border);
  margin-bottom: -1px;
}

.accordion-header {
  width: 100%;
  background: #f9f9f9;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover { background: #f0f0f0; }

.accordion-header::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s;
}

.accordion-item.active .accordion-header::after {
  content: '-';
}

.accordion-body {
  display: none;
  padding: 20px;
  line-height: 2;
  font-size: 14px;
}

.accordion-item.active .accordion-body { display: block; }

/* Page Header */
.page-header {
  background: #e8e8e8;
  padding: 60px 0;
  text-align: center;
}

.page-header h2 {
  font-family: var(--font-jp);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* Page Content */
.page-content { padding: 60px 0; }
.page-content p { margin-bottom: 20px; line-height: 2; }

/* Service Detail Page */
.service-detail-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #999;
  overflow: hidden;
}

.service-detail-header h2 {
  background: rgba(255,255,255,0.95);
  padding: 20px 50px;
  font-family: var(--font-jp);
  font-size: 36px;
  font-weight: 500;
}

/* Price Box */
.price-box {
  text-align: center;
  padding: 40px;
  background: var(--color-bg-gray);
  margin: 40px 0;
}

.price-box .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
}

.price-box .price-note { font-size: 14px; color: var(--color-text-light); }

/* Steps */
.steps { counter-reset: step; }

.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-content p { color: var(--color-text-light); }

/* Seminar LINE CTA */
.line-cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
}

.line-cta h3 { font-size: 20px; margin-bottom: 12px; }
.line-cta p { margin-bottom: 20px; opacity: 0.9; }

.btn-line-large {
  display: inline-block;
  background: #fff;
  color: var(--color-primary) !important;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn-line-large:hover { opacity: 0.9; }

/* Chat Widget (Floating) */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 5px 10px;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .header-top { padding: 10px 20px; }
  .site-logo h1 { font-size: 22px; }
  .site-logo .tagline { font-size: 12px; }

  .menu-toggle { display: block; }

  .main-nav {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active { display: flex; }

  .nav-menu > li > a {
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .nav-menu li .sub-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    display: none;
  }

  .nav-menu li.sub-open .sub-menu { display: block; }

  .sub-menu li a { padding-left: 40px; }

  .nav-right { display: none; }

  .hero { height: 60vh; min-height: 350px; }
  .hero h2 { font-size: 22px; line-height: 1.5; }
  .hero p { font-size: 13px; }

  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }

  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col.reverse { direction: ltr; }
  .two-col-img { height: 250px; }

  .service-cards { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .service-detail-header { height: 250px; }
  .service-detail-header h2 { font-size: 28px; padding: 15px 30px; }

  .page-header { padding: 40px 0; }
  .page-header h2 { font-size: 28px; }

  .price-box .price { font-size: 28px; }

  .step-item { grid-template-columns: 50px 1fr; gap: 15px; }
  .step-number { width: 45px; height: 45px; font-size: 18px; }

  .contact-info .tel { font-size: 20px; }

  .chat-widget { padding: 10px 18px; font-size: 13px; }

  .site-footer { padding: 30px 0 15px; }

  .line-cta { padding: 30px 20px; }
  .line-cta h3 { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 18px; }
  .hero p { font-size: 12px; }
  .container { padding: 0 15px; }
  .service-card { padding: 25px 20px; }
}
