/* ==========================================================================
   SANSHI 採用サイト - スタイルシート
   ========================================================================== */

:root {
  --color-accent: #3D9BB0;
  --color-accent-dark: #2C7A8C;
  --color-accent-light: #E8F4F6;
  --color-bg: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-soft: #4A4A4A;
  --color-dark-bg: #16232A;
  --color-dark-text: #F2F6F7;
  --color-border: #E4E4E4;

  --font-mincho: 'Noto Serif JP', serif;
  --font-gothic: 'Noto Sans JP', sans-serif;

  --header-height: 80px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-gothic);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-mincho);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.04em;
}

p { margin: 0 0 0.65em; }
p:last-child { margin-bottom: 0; }

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

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

table { border-collapse: collapse; }

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

section[id] {
  scroll-margin-top: var(--header-height);
}

/* ==========================================================================
   共通パーツ
   ========================================================================== */

.section {
  padding: 64px 24px;
}

.section--accent {
  background: var(--color-accent-light);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 760px;
}

.section__eyebrow {
  display: block;
  text-align: center;
  color: var(--color-accent-dark);
  font-family: var(--font-gothic);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 20px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--color-accent);
}

.section__lead {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--color-text-soft);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-gothic);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* 画像プレースホルダー */
.placeholder {
  position: relative;
  overflow: hidden;
  background: #DADADA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.placeholder__label {
  position: relative;
  z-index: 0;
  color: #7A7A7A;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}

.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--4-3 { aspect-ratio: 4 / 3; }
.placeholder--16-9 { aspect-ratio: 16 / 9; }
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--hero {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.header__logo span {
  font-family: var(--font-gothic);
  font-size: 0.65rem;
  font-weight: 400;
  margin-left: 8px;
  color: var(--color-text-soft);
  letter-spacing: 0.1em;
}

.header__nav {
  flex: 1;
}
.header__nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.header__nav a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
@media (min-width: 901px) and (max-width: 1180px) {
  .header__nav ul { gap: 18px; }
  .header__nav a { font-size: 0.82rem; }
  .header__logo span { display: none; }
}
/* メニューが6項目になったため、狭めのPC幅ではさらに詰める */
@media (min-width: 901px) and (max-width: 1060px) {
  .header__inner { padding-left: 16px; padding-right: 16px; }
  .header__nav ul { gap: 12px; }
  .header__nav a { font-size: 0.76rem; letter-spacing: 0.02em; }
  .header__logo { font-size: 1.05rem; }
  .header__cta { padding: 8px 14px; font-size: 0.78rem; }
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.header__nav a:hover::after { width: 100%; }

.header__cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   ヒーロー
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero__copy {
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__sub {
  margin-top: 24px;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
}
/* h1 にしても見た目は今までと同じに保つ */
h1.hero__sub {
  font-family: var(--font-gothic);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 0;
}

.hero__cta {
  margin-top: 40px;
}

/* ==========================================================================
   About us
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about__text p {
  font-size: 1.05rem;
}

.about__images {
  display: grid;
  grid-template-columns: 1fr;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

.stores__item {
  text-align: center;
}
.stores__item h3 {
  font-size: 1.3rem;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}
.stores__item p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 0.3em;
}

.stores__note {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  opacity: 0.7;
}

/* ==========================================================================
   働いて得られる3つのこと
   ========================================================================== */

.merits {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.merit-card {
  display: flex;
  align-items: center;
  gap: 48px;
}

.merit-card:nth-child(even) {
  flex-direction: row-reverse;
}

.merit-card .placeholder {
  flex: 0 0 36%;
  border-radius: 8px;
}

.merit-card__media-group {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.merit-card__media-group .placeholder {
  flex: none;
}

.merit-card__body {
  flex: 1;
  min-width: 0;
}

.merit-card__no {
  font-family: var(--font-mincho);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.merit-card__body h3 {
  font-size: 1.3rem;
  margin: 6px 0 12px;
}

.merit-card__body p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* ==========================================================================
   5年で店主に
   ========================================================================== */

.growth__figure {
  text-align: center;
  margin-bottom: 28px;
  color: var(--color-accent);
}
.growth__number {
  font-family: var(--font-mincho);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}
.growth__unit {
  font-family: var(--font-mincho);
  font-size: 2rem;
  margin-left: 8px;
}

.growth__text {
  color: var(--color-text-soft);
  text-align: center;
}

.nowrap-phrase {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .nowrap-phrase {
    white-space: normal;
    word-break: normal;       /* keep-all だと長い日本語が改行されず画面からはみ出すため */
    word-break: auto-phrase;  /* 対応ブラウザでは文節で改行 */
  }
}
.growth__text p { font-size: 1.02rem; }

.growth__text p.growth__closing {
  margin-top: 24px;
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ==========================================================================
   親方メッセージ
   ========================================================================== */

.message__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

.message__grid .placeholder img {
  object-position: 65% 25%;
}

.message__text p {
  font-size: 1.02rem;
}

.message__motto {
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  margin: 20px 0;
}

.message__quote {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  color: var(--color-text);
}

.message__signature {
  margin-top: 20px;
  text-align: right;
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   働き方と仲間について
   ========================================================================== */

.culture__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.culture__text p {
  font-size: 1.05rem;
}

.culture__images {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.culture__figure {
  margin: 0;
}

.culture__caption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

/* ==========================================================================
   会社説明スライド
   ========================================================================== */

.slide-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.slide-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   募集要項
   ========================================================================== */

.requirements-table {
  width: 100%;
  border-top: 1px solid rgba(61, 155, 176, 0.25);
}

.requirements-table tr {
  border-bottom: 1px solid rgba(61, 155, 176, 0.2);
}

.requirements-table th,
.requirements-table td {
  padding: 20px 16px;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}

.requirements-table th {
  width: 200px;
  color: var(--color-accent);
  font-family: var(--font-gothic);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.requirements-table td {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 20px;
}

.cta__text {
  margin-bottom: 40px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.cta .btn--primary {
  background: #fff;
  color: var(--color-accent-dark);
}
.cta .btn--primary:hover {
  background: rgba(255,255,255,0.9);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  background: none;
  border: none;
  font-family: var(--font-gothic);
  font-size: 1rem;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-accent);
  transition: transform 0.25s ease;
}
.faq-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg) scaleY(0);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__answer p {
  padding: 0 4px 24px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  text-align: center;
  padding: 44px 24px 24px;
}

.footer__logo {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.footer__stores {
  font-size: 0.85rem;
  color: rgba(242,246,247,0.6);
  margin-bottom: 24px;
}

.footer .btn--outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.footer .btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer__credit {
  margin-top: 32px;
  font-size: 0.75rem;
  color: rgba(242,246,247,0.4);
  line-height: 1.8;
}

.footer__credit-title {
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.footer__credit a {
  color: rgba(242,246,247,0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__credit a:hover {
  color: var(--color-accent);
}

.footer__copyright {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(242,246,247,0.4);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .header__nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .header__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .header__cta {
    display: none;
  }
  .header__burger {
    display: flex;
  }

  .about__grid,
  .culture__grid,
  .message__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .message__grid {
    max-width: 320px;
    margin: 0 auto;
  }

  .merits {
    gap: 32px;
  }
  .merit-card,
  .merit-card:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .merit-card .placeholder {
    flex: none;
  }
  .merit-card__media-group {
    flex: none;
    flex-direction: row;
  }
  .merit-card__media-group .placeholder {
    flex: 1;
  }

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

  .requirements-table th {
    width: 120px;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .section { padding: 48px 24px; }
  .section__title { margin-bottom: 28px; }
  .growth__figure { margin-bottom: 16px; }
  .growth__number { font-size: 4rem; }
  .growth__text p { margin-bottom: 0.4em; }
  .growth__closing { margin-top: 14px; }
  .requirements-table th,
  .requirements-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }
  .requirements-table tr {
    display: block;
    padding: 16px 0;
  }

  .cta__title {
    font-size: 1.5rem;
  }

  .slide-embed {
    width: auto;
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
  }
}

/* ==========================================================================
   社員インタビュー（トップページのカード）
   ========================================================================== */
.ivcard {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(22, 35, 42, 0.08);
  color: inherit;
  text-decoration: none;
}
.ivcard__img { aspect-ratio: 3 / 2; overflow: hidden; }
.ivcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 25%;
  display: block;
  transition: transform 0.4s;
}
.ivcard:hover .ivcard__img img { transform: scale(1.03); }
.ivcard__body {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.ivcard__tag {
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-accent-dark);
}
.ivcard__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}
.ivcard__title .nw { display: inline-block; }
.ivcard__name {
  font-family: var(--font-mincho);
  font-weight: 600;
  color: var(--color-text-soft);
  margin: 0;
}
.ivcard__more {
  margin-top: 6px;
  font-family: var(--font-gothic);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-accent-dark);
}
.ivcard__more::after { content: " →"; }
@media (max-width: 760px) {
  .ivcard { grid-template-columns: 1fr; }
  .ivcard__body { padding: 22px 20px 26px; }
}

/* 見出しは言葉の区切り（.nw）でだけ改行／説明文は対応ブラウザで文節改行 */
.nw { display: inline-block; }
.section__lead, .cta__text, .culture__caption, .ivcard__title { word-break: auto-phrase; text-wrap: pretty; }