/*
Theme Name: Mito Kaiun
Theme URI: https://mitokaiun.jp
Author: Mito Kaiun Ltd.
Author URI: https://mitokaiun.jp
Description: 三都海運有限会社のコーポレートサイト用オリジナルWordPressテーマ。トップページ・採用ページ・お問い合わせフォームの3ページ構成です。
Version: 1.3.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitokaiun
*/

/* ==========================================================================
   Base reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #FBF6EC;
  color: #1F3A3D;
}
h1, h2, h3, h4, .display {
  font-family: 'Zen Maru Gothic', sans-serif;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Shared button styles (front page / header / footer)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  padding: 15px 32px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #1F3A3D; color: #FFFFFF; }
.btn-primary:hover { background: #16292B; }
.btn-outline { background: transparent; color: #1F3A3D; border: 1.5px solid rgba(31,58,61,0.35); }
.btn-outline:hover { border-color: #1F3A3D; }
.btn-outline-light { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { border-color: #FFFFFF; }
.btn-recruit { background: #F2795A; color: #FFFFFF; box-shadow: 0 8px 20px rgba(242,121,90,0.35); }
.btn-recruit:hover { background: #E9683F; }
.navlink { font-weight: 700; font-size: 14px; color: #1F3A3D; padding: 8px 4px; border-bottom: 2px solid transparent; }
.navlink:hover { border-bottom: 2px solid #1C8FA0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.14em; }
.label { font-size: 12px; letter-spacing: 0.08em; color: #7C8F8D; font-weight: 700; }

/* ==========================================================================
   Recruit page styles (prefixed rc- to avoid clashing with the styles above)
   ========================================================================== */
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 30px; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 16px; border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.rc-btn:hover { transform: translateY(-2px); }
.rc-btn-primary { background: #F2795A; color: #FFFFFF; box-shadow: 0 8px 20px rgba(242,121,90,0.35); }
.rc-btn-primary:hover { background: #E9683F; }
.rc-btn-outline { background: rgba(255,255,255,0.12); color: #FFFFFF; border: 2px solid rgba(255,255,255,0.75); }
.rc-btn-outline:hover { background: rgba(255,255,255,0.22); }
.rc-btn-dark { background: #1F3A3D; color: #FFFFFF; }
.rc-btn-dark:hover { background: #16292B; }
.rc-navlink { font-weight: 700; font-size: 14.5px; color: #1F3A3D; padding: 8px 4px; border-bottom: 3px solid transparent; }
.rc-navlink:hover { border-bottom: 3px solid #F5B940; }
.rc-card { background: #FFFFFF; border-radius: 24px; box-shadow: 0 10px 30px rgba(31,58,61,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(31,58,61,0.13); }
.rc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; padding: 6px 16px; border-radius: 999px; }
.rc-icon-circle { display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.rc-badge { display: inline-flex; align-items: center; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 12.5px; padding: 5px 14px; border-radius: 999px; }
.rc-footlink { font-size: 14px; color: rgba(255,255,255,0.82); }
.rc-footlink:hover { color: #F5B940; }

/* ==========================================================================
   Contact / inquiry form styles
   ========================================================================== */
.cf-input,
.cf-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(31,58,61,0.18);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14.5px;
  color: #1F3A3D;
  background: #FFFFFF;
}
.cf-input:focus, .cf-textarea:focus { outline: none; border-color: #1C8FA0; }
.field-label { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 15px; color: #1F3A3D; display: flex; align-items: center; gap: 8px; }
.required-tag { font-size: 11px; font-weight: 700; color: #FFFFFF; background: #F2795A; padding: 2px 8px; border-radius: 999px; }
.optional-tag { font-size: 11px; font-weight: 700; color: #4B615F; background: rgba(31,58,61,0.08); padding: 2px 8px; border-radius: 999px; }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; border: 1.5px solid rgba(31,58,61,0.18); background: #FFFFFF;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip input { width: 17px; height: 17px; accent-color: #1C8FA0; flex-shrink: 0; cursor: pointer; }
.chip.is-checked { border-color: #1C8FA0; background: rgba(28,143,160,0.08); }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px;
  border-radius: 999px; border: none; cursor: pointer; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700;
  font-size: 17px; background: #F2795A; color: #FFFFFF; box-shadow: 0 10px 24px rgba(242,121,90,0.35);
}
.submit-btn:hover { background: #E9683F; }

/* ==========================================================================
   Document pages (privacy policy etc.) rendered by index.php
   ========================================================================== */
.mk-doc-body { font-size: 15px; line-height: 1.95; }
.mk-doc-body p { margin: 0 0 1.1em; }
.mk-doc-body h2 { font-size: 19px; font-weight: 700; margin: 2.2em 0 0.7em; padding-bottom: 6px; border-bottom: 2px solid rgba(28,143,160,0.25); }
.mk-doc-body ul, .mk-doc-body ol { margin: 0 0 1.1em; padding-left: 1.4em; list-style: disc; }
.mk-doc-body ol { list-style: decimal; }
.mk-doc-body li { margin: 0.25em 0; }
.mk-doc-body a { color: #1C8FA0; text-decoration: underline; }

/* ==========================================================================
   Smartphone / small tablet layout (front page & recruit page)
   The templates use inline styles, so these rules target them by class and
   by inline-style patterns, with !important to win over the inline values.
   ========================================================================== */
@media (max-width: 768px) {
  /* Header: logo + button on the first row, menu as a swipeable second row */
  .mk-hdr { flex-wrap: wrap !important; padding: 10px 16px !important; row-gap: 8px; }
  .mk-hdr > a.btn, .mk-hdr > a.rc-btn { padding: 8px 14px !important; font-size: 12.5px !important; }
  .mk-hdr-nav { order: 3; width: 100%; gap: 18px !important; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .mk-hdr-nav::-webkit-scrollbar { display: none; }
  .mk-hdr-nav a { font-size: 13px !important; flex-shrink: 0; }

  /* Side gutters and vertical rhythm */
  .mk-page section, .mk-page footer { padding-left: 20px !important; padding-right: 20px !important; }
  .mk-page section[style*="padding: 110px"], .mk-page section[style*="padding: 100px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  .mk-page section[style*="padding: 90px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  .mk-fp #hero { padding-top: 64px !important; }
  .mk-fp #hero > div { padding-bottom: 64px !important; gap: 22px !important; }
  .mk-rc #hero { padding-top: 48px !important; }
  .mk-rc #hero > div { padding-bottom: 48px !important; }
  .mk-rc #stats { padding-bottom: 56px !important; }
  .mk-rc #about { padding-bottom: 64px !important; }

  /* Headings: let them wrap and size them for a phone */
  .mk-page [style*="white-space: nowrap"] { white-space: normal !important; }
  .mk-page h1 { font-size: 26px !important; line-height: 1.5 !important; }
  .mk-page h2 { font-size: 24px !important; line-height: 1.45 !important; }
  .mk-page #hero p { font-size: 15px !important; }

  /* Multi-column grids become one column; the 4-up stat strip becomes 2x2 */
  .mk-page [style*="grid-template-columns: repeat(2"],
  .mk-page [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  .mk-page [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px !important; padding: 28px 20px !important; }
  .mk-page [style*="grid-template-columns: repeat(4"] [style*="font-size: 26px"] { font-size: 21px !important; }

  /* Cards: a little less padding */
  .mk-page .rc-card[style*="padding: 36px 30px"], .mk-page .rc-card[style*="padding: 32px"] { padding: 26px 22px !important; }
  .mk-page .rc-card[style*="padding: 40px 44px"] { flex-direction: column !important; padding: 26px 22px !important; gap: 14px !important; }

  /* Side-by-side blocks stack vertically */
  .mk-page [style*="align-items: center; gap: 60px"] { flex-direction: column !important; align-items: stretch !important; gap: 36px !important; }
  .mk-page [style*="align-items: center; gap: 60px"] > * { width: 100% !important; max-width: 100% !important; }

  /* Recruit hero: the three headline figures wrap instead of squeezing */
  .mk-rc [style*="gap: 28px; padding-top: 18px"] { flex-wrap: wrap !important; gap: 14px 18px !important; }
  .mk-rc [style*="gap: 28px; padding-top: 18px"] [style*="font-size: 26px"] { font-size: 20px !important; }

  /* Front page fleet list: name on top, specs underneath */
  .mk-fp [style*="margin: 0 0 0 128px"] { margin: 0 !important; }
  .mk-fp [style*="gap: 36px; padding: 30px 0"] { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding: 22px 0 !important; }
  .mk-fp [style*="gap: 36px; padding: 30px 0"] > div:first-child { width: auto !important; font-size: 21px !important; }
  .mk-fp [style*="padding-right: 60px"] { padding-right: 0 !important; justify-content: flex-start !important; gap: 32px; width: 100%; }

  /* Label/value rows: narrower label column */
  .mk-fp [style*="width: 130px; flex-shrink: 0"] { width: 92px !important; }
  .mk-fp [style*="width: 90px; flex-shrink: 0"] { width: 80px !important; }

  /* Buttons in a row get full width for easy tapping */
  .mk-page #hero .btn, .mk-page #hero .rc-btn { flex: 1 1 100%; }
  .mk-rc #contact .rc-btn { width: 100%; box-sizing: border-box; justify-content: center; }
  .mk-rc #contact .rc-btn { font-size: 14px; }
}
