/* ==========================================================================
   合同会社巡 — Corporate Site Stylesheet
   Font: Noto Sans JP (Google Fonts)
   Color:
     #FFFFFF — White (Base BG)
     #333333 — Dark Gray (Base Text)
     #0056A8 — Accent Blue
     #F8F9FA — Section BG Light
     #222222 — Footer BG
   ========================================================================== */

/* --------------------------------------------------
   1. CSS Custom Properties
-------------------------------------------------- */
:root {
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-accent: #0056A8;
  --color-accent-light: rgba(0, 86, 168, 0.08);
  --color-bg-light: #F8F9FA;
  --color-border: #E0E0E0;
  --color-footer-bg: #222222;
  --color-footer-text: rgba(255, 255, 255, 0.75);

  --font-primary: 'Noto Sans JP', sans-serif;

  --container-width: 1200px;
  --container-padding: 40px;

  --transition-base: all 0.3s ease;
  --transition-slow: all 1s ease-out;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* --------------------------------------------------
   3. Utility: Container
-------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --------------------------------------------------
   4. Section Header (共通)
-------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header__en {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text);
  line-height: 1;
}

.section-header__ja {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-text-light);
  margin-top: 10px;
}

.section-header__line {
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 24px auto 0;
}

/* --------------------------------------------------
   5. Scroll Fade-In Animation
-------------------------------------------------- */
.js-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: var(--delay, 0s);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   6. HEADER
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0;
}

.site-header.is-scrolled {
  background-color: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-white);
  transition: color 0.4s ease;
}

.site-header.is-scrolled .site-header__logo-text {
  color: var(--color-text);
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.site-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.site-header__nav-link:hover::after {
  width: 100%;
}

.site-header.is-scrolled .site-header__nav-link {
  color: var(--color-text);
}

.site-header__nav-link:hover {
  color: var(--color-accent);
}

/* hamburger — hidden on desktop */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-white);
  transition: var(--transition-base);
  transform-origin: left center;
}

.site-header__hamburger span {
  background-color: var(--color-text);
}

.site-header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(-5px);
}
.site-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.site-header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(5px);
}

/* --------------------------------------------------
   7. HERO
-------------------------------------------------- */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 50, 0.62) 0%,
    rgba(0, 30, 70, 0.45) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
margin: 0 auto;
  max-width: 640px;
  color: var(--color-white);
  padding: 0 20px;
}

.hero__tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__tagline::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

.hero__heading {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 40px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--color-white);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: var(--transition-base);
}

.hero__cta:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateX(4px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.hero__scroll-text {
  font-size: 9px;
  letter-spacing: 0.28em;
  font-weight: 400;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* --------------------------------------------------
   8. PHILOSOPHY (ABOUT US)
-------------------------------------------------- */
.philosophy {
  padding: 120px 0;
  background-color: var(--color-white);
}

.philosophy__slogan {
  text-align: center;
  margin-bottom: 72px;
}

.philosophy__slogan-text {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.philosophy__slogan-text::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  margin: 20px auto 0;
  transition: width 1.2s ease;
}

.philosophy__slogan.is-visible .philosophy__slogan-text::after {
  width: 60px;
}

.philosophy__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.philosophy__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 48px 40px;
  flex: 0 1 340px;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.philosophy__card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-accent);
  transition: width 0.4s ease;
}

.philosophy__card:hover::before {
  width: 100%;
}

.philosophy__card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.philosophy__card-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.philosophy__card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.philosophy__card-title {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.philosophy__card-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

/* --------------------------------------------------
   9. VALUES
-------------------------------------------------- */
.values {
  padding: 100px 0;
  background-color: var(--color-bg-light);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 5th card: center on desktop */
.values__card--center {
  grid-column: 2 / 3;
}

.values__card {
  background: var(--color-white);
  padding: 36px 30px 30px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.values__card:hover {
  box-shadow: 0 10px 30px rgba(0, 86, 168, 0.1);
  transform: translateY(-5px);
}

.values__card-number {
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 80px;
  font-weight: 700;
  color: rgba(0, 86, 168, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.values__card:hover .values__card-number {
  color: rgba(0, 86, 168, 0.1);
}

.values__card-body {
  position: relative;
  z-index: 1;
}

.values__card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
  line-height: 1.4;
}

.values__card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --------------------------------------------------
   10. BUSINESS
-------------------------------------------------- */
.business {
  padding: 120px 0;
  background-color: var(--color-white);
}

.business__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.business__item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-border);
}

.business__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.business__item--reverse {
  flex-direction: row-reverse;
}

.business__item-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 4px;
  overflow: hidden;
}

.business__item-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s ease;
}

.business__item:hover .business__item-image img {
  transform: scale(1.03);
}

.business__item-image--abstract {
  background-color: var(--color-bg-light);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business__item-image-placeholder {
  color: var(--color-accent);
  opacity: 0.4;
}

.business__item-content {
  flex: 1;
  padding: 20px 0;
}

.business__item-number {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 16px;
  background-color: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: 2px;
}

.business__item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 20px;
}

.business__item-text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* --------------------------------------------------
   11. MESSAGE
-------------------------------------------------- */
.message {
  padding: 120px 0;
  background-color: var(--color-bg-light);
}

.message__body {
  display: flex;
  gap: 70px;
  align-items: flex-start;
}

.message__portrait {
  flex: 0 0 38%;
  max-width: 38%;
}

.message__portrait-figure {
  position: relative;
}

.message__portrait-figure::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  z-index: 0;
}

.message__portrait-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  filter: grayscale(10%);
}

.message__portrait-caption {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}

.message__text-area {
  flex: 1;
  padding-left: 0;
}

.message__text {
  font-size: 16px;
  line-height: 2.0;
  color: var(--color-text);
  margin-bottom: 28px;
}

.message__text:first-of-type {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.7;
  position: relative;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.message__text:first-of-type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
}

.message__signature {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  line-height: 1.9;
}

/* --------------------------------------------------
   12. COMPANY
-------------------------------------------------- */
.company {
  padding: 120px 0;
  background-color: var(--color-white);
}

.company__table-wrap {
  display: flex;
  justify-content: center;
}

.company__table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
}

.company__table-row {
  border-top: 1px solid var(--color-border);
}

.company__table-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.company__table-th,
.company__table-td {
  padding: 24px 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
  font-size: 15px;
}

.company__table-th {
  width: 30%;
  font-weight: 600;
  color: var(--color-text);
  padding-right: 20px;
  white-space: nowrap;
}

.company__table-td {
  width: 70%;
  color: var(--color-text-light);
}

/* --------------------------------------------------
   13. FOOTER
-------------------------------------------------- */
.site-footer {
  padding: 80px 0 30px;
  background-color: var(--color-footer-bg);
  color: var(--color-white);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
}

.site-footer__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.site-footer__address {
  font-size: 13px;
  color: var(--color-footer-text);
  line-height: 2.0;
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.site-footer__nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-footer-text);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.site-footer__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  transition: width 0.3s ease;
}

.site-footer__nav-link:hover {
  color: var(--color-white);
}

.site-footer__nav-link:hover::after {
  width: 100%;
  right: auto;
  left: 0;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  text-align: center;
}

.site-footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

/* ###############################
2026.5.28 add css
############################### */

.site-header__logo-text img{
width:160px;
}

.site-header__nav-link{
color: var(--color-text);;
}

/* --------------------------------------------------
   14. Responsive — Tablet (≤ 1024px)
-------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --container-padding: 30px;
  }

  .hero__heading {
    font-size: 36px;
  }

  .hero__content {
    left: 5%;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__card--center {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }

  .business__item-image img,
  .business__item-image--abstract {
    height: 300px;
  }

  .message__portrait-img {
    height: 420px;
  }

  .site-header__nav-list {
    gap: 28px;
  }
}

/* --------------------------------------------------
   15. Responsive — Mobile (≤ 768px)
-------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  /* Header */
  .site-header__hamburger {
    display: flex;
z-index:99;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  .site-header__nav.is-open {
    right: 0;
  }

  .site-header__nav-list {
    flex-direction: column;
    gap: 36px;
  }

  .site-header__nav-link {
    font-size: 14px;
    color: var(--color-text);
  }

  /* Hero */
  .hero__content {
    left: 0;
    padding: 0 24px;
    max-width: 100%;
  }

  .hero__heading {
    font-size: 26px;
    line-height: 1.7;
  }

  .hero__tagline {
    font-size: 10px;
  }

  /* Section Header */
  .section-header {
    margin-bottom: 48px;
  }

  .section-header__en {
    font-size: 26px;
  }

  /* Philosophy */
  .philosophy {
    padding: 80px 0;
  }

  .philosophy__slogan-text {
    font-size: 20px;
  }

  .philosophy__grid {
    flex-direction: column;
    align-items: center;
  }

  .philosophy__card {
    flex: none;
    width: 100%;
    max-width: 400px;
    padding: 36px 28px;
  }

  /* Values */
  .values {
    padding: 80px 0;
  }

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

  .values__card--center {
    grid-column: auto;
    max-width: 100%;
  }

  /* Business */
  .business {
    padding: 80px 0;
  }

  .business__item,
  .business__item--reverse {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 60px;
    padding-bottom: 60px;
  }

  .business__item-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .business__item-image img,
  .business__item-image--abstract {
    height: 240px;
  }

  .business__item-title {
    font-size: 20px;
  }

  /* Message */
  .message {
    padding: 80px 0;
  }

  .message__body {
    flex-direction: column;
    gap: 40px;
  }

  .message__portrait {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .message__portrait-img {
    height: 360px;
  }

  .message__portrait-figure::before {
    top: -10px;
    left: -10px;
  }

  .message__text-area {
    padding-left: 0;
  }

  .message__text {
    font-size: 15px;
  }

  .message__text:first-of-type {
    font-size: 18px;
  }

  /* Company */
  .company {
    padding: 80px 0;
  }

  .company__table-th,
  .company__table-td {
    font-size: 14px;
    padding: 20px 0;
  }

  .company__table-th {
    white-space: normal;
    width: 35%;
    padding-right: 12px;
  }

  /* Footer */
  .site-footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__nav-list {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 28px;
  }

  /* Scroll indicator */
  .hero__scroll-indicator {
    display: none;
  }
}

/* Mobile overlay when nav is open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-overlay.is-active {
  display: block;
  opacity: 1;
}
