﻿/* ==========================================================================
   Phrona corporate site — design ref: design_handoff_phrona_website (2a)
   ========================================================================== */

:root {
  --color-navy: #4B4F55;
  --color-bg: #F7F5F0;
  --color-card: #FFFFFF;
  --color-line: #E2DDD3;
  --color-text-dark: #3F4247;
  --color-text-mid: #54575D;
  --color-gray: #9A948A;

  --font-jp-heading: 'Zen Kaku Gothic New', sans-serif;
  --font-jp-body: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-pcb: 'Jost', sans-serif;
  --font-logo: 'Gill Sans', 'Cabin', 'Optima', sans-serif;
  --font-texture: 'Cormorant Garamond', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-dark);
  font-family: var(--font-jp-body);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive visibility helpers (breakpoint: 768px) */
@media (min-width: 768px) {
  .sp { display: none !important; }
}
@media (max-width: 767px) {
  .pc { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--color-navy);
  padding: 0 0 88px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-texture-inner {
  position: absolute;
  left: -30%;
  top: -80%;
  width: 170%;
  height: 260%;
  transform: rotate(30deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-texture-line {
  font-family: var(--font-texture);
  font-style: italic;
  font-size: 26px;
  line-height: 1.85;
  color: rgba(247, 245, 240, 0.08);
  white-space: nowrap;
}

/* テキストを行方向（回転済みなので画面の左上→右下）へ流す */
.hero-texture-scroll {
  display: inline-block;
  animation: texture-flow 107s linear infinite;
}

.hero-texture-copy {
  padding-right: 0.6em;
}

.hero-texture-phronesis {
  font-weight: 700;
  color: rgba(247, 245, 240, 0.3);
  text-shadow:
    0 0 4px rgba(247, 245, 240, 0.35),
    0 0 14px rgba(247, 245, 240, 0.5);
}

@keyframes texture-flow {
  from { transform: translateX(-25%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-texture-scroll {
    animation: none;
  }
}

/* --- Nav --- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 56px;
  position: relative;
}

.nav-logo {
  font-family: var(--font-logo);
  font-size: 23px;
  color: var(--color-bg);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-jp-body);
  font-size: 14.5px;
  color: rgba(247, 245, 240, 0.85);
  letter-spacing: 0.1em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-line {
  width: 22px;
  height: 1px;
  background: var(--color-bg);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #34373C;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding: 20px 24px 28px;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  font-family: var(--font-jp-body);
  font-size: 14.5px;
  color: rgba(247, 245, 240, 0.85);
  letter-spacing: 0.1em;
}

/* --- Hero body --- */

.hero-body {
  padding: 40px 56px 0;
}

.hero-title {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: clamp(52px, 6.7vw, 80px);
  color: var(--color-bg);
  letter-spacing: 0.08em;
  line-height: 1.36;
}

.hero-lead {
  font-family: var(--font-jp-heading);
  font-weight: 400;
  font-size: 17px;
  color: rgba(247, 245, 240, 0.78);
  letter-spacing: 0.1em;
  line-height: 2.1;
  margin-top: 56px;
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-texture-line {
    font-size: 18px;
  }

  .nav {
    padding: 20px 24px;
  }

  .nav-logo {
    font-size: 19px;
  }

  .hero-body {
    padding: 24px 24px 0;
  }

  .hero-title {
    font-size: 46px;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }

  .hero-lead {
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-top: 32px;
  }
}

/* ==========================================================================
   Phronesis Clinical Bench (floating card)
   ========================================================================== */

.pcb {
  background: var(--color-card);
  margin: -48px 56px 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 56px rgba(63, 66, 71, 0.18);
  border-radius: 12px;
  padding: 48px 56px;
}

.pcb-heading-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  white-space: nowrap;
}

.pcb-heading {
  font-family: var(--font-pcb);
  font-weight: 300;
  font-size: clamp(32px, 4.7vw, 56px);
  color: var(--color-text-dark);
  letter-spacing: 0.06em;
}

.pcb-label {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--color-gray);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.pcb-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  margin-top: 32px;
}

.pcb-text {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 16.5px;
  color: var(--color-text-mid);
  line-height: 2.2;
  letter-spacing: 0.08em;
  max-width: 640px;
}

.pcb-illustration {
  flex-shrink: 1;
  width: 440px;
  max-width: 45%;
  height: auto;
  margin-right: 24px;
}

@media (max-width: 767px) {
  .pcb {
    margin: -32px 16px 0;
    box-shadow: 0 14px 40px rgba(63, 66, 71, 0.18);
    padding: 36px 24px;
  }

  .pcb-heading-row {
    display: block;
    white-space: normal;
    text-align: center;
  }

  .pcb-heading {
    font-size: 30px;
    letter-spacing: normal;
    line-height: 1.3;
  }

  .pcb-label {
    font-size: 11px;
    letter-spacing: 0.28em;
    margin-top: 12px;
  }

  .pcb-content {
    display: block;
    margin-top: 20px;
  }

  .pcb-text {
    font-size: 14.5px;
    line-height: 2.1;
    letter-spacing: 0.04em;
    max-width: none;
  }

  .pcb-illustration {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0;
  }
}

/* ==========================================================================
   Sections (Service / Team)
   ========================================================================== */

.section {
  padding: 64px 56px;
}

.section-heading {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 68px;
  color: var(--color-gray);
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .section {
    padding: 44px 24px;
  }

  .section-heading {
    font-size: 44px;
  }
}

/* --- Service --- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  padding: 40px 34px;
  box-shadow: 0 8px 28px rgba(63, 66, 71, 0.10);
}

.service-card-label {
  font-family: var(--font-en);
  font-size: 11.5px;
  color: var(--color-gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-card-title {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-dark);
  letter-spacing: 0.08em;
  margin: 16px 0 0;
}

.service-card-text {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 2;
  letter-spacing: 0.04em;
  margin: 14px 0 20px;
}

.service-card-items li {
  border-top: 1px solid var(--color-line);
  padding: 12px 0 0;
  margin-top: 12px;
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 14.5px;
  color: var(--color-text-dark);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .service-card {
    padding: 32px 28px;
  }

  .service-card-title {
    font-size: 20px;
  }
}

/* --- Team --- */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
}

.team-member {
  border-top: 1px solid var(--color-text-dark);
  padding-top: 28px;
}

.team-name-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}

.team-name {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 28px;
  color: var(--color-text-dark);
  letter-spacing: 0.14em;
}

.team-name-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--color-gray);
  letter-spacing: 0.16em;
}

.team-title {
  font-family: var(--font-jp-body);
  font-size: 14.5px;
  color: var(--color-gray);
  letter-spacing: 0.12em;
  margin-top: 12px;
  line-height: 1.9;
}

.team-title-short {
  min-height: 3.8em;
}

.team-bio {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 15.5px;
  color: var(--color-text-mid);
  line-height: 2.1;
  letter-spacing: 0.06em;
  margin-top: 18px;
}

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 32px;
  }

  .team-member {
    padding-top: 22px;
  }

  .team-name {
    font-size: 22px;
  }

  .team-title {
    font-size: 13.5px;
    letter-spacing: 0.1em;
    margin-top: 8px;
  }

  .team-title-short {
    min-height: 0;
  }

  .team-bio {
    font-size: 14.5px;
    line-height: 2;
    letter-spacing: 0.04em;
    margin-top: 12px;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 0 56px 64px;
}

.contact-inner {
  border-top: 1px solid var(--color-text-dark);
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-heading {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 76px;
  color: var(--color-gray);
  line-height: 1;
}

.contact-button {
  font-family: var(--font-en);
  font-size: 17px;
  color: var(--color-bg);
  background: var(--color-navy);
  white-space: nowrap;
  padding: 22px 56px;
  letter-spacing: 0.1em;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .contact {
    padding: 0 24px 44px;
  }

  .contact-inner {
    padding-top: 32px;
    display: block;
  }

  .contact-heading {
    font-size: 48px;
  }

  .contact-button {
    display: inline-block;
    font-size: 15px;
    padding: 16px 40px;
    letter-spacing: 0.08em;
    margin-top: 28px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-navy);
  padding: 36px 0 24px;
}

.footer .container {
  padding: 0 56px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 18px;
  color: var(--color-bg);
  letter-spacing: 0.08em;
}

.footer-address {
  font-family: var(--font-jp-body);
  font-weight: 300;
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.75);
  letter-spacing: 0.08em;
}

.footer-copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 240, 0.2);
  font-family: var(--font-en);
  font-size: 11.5px;
  color: rgba(247, 245, 240, 0.6);
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 767px) {
  .footer {
    padding: 28px 0 20px;
  }

  .footer .container {
    padding: 0 24px;
  }

  .footer-row {
    display: block;
  }

  .footer-logo {
    font-size: 17px;
  }

  .footer-address {
    font-size: 11.5px;
    letter-spacing: 0.06em;
    line-height: 1.9;
    margin-top: 12px;
  }

  .footer-copyright {
    margin-top: 20px;
    padding-top: 14px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */

.policy-header {
  background: var(--color-navy);
}

.policy-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 56px 72px;
}

.policy-title {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 32px;
  color: var(--color-text-dark);
  letter-spacing: 0.08em;
}

.policy-heading {
  font-family: var(--font-jp-heading);
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text-dark);
  letter-spacing: 0.06em;
  margin-top: 44px;
}

.policy-text {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.policy-list {
  margin-top: 14px;
  padding-left: 1.4em;
  list-style: disc;
}

.policy-list li {
  font-family: var(--font-jp-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.policy-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-date {
  font-family: var(--font-jp-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--color-gray);
  letter-spacing: 0.04em;
  margin-top: 48px;
  text-align: right;
}

.footer-sep {
  margin: 0 0.8em;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .policy-container {
    padding: 36px 24px 52px;
  }

  .policy-title {
    font-size: 24px;
  }

  .policy-heading {
    font-size: 16.5px;
    margin-top: 36px;
  }

  .policy-text,
  .policy-list li {
    font-size: 14px;
    line-height: 2;
  }
}

/* ==========================================================================
   Language switcher (EN/JP)
   ========================================================================== */

.nav-lang {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-lang-sep {
  opacity: 0.4;
}

.nav-lang-current {
  opacity: 0.45;
}

/* ==========================================================================
   English page adjustments
   ========================================================================== */

.page-en .hero-title {
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 22em;
}

.page-en .hero-lead {
  letter-spacing: 0.03em;
  max-width: 44em;
}

.page-en .team-name {
  letter-spacing: 0.05em;
}

.page-en .team-name-en {
  letter-spacing: 0.12em;
}

.page-en .service-card-title {
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.page-en .team-title,
.page-en .team-bio,
.page-en .pcb-text,
.page-en .service-card-text,
.page-en .service-card-items li,
.page-en .policy-text,
.page-en .policy-list li {
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  .page-en .hero-title {
    font-size: 32px;
    letter-spacing: 0.01em;
    line-height: 1.42;
  }
}
