@charset "utf-8";

:root {
  --primary: #003c8d;
  --primary-light: #4794db;
  --primary-lighter: #3fa3c9;
  --accent: #2655F7;
  --text-dark: #333;
  --text: #666;
  --text-light: #999;
  --bg: #fff;
  --bg-gray: #ececec;
  --bg-dark: #202020;
  --border: #ccc;
  --border-light: #e9e9e9;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Osaka, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.4;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  border-top: 10px solid var(--primary);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 15px 0;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
}

.brand-name {
  display: none !important;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.3;
}

.brand-tagline {
  display: none !important;
  font-size: 13px;
  color: var(--primary);
  margin-top: 4px;
}

/* ===== Top Navigation (Desktop) ===== */
.main-nav {
  display: flex !important;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  float: none !important;
  position: static !important;
  width: auto !important;
}

.main-nav ul {
  display: flex !important;
  gap: 0;
  flex-direction: row !important;
  list-style: none;
  margin: 0;
  padding: 0;
  float: none !important;
  width: auto !important;
}

.main-nav li {
  position: relative;
  list-style: none;
  float: none !important;
  margin: 0;
  padding: 0;
  width: auto !important;
  height: auto !important;
  text-align: left !important;
  background: none !important;
  line-height: normal !important;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.5;
  height: auto !important;
  width: auto !important;
  text-align: left !important;
  background: none !important;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a.cur {
  background: var(--primary-light) !important;
  color: #fff;
}

.main-nav a.active,
.main-nav a.cur {
  background: var(--primary) !important;
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero / Slider Section ===== */
.hero-section {
  width: 100%;
  background: var(--bg-gray);
  padding: 20px 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 15px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.hero-sidebar {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-nav {
  display: flex;
  flex-direction: column;
  float: none !important;
  position: static !important;
  width: 100% !important;
}

.hero-nav a {
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  float: none !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.hero-nav a:hover,
.hero-nav a.active {
  background: var(--primary-light);
  color: #fff;
}

.hero-nav a.active {
  background: var(--primary);
  color: #fff;
}

.hero-slider {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
  width: 100%;
}

.hero-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.flexslider {
  margin: 0;
  border: none;
  border-radius: var(--radius);
  width: 100%;
}

.flexslider .slides img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
}

.flexslider .slides > li {
  position: relative;
}

/* ===== News Ticker ===== */
.news-ticker {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}

.news-ticker-label {
  font-weight: bold;
  color: var(--primary);
  flex-shrink: 0;
}

.news-ticker-content {
  flex: 1;
  overflow: hidden;
  height: 24px;
  position: relative;
}

.news-ticker-content ul {
  position: absolute;
  width: 100%;
}

.news-ticker-content li {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Main Content ===== */
.main-content {
  background: var(--bg-gray);
  padding: 30px 0;
}

.section-title {
  background: var(--primary-lighter);
  color: #fff;
  padding: 15px 25px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 20px;
}

.section-title h2 {
  color: #fff;
  font-size: 20px;
}

/* ===== Three Business Columns ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.business-card {
  background: var(--bg);
  border-radius: 13px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.business-card h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.business-card h2 a {
  color: var(--text-dark);
}

.business-card h2 a:hover {
  color: var(--accent);
}

.business-card p {
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.8;
}

.business-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 8px;
}

/* ===== Content Grid ===== */
.content-grid {
  display: grid;
  grid-template-columns: 32% 66%;
  gap: 2%;
  margin-bottom: 30px;
}

.content-box {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.box-heading {
  background: var(--primary) url('../images/boxtitle.png') no-repeat left center;
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  padding: 12px 15px 12px 50px;
}

.box-heading a {
  color: #fff;
}

.box-heading a:hover {
  color: #cce;
}

.box-body {
  padding: 15px;
  line-height: 2;
}

/* News list */
.news-list {
  max-height: 550px;
  overflow-y: auto;
  padding-right: 5px;
}

.news-list::-webkit-scrollbar {
  width: 6px;
}

.news-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.news-list li {
  padding: 8px 0 6px 18px;
  line-height: 1.6;
  background: url('../images/b-marker.png') no-repeat 0 14px;
  border-bottom: 1px dotted var(--border-light);
  font-size: 13px;
}

.news-list li:last-child {
  border-bottom: none;
}

/* Two column sub grid */
.sub-grid {
  display: grid;
  grid-template-columns: 48.5% 48.5%;
  gap: 3%;
}

.sub-box {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* Product list with images */
.product-list {
  padding: 10px 15px;
}

.product-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px dotted var(--border-light);
}

.product-list li:first-child {
  border-top: none;
}

.product-list .product-thumb {
  flex-shrink: 0;
}

.product-list .product-thumb img {
  width: 60px;
  height: 40px;
  border: 1px solid var(--border-light);
  padding: 2px;
  border-radius: 4px;
}

.product-list .product-name {
  flex: 1;
  font-size: 13px;
}

/* Simple link list */
.link-list {
  padding: 10px 15px;
}

.link-list li {
  padding: 8px 0 6px 18px;
  line-height: 1.6;
  background: url('../images/b-marker.png') no-repeat 0 14px;
  font-size: 13px;
}

/* Video */
.video-wrapper {
  padding: 15px;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===== Inner Page Layout ===== */
.inner-page {
  background: var(--bg-gray);
  padding: 30px 0;
}

.page-banner {
  width: 100%;
  margin-bottom: 30px;
}

.page-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.inner-layout {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 30px !important;
  align-items: start !important;
  width: 100% !important;
}

.inner-layout .content-area {
  display: block !important;
  width: 100% !important;
  float: none !important;
  min-width: 0;
  overflow: hidden;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
  clear: both;
  width: 100%;
  box-sizing: border-box;
  float: none !important;
  position: static !important;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 120px;
  display: block !important;
  width: 100% !important;
  float: none !important;
}

.sidebar-menu {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.sidebar-menu h2 {
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  line-height: 1.5;
}

.sidebar-menu h2 a {
  color: var(--text-dark);
  text-decoration: none;
}

.sidebar-menu h3 {
  font-size: 16px;
  padding: 8px 0 8px 20px;
  margin: 5px 0;
  background: url('../images/marker.gif') no-repeat left center;
  line-height: 1.6;
  font-weight: normal;
}

.sidebar-menu h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.sidebar-menu h3 a:hover {
  color: var(--accent);
}

.sidebar-menu h3 a.cur {
  color: var(--primary);
  font-weight: bold;
  background: #e8eef7;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin-left: -20px;
  border-radius: 0 4px 4px 0;
  display: block;
}

.sidebar-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  list-style: none;
  margin: 0;
  padding: 6px 0 6px 20px;
  line-height: 1.6;
  font-size: 13px;
}

.sidebar-menu li a {
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-menu li a.cur,
.sidebar-menu li a.active {
  background: #e8eef7;
  color: var(--primary);
  font-weight: bold;
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
  margin-left: -20px;
  padding-left: 26px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page content */
.page-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.page-content::after {
  content: "";
  display: table;
  clear: both;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.page-content table {
  max-width: 100%;
  width: auto !important;
  overflow-x: auto;
  display: block;
}

.page-content .left,
.page-content .right {
  max-width: 100%;
  float: none !important;
}

@media (min-width: 769px) {
  .page-content .left {
    float: left !important;
    max-width: 50%;
  }
  .page-content .right {
    float: right !important;
    max-width: 50%;
  }
}

.page-content h1 {
  font-size: 22px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
}

.page-content h2 {
  font-size: 18px;
  margin: 25px 0 15px;
  padding-left: 15px;
  border-left: 4px solid var(--primary);
}

.page-content h3 {
  font-size: 16px;
  margin: 20px 0 10px;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.page-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 10px 15px;
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background: #f5f5f5;
  font-weight: bold;
  width: 150px;
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.product-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card-header {
  background: var(--primary-lighter);
  color: #fff;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: bold;
}

.product-card-body {
  padding: 15px;
}

.product-card-body img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

.product-card-body p {
  font-size: 13px;
  line-height: 1.7;
}

.product-card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 15px 0;
}

.footer-top {
  background: #dad9d9;
  padding: 30px 0;
  color: var(--text-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.footer-col ul li {
  padding: 6px 0 6px 15px;
  background: url('../images/b-marker.png') no-repeat 0 12px;
  font-size: 13px;
}

.footer-col ul li a {
  color: var(--text-dark);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 8px;
}

.footer-nav a {
  color: #fff;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--primary-light);
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding-top: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  
  .hero-wrapper {
    grid-template-columns: 200px 1fr;
  }
  
  .business-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  .brand {
    gap: 10px;
  }
  
  .brand-logo {
    height: 40px;
  }
  
  .brand-name {
    font-size: 14px;
  }
  
  .brand-tagline {
    font-size: 11px;
  }
  
  .menu-toggle {
    display: flex !important;
  }
  
  .main-nav {
    display: none !important;
    width: 100%;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }
  
  .main-nav.open {
    display: block !important;
  }
  
  .main-nav ul {
    flex-direction: column !important;
    gap: 5px;
    width: 100%;
  }
  
  .main-nav a {
    padding: 12px 15px;
    text-align: center;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .hero-sidebar {
    order: 2;
  }
  
  .hero-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .hero-nav a {
    padding: 12px 10px;
    font-size: 13px;
    border-radius: 4px;
    border-bottom: none;
  }
  
  .hero-slider {
    order: 1;
  }
  
  .business-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sub-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .inner-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .sidebar {
    position: static;
    order: 2;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .news-ticker {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .news-ticker-content {
    width: 100%;
  }
  
  .page-content {
    padding: 20px 15px;
  }
  
  .page-content th {
    width: 100px;
    font-size: 13px;
  }
  
  .page-content th,
  .page-content td {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .section-title {
    font-size: 17px;
    padding: 12px 20px;
  }
  
  .section-title h2 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav {
    gap: 10px;
    font-size: 12px;
  }

  .main-content {
    padding: 20px 0;
  }

  .business-card {
    padding: 15px;
  }

  .business-card h2 {
    font-size: 16px;
  }
}

/* ====================================================================
   Legacy Content Compatibility Layer
   覆盖子页面内联样式与 style.css/user.css 的固定宽度/字体规则
   解决 H5 字体大小不一致与页面变形问题
   ==================================================================== */

/* 1. 字体统一 —— 覆盖内联 font-family: Arial 与乱码日文字体名 */
.page-content,
.page-content div,
.page-content p,
.page-content span,
.page-content li,
.page-content td,
.page-content font {
  font-family: inherit !important;
}

/* 正文文字字号/行高统一继承 .page-content，消除 12px/13px/15.6px 混杂 */
.page-content p,
.page-content div,
.page-content span,
.page-content li,
.page-content td {
  font-size: inherit !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}

/* h5 在子页面被用作小标题，统一样式 */
.page-content h5 {
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  margin: 18px 0 8px !important;
  padding: 0 !important;
  background: none !important;
  border-bottom: 2px solid var(--primary-lighter) !important;
  color: var(--primary) !important;
}

/* h4 统一 */
.page-content h4 {
  font-size: 16px !important;
  margin: 15px 0 8px !important;
  color: var(--text-dark) !important;
}

/* 2. 页面标题栏 —— 覆盖 #body h1 的固定背景图与高度 */
.pagetitle_bar {
  height: auto !important;
  min-height: 44px;
  padding: 10px 15px !important;
  background: #f5f5f5 !important;
  border-left: 4px solid var(--accent) !important;
  border-top: 1px solid var(--border-light) !important;
  border-radius: 4px;
  margin-bottom: 15px !important;
  box-sizing: border-box;
}

.page-content h1 {
  font-size: 20px !important;
  color: var(--text-dark) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  line-height: 1.4 !important;
  border: none !important;
}

/* 3. 内容区容器响应式 —— 覆盖 style.css/user.css 固定宽度 */
#body,
#body_other,
#content,
#cci_info,
#taos_info,
#taosbow,
#goods,
#inquiry,
#medical,
#healthful,
#map_menu,
#chaos,
#system,
#cti,
#common,
#submaincontent,
#global,
.center,
.entry,
.table_top_line,
.table_top,
.table_bottom {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-image: none !important;
}

/* 4. 表格自适应 —— 横向滚动，禁止 nowrap */
.page-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  width: 100% !important;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.page-content td,
.page-content th {
  white-space: normal !important;
  word-wrap: break-word;
  padding: 8px 12px !important;
  border: 1px solid var(--border) !important;
  font-size: inherit !important;
  vertical-align: top !important;
}

.page-content td[nowrap],
.page-content th[nowrap] {
  white-space: normal !important;
}

.page-content td.item {
  background: #f5f5f5 !important;
  font-weight: bold !important;
  white-space: normal !important;
  padding-left: 12px !important;
}

/* 5. 图片自适应 —— 覆盖固定 width/height 属性 */
.page-content img {
  max-width: 100% !important;
  height: auto !important;
}

/* 6. 旧版浮动布局 —— 移动端堆叠 */
.one_half,
.one_half_two,
.one_third,
.two_third,
.one_fourth,
.three_fourth,
.one_fifth,
.two_fifth,
.three_fifth,
.four_fifth,
.one_sixth,
.five_sixth {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  float: none !important;
  box-sizing: border-box;
}

/* 7. 旧版列表间距 */
.inlineblock {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.inlineblock li {
  margin: 12px 0 !important;
  padding: 0 !important;
  clear: both !important;
}

.inlineblock li img {
  max-width: 100% !important;
  height: auto !important;
}

/* 8. 表单输入框响应式 */
.page-content input[type="text"],
.page-content input[type="email"],
.page-content textarea {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.page-content label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-content input[type="button"],
.page-content input[type="submit"] {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.page-content input[type="button"]:hover,
.page-content input[type="submit"]:hover {
  background: var(--primary-light);
}

/* 9. 清除浮动 */
.clear,
.clearfix {
  clear: both !important;
}

/* 10. dt/dd 定义列表 */
.page-content dl {
  margin: 10px 0;
}

.page-content dt {
  font-weight: bold;
  margin-top: 8px;
  color: var(--text-dark);
}

.page-content dd {
  margin-left: 15px;
  margin-bottom: 5px;
}

/* 11. nomargin 列表 */
.page-content ul.nomargin {
  margin: 5px 0 !important;
  padding-left: 20px !important;
}

.page-content ul.nomargin li {
  list-style: disc !important;
  margin-bottom: 5px !important;
}

/* ===== Desktop: 恢复旧版多列布局 ===== */
@media (min-width: 769px) {
  .one_half,
  .one_half_two {
    width: 48.5% !important;
    float: left !important;
    margin-right: 3% !important;
  }

  .one_half.lastcols,
  .one_half.last,
  .one_half_two.last,
  .one_half_two.lastcols {
    margin-right: 0 !important;
  }

  .one_third {
    width: 32% !important;
    float: left !important;
    margin-right: 2% !important;
  }

  .one_third.lastcols,
  .one_third.last {
    margin-right: 0 !important;
  }

  .two_third {
    width: 66% !important;
    float: left !important;
  }

  .page-content input[type="text"],
  .page-content input[type="email"] {
    width: 80% !important;
  }
}

/* ===== H5 字号统一缩放 ===== */
@media (max-width: 768px) {
  .page-content {
    font-size: 14px !important;
    padding: 18px 15px !important;
    line-height: 1.7;
  }

  .page-content h1 {
    font-size: 18px !important;
  }

  .page-content h2 {
    font-size: 16px !important;
  }

  .page-content h3 {
    font-size: 15px !important;
  }

  .page-content h4 {
    font-size: 15px !important;
  }

  .page-content h5 {
    font-size: 14px !important;
  }

  .page-content td,
  .page-content th {
    padding: 6px 8px !important;
    font-size: 13px !important;
  }

  .pagetitle_bar {
    min-height: 40px;
    padding: 8px 12px !important;
  }
}

@media (max-width: 480px) {
  .page-content {
    font-size: 13px !important;
    padding: 15px 12px !important;
  }

  .page-content h1 {
    font-size: 17px !important;
  }

  .page-content h2 {
    font-size: 15px !important;
  }

  .page-content h3 {
    font-size: 14px !important;
  }
}

/* ===== お問い合わせ フォーム（contact/33.html） ===== */
.contact-form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 35px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.contact-form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-form-required {
  color: #e53e3e;
  margin-left: 4px;
  font-size: 13px;
  font-weight: normal;
}

.contact-form-input,
.contact-form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-sizing: border-box;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(71, 148, 219, 0.15);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.contact-form-submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.contact-form-submit {
  display: inline-block;
  padding: 12px 60px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  font-family: inherit;
}

.contact-form-submit:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 60, 141, 0.2);
}

.contact-form-submit:active {
  transform: translateY(0);
}

/* スマホ：余白調整 */
@media (max-width: 640px) {
  .contact-form {
    padding: 20px 16px;
  }

  .contact-form-submit {
    width: 100%;
    padding: 14px 20px;
  }
}
