/*
Theme Name: TOKIIRO
Description: 株式会社ときいろ コーポレートサイト用オリジナルテーマ（coding2デザインをWordPressテーマ化）
Author:
Version: 1.0.0
Text Domain: tokiiro
*/

/* ==========================================================================
   TOKIIRO（ときいろ）コーディング用スタイルシート
   株式会社ときいろ様 コーポレートサイト
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Base */
  --c-bg: #fffaf5;
  --c-ink: #4a3d36;
  --c-sub: #8d7b70;
  --c-line: #ece1d8;
  --c-bg-soft: #fdf8f3;

  /* Brand accents (TOP hero copy: 想い / シーン / 時) */
  --c-pink: #c22e83;
  --c-blue: #1f6f92;
  --c-gold: #bf9a2e;
  --c-mauve: #a97a6d;

  /* Buttons / links */
  --c-btn: #8a7439;
  --c-btn-hover: #6f5c2b;

  /* Type */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* Layout */
  --container-w: 1180px;
  --section-pad: 100px;
  --section-pad-sp: 56px;
  --header-h: 92px;
}

@media (max-width: 767px) {
  :root {
    --section-pad: var(--section-pad-sp);
    --header-h: 68px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; font-size: 16px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Utilities ---------- */
.section { padding: var(--section-pad) 0; }

.bg-paper {
  background-color: #fdf8f3;
  background-image:
    radial-gradient(ellipse 900px 620px at 100% -5%, rgba(240, 150, 100, .28), transparent 60%),
    radial-gradient(ellipse 700px 520px at -5% 105%, rgba(198, 46, 131, .08), transparent 60%);
}

.c-pink { color: var(--c-pink); }
.c-blue { color: var(--c-blue); }
.c-gold { color: var(--c-gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header__logo img {
  height: 40px;
  width: auto;
}
@media (max-width: 767px) {
  .site-header__logo img { height: 30px; }
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list {
    display: flex;
    align-items: flex-start;
    gap: 34px;
  }
  .nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .02em;
    color: var(--c-ink);
    line-height: 1.3;
    transition: opacity .2s ease;
  }
  .nav__link:hover { opacity: .6; }
  .nav__icon { height: 26px; width: auto; }
  .nav__link.is-current { color: var(--c-pink); }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 90;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile__list {
  padding: 12px 24px 40px;
}
.nav-mobile__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}
.nav-mobile__link img { height: 30px; width: auto; }
.nav-mobile__link.is-current { color: var(--c-pink); }
@media (min-width: 1024px) {
  .nav-mobile { display: none; }
}

/* ---------- Hero visual (single baked image) ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual--left img { object-position: left center; }
.hero-visual--right img { object-position: right center; }
@media (max-width: 767px) {
  /* スマホでも横長(16:9)のまま維持する。画像の縦横比がコンテナと異なる場合に隙間ができるため cover でクロップする */
  .hero-visual { aspect-ratio: 16 / 9; }
  .hero-visual img { object-fit: cover; }
}

/* ---------- Hero slider (TOP page) ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slider__slide.is-active { opacity: 1; z-index: 1; }
.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}
.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255,255,255,.35);
  padding: 0;
}
.hero-slider__dot.is-active { background: #fff; }
@media (max-width: 767px) {
  /* 画像全体が見えるよう、スマホでも横長(16:9)のまま維持する */
  .hero-slider { aspect-ratio: 16 / 9; }
  .hero-slider__slide img { object-fit: contain; background: var(--c-bg-soft); }
}

/* ---------- TOP: message block ---------- */
.top-message {
  text-align: center;
}
.top-message__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.7;
  color: #6b5c53;
}
.top-message__text {
  margin-top: 32px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--c-ink);
}
@media (min-width: 768px) {
  .top-message__text {
    width: max-content;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ---------- TOP: mission grid ---------- */
.mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .mission__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .mission__item {
    position: relative;
    padding: 0 20px;
  }
  .mission__item + .mission__item::before {
    content: "";
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 1px;
    background: var(--c-line);
  }
}
.mission__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
}
.mission__icon svg { width: 34px; height: 34px; }
.mission__icon--pink { background: radial-gradient(circle, rgba(230,140,140,.35), rgba(230,140,140,.05) 70%); }
.mission__icon--purple { background: radial-gradient(circle, rgba(150,130,200,.35), rgba(150,130,200,.05) 70%); }
.mission__icon--orange { background: radial-gradient(circle, rgba(230,160,110,.35), rgba(230,160,110,.05) 70%); }
.mission__icon--gold { background: radial-gradient(circle, rgba(210,175,90,.35), rgba(210,175,90,.05) 70%); }
.mission__ja {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
}
.mission__en {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--c-sub);
}

/* ---------- Page message (subpages: gel / filling / oem) ---------- */
.page-message__text {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2.1;
  color: #5b4d45;
}
.page-message__text p + p { margin-top: 28px; }
@media (min-width: 768px) {
  .page-message__text {
    width: max-content;
  }
}

/* ---------- Company table ---------- */
.company-table {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  font-weight: 400;
  vertical-align: top;
}
.company-table th {
  width: 9em;
  color: var(--c-sub);
  font-family: var(--font-heading);
  letter-spacing: .05em;
}
@media (max-width: 600px) {
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td {
    display: block;
    width: auto;
  }
  .company-table tr { padding: 14px 0; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
  .company-table td { padding-top: 0; }
}

/* ---------- Contact form ---------- */
.contact-notice {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  color: #c0392b;
  font-size: 14px;
  line-height: 1.9;
}
.contact-notice strong { display: block; font-size: 15px; margin-bottom: 4px; }

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}
.form-field { margin-bottom: 26px; }
.form-field__head { margin-bottom: 10px; }
.form-field label {
  display: block;
  text-align: center;
  font-size: 15px;
  margin-bottom: 6px;
}
.form-field .req { color: var(--c-pink); margin-left: 2px; }
.form-field .hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--c-sub);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
}
.form-field textarea {
  border-radius: 20px;
  min-height: 160px;
  resize: vertical;
}

/* PC: ワイヤーフレームどおりラベルと入力欄を横並びに */
@media (min-width: 768px) {
  .contact-form { max-width: 780px; }
  .form-field {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .form-field__head {
    flex: 0 0 240px;
    width: 240px;
    margin-bottom: 0;
    text-align: right;
  }
  .form-field label,
  .form-field .hint { text-align: right; }
  .form-field__control { flex: 1; min-width: 0; }
  .form-field--area { align-items: flex-start; }
  .form-field--area .form-field__head { padding-top: 14px; }
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-mauve);
}

.btn-submit {
  display: block;
  margin: 36px auto 0;
  padding: 16px 64px;
  border: none;
  border-radius: 999px;
  background: var(--c-btn);
  color: #fff;
  font-size: 16px;
  letter-spacing: .2em;
  transition: background .2s ease;
}
.btn-submit:hover { background: var(--c-btn-hover); }

/* ---------- Contact Form 7 の既定要素にも最低限フィットさせる ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input.wpcf7-form-control,
.contact-form textarea.wpcf7-form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
}
.contact-form textarea.wpcf7-form-control {
  border-radius: 20px;
  min-height: 160px;
  resize: vertical;
}
.contact-form input.wpcf7-submit {
  display: block;
  width: max-content;
  margin: 36px auto 0;
  padding: 16px 64px;
  border: none;
  border-radius: 999px;
  background: var(--c-btn);
  color: #fff;
  font-size: 16px;
  letter-spacing: .2em;
  transition: background .2s ease;
}
.contact-form input.wpcf7-submit:hover { background: var(--c-btn-hover); }
.contact-form .wpcf7-not-valid-tip {
  display: block;
  text-align: center;
  color: #c0392b;
  font-size: 12px;
  margin-top: 6px;
}
.contact-form .wpcf7-response-output {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  padding: 56px 0 24px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--c-sub);
}
.site-footer__business p,
.site-footer__company p { margin: 0 0 6px; }
.site-footer__name {
  font-family: var(--font-heading);
  color: var(--c-ink);
  font-size: 15px;
}
.site-footer__company { text-align: center; }
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--c-ink);
}
.site-footer__contact img { height: 34px; width: auto; }
.site-footer__copy {
  margin-top: 40px;
  text-align: center;
  font-size: 11.5px;
  color: var(--c-sub);
}
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
