/* ==========================================================================
   Lif enet FAQ / Top styles (cleaned)
   - unused empty selectors removed
   - grouped by purpose (base → layout → components → utilities → responsive)
   ========================================================================== */

:root {
  --container: 1024px;
  --bg: #f8f9fa;
  --text: #333;
  --brand: #8fb130;
  --ink: #2c3e50;
  --card: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --bg-switch: #f2f2f2;
  --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Noto Sans JP', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

header {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-content .logo {
  flex-shrink: 0;
  margin-top: 5px;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  text-decoration: none;
}

header nav a .nav-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
  color: var(--brand);
  font-size: 0.9rem;
  transition: color 0.3s;
}
nav a::after {
  content: "›";
  margin-left: 0.4em;
}

/* Maintenance badge (desktop) */
.maintenance {
  margin-left: auto;
}
.maintenance dl {
  text-align: center;
  font-size: 0.9rem;
}
.maintenance dl dt {
  background: var(--ink);
  color: #fff;
  padding: 2px 10px 0;
  border-radius: 4px 4px 0 0;
}
.maintenance dl dd {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 2px 10px;
  border-radius: 0 0 4px 4px;
}

/* Mobile-only header footer area */
.mobile-nav-info {
  display: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-title {
  text-align: center;
  margin-bottom: 1rem;
}
.page-title h1 {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.break-prefer {
  display: inline-block;
  margin: 0 1rem;
}

/* ==========================================================================
   Panels (Top)
   ========================================================================== */

.application-section {
  margin: 3rem 0;
}

.section-heading {
  font-size: 1.3rem;
  color: var(--brand);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
  font-weight: 600;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.panel {
  background: var(--card);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid #e1e1e1;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.panel:hover {
  background-color: #f5f8ea;
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(143, 177, 48, 0.15);
  transform: translateY(-4px);
}
.panel:hover::before {
  transform: scaleX(1);
}

.panel-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  transition: transform 0.3s ease;
}
.panel:hover .panel-icon {
  transform: scale(1.1);
}

.panel h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 600;
}
.panel h3::after {
  content: "›";
  margin-left: 0.9rem;
}

.panel p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.panel .recipient {
  background-color: #f3f3f3;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  font-size: 0.9rem;
  flex: 1;
  display: flex;
  align-items: flex-start;
}
.panel:hover .recipient {
  background-color: #e8f0d0;
  border-color: var(--brand);
  transform: scale(1.02);
}

.panel .recipient ul {
  text-align: left;
  margin-left: 1em;
  list-style: none;
}
.panel .recipient ul li {
  position: relative;
  padding-left: 15px;
}
.panel .recipient ul li::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  transform: rotate(50deg);
  width: 5px;
  height: 10px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
}

/* ==========================================================================
   Login (Top)
   ========================================================================== */

.login-section {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.login-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-info h3 {
  font-size: 1.3rem;
  color: var(--brand);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.login-info p {
  color: #666;
  font-size: 0.9rem;
}

.login-button {
  background-color: var(--brand);
  background-image: url("../img/ico_login.png");
  background-repeat: no-repeat;
  background-position: 30px center;
  background-size: 20px 20px;

  color: #fff;
  width: 300px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}
.login-button:hover {
  background-color: #7a9a28;
  box-shadow: 0 4px 12px rgba(143, 177, 48, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.back-button {
  background-color: #8fb130;
  background-image:
    linear-gradient(
      135deg,
      transparent 45%,
      #fff 45.5%,
      #fff 54.5%,
      transparent 55%
    ),
    linear-gradient(
      -135deg,
      transparent 45%,
      #fff 45.5%,
      #fff 54.5%,
      transparent 55%
    );
  background-size: 8px 50%;
  background-position:
    30px calc(50% - 4px),
    30px calc(50% + 4px);
  background-repeat: no-repeat;
  margin: 10px auto;

  color: #fff;
  width: 100%;
  max-width: 300px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  padding: 0 20px;
}

.back-button:hover {
  background-color: #7a9a28;
  box-shadow: 0 4px 12px rgba(143, 177, 48, 0.3);
  transform: translateY(-2px);
}

.twelveDigits-button-container {
  margin: 0 auto 1rem;
}
.twelveDigits-button-container .twelveDigits-button {
background-image: url("../img/ico_digits.png");
  background-repeat: no-repeat;
  background-position: 30px center;
  background-size: 20px 20px;
  background-color: #8fb130;
  margin: 10px auto;
  color: #fff;
  width: 520px;
  max-width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  padding: 0 20px 0 60px;
  text-align: center;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  text-decoration: none;
  box-sizing: border-box;}
.twelveDigits-button:hover {
  background-color: #7a9a28;
  box-shadow: 0 4px 12px rgba(143, 177, 48, 0.3);
  transform: translateY(-2px);
}
.break-prefer {
  display: none;
}

/* ==========================================================================
   Contact (Top)
   ========================================================================== */

.contact-box {
  background: rgba(143, 177, 48, 0.04);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.contact-box h3 {
  font-size: 1.3rem;
  color: #92b729;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-item {
  /*display: flex;
  align-items: flex-start;
  gap: 1rem;*/
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-center-title .cc-name,
  .contact-center-title .cc-center {
    display: block;
  }
}
.contact-details p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.phone-number {
  font-size: 0.9rem;
  color: #666;
  margin-left: 0.5rem;
}
.phone-number-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.phone-icon {
  display: inline-flex;
  width: 60px;
  height: 40px;
}
.phone-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding-top: 3px;
}
.phone-number strong {
  font-size: 1.8rem;
  margin: 0.5rem 1rem 0 0;
  display: inline-block;
}

@media (max-width: 768px) {
  .phone-number-main {
    white-space: nowrap;
  }
}

.btm-note {
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 0 0 1rem;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  padding-top: 1rem;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.group-section {
  margin-bottom: 40px;
}

.qa-group {
  padding: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 6px;
  margin-bottom: 12px;
}

.qa-group dt {
  position: relative;
  padding: 15px 0 15px 52px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1rem;
  gap: 1rem;
}
.qa-group dt::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 5px;
  width: 44px;
  height: 44px;
  background-image: url("../img/ico_q.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.qa-group dt.is-active + dd::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 5px;
  width: 44px;
  height: 44px;
  background-image: url("../img/ico_a.png");
  background-size: contain;
  background-repeat: no-repeat;
}
/* Chevron */
.qa-group dt::after {
  content: "";
  width: 14px;
  height: 10px;
  margin-left: auto;
  flex: 0 0 auto;
  background:
    linear-gradient(
      45deg,
      transparent 42%,
      var(--brand) 43%,
      var(--brand) 57%,
      transparent 58%
    ),
    linear-gradient(
      -45deg,
      transparent 42%,
      var(--brand) 43%,
      var(--brand) 57%,
      transparent 58%
    );
  background-size: 50% 100%;
  background-position:
    left center,
    right center;
  background-repeat: no-repeat;
  transition: transform 0.3s;
}
.qa-group dt.is-active::after {
  transform: rotate(180deg);
}

.qa-group dd {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0 0 0 52px;
  margin-right: 1rem;
  min-height: 0;
  height: 0;
  opacity: 0;
    visibility: hidden;
  background: none;
}
.qa-group dd .dd-inner {
  padding: 15px 15px 15px 0;
}

/* -- FAQ text content formatting -- */
.qa-group dd p {
  margin-bottom: 1em;
}

.qa-group dd ul,
.qa-group dd ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  list-style-position: outside;
}

.qa-group dd ul {
  list-style-type: disc;
}

.qa-group dd ol {
  list-style-type: decimal;
}

.qa-group dd li {
  margin-bottom: 0.5em;
}

.qa-group dd li ul,
.qa-group dd li ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

.qa-group dd p:last-child,
.qa-group dd ul:last-child,
.qa-group dd ol:last-child,
.qa-group dd li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Switch (Top) 
   ========================================================================== */

/* --- レイアウト基本 --- */
.toggle-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0;
}

/* --- 改行コントロール --- */
.sp-only {
  display: none;
}
@media (max-width: 480px) {
  .sp-only {
    display: block;
  }
  .switch-label {
    font-size: 13px !important;
    line-height: 1.4;
    padding: 12px 8px;
    min-height: 56px;
  }

  .toggle-switch {
    margin: 24px auto 0;
  }

  .content-area {
    padding: 20px 16px 0;
  }
}

/* --- スイッチ --- */
.toggle-switch {
  position: relative;
  display: flex;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin: 40px auto 0;
  border: none;
  max-width: 720px;
 }

.switch-label {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  color: #666;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-bottom: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
 }

.switch-label:hover {
  color: var(--brand);
 }

.switch-label:focus-within {
  color: var(--brand);
 }

.switch-label input {
  display: none;
}
.switch-label:has(input:checked) {
  color: var(--brand);
  background-color: #fff;
  border-color: #8fb130;
  border-bottom: 1px solid #fff;
  position: relative;
  top: 1px;
 }

.switch-selection {
  display: none;
}

.content-area {
  position: relative;
  min-height: 200px;
  background-color: #fff;
  border: 1px solid #8fb130;
  border-radius: 12px;
  padding: 24px 24px 0;
 }

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth);
}

.toggle-container:has(#type-has:checked) #content-has,
.toggle-container:has(#type-no:checked) #content-no {
  display: block;
  animation: fadeUp 0.5s forwards;
}

.noemailaddress-item {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  padding: 2.5rem 5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.noemailaddress-item .recipient {
  background-color: #f3f3f3;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  font-size: 0.9rem;
  flex: 1;
  display: flex;
  align-items: flex-start;
}
.noemailaddress-item .recipient ul li {
  position: relative;
  padding-left: 15px;
  list-style-type: none;
}

.noemailaddress-item .recipient ul li::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  transform: rotate(50deg);
  width: 5px;
  height: 10px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
}
.noemailaddress-item .noemailaddress-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.case-no-email,.no-email-link {
  text-align: center;
  margin: auto;
  color: var(--brand);
  font-size: 1.1rem;
}

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

.indent {
  text-indent: -1em;
  padding-left: 1em;
}
.mb1rm {
  margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }
  .header-content .maintenance,
  .header-content nav {
    display: none;
  }

  .mobile-nav-info {
    display: block;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
    background: var(--bg);
    text-align: center;
  }

  .mobile-nav-info .maintenance {
    margin: 0 auto 1rem;
    text-align: center;
  }
  .mobile-nav-info .maintenance dl {
    display: flex;
    flex-wrap: wrap;
  }
  .mobile-nav-info .maintenance dl dt,
  .mobile-nav-info .maintenance dl dd {
    width: 50%;
    padding: 2px 10px;
  }
  .mobile-nav-info .maintenance dl dt {
    border-radius: 4px 0 0 4px;
  }
  .mobile-nav-info .maintenance dl dd {
    border-radius: 0 4px 4px 0;
  }

  .mobile-nav-info .maintenance dl.is-stacked dt,
  .mobile-nav-info .maintenance dl.is-stacked dd {
    width: 100%;
  }
  .mobile-nav-info .maintenance dl.is-stacked dt {
    border-radius: 4px 4px 0 0;
  }
  .mobile-nav-info .maintenance dl.is-stacked dd {
    border-radius: 0 0 4px 4px;
  }

  .mobile-nav-info nav {
    margin-bottom: 1.5rem;
  }
  .mobile-nav-info nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-nav-info nav a {
    margin: auto;
  }

  .mobile-nav-info nav a {
    text-decoration: none;
  }

  .mobile-nav-info nav a .nav-link-text {
    text-decoration: underline;
    text-underline-offset: 3px;
  font-weight: 700;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  main {
    padding: 2rem 1rem;
  }
  .page-title h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .panels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .panel {
    padding: 2rem 1rem;
  }

  .login-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .login-button {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

.noemailaddress-item {
    flex-direction: column;    /* 縦並びにする */
    align-items: center;       /* アイコンを中央に */
    padding: 2rem 1.5rem;      /* 左右の大きな余白をスマホ用に最適化 */
    margin: 2rem 0;
    gap: 1.5rem;               /* 各要素間の隙間 */
  }

  .noemailaddress-icon {
    flex-shrink: 0;            /* アイコンが潰れないように */
  }

  .noemailaddress-details {
    width: 100%;               /* 詳細エリアを横いっぱいに広げる */
  }

  .noemailaddress-item .recipient {
    width: 100%;               /* グレーの枠を横いっぱいに */
    box-sizing: border-box;
    margin-bottom: 1rem;       /* テキストとの間に余白を作る */
  }

  .noemailaddress-item .noemailaddress-text {
    margin-top: 0;             /* recipientのmarginで調整するので0に */
    text-align: left;          /* 長文は左揃えが読みやすい */
  }

  .twelveDigits-button-container .twelveDigits-button {
    font-size: 0.9rem;
    background-position: 15px center;
    padding: 0 15px 0 45px;
  }

  .break-prefer {
    display: block
  }
  
  .toggle-switch {
    width: 95%;
  }
  
  .pc-space {
    display: none;
  }
}
@media (min-width: 769px) {
  .break-prefer {
    display: none;
  }
  .sp-br {
    display: none;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .panels-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Modal (Tooltip style)
   ========================================================================== */

.modal {
  position: absolute;
  background: #fff;
  border: 4px solid var(--brand);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  width: 400px;
  max-width: 90vw;
}

.modal::before,
.modal::after {
  content: "";
  position: absolute;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: solid transparent;
  width: 0;
  height: 0;
}

.modal::before {
  top: -24px;
  border-width: 0 12px 20px 12px;
  border-bottom-color: var(--brand);
}

.modal::after {
  top: -19px;
  border-width: 0 10px 20px 10px;
  border-bottom-color: #fff;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal .contact-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.modal .contact-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.modal .contact-details {
  text-align: center;
}
.modal .contact-details h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.modal .phone-number strong {
  font-size: 1.5rem;
}
.modal .phone-note {
  font-size: 0.8rem;
  text-align: center;
  white-space: pre-wrap; /* 改行を有効にする */
}
