@charset "UTF-8";


/* 基本設定（スマホ・共通） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f2e9e4;
  font-family: "Noto Sans JP", sans-serif;
  overflow-x: hidden;
  padding-top: 60px;
}

/* ヘッダー */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 10px 20px;
  width: 100%;
  background-color: rgba(242, 233, 228, 0.8);
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right img {
  height: 14px;
  width: auto;
  opacity: 0.8;
}

/* メインエリア */
.main {
  padding-top: 0px;
  padding-bottom: 140px;
}

/* ホーム画面のグリッド（スマホ3列） */
.home-screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  justify-items: center;
  transition: 0.3s;
}

/* アイコン共通スタイル */
.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.icon-img,
.dog-area-icon-img {
  width: 70px;
  height: 70px;
  border-radius: 22.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

.icon-img img {
  width: 100%;
  height: auto;
}

.dog-area-icon-img img {
  width: 60% !important;
  height: auto;
  object-fit: contain;
}

.icon-label {
  font-size: 11px;
  color: #4a4e69;
  text-align: center;
}

/* ポップアップ（オーバーレイ） */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: flex-start;
  z-index: 1000;
  padding: 10px;
}

.overlay.is-open {
  display: flex;
}

.app-window {
  background: white;
  border-radius: 20px;
  position: relative;
  top: 40px;
  width: 95%;
  max-width: 100vh;
  max-height: 73vh;
  margin-bottom: 80px;
  /* 長いときスクロール */
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 25px 20px;
}

/* 文字サイズ（スマホ・タブレット基準） */
.app-text-area h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.app-text-area p {
  font-size: 13px;
  line-height: 1.6;
}

.app-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-main-img {
  width: 100%;
  border-radius: 15px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
}

/* ドック（フッター） */
.footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dog-area {
  display: flex;
  gap: 15px;
  background-color: rgba(204, 196, 192, 0.85);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: auto;
}

/* プロフィール表 */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed;
}

.profile-table th {
  text-align: left;
  width: 100px;
  font-weight: bold;
  color: #8a817c;
  padding: 10px 5px;
  vertical-align: top;
}

.profile-table td {
  text-align: left;
  padding: 10px 5px;
  color: #4a4e69;
  word-break: break-all;
}

/* ポートフォリオ内のMiSoNリンクボタン */
.mison-link-box {
  margin-top: 20px;
  text-align: center;
}

.mison-app-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s;
}

.mison-app-btn img {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

.mison-app-btn span {
  font-weight: bold;
  font-size: 0.9rem;
}

.mison-app-btn:hover {
  transform: scale(1.05);
}

/* お問い合わせフォーム調整 */
.contact-container {
  width: 100%;
  text-align: left;
}

.contact-desc {
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: bold;
  color: #4a4e69;
}

/* スマホ用 */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  background-color: #faf9f9;
}

.submit-btn {
  margin-top: 10px;
  background-color: #8a817c;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #4a4e69;
}

.copyright {
  position: fixed;
  bottom: 2px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #8a817c;
}

/* レスポンシブ設定(大きな画面で元のサイズ) */
/* スマホ用（767px以下） */
@media screen and (max-width: 767px) {
  .home-screen {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .icon-img,
  .dog-area-icon-img {
    width: 70px;
    height: 70px;
  }

  .date-display {
    display: none;
  }

  .app-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

.app-main-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto 15px;
    overflow: hidden;
  }
}

/* PC・タブレット用 */
@media screen and (min-width: 768px) {
  .home-screen {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .icon-img,
  .dog-area-icon-img {
    width: 80px;
    height: 80px;
  }

  .date-display {
    display: inline;
  }

  .app-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
  }

  .app-main-img {
    width: 45%;
    border-radius: 15px;
  }

  .app-text-area {
    width: 55%;
    text-align: left;
  }

  .app-text-area h2 {
    font-size: 1.5rem;
  }
}