/* ============================================================
   AA WAVE Brand Renewal CSS — v0.2
   2026-07-17
   ============================================================
   Tailwind CSS v3.4.19 のビルド済みファイルを上書きせず、
   カスタムプロパティとクラスで新ブランドカラー・レイアウトを適用。
   ============================================================ */

/* --- Brand Color Tokens (Ver 0.2) --- */
:root {
  --deep-tide: #122E29;
  --aawave-green: #1F7A66;
  --shallow-green: #7DAFA2;
  --sea-foam: #D8E4E0;
  --concrete-silver: #C9CBCC;
  --ink: #1E2523;
  --harbor-orange: #C86A48;
  --white: #FFFFFF;
}

/* --- Base Reset & Typography --- */
body.renewal {
  background-color: var(--concrete-silver);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  body.renewal {
    font-size: 18px;
  }
}

/* 本文最小 16px 保証 */
body.renewal p,
body.renewal li,
body.renewal dd,
body.renewal td {
  font-size: max(1rem, 16px);
  line-height: 1.8;
}

/* Noto Serif JP — 引用・ブランドストーリー用 */
.font-serif-jp {
  font-family: 'Noto Serif JP', serif;
}

/* Jost — 英数字・ロゴ用 */
.font-jost {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  font-feature-settings: "palt";
}

/* --- Color Utilities --- */
.bg-concrete-silver { 
  background-color: var(--concrete-silver); 
}
.bg-sea-foam { background-color: var(--sea-foam); }
.bg-deep-tide { background-color: var(--deep-tide); }
.bg-aawave-green { background-color: var(--aawave-green); }
.text-ink { color: var(--ink); }
.text-deep-tide { color: var(--deep-tide); }
.text-aawave-green { color: var(--aawave-green); }
.text-shallow-green { color: var(--shallow-green); }
.text-harbor-orange { color: var(--harbor-orange); }
.border-aawave-green { border-color: var(--aawave-green); }
.border-sea-foam { border-color: var(--sea-foam); }
.border-shallow-green { border-color: var(--shallow-green); }

/* --- Header --- */
.renewal-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--sea-foam);
}

.renewal-header a {
  color: var(--ink);
  transition: color 0.3s;
}

.renewal-header a:hover {
  color: var(--aawave-green);
}

/* --- Hero Section --- */
.hero-renewal {
  background-image: linear-gradient(rgba(20, 24, 23, 0.6), rgba(20, 24, 23, 0.85)), url('../../images/hero-ferry.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-renewal {
    min-height: 90vh;
  }
}

.hero-renewal .hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
}

.hero-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--shallow-green);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 14px;
  }
}

.hero-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 3rem;
    line-height: 1.25;
  }
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--sea-foam);
  max-width: 36rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
    max-width: 48rem;
  }
}

.hero-brand-action {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--aawave-green);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-brand-action {
    font-size: 1.25rem;
  }
}

.hero-company {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--shallow-green);
}

/* Wave ripple decoration — single SVG */
.wave-ripple {
  position: absolute;
  right: -5%;
  bottom: 10%;
  width: 50%;
  max-width: 400px;
  opacity: 0.08;
  pointer-events: none;
}

@media (max-width: 767px) {
  .wave-ripple {
    width: 60%;
    right: -10%;
    bottom: 5%;
    opacity: 0.06;
  }
}

/* --- Section Styles --- */
.section-renewal {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-renewal {
    padding: 7rem 0;
  }
}

.section-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--deep-tide);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--aawave-green);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Regional Management Definition Box --- */
.definition-box {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--deep-tide);
  border-left: 3px solid var(--aawave-green);
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .definition-box {
    font-size: 1.25rem;
    padding-left: 2rem;
  }
}

/* --- Brand Action Flow (つなぐ→ひく→動かす) --- */
.action-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.action-step {
  position: relative;
  padding: 2rem 0;
  border-left: 2px solid var(--sea-foam);
  padding-left: 2rem;
}

.action-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 2.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--aawave-green);
}



.action-step-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep-tide);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .action-step-title {
    font-size: 1.5rem;
  }
}

.action-step-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  max-width: 36rem;
}

/* --- CTA Buttons --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--aawave-green);
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.cta-primary:hover {
  background-color: var(--deep-tide);
}

.cta-primary:focus-visible {
  outline: 2px solid var(--aawave-green);
  outline-offset: 2px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--aawave-green);
  background-color: transparent;
  border: 1px solid var(--aawave-green);
  border-radius: 4px;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.cta-secondary:hover {
  background-color: var(--sea-foam);
  color: var(--deep-tide);
}

.cta-secondary:focus-visible {
  outline: 2px solid var(--aawave-green);
  outline-offset: 2px;
}

/* --- Service Cards --- */
.service-card {
  background-color: var(--white);
  border: 1px solid var(--sea-foam);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.service-card:hover {
  border-color: var(--shallow-green);
}

.service-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-tide);
  margin-bottom: 0.5rem;
}

.service-card-copy {
  font-size: 0.9375rem;
  color: var(--aawave-green);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* --- FAQ --- */
.faq-item {
  background-color: var(--white);
  border: 1px solid var(--sea-foam);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--shallow-green);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  color: var(--deep-tide);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--sea-foam);
}

.faq-answer {
  padding: 1.5rem;
  background-color: var(--concrete-silver);
  line-height: 1.9;
  color: var(--ink);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--shallow-green);
  color: var(--aawave-green);
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

/* --- Case Study / Track Record --- */
.case-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.case-label-situation {
  background-color: var(--sea-foam);
  color: var(--deep-tide);
}

.case-label-role {
  background-color: var(--sea-foam);
  color: var(--deep-tide);
}

.case-label-result {
  background-color: rgba(31, 122, 102, 0.1);
  color: var(--aawave-green);
}

/* --- Profile --- */
.profile-stat {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--sea-foam);
  border-radius: 6px;
  background-color: var(--white);
}

.profile-stat dt {
  font-size: 0.875rem;
  color: var(--shallow-green);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profile-stat dd {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--aawave-green);
}

/* --- Brand Story Quote --- */
.brand-story-quote {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.125rem;
  line-height: 2;
  color: var(--deep-tide);
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .brand-story-quote {
    font-size: 1.25rem;
    padding: 4rem 2rem;
  }
}

.brand-story-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--shallow-green);
  margin: 0 auto 2rem;
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--white);
}

.contact-heading {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--deep-tide);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-heading {
    font-size: 1.75rem;
  }
}

/* --- Footer --- */
.renewal-footer {
  background-color: var(--deep-tide);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.renewal-footer a {
  color: var(--shallow-green);
  transition: color 0.3s;
}

.renewal-footer a:hover {
  color: var(--white);
}

/* --- Link Styles --- */
.link-green {
  color: var(--aawave-green);
  text-decoration: none;
  transition: color 0.3s;
}

.link-green:hover {
  color: var(--deep-tide);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Emphasis Line (Harbor Orange) --- */
.emphasis-line {
  border-left: 3px solid var(--harbor-orange);
  padding-left: 1rem;
  font-weight: 500;
  color: var(--deep-tide);
}

/* --- Footnote / Reference --- */
.footnote {
  font-size: 0.8125rem;
  color: var(--shallow-green);
  margin-top: 1.5rem;
}

.footnote a {
  color: var(--shallow-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footnote a:hover {
  color: var(--aawave-green);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Focus Visible (保持) --- */
*:focus-visible {
  outline: 2px solid var(--aawave-green);
  outline-offset: 2px;
}

/* --- Container --- */
.container-renewal {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container-renewal {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container-renewal {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* --- Separator wave line --- */
.wave-separator {
  display: block;
  width: 100%;
  height: 24px;
  opacity: 0.15;
}

/* Fix for mobile background-attachment fixed issues (iOS Safari) */
@supports (-webkit-touch-callout: none) {
  .hero-renewal {
    background-attachment: scroll !important;
  }
}

@media (max-width: 768px) {
  .hero-renewal {
    background-attachment: scroll;
    /* Lighten overlay on mobile to make image more visible */
    background-image: linear-gradient(rgba(20, 24, 23, 0.4), rgba(20, 24, 23, 0.65)), url('../../images/hero-ferry.jpg');
  }
}
