@charset "utf-8";

/* ================================
   モノトーンクールデザイン - Bootstrap5 対応
   ================================ */

:root {
  --primary-black: #121212;
  --secondary-black: #1a1a1a;
  --dark-gray: #2a2a2a;
  --medium-gray: #404040;
  --light-gray: #606060;
  --text-gray: #b0b0b0;
  --white: #ffffff;
  --accent-cyan: #00d4ff;
  --accent-purple: #8b5cf6;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --danger-red: #ef4444;
}

/* Bootstrap text alignment utilities override */
.text-start {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

/* Bootstrap text color overrides */
.text-muted {
  color: #c0c0c0 !important;
}

.navbar-brand .text-muted {
  color: #d0d0d0 !important;
}

/* General text improvements */
p,
li,
span,
div {
  color: #d0d0d0;
}

.text-light {
  color: #e0e0e0 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Roboto", sans-serif;
  background-color: var(--primary-black);
  color: #d0d0d0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

/* Bootstrap grid improvements */
.row {
  margin-left: 0;
  margin-right: 0;
}

.col-lg-3,
.col-lg-9 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Ensure proper containment */
.col-lg-3 {
  word-wrap: break-word;
  position: relative;
}

.col-lg-9 {
  word-wrap: break-word;
  position: relative;
}

/* Hide any content that might be leaking */
.row > * {
  box-sizing: border-box;
}

/* Text containment */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Layout clearfix for floating issues */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* Bootstrap grid system reinforcement */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-3 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 25%;
  max-width: 25%;
}

.col-lg-9 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 75%;
  max-width: 75%;
}

@media (max-width: 991.98px) {
  .col-lg-3,
  .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Text color improvements for content areas */
.card-modern p,
.card-modern li,
section p,
section li {
  color: #d0d0d0 !important;
}

/* ================================
   Typography
   ================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.75rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* ================================
   Utility Classes
   ================================ */

.w0 {
  width: 0px !important;
}
.w100 {
  width: 100% !important;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-black),
    var(--secondary-black)
  );
}

.bg-gradient-card {
  background: linear-gradient(145deg, var(--secondary-black), var(--dark-gray));
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.border-gradient {
  border: 1px solid transparent;
  background: linear-gradient(var(--secondary-black), var(--secondary-black))
      padding-box,
    linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) border-box;
}

/* ================================
   Components
   ================================ */

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.card-modern {
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.card-modern:hover {
  transform: translateY(-10px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
  min-width: 60px;
  min-height: 60px;
}

/* Left-aligned content adjustments */
.text-start .icon-box {
  margin-right: 0;
  margin-left: 0;
}

/* Ensure proper alignment for buttons in left-aligned sections */
.text-start .btn {
  display: inline-block;
}

.text-start .d-flex {
  justify-content: flex-start;
}

/* ================================
   Legacy Support
   ================================ */

/* ================================
   Legacy Support
   ================================ */

.prog_title {
  font-size: 20px;
  color: var(--white);
  font-weight: 900;
}

/* ================================
   Navigation Enhancements
   ================================ */

.navbar {
  min-height: 80px;
  padding: 0.75rem 0;
  z-index: 1030;
}

.navbar .container {
  min-height: 60px;
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0.5rem 0;
  display: flex !important;
  align-items: center !important;
  height: auto;
}

.navbar-brand .icon-box {
  width: 45px;
  height: 45px;
  margin-bottom: 0 !important;
  flex-shrink: 0;
  min-width: 45px;
  min-height: 45px;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h5 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0;
}

.brand-text small {
  font-size: 0.85rem;
  line-height: 1;
  margin: 0;
  color: #d0d0d0 !important;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .dropdown {
  z-index: 1060;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link:hover {
  background-color: var(--dark-gray);
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
}

.navbar-scrolled {
  background: rgba(18, 18, 18, 0.95) !important;
  backdrop-filter: blur(10px);
  min-height: 70px;
}

.dropdown-menu {
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
  z-index: 1060 !important;
  position: absolute !important;
}

.dropdown-item {
  font-size: 0.95rem;
  border-radius: 8px;
  margin: 0.25rem 0.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--dark-gray);
  color: var(--accent-cyan) !important;
  transform: translateX(5px);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar {
    min-height: 70px;
  }

  .navbar-brand {
    padding: 0.25rem 0;
  }

  .navbar-brand .icon-box {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
  }

  .brand-text h5 {
    font-size: 1.2rem;
  }
  .brand-text small {
    font-size: 0.75rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
  }

  .navbar-collapse {
    background: var(--secondary-black);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--dark-gray);
  }

  .btn-primary-custom {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .navbar {
    min-height: 60px;
    padding: 0.5rem 0;
  }

  .navbar-brand {
    padding: 0.25rem 0;
  }

  .navbar-brand .icon-box {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
  }

  .brand-text h5 {
    font-size: 1rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .btn-primary-custom {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* ================================
   Hero Section
   ================================ */

.hero-section {
  min-height: 55vh;
  background: linear-gradient(
    135deg,
    var(--primary-black) 0%,
    var(--secondary-black) 50%,
    var(--dark-gray) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.code-animation {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  animation: fadeInUp 1s ease-out;
}

.code-line {
  opacity: 0;
  animation: typewriter 0.5s ease-out forwards;
  color: var(--text-gray);
}

.code-line .text-muted {
  color: #c0c0c0 !important;
}

.code-line:nth-child(1) {
  animation-delay: 0.5s;
}
.code-line:nth-child(2) {
  animation-delay: 1s;
}
.code-line:nth-child(3) {
  animation-delay: 1.5s;
}
.code-line:nth-child(4) {
  animation-delay: 2s;
}

/* ================================
   Sidebar Enhancements
   ================================ */

.hover-bg-dark:hover {
  background: var(--dark-gray) !important;
  border-radius: 5px;
  transform: translateX(5px);
  transition: all 0.3s ease;
}

.program-menu h6 {
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 0.5rem;
}

/* ================================
   Responsive Utilities
   ================================ */

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding-top: 100px !important;
  }

  h1.display-4 {
    font-size: 2.5rem;
  }

  .card-modern {
    margin-bottom: 1rem;
  }

  .icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0 !important;
  }

  h1.display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ================================
   Animation Keyframes
   ================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typewriter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  }
}

/* ================================
   Additional Utility Classes
   ================================ */

.min-vh-50 {
  min-height: 50vh;
}

.text-accent-cyan {
  color: var(--accent-cyan) !important;
}

.text-accent-purple {
  color: var(--accent-purple) !important;
}

.bg-dark-custom {
  background-color: var(--secondary-black) !important;
}

.border-accent {
  border-color: var(--accent-cyan) !important;
}

.shadow-modern {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ================================
   Legacy and Form Styles
   ================================ */

.sub_title {
  margin-top: 2rem !important;
}

.ul_jisage {
  text-indent: 2em;
}

.jisage {
  text-indent: -2em;
  padding-left: 4em;
  margin-bottom: 0.5rem;
}

.jisage2 {
  text-indent: 0em;
  padding-left: 2em;
  margin-bottom: 0.5rem;
}

.emphasis {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

.emphasis2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-purple);
}

.txt_blue {
  color: var(--accent-cyan);
}

textarea {
  height: 200px;
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  color: var(--text-gray);
  border-radius: 8px;
}

.error {
  color: var(--danger-red);
  font-size: 0.9rem;
}

.btn_box {
  display: flex;
  gap: 1rem;
}

.breadcrumb {
  margin-bottom: 0.5rem;
  background: var(--secondary-black);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-gray);
}

.screen_shot {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--medium-gray);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ画像のコンテナ調整 */
@media (max-width: 768px) {
  .screen_shot {
    max-width: 100%;
    border-radius: 6px;
  }

  /* スクリーンショットセクションのパディング調整 */
  .card-modern {
    padding: 1rem !important;
  }
}

.demo {
  margin-left: 2rem;
  margin-right: 2rem;
}

/* ================================
   Table Styles for Forms
   ================================ */

.table_design {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  background: var(--secondary-black);
}

.table_design th,
.table_design td {
  text-align: left;
  border-bottom: 2px solid var(--dark-gray);
  padding: 0.5em;
  color: var(--text-gray);
}

.table_design th {
  border-bottom: 2px solid var(--accent-cyan);
  font-weight: bold;
  min-width: 4em;
  color: var(--white);
  background: var(--dark-gray);
}

/* ================================
   Contact Table Styles
   ================================ */

.contact-table {
  width: 100%;
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  border-radius: 8px;
}

.contact-table th,
.contact-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--dark-gray);
  color: var(--text-gray);
}

.contact-table th {
  background: var(--dark-gray);
  color: var(--white);
  font-weight: 600;
}

/* ================================
   Form Controls
   ================================ */

.form-control {
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  color: var(--text-gray);
  border-radius: 8px;
}

.form-control:focus {
  background: var(--secondary-black);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
  color: var(--white);
}

.form-select {
  background: var(--secondary-black);
  border: 1px solid var(--dark-gray);
  color: var(--text-gray);
}

.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.form-label {
  color: var(--white);
  font-weight: 500;
}

/* ================================
   Custom Radio Buttons
   ================================ */

.custom-radio .form-check-input {
  background-color: var(--secondary-black);
  border: 2px solid var(--dark-gray);
  width: 1.2em;
  height: 1.2em;
}

.custom-radio .form-check-input:checked {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.custom-radio .form-check-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.custom-radio .form-check-label {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.custom-radio .form-check-label:hover {
  background-color: var(--dark-gray);
  border-color: var(--accent-cyan);
}

.custom-radio .form-check-input:checked + .form-check-label {
  color: var(--white);
  background-color: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
}

/* ================================
   Additional Animation Classes
   ================================ */

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Loading States
   ================================ */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-modern {
  width: 40px;
  height: 40px;
  border: 4px solid var(--dark-gray);
  border-top: 4px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.sub_title {
  margin-top: 2rem !important;
}
.ul_jisage {
  text-indent: 2em;
}
.jisage {
  text-indent: -2em;
  padding-left: 4em;
  margin-bottom: 0.5rem;
}
.jisage2 {
  text-indent: 0em;
  padding-left: 2em;
  margin-bottom: 0.5rem;
}
.andmore {
  margin-top: 0.5rem;
  width: 100%;
  text-align: right;
}
.emphasis {
  font-size: 1.1rem;
  font-weight: 900;
}
.emphasis2 {
  font-size: 1.1rem;
  font-weight: 900;
}
.txt_blue {
  color: blue;
}

textarea {
  height: 200px;
}

.error {
  color: red;
  font-size: 0.9rem;
}
.btn_box {
  display: -webkit-flex;
  display: flex;
}
i.icon {
  width: auto !important;
}
.breadcrumb {
  margin-bottom: 0.5rem;
}
.screen_shot {
  height: 200px;
}
.demo {
  margin-left: 2rem;
  margin-right: 2rem;
}

/*******************************/
/** 確認画面のカスタマイズ        **/
/*******************************/
/* 入力内容の表示幅 */
.w100 {
  width: 100% !important;
}

/* メッセージタイトルのフォントサイズ */
.swal2-title {
  font-size: 16px !important;
}

/*  送信ボタンのフォントサイズ */
.swal2-confirm {
  font-size: 14px !important;
}

/*  キャンセルボタンのフォントサイズ */
.swal2-cancel {
  font-size: 14px !important;
}

/* 入力データを表示するテーブルデザイン */
.table_design {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.table_design th,
.table_design td {
  text-align: left;
  border-bottom: 2px solid #c1c7c6;
  padding: 0.5em;
}

.table_design th {
  border-bottom: 2px solid #4d9bc1;
  font-weight: bold;
  min-width: 4em;
}

ul {
  list-style: none;
}

a {
  text-decoration: underline solid #c9c9c9;
}
a:hover {
  text-decoration: underline solid;
}

h2,
h3,
li {
  color: #585858;
  font-family: "Roboto", sans-serif;
}
h1 {
  font-size: 16px;
  color: #444444;
  font-family: "Roboto", sans-serif;
}
h2 {
  font-size: 36px;
  line-height: 150%;
  color: #fff;
}
h3 {
  font-size: 14px;
}
h4 {
  font-size: 16px;
  text-align: left;
  padding-left: 10%;
  color: #585858;
}
p {
  font-size: 14px;
  color: #585858;
  font-family: "Roboto", sans-serif;
}
.title {
  font-size: 14px;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

body {
  width: 100%; /*ページ全体の幅は100%と指定する*/
  text-align: left; /*ページ全体を左揃えにする*/
}

/*ファーストビュー*/
header {
  margin: 0 auto;
  position: sticky; /*固定する*/
  position: -webkit-sticky; /*Safari用ベンダープレフィックス*/
  top: 0; /*ブラウザの上からの距離はゼロ*/
  z-index: 9000;
  background-color: #fff;
  opacity: 90%;
}
nav {
  height: 35px;
  display: flex;
  justify-content: space-between;
  margin: 1% 10% 0 5%;
  margin-bottom: 0.5%;
  gap: 30%;
}
.logo {
  display: flex;
  text-align: left;
  min-width: 280px;
}
.menu ul {
  display: flex;
  gap: 7%;
  color: #585858;
  font-size: 14px;
  margin-top: 5%;
}
/*グリーンのトップ画像部分*/
.header_image {
  margin: 0 auto;
  width: 100%;
  display: flex;
}
/*グリーンのトップ画像部分(色変更可能）*/
.orange {
  width: 100%;
  background-color: #39bb9f;
  display: flex;
  height: 120px;
}
.left {
  width: 45%;
  padding: 2% 0 2% 5%;
  text-align: left;
}

/*↓説明文テキスト*/
.freeweb {
  text-align: center;
  padding: 5% 0 5% 5%;
}

.story {
  margin-top: 80%;
  width: 35px;
}

/*セクション　contents*/
.contents {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-top: 2%;
}

/*↓ここから左カラム*/
.contents .service {
  width: 18%;
  margin-left: 3%;
}
/*メニューボタン*/
.contents .service img {
  margin: 4% 3% 5% 3%;
}
.contents .service ul {
  font-size: 12px;
  text-align: left;
  /*margin: 2% 0 3% 20%;*/
  line-height: 15px;
  /*list-style: disc;*/
  display: inline;
}
.contents .service li {
  margin-bottom: 0.2rem;
}

/*↓ここから右カラム*/
.contents .file {
  width: 73%;
  padding: 0.5% 4% 2% 0;
  text-align: left;
}
.contents .file .setsumei {
  /*手の写真画像背景*/
  background-image: url(../img/hand.jpg);
  background-repeat: no-repeat;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*↓ここからコンテンツ名リスト*/
.contents .file .filebox {
  margin-top: 3%;
  display: flex;
}
.contents .file .filebox .box {
  margin: 0 auto;
  padding: 1%;
  width: 45%;
  border-bottom: 1px solid gray;
  /*display: flex;*/
}
.contents .file .filebox .box img {
  margin-right: 2%;
}
.contents .file .filebox .box h3 {
  font-size: 16px;
  margin-bottom: 2%;
}
.contents .file .filebox .text {
  flex-direction: column;
}

/*フッター*/
footer {
  width: 100%;
  min-height: 60px;
  background-color: var(--secondary-black);
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--dark-gray);
  flex-shrink: 0;
  margin-top: auto;
}
footer h3 {
  color: #d0d0d0;
  font-size: 14px;
  margin: 0;
}

/*ここからレスポンシブ*/

img,
video,
object {
  max-width: 100%;
  height: auto;
  width: 100%\9; /* IE8のみ適用 */
}

/*レイアウト崩れ防止*/
@media (max-width: 700px) {
  nav {
    gap: 10px;
  }
  nav li {
    font-size: 10px;
  }
  .logo {
    gap: 3px;
  }
  .logo h1 {
    font-size: 12px;
  }
  .logo img {
    max-width: 70%;
  }
  .orange {
    border-radius: 15px;
  }
  .story {
    margin-top: 90%;
  }
  .circles {
    margin: 0 3% 0 3%;
  }

  .ourworks {
    margin: 0 3% 0 3%;
  }
  .ourworks .box .works_top {
    flex-direction: column;
    line-height: 150%;
  }
  .ourworks .box .works {
    flex-direction: column;
    line-height: 150%;
  }
  .aboutus {
    margin: 0 3% 0 3%;
  }
  .group .box {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 30px;
  }
  .group .box .box_small {
    width: 100%;
    margin: 0 20% 0 20%;
    padding: 0 5% 0 5%;
  }
  .mini {
    text-align: center;
  }
  .group .box .box_small img {
    width: 200px;
  }
  .twins {
    flex-direction: column;
    gap: 50px;
  }
  .twins .box {
    width: 100%;
  }
  .twins .box p {
    margin: 0 5% 0 5%;
  }
  .voice {
    height: 830px;
  }
  .voice .box {
    flex-direction: column;
    align-items: center;
  }
  .voice .box .left {
    width: 70%;
  }
  .voice .box .right {
    width: 90%;
  }
  .small {
    margin: 0;
  }

  .contact-table {
    width: 90%;
  }
}

/* Icon alignment fixes */
.bg-gradient-card h4,
.bg-gradient-card h5,
.card-modern h4 {
  padding-left: 0 !important;
  text-align: left !important;
}

/* Features section h5 should allow center alignment */
.card-modern h5:not(.text-center) {
  padding-left: 0 !important;
  text-align: left !important;
}

/* Policy page specific h4 fixes */
main h4,
main h5 {
  padding-left: 0 !important;
}

.bg-gradient-card h4 i,
.bg-gradient-card h5 i {
  flex-shrink: 0 !important;
  width: 24px !important;
  text-align: left !important;
  margin-right: 8px !important;
  display: inline-block !important;
  min-width: 24px !important;
}

.list-unstyled li i {
  flex-shrink: 0 !important;
  width: 24px !important;
  text-align: left !important;
  margin-right: 8px !important;
  display: inline-block !important;
  min-width: 24px !important;
}

.icon-fixed {
  flex-shrink: 0 !important;
  width: 24px !important;
  text-align: left !important;
  margin-right: 8px !important;
  display: inline-block !important;
  min-width: 24px !important;
}

/* メインコンテンツエリアの余白調整 */
main section:last-child {
  margin-bottom: 1rem !important;
  padding-bottom: 2rem !important;
}

/* Features セクションの余白調整 */
.py-3 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* カードの余白調整 */
.card-modern {
  margin-bottom: 1rem !important;
}

/* ヒーローセクションの高さ調整 */
.min-vh-25 {
  min-height: 25vh !important;
}

/* プログラムセクションの余白調整 */
#programs.py-2 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* メインコンテンツの余白調整 - レスポンシブ対応 */
.main-content {
  margin-top: 20px;
}

.hero-spacing {
  margin-top: 88px;
}

@media (max-width: 767.98px) {
  .main-content {
    margin-top: 10px;
  }

  .hero-spacing {
    margin-top: 70px;
  }

  /* スマホ版でのヒーローセクションの改善 */
  .hero-section {
    padding: 2rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 1.8rem !important;
  }

  .hero-section .lead {
    font-size: 1rem !important;
  }

  /* ボタンの余白改善 */
  .hero-section .d-flex.gap-3 {
    margin-bottom: 1rem;
  }

  /* プログラムセクションとの余白改善 */
  #programs {
    margin-top: 1rem !important;
  }
}
