/* ---- Base ---- */
:root{
  --primary: #0d2e86; /* セクションバーの青 */
  --primary-dark:#0a256c;
  --bg: #0f172a;      /* ページ背景(濃紺) */
  --panel: #e7e3e3;   /* ヒーロー&ダミーimg背景の薄グレー */
  --text: #111827;    /* 本文 */
  --white: #fff;
  --muted: #6b7280;
  --container: 1080px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container{
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* ---- Header ---- */
.site-header{
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}
.header-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
.logo{
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: .1em;
  color: #0a0a0a;
}
.global-nav{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-pill{
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s ease;
}
.nav-pill:hover{ background: var(--primary-dark); }

/* ---- Hero ---- */
.hero{
  background: var(--panel);
  color: #333;
}
.hero-inner{
  min-height: clamp(180px, 36vw, 360px);
  display: grid;
  place-items: center;
}
.hero-inner p{
  margin: 0;
  opacity: .8;
  letter-spacing: .05em;
}

/* ---- Section common ---- */
.section{
  background: var(--white);
}
.section + .section{ margin-top: 24px; }

.section-bar{
  background: var(--primary);
  color: var(--white);
}
.section-title{
  margin: 0;
  padding-block: 10px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 700;
}

/* ---- Services cards ---- */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 4vw, 28px) 0 28px;

  /* ここがポイント：固定の width/margin-left を撤去 */
  width: 100%;
  max-width: 720px;   /* 好みで 640〜900 くらい */
  margin: 0 auto;     /* 中央寄せ */
}

@media (max-width: 720px){
  .cards{
    max-width: 100%;
  }
}

.card{
  position: relative;
  padding: 0 0 8px;
  /* border-left: 3px solid #e5e7eb; 仕切り代わり */
}
.card:nth-child(1){ border-left: none; }
@media (max-width: 720px){
  .card{ border-left: none; border-top: 3px solid #f1f5f9; padding-top: 16px; }
  .card:first-child{ border-top: none; padding-top: 0; }
}
.img-box{
  background: var(--panel);
  display: grid;
  place-items: center;
  /* height: 150px; */
  border: 1px solid #d1d5db;
  color: #555;
  font-weight: 600;
  margin-bottom: 14px;
}
.card-title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.card-text{
  margin: 0;
  color: #374151;
  font-size: 13px;
}

/* ---- Vision ---- */
.vision-inner{
  padding: clamp(28px, 6vw, 56px) 0;
  display: grid;
  gap: 20px;
  place-items: center;
  text-align: center;
}
.vision-copy{
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: .06em;
}
.kakko{ font-size: 120%; }
.vision-text{
  color: #374151;
  font-size: 14px;
}

/* ---- Company ---- */
.company-grid{
  padding-block: 22px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}
@media (max-width: 900px){
  .company-grid{ grid-template-columns: 1fr; }
}
.company-table{
  margin: 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 12px;
}
.company-table .row{
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px dashed #e5e7eb;
}
.company-table .row:last-child{ border-bottom: none; }
.company-table dt{
  font-weight: 600;
  color: #111827;
}
.company-table dd{
  margin: 0;
  color: #334155;
}
.map-box {
  position: relative;
  width: 100%;
  height: 260px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ---- Footer ---- */
.site-footer{
  background: var(--white);
  border-top: 1px solid #e5e7eb;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 12px;
}
.tiny-link{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}
.tiny-link:hover{ color: #1f2937; border-bottom-color:#1f2937; }

/* =========================
   Contact (Form + Info + SNS)
   ========================= */
.contact-section{
  background: var(--white);
  padding: clamp(28px, 6vw, 56px) 0;
  border-top: 1px solid #e5e7eb;
}

.contact-box{
  width: min(100%, 1000px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(16px, 4vw, 40px);
  align-items: start;
  padding: 0 clamp(12px, 3vw, 24px);
}
@media (max-width: 900px){
  .contact-box{ grid-template-columns: 1fr; }
}

/* --- form --- */
.contact-form{
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  gap: 14px;
}

.contact-form label{
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,46,134,.12);
  background: #fff;
}

/* invalid (HTML5 required など) */
.contact-form :invalid{
  /* 視覚的ノイズを避けるためフォーカス時のみ赤枠にする */
}
.contact-form :invalid:focus{
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

/* submit */
.contact-form button[type="submit"]{
  justify-self: start;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, background .2s ease;
}
.contact-form button[type="submit"]:hover{
  filter: brightness(1.05);
}
.contact-form button[type="submit"]:active{
  transform: translateY(1px);
}
.contact-form button[disabled],
.contact-form button[aria-busy="true"]{
  opacity: .6;
  cursor: not-allowed;
}

/* --- info --- */
.contact-info{
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: clamp(16px, 3vw, 24px);
  color: #374151;
  font-size: 14px;
}
.contact-info a{
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}
.contact-info a:hover{
  filter: brightness(1.05);
}

/* --- social icons --- */
.social-icons{
  width: min(100%, 1000px);
  margin: 18px auto 0;
  padding: 0 clamp(12px, 3vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-icons a{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #d1d5db;
  background: #fff;
  text-decoration: none;
  color: #111827; /* FontAwesomeアイコン色 */
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-icons a:hover{
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* =========================
   Modal (success)
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;            /* デフォルト非表示 */
  place-items: center;
  background: rgba(17,24,39,.6); /* 黒半透明 */
  padding: 20px;
  z-index: 1000;
}
.modal.is-open{ display: grid; }

.modal-content{
  width: min(100%, 520px);
  background: #fff;
  color: #111827;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 22px;
  text-align: center;
  animation: pop .18s ease-out both;
}
@keyframes pop{
  from{ transform: scale(.96); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.modal-content p{
  margin: 0 0 .4em;
  line-height: 1.8;
}

.modal-close{
  margin-top: 12px;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.modal-close:hover{ filter: brightness(1.05); }

/* =========================
   Section title bar (optional)
   ========================= */
.contact-section .section-bar{
  background: var(--primary);
  color: #fff;
}

/* =========================
   Modal (Color matched)
   ========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(13, 46, 134, 0.5); /* 青系の透過背景 */
  justify-content: center;
  align-items: center;
  animation: fadeIn .2s ease-out;
}

.modal.show {
  display: flex;
}

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

.modal-content {
  background: #ffffff;                /* 白背景でコントラストを高める */
  border: 2px solid var(--primary);  /* ブランドカラー枠線 */
  border-radius: 10px;
  padding: 2em;
  text-align: center;
  max-width: 400px;
  width: 90%;
  color: #0f172a;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  animation: scaleIn .15s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content p {
  margin: 0.5em 0;
  font-size: 15px;
  color: #111827;
  line-height: 1.8;
}

.modal-close {
  margin-top: 1.2em;
  padding: 0.6em 2em;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.modal-close:hover {
  background: #103ba0;  /* 濃いめの青でhover */
}

.modal-close:active {
  transform: scale(0.98);
}


