
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic", "Meiryo", sans-serif;
  color: #0b1f3b;
  background: #f4f7fb;
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}
.heading-en {
  color: #e02424;
  font-size: 0.75em;
  margin-left: 0.4em;
  font-weight: 500;
}

.company-section .card h3 {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}


.section-title {
  display: inline-block;
  font-size: 1.7rem;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 3px solid #1f4f8f;
}
.section-lead {
  font-size: .95rem;
  color: #4a5879;
}
.text-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  background-color: #f9fbff;
  line-height: 1.8;
}

/* --- Card / Grid helpers --- */
.card{
  background:#ffffff;
  border:1px solid #e6ebf3;
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 30px rgba(0,0,0,0.06);
}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
  align-items: stretch;
}

@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

/* --- President's Message (match screenshot layout) --- */
.greeting-grid{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:28px;
  align-items: stretch;
  margin-top: 10px;
}



/* Ensure President message photo balances with text box */
.greeting-grid{
  align-items: stretch; /* make text and photo the same height */
}
.greeting-grid .photo-box img{
  flex:1;
  height:100%;
  object-fit:cover;
}
/* --- My Decision: balance text-card and photo-card --- */
.decision-grid{
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch; /* make both cards the same height */
}

.decision-grid .greeting-text{
  display:flex;
}

.decision-grid .greeting-text .text-box{
  flex:1;
}

.decision-grid .photo-box{
  height:100%;
  display:flex;
  flex-direction:column;
}

.decision-grid .photo-box img{
  flex:1;
  height:100%;
  object-fit:cover;
}

.greeting-text{ margin-top: 0; }

.photo-box{
  margin:0;
  background:#ffffff;
  border:1px solid #d0d7e2;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,0.06);
}

.photo-box img{
  width:100%;
  height:auto;
  display:block;
}

.photo-box figcaption{
  padding:10px 12px;
  text-align:center;
  font-weight:600;
  color:#1b2a4a;
  background:#ffffff;
}

@media (max-width: 900px){
  .greeting-grid{ grid-template-columns: 1fr; }
}

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

.table-outline th,
.table-outline td {
  padding: 6px 8px;
  vertical-align: top;
  border-bottom: 1px solid #e3e8f5;
}

.table-outline th {
  width: 24%;
  font-weight: 600;
  color: #1f4f8f;
  white-space: nowrap;
}

.table-outline td {
  width: 76%;
}




/* Header & nav */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  color: #1f4f8f;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.logo-area {
  display: flex;
  align-items: center;
}
.logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: #1f4f8f;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, filter .2s ease;
}


nav a:hover {
  background: rgba(31,79,143,0.10);
  color: #1f4f8f;
  box-shadow: 0 8px 22px rgba(31,79,143,0.22);
  transform: translateY(-1px);
  filter: brightness(1.02);
}

nav a:focus-visible {
  outline: none;
  background: rgba(31,79,143,0.10);
  box-shadow: 0 0 0 3px rgba(31,79,143,0.28), 0 8px 22px rgba(31,79,143,0.22);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(31,79,143,0.18);
}


/* Company dropdown nav */
.nav-has-sub {
  position: relative;
}
.nav-has-sub > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 4px 0 0;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.18);
  list-style: none;
  min-width: 160px;
  z-index: 20;
  display: none;
}
.nav-has-sub:hover > .nav-sub {
  display: block;
}
.nav-sub li + li {
  margin-top: 4px;
}
.nav-sub a {
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: underline;
}

.nav-sub a:hover {
  background: rgba(31,79,143,0.08);
}

.nav-instagram-link {
  padding: 0;
}
.nav-insta-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #1f4f8f;
  display: block;
  background-image: url("instagram_icon_navy.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}
.nav-contact {
  background: #14335f;
  color: #ffffff;
  font-weight: 600;
}
.nav-contact:hover {
  background: #0b223f;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(20,51,95,0.28);
  transform: translateY(-1px);
}
.nav-active {
  background: transparent;
  color: #1f4f8f;
}


/* Hero (home) */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f0ff;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0 40px;
}

.hero-img-wrap {
  border-radius: 24px;
  overflow: hidden;
}


.hero-img-wrap img {
  width: 100%;
  height: auto;
}
/* Bottom navigation (under main) */
.bottom-nav {
  background: #ffffff;
  color: #1f4f8f;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.bottom-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bottom-nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}
.bottom-nav-links a {
  color: inherit;
  text-decoration: none;
}
.bottom-nav-links a:hover {
  text-decoration: underline;
}
.bottom-nav-instagram {
  position: absolute;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav-instagram .insta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: block;
  background-image: url("instagram_icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* Responsive: stack bottom nav links on small screens */
@media (max-width: 600px) {
  .bottom-nav-inner {
    flex-direction: column;
    gap: 8px;
    padding-right: 0;
  }
  .bottom-nav-links {
    gap: 16px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bottom-nav-instagram {
    position: static;
  }
}

/* Contact page layout */
.contact-layout {
  display: flex;
  justify-content: center;
  margin: 40px auto 72px;
  padding: 0 24px;
}
.contact-col {
  flex: 0 1 720px;
  max-width: 720px;
  width: 100%;
}
.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 32px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}
.contact-info-card {
  margin-bottom: 16px;
}
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,0.12);
}
.contact-map iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
}

/* Responsive contact layout */
@media (max-width: 768px) {
  .contact-layout {
  display: flex;
  justify-content: center;
  margin: 40px auto 72px;
  padding: 0 24px;
}
}


/* Contact form inputs */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e5;
  font-size: 0.95rem;
  line-height: 1.6;
  background-color: #ffffff;
}
.input:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 1px rgba(43,108,176,0.15);
}
textarea.input {
  min-height: 140px;
  resize: vertical;
}
.required {
  color: #e02424;
  font-size: 0.8rem;
  margin-left: 4px;
}

/* Contact form (Ishino) additional styles */
.inline-inputs {
  display: flex;
  gap: 8px;
}
.inline-inputs .input {
  flex: 1;
}
.button-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  background: #e5edf8;
  color: #14335f;
  white-space: nowrap;
}
.form-note {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #666666;
}



/* Contact tabs */
.contact-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e5edf8;
  margin-bottom: 16px;
  justify-content: center;
  gap: 4px;
}
.contact-tab-button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #14335f;
  opacity: 0.7;
}
.contact-tab-button.is-active {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.15);
  opacity: 1;
}
.contact-card-title {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}
.contact-form-panel {
  display: none;
}
.contact-form-panel.is-active {
  display: block;
}

/* Responsive tweak for tabs on small screens */
@media (max-width: 480px) {
  .contact-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .contact-tab-button {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
  }
}

/* Footer */
footer {
  background: #0b1f3b;
  color: #e4ecff;
  margin-top: 0;
  padding: 24px 16px 16px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}


.footer-logo-inline {
  height: 34px;
  width: auto;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

@media (max-width: 480px) {
  .footer-logo-inline {
    height: 28px;
  }
}
.footer-logo {
  width: 50px;
  max-width: 100%;
}
.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-insta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: block;
  background-image: url("instagram_icon_rainbow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}


.footer-company-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-address {
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-bottom {
  max-width: 1120px;
  margin: 12px auto 0;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.7;
}

/* Responsive: stack bottom nav links on small screens */
@media (max-width: 600px) {
  .bottom-nav-inner {
    padding-right: 56px;
  }
  .bottom-nav-links {
    gap: 16px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Footer navigation: ヘッダーと同じページリンクをフッターに配置 */
.footer-nav {
  display: flex;
  align-items: center;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, filter .2s ease;
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(255,255,255,0.18);
  transform: translateY(-1px);
  filter: brightness(1.02);
}

nav a:focus-visible {
  outline: none;
  background: rgba(31,79,143,0.10);
  box-shadow: 0 0 0 3px rgba(31,79,143,0.28), 0 8px 22px rgba(31,79,143,0.22);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(31,79,143,0.18);
}


@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    margin-top: 4px;
  }
}


/* Recruit */
.recruit-bg{
  position: relative;
  background: url('recruit_bg.png') center/cover no-repeat;
  padding: 72px 0 84px;
  overflow: hidden;
}
/* Trustworthy tint overlay (brand navy) */
.recruit-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(31,79,143,0.45), rgba(31,79,143,0.18) 45%, rgba(255,255,255,0.0) 75%),
    linear-gradient(135deg, rgba(10,30,60,0.58), rgba(31,79,143,0.22));
  pointer-events: none;
}
.recruit-bg-overlay{
  position: relative;
  background: rgba(255,255,255,0.88);
  padding: 64px 0 72px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.badge{
  display:inline-block;
  background:#1f4f8f;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 18px;
  margin: 18px 0 0;
}
.info dt{
  font-weight: 700;
  color:#1f2a44;
  padding-top: 8px;
}
.info dd{
  margin: 0;
}

.list{
  margin: 0;
  padding-left: 1.2em;
}
ul.list.text-box{
  list-style-position: inside;
}

/* Make text-box work well for paragraphs/lists */
.text-box p{ margin:0; }
.text-box ul{ margin:0; }
.text-box li + li{ margin-top: 6px; }

@media (max-width: 768px){
  .recruit-bg{ padding: 44px 0 56px; }
  .recruit-bg-overlay{ padding: 34px 0 46px; }
  .info{ grid-template-columns: 1fr; }
  .info dt{ padding-top: 0; margin-top: 10px; }
}

/* Recruit: selection process box */
.selection-process-box p + ul { margin-top: 10px; }
.selection-process-box ul + p { margin-top: 10px; }


/* --- President's Message: balance photo & text (caption under photo) --- */
.greeting-grid{
  align-items: stretch;
}
.greeting-grid .greeting-text{
  display:flex;
  flex-direction:column;
  height:100%;
}
.greeting-grid .photo-box{
  height:100%;
  display:flex;
  flex-direction:column;
}
.greeting-grid .photo-box img{
  width:100%;
  flex:1;
  height:100%;
  object-fit:cover;
  display:block;
}
.greeting-grid .photo-box figcaption{
  padding:12px 12px;
  text-align:center;
  font-weight:600;
  color:#ffffff;
  background: rgba(13, 26, 54, 0.92);
}



/* =========================================================
   Responsive improvements (PC / Mobile)
   - Mobile hamburger navigation
   - Better spacing on small screens
   - Contact page fixes
   ========================================================= */

/* Ensure images never overflow */
img { max-width: 100%; height: auto; }

/* Make header a positioning context for dropdown nav */
.header-inner { position: relative; }

/* Hamburger button (hidden on desktop) */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:10px;
  border-radius:12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#1f4f8f;
  border-radius:999px;
}

/* Mobile nav dropdown */
@media (max-width: 900px){
  .nav-toggle{ display:flex; }

  /* Keep header content tidy */
  .header-inner{
    padding: 8px 12px;
  }
  .logo-mark{ width:60px; height:60px; }

  .site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#ffffff;
    border-bottom:1px solid rgba(0,0,0,0.12);
    box-shadow:0 10px 26px rgba(15,23,42,0.10);
    display:none;
    padding: 10px 12px 14px;
  }
  header.nav-open .site-nav{ display:block; }

  .site-nav ul{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 1rem;
  }
  .site-nav a{
    justify-content: center;
    padding: 12px 12px;
  }

  /* Hero: avoid tall empty space when header wraps */
  .hero{ min-height: auto; padding: 10px 0 26px; }
  .hero-inner{ padding: 12px 12px 28px; }
}

/* Contact page: real responsive behavior */
.contact-layout{
  gap: 24px;
}

@media (max-width: 768px){
  .contact-layout{
    margin: 24px auto 56px;
    padding: 0 12px;
  }
  .contact-card{
    padding: 20px 16px;
    border-radius: 16px;
  }
  .contact-tabs{
    width: 100%;
    display: flex;
  }
  .contact-tab-button{
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
  }
  .inline-inputs{
    flex-direction: column;
    align-items: stretch;
  }
  .button-secondary{
    width: 100%;
  }
}


/* --- Access map click overlay --- */
.map-click{ position:relative; }
.map-overlay{ position:absolute; inset:0; cursor:pointer; }
.map-note{ margin:10px 0 0; font-size:.95rem; opacity:.85; }


/* === Contact form responsiveness improvements (PC/Smartphone) === */
@media (max-width: 520px) {
  .contact-tabs{
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
    border-radius: 18px;
  }
  .contact-tab-button{
    flex: 1 1 50%;
    text-align: center;
    padding: 10px 12px;
  }
  .inline-inputs{
    flex-direction: column;
    align-items: stretch;
  }
  .inline-inputs .button-secondary{
    width: 100%;
  }
}

