/*
Theme Name: ishizakikousan
Theme URI: https://www.ishizakikosan.com/
Description: Original theme for Ishizaki Kosan Co., Ltd.
Author: Antigravity
Version: 1.0.0
Text Domain: ishizakikousan
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
#header {
  background: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  max-width: 100%;
  padding: 0 50px;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.header-contact {
  display: flex;
  gap: 15px 30px;
  margin-bottom: 15px;
  align-items: center;
  justify-content: flex-end;
}

.header-contact a:hover {
  transition: 0.3s linear;
  opacity: 0.7;
}

.hd_tel {
  font-weight: 500;
}

.hd_tel a {
  font-size: 23px;
  font-weight: 600;
  margin-left: 3px;
}

.hd_contact a {
  display: block;
  padding: 13px 30px;
  background: #000033;
  color: #fff;
  font-size: 16px;
  line-height: 16px;
}

.hd_insta a {
  display: flex;
  gap: 0 10px;
  padding: 11px 30px;
  border: 1px solid #000033;
  color: #000033;
  font-weight: 500;
  font-size: 16px;
  line-height: 16px;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  justify-content: flex-end;
  gap: 45px;
}

.nav-desktop li {
  position: relative;
}

.nav-desktop li:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-55%) rotate(10deg);
  font-size: 14px;
  color: #c3c3c3;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 16px;
}

.nav-desktop a:hover {
  color: #0056b3;
}

.mobile-nav {
  display: none;
}

/* SP Hamburger Menu Button */
.sp-hamburger {
  display: none;
  position: fixed;
  top: 6px;
  right: 6px;
  width: 48px;
  height: 48px;
  background: #000033;
  color: #fff;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
}

.hamburger-icon {
  width: 26px;
  height: 26px;
  position: relative;
  margin-bottom: 5px;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.hamburger-icon span:nth-child(1) {
  top: 7px;
}

.hamburger-icon span:nth-child(2) {
  top: 15px;
}

.hamburger-icon span:nth-child(3) {
  top: 23px;
}

.hamburger-text {
  font-size: 12px;
  font-weight: 500;
}

/* Active State (X Animation) */
.sp-hamburger.is-active .hamburger-icon span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.sp-hamburger.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.sp-hamburger.is-active .hamburger-icon span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .sp-hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000033;
    z-index: 10000;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    overflow-y: auto;
  }

  .mobile-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-nav li {
    width: 100%;
    text-align: center;
  }

  .mobile-nav a {
    display: block;
    padding: 20px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav li:first-child a {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 1024px) {
  #header {
    padding: 20px 0 14px;
    position: relative;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 0 3%;
  }

  .header-inner .site-branding {
    width: 100%;
  }

  .header-inner .logo img {
    max-width: 80%;
    margin: 0 auto;
  }

  .header-contact {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-desktop {
    display: none;
  }
}

/* Post Contents (index.php) */
.entry-date {
  font-size: 16px;
  color: #333;
  letter-spacing: 0.05em;
  margin: 100px 0 30px;
}

/* page-back-btn */
.page-back-btn {
  text-align: center;
  margin: 100px 0;
}

.page-back-btn a {
  display: inline-block;
  font-weight: 600;
  padding-bottom: 2px;
  min-width: 100px;
  transition: 0.3s linear;
  background: url(./images/works_arrow_1.png) no-repeat bottom center;
  background-size: 100% auto;
}

.page-back-btn a:hover {
  opacity: 0.7;
}

/* yellow-marker */
.yellow_marker strong {
  display: inline;
  background: linear-gradient(transparent 60%, #ffff00b8);
}

.top_yellow_marker strong {
  display: inline;
  background: #fff890;
  padding: 0 5px;
  margin-right: 3px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  text-align: center;
  width: 100%;
  max-width: 1120px;
}

.hero-text-img {
  max-width: 500px;
  padding: 0 30px;
  margin: 0 0 0 auto;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.section-title .en {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 5px;
}

/* Business Section */
.business-intro {
  background: #f9f9f9;
}

.business-intro-inner {
  display: flex;
  gap: 40px;
}

.business-intro-left {
  flex: 1;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  color: #0056b3;
}

.business-intro-right {
  flex: 2;
}

/* Business Content Grid */
.t-business-list a:hover {
  transition: 0.3s linear;
  opacity: 0.65;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.business-item {
  background: #004085;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

/* Business page */
.elementor-12 .waku_right {
  background:
    linear-gradient(#333, #333) bottom right / 40px 1px no-repeat,
    linear-gradient(#333, #333) bottom right / 1px 40px no-repeat,
    #fff;
}

.elementor-12 .waku_left {
  background:
    linear-gradient(#333, #333) bottom left / 40px 1px no-repeat,
    linear-gradient(#333, #333) bottom left / 1px 40px no-repeat,
    #fff;
}

/* Company page */
.elementor-18 .company_policy_waku {
  background:
    linear-gradient(#333, #333) top left / 40px 1px no-repeat,
    linear-gradient(#333, #333) top left / 1px 40px no-repeat,
    linear-gradient(#333, #333) bottom right / 40px 1px no-repeat,
    linear-gradient(#333, #333) bottom right / 1px 40px no-repeat,
    #f2f2f4;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.work-card {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.work-image {
  height: 200px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-content {
  padding: 15px;
}

.work-title {
  font-weight: bold;
  font-size: 18px;
}

.work-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #004085;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}

.page-header {
  background: #f4f4f4;
  padding: 60px 0;
  text-align: center;
}

.page-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.page-header .en {
  font-size: 16px;
  color: #888;
  letter-spacing: 0.1em;
}

.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  color: #333;
  transition: 0.3s;
}

.pagination a:hover,
.pagination .current {
  background: #004085;
  color: #fff;
  border-color: #004085;
}

/* News Section */
.news-list {
  border-top: 1px solid #eee;
}

.news-item {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-date {
  width: 120px;
  color: #888;
}

.news-title {
  font-size: 16px;
  font-weight: 400;
}

.news-item .news-title a {
  text-decoration: underline;
  transition: 0.3s linear;
}

.news-title a:hover {
  text-decoration: none;
}

/* contact-form */
.custom_form {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 1140px;
  margin: 0 auto;
  gap: 1px;
}

.custom_form_list {
  display: grid;
  grid-template-columns: clamp(200px, 28vw, 328px) 1fr;
  align-items: stretch;
  gap: 0 20px;
}

.custom_form_list>div {
  padding: 10px;
}

.custom_form_list div:first-child {
  color: #fff;
  background: #000033;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.custom_form_list div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custom_form_list div:last-child .wpcf7-list-item.first {
  margin: 0;
}

.custom_form_list.address div:last-child input:not([name="your-addnum"]) {
  margin-bottom: 12px;
}

.custom_form_list div:last-child input:not([type="checkbox"]),
.custom_form_list div:last-child textarea {
  width: 100%;
  height: 41px;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 16px;
}

.custom_form_list div:last-child textarea {
  height: 330px;
}

.custom_form_list div:last-child input::placeholder,
.custom_form_list div:last-child textarea::placeholder {
  color: #ddd;
}

.custom_form_submit {
  text-align: center;
  margin-top: 30px;
}

.custom_form_submit input {
  width: 250px;
  margin-top: 30px;
  padding: 15px;
  background: #000033;
  color: #fff;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.custom_form_submit .wpcf7-spinner {
  position: absolute;
}

body main .privacy-policy-scroll {
  position: relative;
}

.privacy-policy-scroll::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, transparent, #fff);
}

.privacy-policy-scroll-inner {
  height: 400px;
  overflow-y: scroll;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .custom_form_list {
    grid-template-columns: 1fr;
  }

  .custom_form_list>div {
    padding: 15px 0;
  }

  .custom_form_list div:first-child {
    padding: 10px;
  }
}

/* Footer */
#footer {
  background: #000033;
  color: #fff;
  padding: 60px 0 20px;
}

/* SP Footer Navigation */
.sp-footer-icons-container {
  display: none;
}

@media (max-width: 1024px) {
  .scroll_top {
    display: none;
  }

  .sp-footer-icons-container {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000033;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
  }

  .sp-footer-icons-container a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.7);
  }

  .sp-footer-icons-container a:last-child {
    border-right: none;
  }

  .sp-footer-icons-container a i {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .sp-footer-icons-container a span {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
  }

  /* Adjust body padding so content isn't hidden behind the bar */
  body {
    padding-bottom: 54px;
  }
}

.scroll_top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s linear, visibility 0.3s linear;
  z-index: 1000;
}

.scroll_top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll_top:hover {
  opacity: 0.8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-inner_column.info .logo img {
  width: auto;
  height: 61px;
  margin-bottom: 20px;
}

.footer-info_address {
  margin-bottom: 20px;
  line-height: 36px;
}

.footer-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-btn a {
  padding: 10px 30px;
  font-size: 16px;
  transition: 0.3s linear;
}

.footer-btn a:hover {
  opacity: 0.8;
}

.footer-btn .contact {
  background: #fff;
  color: #000033;
}

.footer-btn .insta {
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.footer-btn .insta img {
  width: 18px;
  height: auto;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 10px 100px;
}

.footer-nav ul li {
  position: relative;
  padding-left: 15px;
}

.footer-nav ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.footer-nav ul li a {
  text-decoration: underline;
}

.copyright {
  text-align: right;
  margin-top: 60px;
  font-size: 12px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .business-intro-inner {
    flex-direction: column;
  }

  .hero {
    height: 60vh;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
  }

  .footer-inner_column.info .logo img {
    margin: 0 auto;
  }

  .footer-info_address {
    text-align: center;
  }

  .copyright {
    text-align: center;
  }
}