/* Marketer Diagnosis Tool Styles */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;

}
:root {
  --primary-color: #6cc4be;
  --accent-color: #e6a23c;
  --bg-color: #f9f9f9;
  --text-color: #333;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}
/*
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
*/

body.page-template-marketer-diagnosis-page-template-php .page-mv{
  margin-top: 110px;
}
@media (max-width: 600px) {
  body.page-template-marketer-diagnosis-page-template-php .page-mv{
    margin-top: 0;
  }
}
.diagnosis-container {
  max-width: 600px; /* Mobile focused max width */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  container-type: inline-size;
  container-name: diagnosisContainer;
}
.copyright{
  text-align: center;
  font-size: 0.8rem;
  padding: 2em 0;
}


/* Header */
.app-header {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.app-header h1 {
  font-size: 1.2rem;
  margin: 0;
}

/* Sections */
.view-section {
  padding: 24px 20px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none !important;
}

/* Start Screen */
.view-start__images{
  margin-bottom: 2rem;
}
.view-start__images img{
  width: 100%;
  max-width: 100%;
  height: auto;
}
.start-view p {
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  color: #333;
}
.view-start__contener{
  margin-bottom: 2rem;
}
.paragraph-adjust{
  font-size: 14px;
  margin-bottom: 1em;
  font-weight: bold;
}
@container diagnosisContainer (max-width: 450px) {
  .start-view p {
    font-size: 0.8rem;
    text-align: left;
  }
  .start-view p .break-adjust{
    display: none;
  }
}



/* Buttons */
.btn {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  transition: .3s;
}
.btn span{
  font-size: 0.8rem;
  width: 100%;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  opacity: .6;
}

.pre-start-notice::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
}

.pre-start-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  padding: 14px 16px;
  pointer-events: none;
}

/*
.pre-start-notice-is-visible body {
  padding-bottom: 210px;
}*/

.pre-start-notice__inner {
  position: relative;
  z-index: 10000;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.pre-start-notice__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-color);
  letter-spacing: 0.06em;
}

.pre-start-notice__body {
  margin-bottom: 10px;
}

.pre-start-notice__body p {
  margin-bottom: 0.35em;
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: left;
  color: #666;
  letter-spacing: 0.04em;
}

.pre-start-notice__body p:last-child {
  margin-bottom: 0;
}

.pre-start-notice__actions {
  display: flex;
  justify-content: center;
}

.pre-start-notice__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  font-size: 0.76rem;
  font-weight: bold;
  line-height: 1.4;
  cursor: pointer;
  transition: opacity var(--transition), transform 0.1s ease;
}

.pre-start-notice__button:active {
  transform: scale(0.98);
}

.pre-start-notice__button--primary {
  min-width: 180px;
  background: var(--primary-color);
  color: var(--white);
}

.pre-start-notice__button:hover {
  opacity: 0.75;
}

@media (max-width: 450px) {
  .pre-start-notice-is-visible body {
    padding-bottom: 250px;
  }

  .pre-start-notice {
    padding: 12px 14px;
  }

  .pre-start-notice__title {
    text-align: left;
  }

  .pre-start-notice__button {
    width: 100%;
  }
}

.btn-nomal {
  background: var(--white);
  border: 2px solid #eee;
  text-align: center;
  height: auto;
  white-space: normal;
  line-height: 1;
  margin-bottom: 16px;
  transition: .3s;
  color:#333;
}
.btn-nomal:hover {
  border-color: var(--accent-color);
  background: #fffdf5;
}
#btn-share-x.btn-nomal {
  border-color: #666;
  background: #fff;
  color:#000;
}
#btn-share-x.btn-nomal:hover {
  background:#000;
  color:#fff;
  border: 2px solid #fff;
}
#btn-share-threads.btn-nomal {
  border-color: #666;
  background: #fff;
  color:#000;
}
#btn-share-threads.btn-nomal:hover {
  background:#000;
  color:#fff;
  border: 2px solid #fff;
}
#btn-share-fb.btn-nomal {
  border-color: #1877f2;
  background: #fff;
  color:#1877f2;
}
#btn-share-fb.btn-nomal:hover {
  background:#1877f2;
  color:#fff;
  border: 2px solid #fff;
}
#btn-share-line.btn-nomal {
  border-color: #06c755;
  background: #fff;
  color:#06c755;
}
#btn-share-line.btn-nomal:hover {
  background:#06c755;
  color:#fff;
  border: 2px solid #fff;
}

.btn-option {
  background: var(--white);
  border: 2px solid #eee;
  color: var(--text-color);
  margin-bottom: 16px;
  text-align: center;
  height: auto;
  min-height: 80px;
  white-space: normal;
  line-height: 1.4;
  transition: .3s;
}
.btn-option:hover {
  border-color: var(--accent-color);
  background: #fffdf5;
}

/* Question View */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  position: absolute;
  top: 0;
  left: 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.3s ease;
}

.question-number {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 12px;
}
.question-text {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.4;
}

/* Loading View */
.loading-view {
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Result View */

.result-title{
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 18px;
  margin-bottom: 4em;
  line-height: 1.6;
  font-size: .8rem;
}

.result-header {
  text-align: center;
  margin-bottom: 24px;
}
.result-header div{
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: .3s;
}
.result-type-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
  color: var(--accent-color);
  transition: .3s;
}
.result-type-name span{
  font-size: 1.5rem;
}
@container diagnosisContainer (max-width: 590px) {
  .result-header div{
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .result-type-name {
    font-size: 1.3rem;
  }
  .result-type-name span{
    font-size: 1rem;
  }
}


.result-image-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
  background: #f0f0f0; /* Placeholder bg */
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-image-placeholder {
  color: #ccc;
  font-size: 3rem;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
  margin-top: 32px;
}

.result-explanation-container{
  margin-bottom: 24px;
}
.result-explanation-container p{
  font-size: 1rem;
  line-height: 1.8;
  transition: .5s;
}
@container diagnosisContainer (max-width: 590px) {
  .result-explanation-container p{
  font-size: 0.87rem;
  line-height: 1.8;
}
}
.result-notelink-container{
  margin-bottom: 35px;
}
.result-about-container{
  text-align: center;
  border-top: 1px dotted #ccc;
  padding-top: 30px;
  width: 100%;
}
.result-about-container h3{
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.result-about-container p{
  font-size: 0.8rem;
  padding-bottom: 18px;
}
@container diagnosisContainer (min-width: 590px) {
  .result-about-container p br{
    display: none;
  }
}

.btn-note {
  background: #2cb696; /* Note brand color approx */
  color: white;
  transition: .3s;
}
.btn-note:hover{
  background-color: var(--accent-color);
}
.btn-share-x {
  background: #000;
  color: white;
}

.share-area{
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* Utility */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
  filter: blur(0px);/*オーバーライド追加*/
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.order-type1,
.order-type2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.order-type1 .btn,
.order-type2 .btn{
  font-size: 16px;
  max-width: 100%;
}
.question-text {
  white-space: pre-line;
}
.order-type1 button{order:1}
.order-type1 button + button{order:2}
.order-type2 button{order:2}
.order-type2 button + button{order:1}
