.about,
.guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3rem .5rem 0;
  background: rgba(156, 163, 175, .4);
  border-radius: 2rem;
}
.preview-title,
.faq-title,
.guide-title,
.about-title,
.about-contents {
  line-height: 1.4;
}
.guide-title h2,
.about-title h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1rem;
}
.about-title p {
  font-size: 16px;
  margin: 0 4.5rem 2rem;
}
.screen {
  background-color: var(--accentColor);
  color: var(--submaincolor);
  font-size: .9rem;
  align-items: center;
  text-align: center;
  padding: .2rem .8rem;
  border-radius: 5px;
  margin: 0 1.5rem 3rem;
  animation: blink 1.5s infinite alternate;
}
.about-caption {
  text-align: center;
  margin: 3rem 0;
}
.about-item h2 {
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  display: inline-block;
}
.about-item h2::before, .about-item h2::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    clip: rect(0, 0, 0, 0);
}
.about-item h2:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--accentcolor);
    clip: rect(2px, 300px, 16px, 0);
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
}
.item-img {
  display: flex;               /* フレックスボックスにする */
  justify-content: center;     /* 左右方向の中央寄せ */
  align-items: center;         /* 上下方向の中央寄せ */
  width: 100%;
}
.item-img img {
  width: 90%;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 1rem 0;
}
.about-item p {
  margin: 2rem 0 2rem;
}
.last-modified {
    font-size: 0.8rem;
    color: var(--textcolor);
    opacity: 0.8;
    text-align: right;
    margin: 1rem 2rem 4rem 0;
    letter-spacing: 1px;
}
.maintitle {
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(34, 58, 192, 0.953);
  position: relative;
}
.maintitle::before, .maintitle::after{
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    clip: rect(0, 0, 0, 0);
}
.maintitle:hover::before{
    left: 2px;
    text-shadow: -2px 0 var(--accentcolor);
    clip: rect(2px, 450px, 120px, 0);
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
}
.guide-contents {
  line-height: 1.4;
}
.guide-contents span{
  font-size: 1.3rem;
}
.guide-contents p {
  margin-bottom: 2rem;
}
.guide-contents li {
  list-style: none;
}
.guide-contents a.link {
  color: var(--submaincolor);
}
.guide {
  padding-bottom: 3rem;
}


.preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}
/* =========================================
   スマホUIシミュレーター
========================================= */
.phone-simulator {
  width: 290px;
  margin: 3rem 5rem 6rem;
  background-color: #090a0f;
  border: 4px solid #1e2230;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: left;
}

/* 上部ステータスバー */
.phone-status-bar {
    background-color: #121520;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-notch {
    width: 64px;
    height: 16px;
    background-color: #000000;
    border-radius: 9999px;
    margin: 0 auto;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accentcolor);
}

.status-icons .fa-wifi {
    font-size: 9px;
}

.status-icons .battery-text {
    font-weight: bold;
}

/* タブ切替 */
.phone-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: rgba(18, 21, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    padding: 12px 4px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.tab-btn span {
    font-size: 10px;
    color: #9ca3af;
    font-weight: normal;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    color: #ffffff;
    font-weight: bold;
    border-bottom-color: var(--accentColor);
}

/* メール/メモ詳細画面 */
.phone-screen {
    padding: 24px;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    background: linear-gradient(to bottom, #090a0f, #0d0f17);
}

.msg-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.msg-meta {
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.msg-to {
    color: #e5e7eb;
}

.msg-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #6b7280;
}

.msg-subject-row {
    color: #9ca3af;
}

.msg-subject {
    color: #ffffff;
    font-weight: 500;
}

/* 本文 */
.msg-content {
    font-size: 14px;
    line-height: 1.75;
    color: #e5e7eb;
    letter-spacing: 0.05em;
    white-space: pre-wrap;
}

/* ステータス通知（エラーバナー） */
.error-banner {
    margin-top: 16px;
    padding: 8px 12px;
    background-color: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.5);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: var(--accentColor);
    font-family: 'Share Tech Mono', monospace;
    animation: pulseError 1.5s infinite;
}

.error-banner.hidden {
    display: none;
}

.error-banner i {
    margin-right: 4px;
}

@keyframes pulseError {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* スマホ下部フッター */
.phone-footer {
    background-color: #121520;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.draft-id {
    font-size: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #6b7280;
}

.send-btn {
    padding: 8px 20px;
    background-color: rgba(255, 0, 55, 0.74);
    color: var(--submaincolor);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-btn:hover {
    background-color: var(--accentcolor);
}

.send-btn i {
    font-size: 10px;
}



.faq {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 3rem 1rem;
}
.faq-container {
  max-width: 96%;
}

/* 各アコーディオンアイテムの区切り線 */
.faq-item {
  border-bottom: 1px solid var(--textcolor);
  padding: 20px 0;
  max-width: 668px;
}

/* 質問タイトル部分（summary） */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none; /* ブラウザ標準のマーカーを消す */
}

/* Safariなどの標準マーカー非表示 */
.faq-question::-webkit-details-marker {
  display: none;
}

.q-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* ラベルの色調整 */
.q-label {
  color: var(--submaincolor);
  font-weight: bold;
}

.a-label {
  color: var(--accentcolor); /* 画像の赤い「A.」の雰囲気に合わせた色 */
  font-weight: bold;
}

/* 回答部分 */
.faq-answer {
  margin-top: 15px;
  color: var(--submaincolor);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 右側の丸い＋／×ボタン */
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--submaincolor);
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
  transition: background-color 0.3s, border-color 0.3s;
}

/* ＋の線を擬似要素で作成 */
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--submaincolor);
  transition: transform 0.3s;
}

/* 横棒 */
.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* 縦棒 */
.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* --- 開いたとき（[open] 属性が付いたとき）のスタイル --- */
.faq-item[open] .faq-icon {
  background-color: var(--accentcolor); /* 赤い背景に変化 */
  border-color: var(--accentcolor);
}

/* ＋から×へ回転させる */
.faq-item[open] .faq-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
}
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.contact-btn {
  margin-bottom: 3rem;
}
.btn {
  display: inline-block;
  border: 1px solid var(--basecolor);
  background: var(--basecolor);
  color: var(--submaincolor);
  padding: .5rem 1.5rem .75rem;
  border-radius: 40px;
  font-size: 2rem;
  letter-spacing: 1px;
}
.btn.btn:hover {
  background-color: var(--accentcolor);
}
.sns-nav {
  display: flex;
  flex-direction: row;
  margin-bottom: 3rem;
  gap: 2rem;
}
.sns-nav li {
  width: 100%;
}
.sns-nav img {
  width: 100%;
  max-height: 80px;
  height: auto;
}

/* >>>>>> PC <<<<<< */
@media (min-width:600px){
.guide-title h2,
.about-title h2 {
  font-size: 3rem;
}
.about-title p {
  font-size: 1.4rem;
  margin: 0 1.5rem 2rem;
}
.screen {
  font-size: 1.1rem;
}
.about-item h2 {
  font-size: 1.5rem;
}
/* 上部の「未送信展とは」の左寄せ調整 */
.about-title {
  width: 100%;
  max-width: 900px; /* 全体の横幅に合わせて調整してください */
  margin: 0 auto;
  text-align: left;
}
.about-title h2 {
  text-align: left;
  margin-left: 4.5rem;
}

/* 各POINTの共通設定 */
.about-caption {
  text-align: left; /* テキストを左揃えにする */
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.about-item {
  display: grid;
  column-gap: 3rem; /* 画像とテキストの間の余白 */
  align-items: center;
  margin-bottom: 3rem;
}

/* 各要素をグリッドのどの位置（行・列）に配置するかの指定 */
.about-item h2 {
  grid-row: 1;
  align-self: end;
  /* margin-bottom: -1.7rem; */
}
.about-item h3 {
  grid-row: 2;
  font-size: 1.8rem;
  /* margin-bottom: -1rem; */
}
.about-item p {
  grid-row: 3;
  align-self: start;
  margin: 0; /* 既存の margin: 2rem 0 をリセット */
  font-size: 1rem;
  line-height: 1.8;
}
.about-item .item-img {
  grid-row: 1 / 4; /* 1行目〜3行目（h2〜pの高さ分）をぶち抜きで占有 */
}
.about-item .item-img img {
  width: 100%; /* 親枠いっぱいに広げる */
  margin: 0;
}

/* 【POINT 1】画像が左、テキストが右 */
.about-item:nth-child(1) {
  grid-template-columns: 1fr 1fr;
}
.about-item:nth-child(1) .item-img {
  grid-column: 1;
}
.about-item:nth-child(1) h2,
.about-item:nth-child(1) h3,
.about-item:nth-child(1) p {
  grid-column: 2;
}

/* 【POINT 2】テキストが左、画像が右 */
.about-item:nth-child(2) {
  grid-template-columns: 1fr 1fr;
}
.about-item:nth-child(2) h2,
.about-item:nth-child(2) h3,
.about-item:nth-child(2) p {
  grid-column: 1;
}
.about-item:nth-child(2) .item-img {
  grid-column: 2;
}

/* 【POINT 3】画像なし・左寄せで1カラム表示 */
.about-item:nth-child(3) {
  display: block;
  margin-top: 4rem;
}
.about-item:nth-child(3) h3 {
  margin-bottom: 1rem;
}

.maintitle {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.maintitle:hover::before{
  clip: rect(2px, 850px, 120px, 0);
}
.about-item h2:hover::before {
    clip: rect(2px, 300px, 50px, 0);
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
}
.guide-text {
  font-size: 1.4rem;
}
.last-modified {
  font-size: 1rem;
}
}