/* --- Variables: 管理用変数 --- */
:root {
  --primary-blue: #1d1b5c;
  --accent-red: #e60000;
  --sky-blue: #48aae0;
  --yellow-text: #ffff42;
  --container-width: 767px;
  --header-height: 75px;
}

/* --- Base --- */
body {
  background-image:
    url("https://www.transparenttextures.com/patterns/ag-square.png"),
    linear-gradient(to right, #ffffff, #ffffbd, #ffffff);
  margin: 0;
}

img { width: 100%; height: auto; vertical-align: bottom; }
p { margin-bottom: 0; }

/* --- Layout --- */
.center {
  padding-top: var(--header-height);
  margin: 0 auto;
  width: var(--container-width);
  background-color: white;
}

/* --- Header --- */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(240, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  width: var(--container-width);
  margin: 0 auto;
}

.header-logo-img {
  max-height: 50px;
  width: 60%;
  object-fit: contain;
}

/* --- Main Visual --- */
.main { position: relative; }
.main-contact {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: 90%;
}
.main-contact a { display: block; width: 100%; }

/* --- Contact Form --- */
.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
}

.contact-header {
  background: var(--primary-blue);
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
}

.contact-body { padding: 30px; }
.form-label { font-weight: 600; }
.required { color: var(--accent-red); font-size: 0.9rem; margin-left: 8px; }
.form-control, .form-select { border-radius: 10px; padding: 12px; }

/* Privacy Policy Box */
.privacy-box { background: #f1f1f1; border-radius: 12px; padding: 20px; }
.privacy-text {
  font-size: 0.9rem;
  color: #666;
  height: 150px;
  overflow-y: auto;
}
.privacy-text p, .privacy-text li { font-size: 14px; }
.privacy-text h4 {
  font-size: 16px;
  border-bottom: 1px solid #666;
  padding-bottom: 5px;
  font-weight: bold;
}
.privacy-text ul { list-style-type: none; padding-left: 0; }

.btn-submit {
  background: #2f66b3;
  color: #fff;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  transition: background 0.2s;
}
.btn-submit:hover { background: #244f8d; }

/* Floating Buttons (CTA) */
.bg-tel { background-color: #64b5f6 !important; color: white !important; text-decoration: none; }
.bg-tel:hover { background-color: #42a5f5 !important; }
.bg-mail { background-color: #3056a0 !important; color: white !important; text-decoration: none; }
.bg-mail:hover { background-color: #284a8a !important; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.btn-maintext { font-weight: 900; letter-spacing: -0.05em; }
.italic-text { font-style: italic; }

/* --- PC Layout (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .page-container { padding-left: 320px; }
  .sidebar-fixed {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    width: 200px;
    z-index: 1000;
  }
  .contact-container {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 20px;
  }
  .contact-btn {
    padding: 30px 15px;
    text-align: center;
    display: block;
    transition: background-color 0.2s;
  }
  .btn-subtext { font-size: 0.8rem; font-weight: bold; display: block; margin-bottom: 5px; }
  .btn-maintext { font-size: 1rem; }
}

/* --- Default Layout Sections --- */
.nayami { background: linear-gradient(0deg, rgba(41, 171, 226, 0) 0%, rgba(41, 171, 226, 1) 100%); padding: 100px 30px; }
.nayami-content { margin-top: 60px; background-color: white; border-radius: 30px; padding: 20px; }
.nayami-flex { display: flex; align-items: center; margin: 20px 0; }
.nayami-img { width: 30%; }
.nayami-text { width: 70%; }
.nayami-text-bottom { margin: 20px 0; }
.nayami-text-bottom img { filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3)); }

.cation { border: 3px solid var(--accent-red); background-color: #fff0ee; padding: 30px; text-align: center; border-radius: 30px; }
.cation img { width: 30%; }
.cation p { line-height: 2em; font-size: 18px; font-weight: bold; margin-top: 15px; }

.about-title { margin-top: 50px; }
.about-content, .about-content2 { display: flex; align-items: center; margin: 20px 0; border-radius: 20px; padding: 20px; }
.about-content { background-color: #0071bc; }
.about-content2 { background-color: var(--sky-blue); }
.ab-img { width: 30%; }
.ab-text { width: 70%; }
.ab-text h3 { color: var(--yellow-text); font-size: 20px; font-weight: bold; }
.ab-text p { color: white; }
.about-mado { display: flex; gap: 10px; }
.ab-img2-text { margin-top: -30px; }
.ab-cta { margin-top: 50px; }

.voice { background-color: var(--sky-blue); padding: 50px; margin-top: 50px;}
.voice-title p { text-align: center; color: white; font-size: 30px; font-weight: bold; margin-top: 10px; }
.voice-content { display: flex; align-items: center; gap: 30px; margin: 20px 0; }
.voice-img { width: 20%; }
.voice-text { width: 80%; }
.case-header { display: flex; align-items: center; width: 100%; }
.case-text { color: var(--yellow-text); font-size: 32px; font-weight: 900; font-style: italic; margin-right: 15px; letter-spacing: 1px; }
.line { flex-grow: 1; height: 1px; background-color: rgba(255, 255, 255, 0.8); }
.voice-text dt, .voice-text dd { color: white; }
.voice-case { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.voice-case img { width: 35%; }
.kensu { width: 65%; background-color: white; border-radius: 30px; padding: 20px; }
.kensu p { font-size: 45px; font-weight: bold; text-align: center; }
.kensu p span { display: block; color: var(--accent-red); }

.service { background-color: #f2f2f2; padding: 50px 0; }
.ser-title h3, .flow-title h3 { text-align: center; color: var(--primary-blue); font-size: 30px; font-weight: bold; }
.ser-content { display: flex; align-items: center; gap: 20px; background-color: white; border-radius: 20px; padding: 20px; margin: 30px 0; }
.ser-text { width: 60%; text-align: center; }
.ser-text h4 { background-color: var(--accent-red); color: white; padding: 20px 0; border-radius: 10px; font-weight: bold; }

.flow { padding: 50px 0; }
.flow-content { display: flex; align-items: center; margin: 50px 0; gap: 20px; }
.flow-img { width: 30%; }
.flow-text { width: 70%; padding: 30px; background-color: white; box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.1); border-radius: 20px; }
.flow-text h4 { border-left: 3px solid var(--sky-blue); padding-left: 10px; color: var(--sky-blue); font-weight: bold; }
.flow-text span { display: block; font-size: 12px; color: var(--accent-red); line-height: 1.2em; margin-top: 10px; }

.mitumori { background: linear-gradient(to right, #4facfe 0%, #0062cc 50%, #4facfe 100%); padding: 50px; margin-bottom: 50px; }
.flow-mitumori h3 { text-align: center; color: white; font-size: 30px; font-weight: bold; filter: drop-shadow(0px 4px 1px rgba(0, 0, 0, 0.5)); }
.flow-mitumori p { text-align: center; color: white; }

.company { background-image: url('../img/info.jpg'); background-size: cover; background-position: bottom; padding: 50px 0; }
.comp-title h3 { text-align: center; color: white; font-weight: bold; }
.comp-profile table { width: 100%; border-collapse: collapse; }
.comp-profile th, .comp-profile td { padding: 10px 0; color: white; border-bottom: 1px solid white; text-align: left; }
.comp-profile th { padding-right: 20px; }

footer { padding: 20px 0; }
footer p { text-align: center; }

.cta{ filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));}

#contact{
  margin-top: -100px;
  padding-top: 100px;
}

/* --- SP Layout (max-width: 1023px) --- */
@media (max-width: 1023px) {
    .contact-container {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        height: 75px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .contact-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
        text-align: center;
    }
    .btn-subtext { font-size: 10px; font-weight: bold; margin-bottom: 2px; }
    .btn-maintext { font-size: 15px; }
    .main-content { padding-bottom: 100px; }
}

/* --- Smartphone Specific (max-width: 767px) --- */
@media screen and (max-width: 767px) {
    p, th, td { font-size: 14px; }
    .sticky-header, .center { width: 100%; }
    .center { overflow: hidden; }
    .header-call-btn { width: 60%; }
    .side-logo { display: none; }
    .offset-1 { margin-left: 0; }
    footer { padding-bottom: 100px; }

    .nayami { padding: 50px 20px; }
    .nayami-content { margin-top: 30px; padding: 10px 20px; }
    .nayami-img { width: 20%; }
    .nayami-text { width: 80%; }

    .cation p { font-size: 14px; line-height: 1.5em; }

    .about-content, .about-content2 { flex-direction: column; }
    .ab-img { margin-bottom: 10px; }
    .ab-text { width: 100%; }

    .voice{ padding: 50px 20px;}
    .voice-title p { font-size: 14px; }
    .case-text { font-size: 16px; }
    .voice-text dt, .voice-text dd { font-size: 14px; }

    .kensu { padding: 20px 10px; }
    .kensu p { font-size: 18px; }

    .ser-text h4, .flow-text h4 { font-size: 18px; }
    .ser-title h3, .flow-title h3 { font-size: 20px; }

    .mitumori { padding: 50px 0; }

    .comp-profile th, .comp-profile td { display: block; width: 100%; }
    .privacy-text h4 { font-size: 14px; margin-top: 10px; }
}

@media (min-width: 751px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}
