/* ============================================================
   Douglas Administrative Scrivener Office — Main Stylesheet
   ============================================================ */

:root {
  --navy:       #1F3564;
  --blue:       #2E75B6;
  --blue-dark:  #1a5a96;
  --blue-light: #e8f2fa;
  --green:      #375F2E;
  --gold:       #c8a84b;
  --white:      #ffffff;
  --gray-light: #f8f9fa;
  --gray:       #e9ecef;
  --text:       #2d2d2d;
  --text-light: #6c757d;
  --radius:     8px;
  --shadow:     0 2px 16px rgba(31,53,100,0.10);
  --shadow-sm:  0 1px 6px rgba(31,53,100,0.07);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               'Hiragino Sans', 'Noto Sans JP', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 64px;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-en { font-size: 1rem; font-weight: 700; color: var(--white); letter-spacing: 0.03em; }
.logo-jp { font-size: 0.7rem; color: rgba(255,255,255,0.65); }

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 0; }
.nav-link {
  display: block; padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-link.active { color: var(--white); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 260px;
  padding: 0.4rem 0; z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.55rem 1.1rem;
  color: var(--text); font-size: 0.85rem;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-menu a .ja { font-size: 0.78rem; color: var(--text-light); margin-left: 0.4em; }

.nav-cta {
  margin-left: 0.6rem;
  background: var(--gold); color: var(--navy) !important;
  font-weight: 700; border-radius: var(--radius);
  padding: 0.45rem 1rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; background: var(--gold) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.mobile-nav { display: none; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4a8a 60%, var(--blue) 100%);
  color: var(--white); padding: 5rem 1.5rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 20px;
  font-size: 0.8rem; padding: 0.3rem 0.9rem; margin-bottom: 1.2rem;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.9);
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.3; margin-bottom: 0.6rem; }
.hero-jp { font-size: clamp(0.95rem, 2vw, 1.15rem); opacity: 0.8; margin-bottom: 1.6rem; font-weight: 400; }
.hero-sub { font-size: 1rem; opacity: 0.85; margin-bottom: 2.2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  border: 2px solid transparent; line-height: 1.3; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* ── SECTION ── */
.section { padding: 4rem 1.5rem; }
.section-gray { background: var(--gray-light); }
.section-navy { background: var(--navy); color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title { font-size: clamp(1.3rem,3vw,1.9rem); font-weight: 800; color: var(--navy); margin-bottom: 0.4rem; }
.section-title-white { color: var(--white); }
.section-sub { font-size: 0.9rem; color: var(--text-light); margin-bottom: 2.2rem; }
.section-sub-white { color: rgba(255,255,255,0.7); }
.divider { width: 48px; height: 4px; background: var(--blue); border-radius: 2px; margin: 0.6rem 0 1.8rem; }
.divider-gold { background: var(--gold); }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.8rem;
  border: 1px solid var(--gray); transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.card-title-jp { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.7rem; }
.card-body { font-size: 0.9rem; color: var(--text-light); flex: 1; line-height: 1.6; }
.card-link { display: inline-block; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--blue); }
.card-link::after { content: " →"; }

/* ── FEATURE BAND ── */
.feature-band { display: flex; flex-wrap: wrap; gap: 0; }
.feature-item {
  flex: 1 1 200px; text-align: center; padding: 1.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.feature-item:last-child { border-right: none; }
.feature-num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.feature-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 0.3rem; }

/* ── FEE TABLE ── */
.fee-section { margin-bottom: 2.5rem; }
.fee-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-left: 0.8rem; border-left: 4px solid var(--blue); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { background: var(--navy); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--gray); }
tr:nth-child(even) td { background: var(--blue-light); }
tr:last-child td { border-bottom: none; }
td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.fee-note { font-size: 0.84rem; color: var(--text-light); margin-top: 0.6rem; line-height: 1.6; }

/* ── SERVICE LIST ── */
.service-list { list-style: none; padding: 0; }
.service-list li {
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--gray);
  display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem;
}
.service-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }
.service-list li:last-child { border-bottom: none; }

/* ── NEWS / BLOG ── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--gray);
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.82rem; color: var(--text-light); white-space: nowrap; flex-shrink: 0; padding-top: 0.15rem; min-width: 90px; }
.news-badge {
  display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.5rem;
  border-radius: 3px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.badge-law { background: #fce4d6; color: #c55a11; }
.badge-info { background: var(--blue-light); color: var(--blue); }
.badge-office { background: #e2efda; color: var(--green); }
.news-text { font-size: 0.92rem; color: var(--text); line-height: 1.55; }
.news-text a { color: var(--text); }
.news-text a:hover { color: var(--blue); }

/* ── HERO PHOTO (index page with real photo) ── */
.hero-photo {
  position: relative; color: var(--white);
  padding: 5rem 1.5rem 4rem; text-align: center; overflow: hidden;
  min-height: 500px; display: flex; align-items: center; justify-content: center;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../images/hero-mountains.jpg');
  background-size: cover; background-position: center 40%;
  filter: brightness(0.48);
}
.hero-photo .hero-inner { position: relative; z-index: 1; }

/* ── PAGE PHOTO BANNER ── */
.page-photo-banner {
  width: 100%; height: 260px; overflow: hidden;
  position: relative;
}
.page-photo-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  display: block;
}

/* ── PROFILE GRID (about page) ── */
.profile-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start;
  margin-bottom: 2rem;
}
.profile-photo-wrap img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(31,53,100,0.18);
}
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo-wrap { max-width: 260px; margin: 0 auto; }
  .hero-photo { min-height: 380px; }
  .page-photo-banner { height: 180px; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #2a4a8a);
  color: var(--white); padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.4rem,3.5vw,2rem); font-weight: 800; margin-bottom: 0.3rem; }
.page-hero-jp { font-size: 0.9rem; opacity: 0.75; }
.breadcrumb { font-size: 0.8rem; opacity: 0.65; margin-bottom: 0.8rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }

/* ── CONTENT ── */
.content-section { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem; }
.content-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--blue-light); }
.content-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.4rem 0 0.5rem; }
.content-section p { margin-bottom: 0.9rem; font-size: 0.96rem; }
.content-section ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.content-section ul li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; font-size: 0.93rem; }
.content-section ul li::before { content: "▸"; color: var(--blue); position: absolute; left: 0; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; margin: 1.2rem 0; }
.step { display: flex; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--gray); }
.step:last-child { border-bottom: none; }
.step-num { width: 36px; height: 36px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.step-content { flex: 1; }
.step-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.2rem; }
.step-body { font-size: 0.88rem; color: var(--text-light); }

/* ── INFO BOX ── */
.info-box { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.9rem; }
.warn-box { background: #fff9e6; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: 0.9rem; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-label .req { color: #c0392b; margin-left: 0.2rem; }
.form-control {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s;
  background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,117,182,0.12); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }

/* ── CTA BAND ── */
.cta-band { background: var(--blue); color: var(--white); text-align: center; padding: 3rem 1.5rem; }
.cta-band h2 { font-size: clamp(1.2rem,3vw,1.7rem); font-weight: 800; margin-bottom: 0.5rem; }
.cta-band p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 1.6rem; }

/* ── FOOTER ── */
.site-footer { background: #111827; color: rgba(255,255,255,0.7); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { font-size: 0.84rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.2rem; font-size: 0.8rem; text-align: center; color: rgba(255,255,255,0.4); }

/* ── UPDATE ZONE (コメント目印) ── */
/* .update-zone クラスは更新エリアの目印です。ここ以外は触らないようにしてください */
.update-zone { position: relative; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; }
  .mobile-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); padding: 0.5rem 1rem 1rem; z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 0.65rem 0.5rem; color: rgba(255,255,255,0.85); font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { color: var(--white); }

  .hero { padding: 3.5rem 1.2rem 3rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
  .feature-band { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .feature-item:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; gap: 0.3rem; }
  .news-date { min-width: auto; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  .section { padding: 3rem 1rem; }
  table { font-size: 0.84rem; }
  th, td { padding: 0.6rem 0.7rem; }
}
