/* ===================================================
   Reprise Inc. — Corporate Site
   =================================================== */

/* --- CSS Variables --- */
:root {
  --color-primary:    #0e5a8a;   /* ocean blue */
  --color-primary-d:  #0a3f63;   /* deep navy hover */
  --color-accent:     #1a7ab8;   /* bright blue accent */
  --color-bg-alt:     #f0f6fc;
  --color-text:       #1a1a1a;
  --color-text-muted: #4a6b85;
  --color-border:     #bdd5e8;
  --color-white:      #ffffff;
  --color-footer-bg:  #0a2a42;
  --color-gold:       #d4a843;
  --color-error:      #dc2626;

  --font-base:    'Noto Sans JP', sans-serif;
  --font-heading: 'Shippori Mincho', serif;
  --font-script:  'Yuji Syuku', serif;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(14, 90, 138, 0.10);
  --shadow-lg: 0 8px 32px rgba(14, 90, 138, 0.15);

  --max-width: 900px;
  --section-gap: 80px;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  line-break: strict;        /* 句読点・括弧前後の改行ルールを厳格化 */
  overflow-wrap: break-word;
}

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

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-gap) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(14, 90, 138, 0.07);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-body {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  max-width: 660px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  text-align: center;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-d);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--color-border), 0 2px 12px rgba(14,90,138,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(14, 90, 138, 0.22);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ハンバーガーボタン（デスクトップでは非表示） */
.header-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.header-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.header-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 680px) {
  .header-menu-btn {
    display: flex;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(14, 90, 138, 0.12);
    padding: 12px 0;
    z-index: 100;
  }
  .header-nav.open {
    display: flex;
  }
  .header-nav-link {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
  }
  .header-nav-link:last-child {
    border-bottom: none;
  }
}
.header-logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 680px) {
  .header-logo { height: 40px; }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  background: none;
  color: var(--color-white);
  padding: 16px 0 100px;
  text-align: left;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-cargo-ship.jpg') 30% 40% / cover no-repeat;
  filter: brightness(1.3);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 5px 18px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-title-em {
  color: var(--color-white);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-white);
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-start {
  font-size: 0.85rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* anchor scroll offset for sticky header */
[id] {
  scroll-margin-top: 76px;
}
#top {
  scroll-margin-top: 0;
}

/* ===================================================
   CONCEPT
   =================================================== */
.concept-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}
.concept-body {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.concept-image-wrap {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.concept-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
/* ===================================================
   STEPS
   =================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  text-wrap: balance;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ===================================================
   SPOT SERVICE
   =================================================== */
.spot-visual {
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  margin: 28px 0 0;
  box-shadow: var(--shadow);
}
.spot-visual-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.spot-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.spot-card--highlight {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.spot-card--highlight .spot-card-title {
  color: var(--color-white);
}
.spot-card--highlight .spot-card-desc {
  color: rgba(255,255,255,0.85);
}

.spot-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.spot-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  text-wrap: balance;
}

.spot-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================================
   MESSAGE
   =================================================== */
.message-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: calc(var(--radius) * 2);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.message-card::before {
  content: '❝';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 6rem;
  opacity: 0.1;
  line-height: 1;
}
.message-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.9;
  margin-bottom: 24px;
  position: relative;
  text-wrap: pretty;
}
.message-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-gold);
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.message-author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.message-author-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
}
.message-author-name {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ===================================================
   COMPANY
   =================================================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 0.95rem;
}
.company-table th,
.company-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.company-table th {
  width: 38%;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-bg-alt);
}
.company-table td {
  color: var(--color-text);
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* 表示切り替え用改行 */
@media (max-width: 680px) {
  .pc-only { display: none; }
}
@media (min-width: 681px) {
  .sp-only { display: none; }
}

/* ===================================================
   CONTACT CTA
   =================================================== */
.section--contact-cta {
  text-align: center;
}
.section--contact-cta .section-body {
  margin: 0 auto 32px;
}

/* ===================================================
   CONTACT
   =================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-group label .required {
  color: var(--color-error);
  margin-left: 4px;
}
.form-group label .optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 90, 138, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.consent-row a { color: var(--color-accent); }

.form-submit-wrap {
  text-align: center;
  margin-top: 28px;
}
.form-submit-wrap .btn {
  width: 100%;
  max-width: 340px;
  font-size: 1.05rem;
  padding: 16px;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 28px;
  text-align: center;
}
.footer-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-address {
  font-size: 0.8rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-address a {
  color: inherit;
}
@media (max-width: 680px) {
  .footer-address .footer-sep {
    display: none;
  }
  .footer-address .footer-email {
    display: block;
    margin-top: 4px;
  }
}
.footer-copy {
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  margin-top: 10px;
}
.footer-nav {
  margin-bottom: 12px;
}
.footer-nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}
.footer-nav-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 10px;
}

/* ===================================================
   SHARED — INNER PAGES
   =================================================== */
.back-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--color-accent);
  margin-bottom: 32px;
}

/* ===================================================
   PRIVACY PAGE
   =================================================== */
.privacy-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.privacy-wrap h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.privacy-wrap .updated {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}
.privacy-wrap h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 36px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--color-primary);
}
.privacy-wrap p,
.privacy-wrap li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}
.privacy-wrap ul {
  padding-left: 1.4em;
}

/* ===================================================
   THANKS PAGE
   =================================================== */
.thanks-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.thanks-card {
  background: var(--color-bg-alt);
  border-radius: calc(var(--radius) * 2);
  padding: 56px 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.thanks-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1;
}
.thanks-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.thanks-body {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}
@media (max-width: 680px) {
  .thanks-card { padding: 40px 24px; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE — Large Screen
   =================================================== */
@media (min-width: 1280px) {
  .hero {
    padding: 80px 0 140px;
  }
}

/* ===================================================
   RESPONSIVE — Mobile First
   =================================================== */
@media (max-width: 680px) {
  :root {
    --section-gap: 56px;
  }

  .hero {
    padding: 40px 0 60px;
    text-align: center;
    min-height: 320px;
  }
  .hero::before {
    background-position: 50% 50%;
  }

  .concept-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .concept-image-wrap {
    order: -1;
  }
  .concept-img {
    height: 200px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .step-card {
    padding: 20px 14px;
  }
  .step-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .spot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .message-card {
    padding: 32px 24px;
  }

  .company-table th {
    width: 38%;
    font-size: 0.82rem;
    white-space: normal;
  }
  .company-table td {
    font-size: 0.88rem;
  }
  .company-table th,
  .company-table td {
    padding: 12px 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group--full {
    grid-column: 1;
  }
}

@media (max-width: 400px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .spot-grid {
    grid-template-columns: 1fr;
  }
}
