/*
Theme Name: takakura
Theme URI: https://www.takakuraunyu.co.jp/
Author: Takakura Co.,LTD.
Description: 髙倉運輸株式会社 コーポレートサイト
Version: 2.2
*/

/* ============================================================
   CSS Custom Properties
============================================================ */
:root {
  --color-navy: #1a2744;
  --color-navy-dark: #0f1a30;
  --color-accent: #2563a8;
  --color-accent-lt: #3b82c4;
  --color-white: #ffffff;
  --color-gray-lt: #f5f5f5;
  --color-gray-md: #e0e0e0;
  --color-gray-dk: #666666;
  --color-text: #333333;
  --color-border: #cccccc;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-en: 'Marcellus SC', serif;

  --header-h: 120px;
  --nav-h: 44px;
  --max-w: 1200px;

  --transition: 0.25s ease;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-lt);
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
}

h2 {
  font-size: 1.35rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-gray-md);
  margin: 2rem 0;
}

p {
  margin-bottom: 1em;
}

.indent-block {
  margin-left: 24px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
}

tr:nth-child(even) td {
  background: var(--color-gray-lt);
}

/* ============================================================
   Layout
============================================================ */
#wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--color-white);
}

#main {
  padding: 20px 30px 40px;
  min-height: 400px;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================================
   Header
============================================================ */
header {
  position: relative;
  background: var(--color-white);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-gray-md);
}

#logo a {
  display: inline-block;
}

#logo img {
  height: 60px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-sns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: opacity var(--transition), transform var(--transition);
}

.sns-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.sns-x {
  background-color: #000000;
  color: #ffffff;
}

.sns-facebook {
  background-color: #1877f2;
  color: #ffffff;
}

.sns-line {
  background-color: #06c755;
  color: #ffffff;
}

.header-search form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-search input[type="text"] {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  width: 200px;
  transition: border-color var(--transition);
}

.header-search input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.header-search input[type="submit"] {
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition);
}

.header-search input[type="submit"]:hover {
  background: var(--color-accent);
}

/* ============================================================
   Hero Image
============================================================ */
#mainImage {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#mainImage img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  display: block;
}

#mainImage.home-hero img {
  height: 480px;
}

/* ============================================================
   Navigation
============================================================ */
nav {
  background: var(--color-navy);
  position: relative;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
}

nav ul li {
  flex: 1;
  text-align: center;
}

nav ul li a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 12px 0;
  letter-spacing: 0.04em;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent-lt);
  transition: width var(--transition), left var(--transition);
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

nav ul li a:hover::after {
  width: 100%;
  left: 0;
}

nav ul li.current-menu-item>a,
nav ul li.current_page_item>a {
  background: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span:nth-of-type(1) {
  top: 14px;
}

.nav-toggle span:nth-of-type(2) {
  top: 21px;
}

.nav-toggle span:nth-of-type(3) {
  top: 28px;
}

/* ============================================================
   Home News Box
============================================================ */
#news {
  background: var(--color-white);
  color: var(--color-text);
  padding: 20px 28px;
  margin: 0;
  border-left: 4px solid var(--color-accent);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

#news .news-title {
  font-family: var(--font-en);
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0;
  display: block;
}

.news-more-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-sans);
  line-height: 1.2;
  transition: background var(--transition);
}

.news-more-btn:hover {
  background-color: var(--color-accent-lt);
}

#news .news-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-md);
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

#news .news-item:last-child {
  border-bottom: none;
}

#news .news-date {
  font-size: 0.95rem;
  color: var(--color-gray-dk);
  white-space: nowrap;
  min-width: 90px;
}

#news .news-item span {
  color: var(--color-text);
}

#news .news-item a {
  color: var(--color-accent);
  font-size: 1.05rem;
}

#news .news-item a:hover {
  color: var(--color-accent-lt);
}

/* ============================================================
   Contents
============================================================ */
#contents_1 {
  padding: 10px 0;
}

/* 会社案内 */
#corp_photo {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 280px;
}

#corp_photo img {
  width: 100%;
  border-radius: 4px;
}

#corp_enkaku {
  overflow: hidden;
}

.intl-photo {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 380px;
  width: 100%;
}

.intl-photo img {
  width: 100%;
  border-radius: 4px;
}

.intl-desc {
  overflow: hidden;
}

#corp_enkaku p {
  margin-bottom: 0.6em;
}

.migi {
  text-align: right;
  margin-top: 10px;
}

#map {
  margin: 20px 0;
}

#map iframe {
  border: none;
  border-radius: 4px;
}

/* サービス */
.service_left_t,
.service_right_t {
  float: left;
  width: 48%;
  margin-bottom: 16px;
}

.service_right_t {
  float: right;
}

.service_left,
.service_right {
  float: left;
  width: 48%;
  margin-bottom: 16px;
}

.service_right {
  float: right;
}

.service_left img,
.service_right img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* 営業所 */
.group-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 24px;
}

.group-data {
  width: 38%;
}

.group-data .bigfont {
  font-size: 0.95rem;
  line-height: 1.9;
}

.group-map {
  width: 58%;
}

.group-map iframe {
  border-radius: 4px;
  display: block;
}

/* 国際物流 */
#area {
  display: none;
}

#area table th,
#area table td {
  border: 1px solid var(--color-border);
  vertical-align: middle;
}

.international_photo {
  width: 100%;
  max-width: 220px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.hutomoji {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.no_aki_ue {
  margin-top: 0;
}

/* お問合せ */
#ask table td {
  text-align: left;
  border: none;
  padding: 8px 4px;
}

#ask input[type="text"],
#ask input[type="email"],
#ask input[type="tel"],
#ask textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  margin-top: 4px;
}

#ask input:focus,
#ask textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

#ask textarea {
  resize: vertical;
  min-height: 160px;
}

#ask input[type="submit"] {
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  padding: 10px 40px;
  font-size: 1rem;
  font-family: var(--font-serif);
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 10px;
}

#ask input[type="submit"]:hover {
  background: var(--color-accent);
}

/* 採用情報 */
.recruit-table td:first-child {
  background: var(--color-gray-lt);
  font-weight: 600;
  width: 25%;
  white-space: nowrap;
}

/* ============================================================
   To Top Button
============================================================ */
#totop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

#totop.show {
  opacity: 1;
  visibility: visible;
}

#totop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-navy);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background var(--transition), transform var(--transition);
}

#totop a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

#totop a::before {
  content: '▲';
  font-size: 0.75rem;
}

/* ============================================================
   Footer
============================================================ */
footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 24px;
  gap: 8px;
}

footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--color-white);
}

#foot_navi,
#foot_navi2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

#copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Page Header Banner
============================================================ */
.page-banner {
  position: relative;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.page-banner-title {
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* ============================================================
   English Page
============================================================ */
.english-content {
  font-size: 0.95rem;
  line-height: 1.9;
}

.english-content h2 {
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

/* ============================================================
   Single Post Detail
============================================================ */
.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.single-post-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.single-post-date {
  font-size: 0.95rem;
  color: var(--color-gray-dk);
  display: block;
  margin-bottom: 8px;
}

.single-post-title {
  font-size: 1.6rem;
  color: var(--color-navy);
  font-family: var(--font-serif);
  line-height: 1.4;
  margin: 0;
}

.single-post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.single-post-navigation {
  text-align: center;
  padding-top: 35px;
}

.back-to-news-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--color-navy) !important;
  font-size: 0.95rem;
  padding: 10px 40px;
  border: 1px solid var(--color-navy);
  border-radius: 4px;
  transition: background-color var(--transition), color var(--transition);
}

.back-to-news-btn:hover {
  background-color: var(--color-navy);
  color: var(--color-white) !important;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
  .header-top {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 8px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }

  /* 開閉時のバツ印アニメーション */
  .nav-toggle[aria-expanded="true"] span:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-search {
    display: none;
  }

  .header-sns {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
  }

  .sns-btn {
    width: 24px;
    height: 24px;
  }

  .sns-btn svg {
    width: 14px;
    height: 14px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    flex: none;
    text-align: left;
  }

  nav ul li a {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mainImage img {
    height: 240px;
  }

  #mainImage.home-hero img {
    height: 300px;
  }

  .service_left_t,
  .service_right_t,
  .service_left,
  .service_right {
    float: none;
    width: 100%;
  }

  #corp_photo,
  .intl-photo {
    float: none;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .group-row {
    flex-direction: column;
    gap: 16px;
  }

  #area {
    display: block;
  }

  .group-data,
  .group-map {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-top {
    padding: 10px 12px;
  }

  #logo img {
    height: 40px;
  }

  .nav-toggle {
    right: 12px;
  }

  .header-sns {
    right: 60px;
  }

  #main {
    padding: 14px 16px 30px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  #mainImage img {
    height: 180px;
  }

  #mainImage.home-hero img {
    height: 220px;
  }

  .page-banner img {
    height: 180px;
  }
}